/* TLTBE public site. Direction: "the sentence is the layout" (taste-skill, seed 320688521).
   One ground, one ink, one accent on the action. Bebas Neue for display, EB Garamond for text. */
/* Self-hosted fonts (SIL Open Font License, see fonts/OFL-*.txt) */
@font-face { font-family: "Bebas Neue"; src: url(fonts/bebas-neue-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* A narrow stand-in with Bebas Neue's proportions while the real face loads, so headlines never overflow. */
@font-face { font-family: "Bebas Fallback"; src: local("Arial Narrow"), local("Liberation Sans Narrow"), local("Arial"), local("Liberation Sans"); size-adjust: 78%; ascent-override: 115%; }

:root {
  --bg: #0e0d0c;
  --surface: #191715;
  --field: #24201c;
  --ink: #ecebe7;
  --muted: #bdb8b0;
  --accent: #ff5a1f;
  --accent-strong: #ff7843;
  --accent-ink: #160700;

  --display: "Bebas Neue", "Bebas Fallback", sans-serif;
  --text: "EB Garamond", Garamond, "Times New Roman", serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.75rem, 1.2rem + 5vw, 5.75rem);
  --step-display: clamp(84px, 9vw, 220px);

  --m: clamp(16px, 3.2vw, 44px);
  --section: clamp(120px, 14vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; max-width: 100%; margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.02em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; }
.skip:focus { left: 8px; }
.wrap { padding-inline: var(--m); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 52px; padding: 0 26px; border: 0; border-radius: 0; background: var(--accent); color: var(--accent-ink); font: 500 var(--step-body)/1 var(--text); text-decoration: none; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button.ink { background: var(--ink); color: var(--bg); }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button.ink:hover { background: #fff; }
  .link:hover { text-decoration-color: currentColor; }
}

/* Navigation: wordmark, a few links */
.nav { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px var(--m); position: relative; z-index: 5; }
.nav .mark { font: 400 1.75rem/1 var(--display); letter-spacing: 0.01em; text-decoration: none; }
.nav ul { display: flex; gap: clamp(16px, 3vw, 40px); list-style: none; margin: 0; padding: 0; font-size: var(--step-body); }
.nav a:not(.mark) { text-decoration: none; color: var(--muted); transition: color var(--t-hover) ease; }
.nav a[aria-current="page"], .nav a:not(.mark):hover { color: var(--ink); }
.nav .menu { display: none; background: none; border: 0; color: var(--ink); font: inherit; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.22em; }
@media (max-width: 760px) {
  .nav .menu { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); padding: 8px var(--m) 20px; }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 12px 0; font-size: 1.25rem; }
}

/* Hero: the sentence with a photograph set into it */
.hero { min-height: calc(100svh - 76px); display: grid; grid-template-rows: 1fr auto; padding: 0 var(--m) clamp(24px, 4vw, 44px); }
.sentence { align-self: center; display: flex; flex-wrap: wrap; row-gap: 0.06em; max-width: 100%; align-items: baseline; justify-content: center; gap: 0.18em; font-size: var(--step-display); line-height: 0.85; letter-spacing: -0.03em; white-space: nowrap; }
.slot { font: inherit; position: relative; display: inline-block; width: 2.3em; height: 0.7em; overflow: hidden; background: var(--field); flex: none; cursor: pointer; border: 0; padding: 0; }
.slot img { width: 100%; height: 100%; object-fit: cover; transition: opacity 400ms ease; }
.hero-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: end; }
.hero-foot .now { grid-column: 1 / 5; color: var(--muted); }
.hero-foot .lede { grid-column: 6 / 10; font-size: var(--step-lead); line-height: 1.3; }
.hero-foot .button { grid-column: 11 / 13; justify-self: end; }
@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 24px; gap: 32px; }
  .sentence { flex-direction: column; align-items: flex-start; font-size: 22vw; white-space: normal; gap: 0.08em; }
  .slot { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .hero-foot { grid-template-columns: 1fr; gap: 20px; }
  .hero-foot .now, .hero-foot .lede, .hero-foot .button { grid-column: 1; justify-self: stretch; }
  .hero-foot .now { order: 3; }
}

