/*
  The page starts as a blank sheet and takes on ink and depth as the brief is written:
  each stage is a little darker, denser and more raised than the previous one,
  from flat paper to engraved rules, lifted sheets, letterpress and finally objects.
*/
@font-face {
  font-family: "FSUS Sans";
  src: url("/assets/fonts/fsus-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #efefed;
  --ink: #111111;
  --font: "FSUS Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 2.6vw, 36px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 60px; background: var(--paper); color: var(--ink); padding: 4px 8px; z-index: 20; }

.cap,
.site-header,
.stage-label,
.list .k,
.plate figcaption,
.legal dt {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.6;
  font-weight: 400;
}

/* Header inverts itself over dark stages */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  height: 52px; padding: 0 var(--gutter);
  color: #fff; mix-blend-mode: difference;
}
.site-header nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.site-header .current { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Stage tones: paper -> ink */
.stage { --bg: var(--paper); --fg: var(--ink); --soft: #6e6e6c; --rule: #c9c9c6; --plate: #dcdcd9;
  background: var(--bg); color: var(--fg); padding: 0 var(--gutter); }
.tone-1 { --bg: #e7e7e4; --rule: #c2c2be; }
.tone-2 { --bg: #dadad6; --soft: #5f5f5d; --rule: #b4b4b0; }
.tone-3 { --bg: #c6c6c1; --soft: #4f4f4d; --rule: #a2a29d; }
.tone-4 { --bg: #9a9a95; --soft: #2f2f2e; --rule: #80807b; }
.tone-5 { --bg: #1b1b1a; --fg: #efefed; --soft: #8c8c88; --rule: #343432; --plate: #292927; }
.tone-6 { --bg: #0d0d0d; --fg: #efefed; --soft: #85857f; --rule: #2a2a28; }

/* Opening: the blank sheet */
.opening {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 52px; padding-bottom: 28px;
}
.idea-form { margin: 0; width: 100%; max-width: 1100px; }
.idea-form label { display: block; margin-bottom: 14px; color: var(--soft); }
.idea-line { display: flex; align-items: baseline; gap: .4em; }
.idea-input {
  flex: 1; min-width: 0;
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 0 0 .08em; margin: 0;
  font-size: clamp(30px, 5vw, 68px); letter-spacing: -.02em; line-height: 1.15;
}
.idea-input::placeholder { color: transparent; }
.idea-input:focus { outline: none; }
.idea-hint { margin-top: 16px; color: var(--soft); min-height: 1.6em; }
.opening-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px;
  display: flex; justify-content: space-between; color: var(--soft);
}
.opening { position: relative; }

/* Brief stages */
.stage-row {
  display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: var(--gutter);
  padding-top: 16px; border-top: 1px solid var(--rule);
}
.stage-label { margin: 0; color: var(--soft); }
.stage-label span { color: var(--fg); margin-right: 1.2em; }
.stage-body > :first-child { margin-top: 0; }
.stage-body > :last-child { margin-bottom: 0; }

/* Rhythm tightens as the brief fills */
.s-1 { padding-bottom: 34vh; }
.s-2 { padding-bottom: 26vh; }
.s-3 { padding-bottom: 20vh; }
.s-4 { padding-bottom: 16vh; }
.s-5 { padding-bottom: 13vh; }
.s-6 { padding-bottom: 11vh; }

.lead {
  max-width: 30ch; margin: 0 0 1em;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.22; letter-spacing: -.015em;
}
.body { max-width: 60ch; margin: 0 0 32px; }

.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.list li {
  display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter);
  padding: 12px 0 14px; border-bottom: 1px solid var(--rule);
}
.list .k { padding-top: 2px; }
.list p { margin: 0; }
.list .soft { color: var(--soft); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
.grid-2 .list:last-child { border-top: 1px solid var(--rule); }

/* Statement between the brief and the brands */
.manifest { padding-top: 18vh; padding-bottom: 18vh; }
.manifest p {
  margin: 0; max-width: 18ch;
  font-size: clamp(34px, 6vw, 88px); line-height: 1.02; letter-spacing: -.03em;
}

/* Brands */
.brands { padding-top: 16px; padding-bottom: 14vh; }
.brands .lead { margin-bottom: 48px; }
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin: 0; }
.plate { margin: 0; }
.plate .img {
  aspect-ratio: 4 / 5; background: var(--plate);
  display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center;
  font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .14em; text-transform: uppercase;
}
.plate.yours .img { background: transparent; border: 1px dashed var(--soft); text-transform: none; letter-spacing: -.01em; }
.plate figcaption { padding-top: 10px; display: grid; gap: 2px; }
.plate figcaption .soft { color: var(--soft); }

/* Call to action */
.cta { padding-top: 16px; padding-bottom: 16vh; }
.cta-idea {
  margin: 0 0 40px; max-width: 20ch;
  font-size: clamp(34px, 6vw, 88px); line-height: 1.04; letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.cta-idea .blank { display: inline-block; min-width: 4em; border-bottom: 1px solid currentColor; }
.send {
  display: inline-block; padding: 16px 22px; margin-bottom: 28px;
  background: var(--fg); color: var(--bg);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.send:hover { text-decoration: none; opacity: .85; }
.fine { max-width: 56ch; color: var(--soft); font-size: 13px; margin: 0 0 8px; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 14px var(--gutter) 18px; border-top: 1px solid #2a2a28;
  background: #0d0d0d; color: #85857f;
}
.site-footer a:hover { color: #efefed; }

/* Legal page and 404 */
.plain { min-height: 100svh; padding-top: 120px; padding-bottom: 80px; }
.legal { margin: 0; max-width: 760px; border-top: 1px solid var(--rule); }
.legal div { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
.legal dd { margin: 0; }

/* Brief reveal: each block is written in as it enters the screen */
.js .reveal { opacity: 0; transition: opacity 1s ease; }
.js .reveal.in { opacity: 1; }

@media (max-width: 760px) {
  .stage-row, .list li, .legal div { grid-template-columns: 1fr; gap: 6px; }
  .stage-row { gap: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 .list:last-child { border-top: 0; }
  .plates { grid-template-columns: 1fr 1fr; }
  .plate.yours { grid-column: 1 / -1; }
  .plate.yours .img { aspect-ratio: 16 / 9; }
  .site-header .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transition: none; }
}

.plain h1 { margin: 16px 0 28px; font-size: clamp(30px, 5vw, 68px); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }

/* Relief, stage by stage */

/* III: engraved rules */
.tone-1 .list,
.tone-1 .list li { border-color: #bdbdb9; }
.tone-1 .list li { box-shadow: 0 1px 0 rgba(255, 255, 255, .75); }
.tone-1 .list { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75); }

/* IV-VI: lists become sheets lifting off the page */
.tone-2 { --sheet: #e2e2de; --lift: 0 1px 1px rgba(0, 0, 0, .05), 0 3px 8px rgba(0, 0, 0, .05); }
.tone-3 { --sheet: #d3d3ce; --lift: 0 1px 2px rgba(0, 0, 0, .08), 0 10px 28px -6px rgba(0, 0, 0, .16); }
.tone-2 .list,
.tone-3 .list {
  background: var(--sheet); box-shadow: var(--lift);
  border-top: 0; padding: 4px 20px;
}
.tone-2 .list li:last-child,
.tone-3 .list li:last-child { border-bottom: 0; }
.tone-2 .grid-2 { gap: var(--gutter); }
.tone-2 .grid-2 .list:last-child { border-top: 0; }
.s-6.tone-3 { --lift: 0 2px 3px rgba(0, 0, 0, .09), 0 18px 40px -10px rgba(0, 0, 0, .22); }

/* Conviction: letterpress */
.manifest p {
  color: #262625;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .28), 0 -1px 0 rgba(0, 0, 0, .18);
}

/* VII: brands become objects */
.plates { perspective: 1200px; }
.plate .img {
  position: relative;
  background: linear-gradient(155deg, #3b3b39 0%, #262624 55%, #1f1f1e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 2px 4px rgba(0, 0, 0, .4),
    0 34px 60px -24px rgba(0, 0, 0, .9);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .07);
  color: #d9d9d5;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s ease, box-shadow .5s ease, background .5s ease, border-color .5s ease;
  will-change: transform;
}
.plate.yours .img {
  background: transparent; box-shadow: none; text-shadow: none; color: var(--soft);
  border: 1px dashed var(--soft);
}
.plate.yours.filled .img {
  background: linear-gradient(155deg, #4a4a47 0%, #2e2e2c 55%, #242423 100%);
  border-color: transparent; color: #efefed;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    0 2px 4px rgba(0, 0, 0, .4),
    0 40px 70px -24px rgba(0, 0, 0, .95);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .08);
}

/* VIII: raised button */
.send {
  background: linear-gradient(180deg, #f6f6f4 0%, #dcdcd8 100%);
  color: #0d0d0d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(0, 0, 0, .6), 0 14px 30px -12px rgba(255, 255, 255, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.send:hover { opacity: 1; transform: translateY(-1px); }
.send:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25), 0 1px 1px rgba(0, 0, 0, .6); }

@media (prefers-reduced-motion: reduce) {
  .plate .img { transform: none; transition: none; }
}
