/* The website's own layout. The shared parts (fonts, the bar, the marker, buttons, the rail, the
   form fields) are tuccar/design's screen.css, and every value is a token from tokens.css; both are
   written beside this file by the build. Change them there, never here. */

h1 { font-size: clamp(38px, 4.9vw, 66px); line-height: 1.04; }
h2 { font-size: clamp(26px, 2.7vw, 36px); line-height: 1.14; max-width: 21em; }
h3 { font-size: 21px; line-height: 1.25; }
.facts dt { font: 600 var(--type-kicker)/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent); }
footer nav a { font: 500 var(--type-table)/1 var(--font-sans); text-decoration: none; color: var(--color-ink-soft); }
footer nav a:hover { color: var(--color-ink); text-decoration: underline; }

/* The hero: the claim on the left, the porter on the right, both standing on one line. */
.hero { position: relative; padding: clamp(40px, 7vh, 80px) var(--gutter) 0; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 5vw, 80px); align-items: end; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--color-ink); }
.claim { padding-bottom: clamp(40px, 7vh, 76px); max-width: 40em; }
.claim h1 { margin: 14px 0 22px; }
.claim .dek { max-width: 31em; }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font: 500 var(--type-table)/1 var(--font-sans); }
/* The feet sit a little above the mark's own bottom edge, so the figure is lowered onto the line. */
.porter { display: block; width: clamp(200px, 27vw, 340px); height: auto; overflow: visible; transform: translateY(1.2%); }
.porter .line { fill: none; stroke: var(--color-ink); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.porter .fill { fill: var(--color-accent); }

.facts { margin: 0; padding: 0 var(--gutter); background: var(--color-canvas); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts div { padding: 22px 24px 24px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--color-hairline); }
.facts dd { margin: 6px 0 0; font-size: 18px; line-height: 1.35; }

.band { padding: clamp(52px, 8vh, 84px) var(--gutter); }
.band + .band { border-top: 1px solid var(--color-hairline); }
.body > h2, .split h2 { margin-bottom: 28px; }
.body p { color: var(--color-ink-soft); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 88px); align-items: start; }
.split h2 { margin-bottom: 16px; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 44px); }
.pillars article { border-top: 2px solid var(--color-ink); padding-top: 16px; }
.pillars h3 { margin-bottom: 8px; }

/* The method as a drawing, a quarter of its length over each step. */
.reading { display: block; width: 100%; height: clamp(150px, 15vw, 190px); overflow: visible; }
.reading path { fill: none; stroke: var(--color-ink); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.reading .lanes path { stroke: var(--color-hairline); stroke-width: 1px; }
.reading .sources path { stroke: var(--color-ink-soft); stroke-width: .7px; opacity: .62; }
.reading .themes path, .reading .fails path { stroke-width: 1.7px; }
.reading .kept path { stroke: var(--color-accent); stroke-width: 10px; }
.reading.tall { display: none; }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { counter-increment: step; padding: 14px 24px 0 0; border-top: 1px solid var(--color-ink); }
.steps li + li { padding-left: 16px; border-left: 1px solid var(--color-hairline); }
.steps h3::before { content: counter(step); font: 500 var(--type-table)/1 var(--font-sans); color: var(--color-accent); margin-right: 10px; }
.steps h3 { margin-bottom: 8px; }

.standard { margin: 0; }
.standard div { display: grid; grid-template-columns: 11.5em minmax(0, 1fr); column-gap: 20px; padding: 13px 0; border-top: 1px solid var(--color-hairline); }
.standard div:first-child { border-top: 2px solid var(--color-ink); }
.standard dt { font-weight: 600; }
.standard dd { margin: 0; color: var(--color-ink-soft); }

.band.access { background: var(--color-canvas); border-top: 1px solid var(--color-ink); }
.request { position: relative; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.fields .wide { grid-column: 1 / -1; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.terms { font: 500 var(--type-caption)/1.5 var(--font-sans); color: var(--color-muted); }
.trap { position: absolute; left: -200vw; }
.status { font: italic 400 var(--type-subhead)/1.4 var(--font-serif); color: var(--color-ink); margin-top: 16px; }
.status:empty { display: none; }
.request[data-state="refused"] .status { color: var(--color-loss-text); }
.request[data-state="received"] .fields { display: none; }
.request[data-state="received"] .status { font-size: 24px; margin-top: 0; }

/* What the endpoint answers when the form was posted without the page's script. */
.reply { max-width: 30em; margin: 0 auto; padding: 22vh 24px; text-align: center; }

footer { background: var(--color-canvas); border-top: 1px solid var(--color-hairline); padding: 28px var(--gutter) 32px; }
.colophon { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; }
.seal { display: block; width: 44px; height: auto; flex: none; }
.about { font: 500 var(--type-table)/1.45 var(--font-sans); color: var(--color-ink-soft); margin-right: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.legal { font: 500 var(--type-caption)/1.55 var(--font-sans); color: var(--color-muted); max-width: 62em; }
.legal + .legal { margin-top: 8px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; row-gap: 28px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--color-hairline); }
}
@media (max-width: 700px) {
  /* One page: on a phone its sections are a scroll away, so the bar keeps only the action. */
  .bar nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .claim { padding-bottom: 28px; }
  .figure { justify-self: center; }
  .porter { width: 170px; }
  .pillars { grid-template-columns: 1fr; row-gap: 28px; }
  .fields { grid-template-columns: 1fr; }
  .standard div { grid-template-columns: 1fr; row-gap: 2px; }
  .colophon { flex-wrap: wrap; }
  /* The drawing turns to run down the page, a quarter of its length beside each step. */
  .reading { display: none; }
  .steps { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; }
  .reading.tall { display: block; width: 72px; height: 100%; }
  .reading.tall .kept path { stroke-width: 7px; }
  .steps ol { grid-template-columns: 1fr; grid-auto-rows: 1fr; }
  .steps li, .steps li + li { padding: 12px 0 22px; border-left: 0; }
}

/* One load sequence: the line under the hero opens, the porter is drawn in one line, the pans
   are hung and filled. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero::after { animation: lay .8s cubic-bezier(.6, 0, .2, 1) both; }
  .porter .line { stroke-dasharray: 1; animation: draw 1.9s cubic-bezier(.5, 0, .2, 1) .3s both; }
  .porter .line.hang { animation-duration: .6s; animation-delay: 2.1s; }
  .porter .fill { animation: appear .5s ease-out 2.6s both; }
}
@keyframes lay { from { transform: scaleX(0); } }
@keyframes draw { from { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } }

/* The drawing of the method is revealed along its length as it is scrolled through. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reading { animation: unroll linear both; animation-timeline: view(); animation-range: entry 40% cover 48%; }
    .reading.tall { animation-name: unroll-down; animation-range: cover 8% cover 78%; }
  }
}
@keyframes unroll { from { clip-path: inset(-12px 100% -12px -12px); } to { clip-path: inset(-12px); } }
@keyframes unroll-down { from { clip-path: inset(-12px -12px 100% -12px); } to { clip-path: inset(-12px); } }