/* Prints dropped beside the headline (never over it) */
.prints { position: relative; min-height: 100svh; background: var(--field); overflow: hidden; padding: var(--section) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; align-content: center; }
.prints h2 { grid-column: 1 / 6; grid-row: 1; align-self: center; font-size: var(--step-display); line-height: 0.85; position: relative; z-index: 2; }
.prints .stack { grid-column: 6 / 13; grid-row: 1; position: relative; min-height: 70svh; }
.print { position: absolute; width: 46%; aspect-ratio: 3 / 4; border: 8px solid var(--ink); background: var(--ink); transition: transform 200ms var(--ease-out); z-index: 1; }
.print img { width: 100%; height: 100%; object-fit: cover; }
.print.a { left: 2%; top: 4%; transform: rotate(-8deg); }
.print.b { left: 36%; top: 14%; transform: rotate(6deg); }
.print.c { right: 0; bottom: -4%; width: 28%; transform: rotate(-3deg); }
@media (hover: hover) and (pointer: fine) { .print:hover { transform: rotate(0) scale(1.02); z-index: 3; } }
.prints .note { grid-column: 1 / 5; grid-row: 2; margin-top: 40px; max-width: 34ch; }
@media (max-width: 760px) {
  .prints { display: block; min-height: auto; }
  .prints .stack { min-height: 118vw; margin-top: 32px; }
  .print { width: 56%; }
  .print.a { left: 2%; top: 2%; transform: rotate(-6deg); }
  .print.b { left: 40%; top: 14%; transform: rotate(5deg); }
  .print.c { display: none; }
}

/* Statement, table pushed right */
.edition { padding: var(--section) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; }
.edition h2 { grid-column: 1 / -1; font-size: var(--step-head); }
.edition h2 .indent { padding-left: 3vw; }
.edition .photo { grid-column: 1 / 5; grid-row: 2; align-self: end; margin-top: 96px; }
.edition .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.edition .label { grid-column: 7; grid-row: 2; margin-top: 96px; color: var(--muted); }
.days { grid-column: 8 / 13; grid-row: 2; margin: 96px 0 0; padding: 0; list-style: none; }
.days li + li { margin-top: 26px; }
.days li:nth-child(5) { margin-top: 44px; }
.days a { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 12px; align-items: baseline; text-decoration: none; }
.days .day { color: var(--muted); }
.days .title { font-size: var(--step-lead); line-height: 1.15; }
.days .go { color: var(--muted); transition: transform var(--t-hover) var(--ease-out), color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .days a:hover .go { transform: translateX(4px); color: var(--accent); } .days a:hover .title { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.05em; } }
@media (max-width: 760px) {
  .edition { display: block; }
  .edition h2 .indent { padding-left: 0; }
  .edition .label { display: none; }
  .days { margin-top: 48px; }
  .days a { grid-template-columns: 1fr auto; }
  .days .day { grid-column: 1 / -1; font-size: var(--step-small); }
  .edition .photo { width: 60%; margin: 56px 0 0 auto; }
}

/* About: the picture as a drop capital */
.about { padding: var(--section) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; background: var(--surface); }
.about .facts { grid-column: 1 / 3; margin: 0; padding: 0; list-style: none; color: var(--muted); line-height: 1.4; }
.about .facts li + li { margin-top: 14px; }
.about .facts strong { display: block; color: var(--ink); font-weight: 500; }
.about .text { grid-column: 3 / 13; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.22; }
.about .text p + p { margin-top: 1.2em; color: var(--muted); }
.about .cap { float: left; width: 3.6em; height: 3.6em; margin: 0.18em 0.5em 0 0; object-fit: cover; }
@media (max-width: 760px) {
  .about { display: flex; flex-direction: column-reverse; gap: 40px; }
  .about .text { font-size: 1.375rem; line-height: 1.25; }
  .about .cap { width: 4.6em; height: 4.6em; }
  .about .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .about .facts li + li { margin-top: 0; }
}

