/*
 * Cookd waitlist, design C: Meals. Tokens mirror cookd-mobile's src/constants/theme.ts, plus
 * one bread colour used only here.
 */
:root {
  --canvas: #000000;
  --surface: #101010;
  --inverse: #f7f7f5;
  --text: #f7f7f5;
  --text-secondary: #9a9a96;
  --text-inverse: #000000;
  --line: #282828;
  --line-strong: #f7f7f5;
  /* Web only: resting field underlines use gray500 so they reach WCAG's 3:1 for controls. */
  --line-field: #787878;

  /* Bread. A marketing-only accent: the app itself stays monochrome. */
  --crumb: #f2c77e;

  --sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: 16px;
  --control: 52px;
  --hairline: 1px;
  --emphasis: 2px;
  --pressed: 0.7;

  color-scheme: dark;
}

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

html {
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] {
  display: none !important;
}

h1,
h2,
p {
  margin: 0;
}

::selection {
  background: var(--crumb);
  color: var(--text-inverse);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.preview-banner {
  padding: 8px var(--gutter);
  background: var(--inverse);
  color: var(--text-inverse);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

/* Wordmark: "Cookd" typed like the app's launch screen (cookd-mobile's
   src/components/typewriter-text.tsx), then the full stop drops in. Untyped characters keep their
   width so nothing shifts; the next one becomes a solid block cursor. */

.wordmark {
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.wordmark__glyphs {
  display: inline-block;
  padding-right: 0.075em;
}

.wordmark__dot {
  display: inline-block;
  transform-origin: 50% 90%;
}

.motion [data-wordmark] {
  color: transparent;
  /* If the script never runs, show the wordmark anyway. */
  animation: reveal 0s linear 2.5s forwards;
}

.motion [data-wordmark].is-built {
  animation: none;
}

.tw-char {
  color: transparent;
}

.tw-char.is-typed {
  color: currentColor;
}

.wordmark .tw-char.is-typed {
  color: var(--text);
}

.tw-char.is-cursor {
  background: var(--text);
}

.motion [data-wordmark] .wordmark__dot {
  color: transparent;
}

.motion [data-wordmark] .wordmark__dot.is-dropping {
  color: var(--text);
  animation: dot-drop 560ms both;
}

@keyframes reveal {
  to {
    color: var(--text);
  }
}

@keyframes dot-drop {
  0% {
    transform: translateY(-1em);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  43% {
    transform: translateY(0) scale(1, 1);
    animation-timing-function: ease-out;
  }
  55% {
    transform: translateY(0) scale(1.5, 0.6);
    animation-timing-function: cubic-bezier(0.34, 1.8, 0.64, 1);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

/* Launch screen: the wordmark types in the middle of a black screen, then glides up to its place
   in the header while the screen fades away. Only with motion; app.js runs it. */
.splash {
  display: none;
}

.motion .splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: var(--canvas);
  /* If the script never runs, get out of the way. */
  animation: splash-out 0s linear 4s forwards;
}

.motion .splash.is-playing {
  animation: none;
}

/* The header's wordmark waits underneath until the launch one lands on it. */
.splash.is-playing ~ .page .wordmark__glyphs {
  visibility: hidden;
}

@keyframes splash-out {
  to {
    visibility: hidden;
  }
}

/* Claim form. Fields mirror cookd-mobile's src/components/input-text-field.tsx. */

.claim {
  display: grid;
  gap: 24px;
  scroll-margin-top: 16px;
}

.claim__title {
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

/* "@yourname" waits in a faded bread colour; what people type takes its place at full colour. */
.claim__handle {
  color: var(--crumb);
  opacity: 0.5;
  overflow-wrap: anywhere;
}

.claim__handle.is-typed {
  opacity: 1;
}

/* A name someone already holds: struck through, so the heading never offers it. */
.claim__handle.is-taken {
  text-decoration: line-through;
  text-decoration-thickness: 0.07em;
}

/* Focus lands here when the phone's claim page opens; it isn't something to click. */
.claim__title:focus {
  outline: none;
}

.claim__sub {
  margin-top: 8px;
  text-wrap: pretty;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.claim__form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__box {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 80px;
  padding-block: 8px;
  border-bottom: var(--hairline) solid var(--line-field);
}

.field__box:focus-within {
  padding-bottom: 7px;
  border-bottom: var(--emphasis) solid var(--line-strong);
}

.field.is-invalid .field__box {
  border-bottom-color: var(--line-strong);
}

.field__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.field__row {
  display: flex;
  align-items: center;
}

/* What people type is set like the example meals: heavy, tight and in the bread colour. */
.field__prefix {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-secondary);
}

.field__input {
  flex: 1;
  /* width: 0 so the input's default size never widens the page on 320px phones. */
  width: 0;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--crumb);
  caret-color: var(--crumb);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.045em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field__input:-webkit-autofill,
.field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--crumb);
  box-shadow: 0 0 0 100px var(--canvas) inset;
}

.field__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 1.3em;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.field__hint[data-state='unavailable'],
.field__hint[data-state='error'] {
  color: var(--text);
  font-weight: 600;
}

.field__hint[data-state='available'] {
  color: var(--crumb);
}

/* State marks: filled for good news, hollow for a problem, a blinking block while checking. */
.field__hint[data-state]::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.field__hint[data-state='available']::before {
  background: currentColor;
}

.field__hint[data-state='unavailable']::before,
.field__hint[data-state='error']::before {
  border: 1.5px solid currentColor;
}

.field__hint[data-state='checking']::before {
  width: 6px;
  height: 11px;
  border-radius: 0;
  background: currentColor;
  animation: blink 480ms steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Mirrors cookd-mobile's src/components/button.tsx. */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--control);
  margin-top: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: var(--inverse);
  color: var(--text-inverse);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity 120ms ease-out;
}

@media (hover: hover) {
  .button:hover,
  .join:hover {
    opacity: 0.85;
  }

  .back:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .field__box:hover:not(:focus-within) {
    border-bottom-color: var(--text-secondary);
  }
}

.button:active,
.button[aria-busy='true'] {
  opacity: var(--pressed);
}

.button:focus-visible {
  outline: var(--emphasis) solid var(--crumb);
  outline-offset: 3px;
}

.button--secondary {
  border: var(--hairline) solid var(--line-strong);
  background: transparent;
  color: var(--text);
}

.claim__status {
  font-size: 0.9375rem;
}

.claim__status:empty {
  display: none;
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Confirmation once a name is held. */
.held {
  display: grid;
  gap: 16px;
  outline: none;
}

/* Once held, the confirmation takes the heading's place so the name shows once. */
.claim.is-held .claim__head {
  display: none;
}

.held__label {
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.held__handle {
  min-width: 0;
  font-size: clamp(2.5rem, 11vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: var(--crumb);
  overflow-wrap: anywhere;
}

.held__handle .tw-char.is-cursor {
  background: var(--crumb);
}

.held__body {
  max-width: 30em;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

/* "Save them a seat": your circle, taken, next to an open one. Circles are only for people, as in
   the app's AvatarInitials. */
.seats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.seats__pair {
  display: flex;
  flex: none;
}

.seat {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 0.9375rem;
  font-weight: 700;
}

.seat--you {
  border: 2px solid var(--canvas);
  background: var(--inverse);
  color: var(--text-inverse);
}

.seat--open {
  margin-left: -8px;
  border: 2px dashed var(--line-field);
  background: var(--canvas);
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 400;
}

.seats__ask {
  font-size: 1.0625rem;
}

/* The share button confirms a copy in place, in white, for two seconds. */
.claim .held .button.is-done {
  background: var(--inverse);
}

.held__link {
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
  user-select: all;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}

/* C · Meals. The page shows a Cookd post instead of describing one: the title types out a run of
   ordinary meals, with the people who cooked and ate each. The bread colour is the food. */

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  max-width: 1320px;
  min-height: 100svh;
  margin-inline: auto;
  padding: max(20px, env(safe-area-inset-top, 0px)) var(--gutter)
    max(24px, env(safe-area-inset-bottom, 0px));
}

.top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

/* 15vw, not 16vw: at 360–400px the wordmark and the join button otherwise ran past the right
   gutter. */
.wordmark {
  font-size: clamp(3.25rem, 15vw, 5.5rem);
}

.story {
  display: grid;
  align-content: start;
  gap: 28px;
}

/* One title size for the lede, the etymology's word and the claim heading on desktop. */
.lede {
  max-width: 18em;
  font-size: clamp(1.5rem, 6.9vw, 2.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Where the name comes from: com, "with", + pānis, "bread". Second only to the lede. */
.define {
  display: grid;
  gap: 10px;
  max-width: 34em;
}

.define__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.define__word {
  font-size: clamp(1.5rem, 6.9vw, 2.25rem);
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.define__syl {
  margin-inline: 0.04em;
  color: var(--text-secondary);
  font-weight: 400;
}

.define__pron {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.define__sense {
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 4.4vw, 1.375rem);
  line-height: 1.35;
}

.define__sense i {
  color: var(--text);
  font-weight: 600;
}

.define__sense .define__bread {
  color: var(--crumb);
}

.post {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-block: 24px;
  border-bottom: var(--hairline) solid var(--line);
}

/* Feed: newest first. Older posts sit under the newest, smaller, in a window that fades out at
   the bottom, so the oldest scrolls out under the fade instead of fading on its own. */
.feed {
  display: grid;
  align-content: start;
  border-top: var(--hairline) solid var(--line);
  overflow: clip;
  -webkit-mask-image: var(--feed-fade);
  mask-image: var(--feed-fade);
  --feed-fade: linear-gradient(
    to bottom,
    #000 0%,
    #000 50%,
    rgb(0 0 0 / 0.62) 64%,
    rgb(0 0 0 / 0.3) 84%,
    transparent 100%
  );
}

.post + .post .post__title {
  font-size: min(2.25rem, 5.6cqi);
}

/* While a new post opens at the top, the one it pushes down eases into the smaller size. */
.feed.is-moving .post {
  transition:
    padding 560ms cubic-bezier(0.2, 0.7, 0.2, 1),
    gap 560ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.feed.is-moving .post__title {
  transition: font-size 560ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post.is-opening {
  overflow: hidden;
}

.post__time {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* Phones drop the times so each cooks line keeps to one row at 375px. */
@media (max-width: 959px) {
  .post__time {
    display: none;
  }
}

.post__eaters {
  transition: opacity 150ms ease-out;
}

.post.is-swapping .post__people,
.post.is-swapping .post__eaters {
  opacity: 0;
}

.post__people {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post__avatars {
  display: flex;
}

/* Circles are only for people, as in the app's AvatarInitials. */
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 2px solid var(--canvas);
  border-radius: 50%;
  background: var(--inverse);
  color: var(--text-inverse);
  font-size: 0.8125rem;
  font-weight: 700;
}

.avatar + .avatar {
  margin-left: -10px;
}

.post__cooks {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Always one line: sized to the column so the longest meal fits, and nothing jumps. */
.post {
  container-type: inline-size;
}

.post__title {
  min-height: 1.03em;
  font-size: min(4.25rem, 7.9cqi);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: var(--crumb);
  white-space: nowrap;
}

.post__cursor {
  display: inline-block;
  width: 0.09em;
  height: 0.78em;
  margin-left: 0.06em;
  background: var(--crumb);
  vertical-align: -0.04em;
  animation: blink 900ms steps(1) infinite;
}

.post__title.is-typing .post__cursor {
  animation: none;
}

.post__eaters {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.footer {
  align-self: end;
  padding-top: 16px;
  border-top: var(--hairline) solid var(--line);
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

@media (min-width: 960px) {
  .page {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    /* Rows 2 and 5 take the spare height, so the lede and feed sit centred beside the form. */
    grid-template-rows: auto 1fr auto auto 1fr auto;
    column-gap: clamp(48px, 7vw, 120px);
    row-gap: 0;
    padding-inline: clamp(32px, 5vw, 72px);
    padding-top: 28px;
  }

  /* Row one: the wordmark. Below, centred in the page: "The food social network." over the feed
     on the left, the etymology over the form on the right, the lede and the etymology's last
     line sharing a baseline. The join button is for phones only. */
  .intro,
  .story {
    display: contents;
  }

  .top {
    grid-area: 1 / 1;
  }

  .lede {
    grid-area: 3 / 1;
    padding-top: 24px;
  }

  .define {
    grid-area: 3 / 2;
  }

  .lede,
  .define {
    align-self: last baseline;
  }

  /* Start, not stretch: a taller form mustn't stretch the window past the posts and its fade. */
  .feed {
    grid-area: 4 / 1;
    align-self: start;
    margin-top: 28px;
    margin-bottom: 24px;
  }

  .claim {
    grid-area: 4 / 2;
    align-content: start;
    max-width: 440px;
    width: 100%;
    padding-block: 28px 24px;
  }

  .footer {
    grid-area: 6 / 1 / auto / -1;
    padding-block: 20px 28px;
  }

  .wordmark {
    font-size: 5.5rem;
  }
}

/* Scale: on desktop the page grows with the window instead of sitting in a fixed column, so a
   big screen fills with type rather than black. --u is 1% of the width, or less on a wide, short
   window so everything still fits one screen; phone sizes are the floor. */
@media (min-width: 960px) {
  /* On :root so the launch screen's wordmark, outside .page, scales the same. Lower height cap
     than plain scale: the feed is the tallest thing on the page, and short laptop windows
     (about 1376×810) must still fit without scrolling. */
  :root {
    --u: min(1vw, 1.4vh);
  }

  .page {
    max-width: none;
    column-gap: 7vw;
    padding-inline: 6vw;
    padding-top: calc(2.2 * var(--u));
    /* The footer carries its own bottom space. */
    padding-bottom: 0;
  }

  .wordmark {
    font-size: max(5.5rem, calc(10 * var(--u)));
  }

  .lede,
  .claim {
    max-width: none;
  }

  .lede {
    font-size: max(2.25rem, calc(2.6 * var(--u)));
  }

  /* The form's top lines up with the feed's. */
  .claim {
    padding-block: max(28px, calc(2.4 * var(--u))) calc(1.5 * var(--u));
  }

  .lede {
    padding-top: calc(1.5 * var(--u));
  }

  .feed {
    margin-top: max(28px, calc(2.4 * var(--u)));
    margin-bottom: calc(1.5 * var(--u));
  }

  .define {
    gap: max(10px, calc(0.8 * var(--u)));
  }

  .define__word {
    font-size: max(2.25rem, calc(2.6 * var(--u)));
  }

  .define__pron {
    font-size: max(1.0625rem, calc(1.2 * var(--u)));
  }

  .define__sense {
    font-size: max(1.375rem, calc(1.5 * var(--u)));
  }

  .post {
    gap: max(14px, calc(1 * var(--u)));
    padding-block: max(24px, calc(1.8 * var(--u)));
  }

  .avatar {
    width: max(35px, calc(2.4 * var(--u)));
    height: max(35px, calc(2.4 * var(--u)));
    font-size: max(0.8125rem, calc(0.9 * var(--u)));
  }

  .post__cooks,
  .post__eaters {
    font-size: max(0.9375rem, calc(1.05 * var(--u)));
  }

  .post__time {
    font-size: max(0.8125rem, calc(0.9 * var(--u)));
  }

  .post + .post .post__title {
    font-size: min(calc(2.6 * var(--u)), 5.6cqi);
  }

  .post + .post {
    gap: max(10px, calc(0.7 * var(--u)));
    padding-block: max(16px, calc(1.2 * var(--u)));
  }

  .claim {
    gap: max(24px, calc(1.8 * var(--u)));
  }

  .claim__title {
    font-size: max(2.25rem, calc(2.6 * var(--u)));
  }

  .claim__sub {
    font-size: max(1.0625rem, calc(1.2 * var(--u)));
  }

  .field__box {
    min-height: max(80px, calc(4.6 * var(--u)));
  }

  .field__label {
    font-size: max(0.6875rem, calc(0.75 * var(--u)));
  }

  .field__prefix,
  .field__input {
    font-size: max(1.5rem, calc(1.75 * var(--u)));
  }

  .field__hint,
  .fine {
    font-size: max(0.8125rem, calc(0.9 * var(--u)));
  }

  .button {
    min-height: max(52px, calc(3.6 * var(--u)));
    font-size: max(0.9375rem, calc(1.05 * var(--u)));
  }

  .held__label {
    font-size: max(2.25rem, calc(2.6 * var(--u)));
  }

  .held__body,
  .seats__ask {
    font-size: max(1.0625rem, calc(1.2 * var(--u)));
  }

  .footer {
    font-size: max(0.8125rem, calc(0.85 * var(--u)));
  }
}

/* Phones: a rounded, bread-coloured "Join the waitlist" button in the top right opens the claim
   form as its own page (#claim, so the back button returns), unboxed, with a bread-coloured
   button. */
.join,
.back {
  display: none;
}

@media (max-width: 959px) {
  /* A column, not a grid: a grid stretches its rows on a short page (the claim page), which
     moved the wordmark and spread the lede away from it. The footer takes the spare space. */
  .page {
    display: flex;
    flex-direction: column;
  }

  .footer {
    align-self: stretch;
    margin-top: auto;
  }

  .intro {
    display: grid;
    gap: 40px;
  }

  .top {
    align-items: center;
  }

  /* The one rounded, solid, bread-coloured object at the top of a black page. It needs nothing
     else to be seen: no motion, no shine, no glow. */
  .join {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--crumb);
    color: var(--text-inverse);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    white-space: nowrap;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: opacity 120ms ease-out;
  }

  .join:active {
    opacity: var(--pressed);
  }

  /* The claim page's way home, where the join button was. */
  .back {
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    margin-right: -8px;
    padding: 0 8px;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: opacity 120ms ease-out;
  }

  .back:active {
    opacity: var(--pressed);
  }

  .page:has(.claim:target) .back {
    display: flex;
  }

  /* Once a name is held there's nothing to go back to. */
  .page:has(.claim.is-held) .back {
    display: none;
  }

  /* Narrow phones need a tighter button, and the smallest (320px) a smaller wordmark, so both
     fit side by side inside the gutters. */
  @media (max-width: 374px) {
    .top {
      gap: 12px;
    }

    .join {
      padding-inline: 14px;
      font-size: 0.8125rem;
    }
  }

  @media (max-width: 359px) {
    .wordmark {
      font-size: 14vw;
    }
  }

  .join:focus-visible,
  .back:focus-visible {
    outline: var(--emphasis) solid var(--text);
    outline-offset: 3px;
  }

  .claim {
    display: none;
    /* Taller than the page above it, so opening #claim stays at the top with the wordmark. */
    scroll-margin-top: 100svh;
  }

  .claim:target {
    display: grid;
    align-content: start;
  }

  /* The claim page keeps the wordmark and lede so people know what they're joining. */
  .page:has(.claim:target) .story,
  .page:has(.claim:target) .join {
    display: none;
  }

  .claim__title {
    font-size: clamp(2.25rem, 10vw, 2.75rem);
  }
}

/* The claim button is bread-coloured everywhere, like the join button and the meal titles. */
.claim .button:not(.button--secondary) {
  background: var(--crumb);
  color: var(--text-inverse);
}

.claim .button:focus-visible {
  outline-color: var(--text);
}
