Files
LuPhoto/web/src/app.css
T
2026-11-04 05:10:46 -08:00

564 lines
11 KiB
CSS

@import "../brand/tokens.css";
@import "./fonts.css";
:root {
color-scheme: dark;
--strip-closed: min(calc(100vw * 6 / 32), 28vh);
--strip-open: min(calc(100vw * 9 / 32), 62vh);
--strip-gap: var(--lucio-space-2);
--gutter: var(--lucio-space-4);
--veil: rgba(17, 17, 20, 0.78);
}
@media (min-width: 768px) {
:root {
--strip-gap: var(--lucio-space-4);
--gutter: var(--lucio-space-6);
}
}
html,
body {
margin: 0;
min-height: 100%;
background: var(--lucio-graphite);
color: var(--lucio-paper);
font-family: var(--lucio-font-body);
font-size: 17px;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
a {
color: var(--lucio-paper);
text-decoration-color: var(--lucio-ash-light);
text-underline-offset: 0.15em;
}
::selection {
background: var(--lucio-graphite-3);
color: var(--lucio-paper);
}
:focus-visible {
outline: 2px solid var(--lucio-beam);
outline-offset: 2px;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
.strip-eyebrow,
.next-eyebrow {
font-family: var(--lucio-font-mono);
font-size: 12px;
line-height: 1.4;
font-weight: 500;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--lucio-ash-light);
}
.wordmark,
.home-mark {
display: block;
color: var(--lucio-paper);
text-decoration: none;
}
.wordmark-text {
font-family: var(--lucio-font-display);
font-weight: 700;
font-size: 28px;
line-height: 1;
letter-spacing: -0.01em;
}
.has-svg .wordmark-text {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
}
.wordmark-svg {
display: block;
width: 100%;
}
.chop {
display: block;
width: clamp(28px, 7vmin, 72px);
flex: none;
}
.chop svg {
display: block;
width: 100%;
height: auto;
}
.site-header {
padding: var(--lucio-space-5) var(--gutter);
}
.site-header .wordmark {
width: 128px;
}
.strips {
display: flex;
flex-direction: column;
gap: var(--strip-gap);
}
.strip {
position: relative;
display: block;
height: var(--strip-closed);
overflow: hidden;
background: var(--lucio-graphite-2);
color: var(--lucio-paper);
text-decoration: none;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
user-select: none;
-webkit-user-select: none;
transition: height var(--lucio-motion-base) var(--lucio-ease-base);
}
.strip.is-open {
height: var(--strip-open);
}
.strip:focus-visible {
outline: 2px solid var(--lucio-beam);
outline-offset: -2px;
box-shadow: var(--lucio-shadow-glow);
}
.strip-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
display: block;
will-change: transform;
transition: transform var(--lucio-motion-base) var(--lucio-ease-base);
}
.strip::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(to top, var(--veil) 0%, rgba(17, 17, 20, 0.3) 40%, rgba(17, 17, 20, 0) 68%);
opacity: 0;
pointer-events: none;
transition: opacity var(--lucio-motion-fast) var(--lucio-ease-fast);
}
.strip-text {
position: absolute;
left: var(--gutter);
right: var(--gutter);
bottom: var(--lucio-space-5);
z-index: 1;
display: flex;
flex-direction: column;
gap: var(--lucio-space-1);
max-width: 68ch;
}
.strip-eyebrow,
.strip-title,
.strip-subtitle {
opacity: 0;
transition: opacity var(--lucio-motion-fast) var(--lucio-ease-fast);
}
.strip-title {
font-family: var(--lucio-font-display);
font-weight: 600;
font-size: clamp(22px, 2.6vw, 36px);
line-height: 1.15;
letter-spacing: -0.015em;
}
.strip-subtitle {
font-size: 14px;
line-height: 1.5;
color: var(--lucio-ash-light);
}
.strip.is-open::after,
.strip.is-open .strip-eyebrow,
.strip.is-open .strip-title,
.strip.is-open .strip-subtitle {
opacity: 1;
transition: opacity var(--lucio-motion-glow) var(--lucio-ease-glow) var(--lucio-motion-base);
}
.strip.is-open .strip-title {
transition-delay: calc(var(--lucio-motion-base) + var(--lucio-motion-fast));
}
.strip.is-open .strip-subtitle {
transition-delay: calc(var(--lucio-motion-base) + var(--lucio-motion-fast) * 2);
}
html:not(.has-strips) .strip::after,
html:not(.has-strips) .strip-eyebrow,
html:not(.has-strips) .strip-title,
html:not(.has-strips) .strip-subtitle {
opacity: 1;
}
.empty {
margin: 0;
padding: var(--lucio-space-9) var(--gutter);
color: var(--lucio-ash-light);
}
.site-footer {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: var(--lucio-space-4);
padding: var(--lucio-space-7) var(--gutter) var(--lucio-space-6);
}
.footer-line {
margin: 0;
font-size: 14px;
line-height: 1.5;
color: var(--lucio-ash-light);
}
.busy {
position: fixed;
top: 50%;
right: max(var(--lucio-space-6), calc(env(safe-area-inset-right) + var(--lucio-space-6)));
width: 56px;
height: 56px;
margin-top: -28px;
z-index: 5;
opacity: 0;
pointer-events: none;
transition: opacity var(--lucio-motion-base) var(--lucio-ease-base);
}
.busy.is-visible {
opacity: 1;
}
.busy svg {
display: block;
}
.progress {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 2px;
z-index: 6;
background: var(--lucio-beam);
transform: scaleX(0);
transform-origin: 0 50%;
opacity: 0;
pointer-events: none;
transition: transform var(--lucio-motion-base) var(--lucio-ease-base), opacity var(--lucio-motion-base) var(--lucio-ease-base);
}
.progress.is-visible {
opacity: 1;
}
.has-viewer body.viewer {
position: fixed;
inset: 0;
overflow: hidden;
overscroll-behavior: none;
}
.album-fallback {
padding: var(--lucio-space-7) var(--gutter);
}
.has-viewer .album-fallback {
display: none;
}
.home-mark {
position: fixed;
top: max(var(--lucio-space-5), env(safe-area-inset-top));
left: max(var(--lucio-space-5), env(safe-area-inset-left));
z-index: 4;
width: 88px;
transition: opacity var(--lucio-motion-base) var(--lucio-ease-base);
}
.is-idle:not(.has-caption) .home-mark:not(:focus-visible) {
opacity: 0;
}
.stage {
overflow: hidden;
background: var(--lucio-graphite);
touch-action: none;
user-select: none;
-webkit-user-select: none;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
cursor: grab;
}
.has-viewer .stage {
position: fixed;
inset: 0;
}
.stage.is-dragging {
cursor: grabbing;
}
.stage-canvas,
.stage-fade {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
}
.stage-fade {
pointer-events: none;
opacity: 0;
transition: opacity var(--lucio-motion-base) var(--lucio-ease-glow);
}
.caption {
position: absolute;
left: 0;
bottom: 0;
box-sizing: border-box;
max-height: 60%;
overflow: hidden;
padding: var(--lucio-space-8) var(--lucio-space-5) var(--lucio-space-5);
background: linear-gradient(to top, rgba(17, 17, 20, 0.9) 0%, rgba(17, 17, 20, 0.62) 55%, rgba(17, 17, 20, 0) 100%);
opacity: 0;
pointer-events: none;
transition: opacity var(--lucio-motion-base) var(--lucio-ease-base);
}
.caption.is-visible {
opacity: 1;
}
.caption-meta {
margin: 0;
font-family: var(--lucio-font-mono);
font-size: 12px;
line-height: 1.4;
letter-spacing: 0.04em;
color: var(--lucio-steel);
font-variant-numeric: tabular-nums;
}
.caption-title {
margin: var(--lucio-space-2) 0 0;
font-family: var(--lucio-font-display);
font-size: 22px;
font-weight: 600;
line-height: 1.2;
letter-spacing: -0.01em;
}
.caption-text {
margin: var(--lucio-space-2) 0 0;
max-width: 68ch;
font-size: 14px;
line-height: 1.5;
}
.caption-text em {
font-style: italic;
}
.end-card {
position: absolute;
top: 0;
left: 0;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
will-change: transform;
}
.next-album {
display: block;
color: var(--lucio-paper);
text-decoration: none;
}
.next-strip {
position: relative;
display: block;
overflow: hidden;
}
.next-album.has-strip .next-strip {
background: var(--lucio-graphite-2);
}
.next-album.has-strip .next-strip::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(to top, var(--veil) 0%, rgba(17, 17, 20, 0) 65%);
pointer-events: none;
}
.next-text {
display: flex;
flex-direction: column;
gap: var(--lucio-space-1);
}
.next-album.has-strip .next-text {
position: absolute;
left: var(--lucio-space-5);
bottom: var(--lucio-space-4);
z-index: 1;
}
.next-title {
font-family: var(--lucio-font-display);
font-size: 24px;
font-weight: 600;
line-height: 1.2;
letter-spacing: -0.01em;
}
.next-album:hover .next-title {
text-decoration: underline;
text-decoration-color: var(--lucio-ash-light);
text-underline-offset: 0.15em;
}
.next-album:focus-visible {
outline-offset: 4px;
box-shadow: var(--lucio-shadow-glow);
}
.signoff {
position: absolute;
right: var(--lucio-space-6);
bottom: var(--lucio-space-6);
display: flex;
flex-direction: column;
align-items: flex-end;
gap: var(--lucio-space-2);
}
.signature {
margin: 0;
font-family: var(--lucio-font-display);
font-size: 20px;
font-weight: 600;
line-height: 1.2;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
transition-duration: 0ms !important;
transition-delay: 0ms !important;
animation-duration: 0ms !important;
}
}
html {
touch-action: manipulation;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
.skip-link {
position: absolute;
top: var(--lucio-space-2);
left: var(--lucio-space-4);
z-index: 10;
padding: var(--lucio-space-2) var(--lucio-space-3);
background: var(--lucio-graphite-2);
color: var(--lucio-paper);
font-size: 14px;
line-height: 1.5;
text-decoration: none;
transform: translateY(-200%);
}
.skip-link:focus-visible {
transform: none;
}
.stage:focus-visible {
outline: 2px solid var(--lucio-beam);
outline-offset: -2px;
}
.strip {
touch-action: manipulation;
}
.load-error {
color: var(--lucio-ash-light);
}
.message {
padding: var(--lucio-space-9) var(--gutter) var(--lucio-space-8);
max-width: 68ch;
}
.message-eyebrow {
margin: 0;
font-family: var(--lucio-font-mono);
font-size: 12px;
line-height: 1.4;
font-weight: 500;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--lucio-ash-light);
}
.message-title {
margin: var(--lucio-space-2) 0 var(--lucio-space-4);
font-family: var(--lucio-font-display);
font-size: 36px;
font-weight: 700;
line-height: 1.15;
letter-spacing: -0.015em;
}
.message-text {
margin: 0;
color: var(--lucio-paper);
}
.message-text a {
text-decoration: underline;
}