/* Close: the idea again, inverted */
.close { background: var(--ink); color: var(--bg); min-height: 90svh; padding: var(--section) var(--m) 40px; display: grid; grid-template-rows: 1fr auto; gap: 48px; }
.close h2 { font-size: var(--step-display); line-height: 0.86; }
.close .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: end; }
.close .row > p { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.3; }
.close form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr auto; gap: 0; }
.close label.visually-hidden + input, .close input[type=email] { min-height: 56px; border: 0; border-radius: 0; background: #fff; color: #111; font: var(--step-body) var(--text); padding: 0 18px; width: 100%; }
.close .button { min-height: 56px; }
.close .status { grid-column: 1 / -1; min-height: 1.5em; margin-top: 10px; font-size: var(--step-small); }
@media (max-width: 760px) {
  .close { min-height: 80svh; }
  .close h2 { font-size: 20vw; }
  .close .row { grid-template-columns: 1fr; }
  .close .row > p, .close form { grid-column: 1; }
  .close form { grid-template-columns: 1fr; gap: 10px; }
}

/* Footer: invitation over a cropped name */
.foot { background: var(--ink); color: var(--bg); overflow: hidden; padding: 40px var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; }
.foot .invite { grid-column: 1 / 8; }
.foot .invite h2 { font-size: var(--step-head); margin-bottom: 28px; }
.foot nav { grid-column: 10 / 13; }
.foot nav ul { list-style: none; margin: 0; padding: 0; }
.foot nav li + li { margin-top: 10px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.foot .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(80px, 12vw, 180px); font-size: var(--step-small); color: #4a443d; }
.foot .name { grid-column: 1 / -1; font: 400 clamp(160px, 38vw, 760px)/0.8 var(--display); letter-spacing: -0.03em; white-space: nowrap; transform: translateY(18%); margin-top: -0.02em; user-select: none; }
@media (max-width: 760px) {
  .foot { display: block; }
  .foot nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; }
  .foot nav li + li { margin-top: 0; }
  .foot .name { font-size: 40vw; }
}

/* Inner pages */
.page-head { padding: clamp(48px, 9vw, 140px) var(--m) clamp(40px, 6vw, 88px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; align-items: end; }
.page-head h1 { grid-column: 1 / 9; font-size: var(--step-display); line-height: 0.84; }
.page-head p { grid-column: 9 / 13; font-size: var(--step-lead); line-height: 1.3; }
@media (max-width: 760px) { .page-head { display: block; } .page-head h1 { font-size: 20vw; } .page-head p { margin-top: 20px; } }

/* Edition 001 page */
.edition-picture { margin: 0 0 clamp(40px, 6vw, 96px); overflow: hidden; }
.edition-picture img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; }
.post { padding: clamp(56px, 8vw, 120px) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; row-gap: 32px; }
.post:nth-of-type(even) { background: var(--surface); }
.post .copy { grid-column: 1 / 7; }
.post .copy h2 { font-size: var(--step-head); margin: 0 0 14px; }
.post .copy .day { color: var(--muted); margin-bottom: 24px; }
.post .copy .deck { font-size: var(--step-lead); line-height: 1.3; margin-bottom: 24px; }
.post .copy .caption { white-space: pre-line; color: var(--ink); max-width: 52ch; }
.frames { grid-column: 8 / 13; align-self: start; }
.frames-name { color: var(--muted); margin-bottom: 18px; }
.frames ol { list-style: none; margin: 0; padding: 0; }
.frame-line + .frame-line { margin-top: 22px; }
.frame-line span { display: block; font: 400 var(--step-lead)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.frame-line img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 10px; }
@media (max-width: 760px) { .post { display: block; } .frames { margin-top: 32px; } }

/* Field essay */
.essay { max-width: 40rem; margin: 0 auto; padding: 0 var(--m) var(--section); }
.essay .intro { font-size: var(--step-lead); line-height: 1.35; margin-bottom: 1.6em; }
.essay p { font-size: 1.25rem; line-height: 1.6; }
.essay p + p { margin-top: 1em; }
.essay .sign { margin-top: 2em; font-style: italic; white-space: pre-line; }
.essay .back { margin-top: 48px; }

/* Photographs page */
.gallery { columns: 3 300px; column-gap: 16px; padding: 0 var(--m) var(--section); }
.gallery figure { break-inside: avoid; margin: 0 0 28px; }
.gallery button { all: unset; display: block; width: 100%; cursor: zoom-in; overflow: hidden; }
.gallery button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery img { width: 100%; height: auto; transition: transform 700ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .gallery button:hover img { transform: scale(1.025); } }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: var(--step-small); }
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: var(--bg); color: var(--ink); }
.lightbox::backdrop { background: var(--bg); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox img { max-width: min(94vw, 1600px); max-height: 82dvh; object-fit: contain; }
.lightbox .bar { display: flex; gap: 12px; align-items: center; padding: 14px var(--m) 22px; width: 100%; }
.lightbox .bar p { flex: 1; text-align: center; color: var(--muted); }
.lightbox button { min-height: 48px; padding: 0 18px; border: 0; border-radius: 0; background: var(--field); color: var(--ink); font: var(--step-body) var(--text); cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.lightbox button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .lightbox button:hover { background: #34302b; } }

/* Simple centred close for inner pages */
.next { padding: var(--section) var(--m); background: var(--surface); }
.next h2 { font-size: var(--step-head); margin-bottom: 28px; }

/* Motion: everything stays visible without JavaScript or with reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js .shutter { clip-path: inset(0 0 100% 0); animation: shutter 1100ms var(--ease-in-out) 260ms forwards; }
  .js .shutter img { transform: scale(1.12); animation: settle 1500ms var(--ease-soft) 260ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .print[data-reveal] { transform: translateY(40px) rotate(0); }
  .js .print.a[data-reveal].is-in { transform: rotate(-8deg); }
  .js .print.b[data-reveal].is-in { transform: rotate(6deg); }
  .js .print.c[data-reveal].is-in { transform: rotate(-3deg); }
  .drift { animation: drift 24s ease-in-out infinite alternate; }
  @supports (animation-timeline: view()) {
    .scroll-drift { animation: sdrift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes shutter { to { clip-path: inset(0); } }
@keyframes settle { to { transform: none; } }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes sdrift { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.foot .button.ink, .close .button.ink { background: var(--bg); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .foot .button.ink:hover { background: #2a2622; } }

/* Web Interface Guidelines (Vercel) */
html { -webkit-tap-highlight-color: transparent; }
a, button, input { touch-action: manipulation; }
.post, [id] { scroll-margin-top: 24px; }
.lightbox { overscroll-behavior: contain; }
.nav, .hero, .prints, .edition, .about, .close, .foot, .page-head, .post, .gallery, .next { padding-left: max(var(--m), env(safe-area-inset-left)); padding-right: max(var(--m), env(safe-area-inset-right)); }

/* From the archive: four prints at uneven sizes */
.archive { padding: var(--section) var(--m); }
.archive h2 { font-size: var(--step-head); margin-bottom: clamp(32px, 5vw, 64px); }
.archive-row { display: grid; grid-template-columns: 1.35fr 0.9fr 1.15fr 0.8fr; gap: clamp(10px, 1.6vw, 24px); align-items: start; }
.archive-row a { display: block; overflow: hidden; }
.archive-row a:nth-child(2) { margin-top: 12%; }
.archive-row a:nth-child(4) { margin-top: 24%; }
.archive-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 700ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .archive-row a:hover img { transform: scale(1.03); } }
.archive > p { margin-top: 32px; }
@media (max-width: 760px) { .archive-row { grid-template-columns: 1fr 1fr; } .archive-row a:nth-child(2) { margin-top: 18%; } .archive-row a:nth-child(4) { margin-top: 0; } .archive-row a:nth-child(3) { margin-top: -18%; } }
