/* Poppy Room — drawn in Dusk.
   Paper ground, ink type, ink buttons.
   Sizes follow the type ladder in brand/BRAND.md.
   Nothing is fetched from a CDN. */

@font-face {
  font-family: "Archivo";
  src: url("/_holding/fonts/archivo-var-roman-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:      #FFFFFF;
  --ink:        #0A0A0A;
  --ink-dim:    rgb(10 10 10 / 62%);
  --ink-faint:  rgb(10 10 10 / 38%);
  --rule:       rgb(10 10 10 / 14%);
  --poppy:      #FF7A1A;

  /* Content runs the width of the page, inside a narrow margin. */
  --gutter:     clamp(24px, 4vw, 64px);
  --page:       1440px;
  --inset:      max(var(--gutter), calc((100% - var(--page)) / 2));
  --measure:    544px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 25px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--poppy); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }

/* ---- Masthead ---------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px var(--inset);
}

.wordmark {
  font-weight: 600;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62, "wght" 600;
  letter-spacing: .02em;
  font-size: 27px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 2.5vw, 32px);
}
.nav a {
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* ---- Home: the statement, then one render across the full width ------ */
main.home { padding-top: clamp(24px, 3vw, 48px); }
.lead {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px 48px;
  align-items: end;
  padding-bottom: clamp(32px, 4vw, 56px);
}
.lead h1 { max-width: none; }
.lead .sub { margin-top: 0; }

.shot { margin-inline: calc(-1 * var(--inset)); }
.shot img {
  height: min(58svh, 52vw);
  object-fit: cover;
  object-position: 50% 60%;
}
.shot figcaption {
  padding: 12px var(--inset) 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-dim);
}
.shot figcaption a { color: var(--ink-dim); text-decoration-thickness: 1px; }

/* The rest of the introduction sits under the render, in the right column. */
.home-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px 48px;
  padding-top: clamp(48px, 6vw, 88px);
}
.home-body .body { grid-column: 2; }

/* ---- Page -------------------------------------------------------------- */
main {
  flex: 1 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--inset) clamp(72px, 9vw, 128px);
}

/* Hero heading, then the one subheading, then body. */
.hero { padding-bottom: clamp(48px, 6vw, 80px); }
.hero:last-child { padding-bottom: 0; }

h1 {
  font-weight: 600;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62, "wght" 600;
  letter-spacing: .02em;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.05;
  max-width: 14em;
  text-wrap: balance;
}

.sub {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 720px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.375;
  color: var(--ink-dim);
}

.hero .body { margin-top: 32px; }

h2 {
  font-weight: 600;
  font-stretch: 90%;
  font-variation-settings: "wdth" 90, "wght" 600;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.16;
  text-wrap: balance;
}

h3 {
  font-weight: 500;
  font-stretch: 90%;
  font-variation-settings: "wdth" 90, "wght" 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
}

.body { max-width: var(--measure); }
.body > * + * { margin-top: 16px; }
.body ul { padding-left: 1.2em; }
.body li + li { margin-top: 8px; }
.body li::marker { color: var(--ink-faint); }
.body h3 + p { margin-top: 12px; }
.body p + h3 { margin-top: 36px; }

/* A section: heading on the left, content on the right, a rule above. */
.row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px 48px;
  align-items: start;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.row + .row { margin-top: 64px; }

/* ---- Work -------------------------------------------------------------- */
.project + .project { margin-top: clamp(96px, 11vw, 160px); }
.project .row { margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; }

/* Under the project name, where credits go. */
.credits {
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-dim);
}

/* One render at a time across the full width; the tabs under it change the
   view. Tall screens show the whole render; shorter ones trim a little of the
   ceiling and the floor. */
.stage {
  position: relative;
  aspect-ratio: 1200 / 864;
  max-height: 86svh;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.stage img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.stage img[data-shown] { opacity: 1; }

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(20px, 2.5vw, 32px);
  margin-top: 16px;
}
.stage-tabs button {
  appearance: none;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink-dim);
  cursor: pointer;
}
.stage-tabs button:hover,
.stage-tabs button[aria-selected="true"] { color: var(--ink); }
.stage-tabs button[aria-selected="true"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.stage-tabs button:focus-visible { outline: 2px solid var(--poppy); outline-offset: 4px; }

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

/* ---- Button ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62, "wght" 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero .btn { margin-top: 40px; }

/* ---- Closing band: the invitation at the foot of each page ------------- */
.band {
  padding: clamp(72px, 9vw, 128px) var(--inset);
  background: var(--ink);
  color: var(--paper);
}
.band p {
  margin-top: 20px;
  max-width: var(--measure);
  color: rgb(255 255 255 / 70%);
}
.band .btn {
  margin-top: 40px;
  background: var(--paper);
  color: var(--ink);
}

/* ---- Footer ------------------------------------------------------------ */
.foot {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px 48px;
  align-items: baseline;
  padding: clamp(48px, 5vw, 64px) var(--inset) clamp(56px, 6vw, 80px);
}
.foot-lines {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 64px;
  font-size: 14px;
  line-height: 22px;
}

@media (max-width: 760px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 16px; }
  .row, .foot, .lead, .home-body { grid-template-columns: 1fr; }
  .home-body .body { grid-column: 1; }
  .row + .row { margin-top: 48px; }
  .foot-lines { grid-template-columns: 1fr; }
  /* Phones: the render runs to the edges of the screen. */
  .stage { width: auto; margin-inline: calc(-1 * var(--inset)); }
}
