/*
  The public site, Route Night only, drawn as the app's design system draws it (docs/design/DESIGN.md; the portal's
  web DLS, src/portal/dls, draws the same parts from the same tokens). One stylesheet, in this order:

    1. Tokens       the copied block (never edited) and the self-hosted faces
    2. Variables    what the tokens do not name for the site
    3. Base         the page, links, focus
    4. Type         DESIGN.md's recipes as classes (.t-*), each listing every place that sets it
    5. Parts        main button, secondary button, text link, chip, card, carved well, store badge, station,
                    header, footer, contents rail
    6. Layout       the column and the sections
    7. Pages        the landing page and the legal pages
    8. Motion       reveals and line drawing, and what Reduce Motion keeps still
*/

/* 1. Tokens */

/* The Route Night colours and the motion curves come from the design tokens (@tolden/dls in the app
   repository). Do not edit the block: change the tokens and run `npm run tokens:pull` (site/README.md). */
/* tokens:pull begin: site-variables.css from @tolden/dls, copied by `npm run tokens:pull` */
/* Generated by `yarn dls:generate` from @tolden/dls src/tokens: Route Night's colour roles, motion curves, depth colours, card corner and type recipes under the public site's names (site/styles.css). Do not edit. */
/* No token is named for these, so not generated: --draw-ms (the site's line drawing), --radius (the site's own corner). Left to the site on purpose: --name, --serif, --sans, --story, --gutter, --max. */
:root {
  --page: #10151b; /* bg */
  --surface: #172029; /* bgCard */
  --raised: #1f2a35; /* bgSecondary */
  --hairline: #2b3946; /* borderFaint */
  --text: #ece7dc; /* fg */
  --muted: #a9b1b8; /* fgMuted */
  --link: #8fc3d9; /* accent */
  --route: #6e7a85; /* route */
  --primary: #e3a44a; /* primary */
  --on-primary: #1a1206; /* fgOnPrimary */
  --scrim: 16, 21, 27; /* bg, as r, g, b for the scrim's alpha */
  --settle: cubic-bezier(0.33, 1, 0.68, 1); /* easings.settle */
  --journey: cubic-bezier(0.65, 0, 0.35, 1); /* easings.journey */
  --settle-ms: 320ms; /* motion.settle.maxMs */
  --depth-carve-fill: #0a0e13; /* depth.carveFill */
  --depth-carve-shade: #04060a; /* depth.carveShade */
  --depth-carve-lip: #33424f; /* depth.carveLip */
  --depth-carve-glow: rgb(255 255 255 / 0.04); /* depth.carveGlow */
  --depth-well-shade: rgb(4 6 10 / 0.6); /* depth.wellShade */
  --depth-raised-face: #243240; /* depth.raisedFace */
  --depth-raised-face-on-card: #243240; /* depth.raisedFaceOnCard */
  --depth-raised-edge: #52677c; /* depth.raisedEdge */
  --depth-raised-wall: #17212b; /* depth.raisedWall */
  --depth-raised-shade: #04060a; /* depth.raisedShade */
  --depth-cushion-top: #313e4b; /* depth.cushionTop */
  --depth-cushion-mid: #243240; /* depth.cushionMid */
  --depth-cushion-bottom: #202c38; /* depth.cushionBottom */
  --depth-cushion-dome: rgb(255 255 255 / 0.07); /* depth.cushionDome */
  --depth-cushion-rim: rgb(255 255 255 / 0.16); /* depth.cushionRim */
  --depth-cushion-inner-shade: rgb(4 6 10 / 0.45); /* depth.cushionInnerShade */
  --depth-cushion-shade: rgb(4 6 10 / 0.55); /* depth.cushionShade */
  --depth-cushion-wall: #17212b; /* depth.cushionWall */
  --depth-chip-face-top: #2a353f; /* depth.chipFaceTop */
  --depth-chip-face-mid: #1f2a35; /* depth.chipFaceMid */
  --depth-chip-face-bottom: #1c2630; /* depth.chipFaceBottom */
  --depth-card-rim: rgb(255 255 255 / 0.06); /* depth.cardRim */
  --depth-card-shade: rgb(4 6 10 / 0.6); /* depth.cardShade */
  --depth-card-contact: rgb(4 6 10 / 0.45); /* depth.cardContact */
  --depth-primary-face-top: #edb866; /* depth.primaryFaceTop */
  --depth-primary-face-bottom: #d79838; /* depth.primaryFaceBottom */
  --depth-primary-wall-top: #c0801f; /* depth.primaryWallTop */
  --depth-primary-wall: #a8691a; /* depth.primaryWall */
  --depth-primary-rim: rgb(255 242 208 / 0.7); /* depth.primaryRim */
  --depth-primary-dome: rgb(255 240 205 / 0.62); /* depth.primaryDome */
  --depth-primary-inner-shade: rgb(150 86 16 / 0.5); /* depth.primaryInnerShade */
  --depth-soft-shade: rgb(0 0 0 / 0.45); /* depth.softShade */
  --card-radius: 6px; /* cardRadius */
  --type-cover-title-face: "EB Garamond"; /* display.hero */
  --type-cover-title-weight: 400; /* display.hero */
  --type-cover-title-size: 40px; /* display.hero */
  --type-cover-title-line: 46px; /* display.hero */
  --type-cover-title-tracking: -0.005em; /* display.hero */
  --type-hero-face: "EB Garamond"; /* display.xl */
  --type-hero-weight: 400; /* display.xl */
  --type-hero-size: 32px; /* display.xl */
  --type-hero-line: 38px; /* display.xl */
  --type-hero-tracking: normal; /* display.xl */
  --type-scene-title-face: "EB Garamond"; /* display.l */
  --type-scene-title-weight: 400; /* display.l */
  --type-scene-title-size: 28px; /* display.l */
  --type-scene-title-line: 34px; /* display.l */
  --type-scene-title-tracking: normal; /* display.l */
  --type-card-title-face: "EB Garamond"; /* display.m */
  --type-card-title-weight: 500; /* display.m */
  --type-card-title-size: 20px; /* display.m */
  --type-card-title-line: 26px; /* display.m */
  --type-card-title-tracking: normal; /* display.m */
  --type-small-title-face: "EB Garamond"; /* display.s */
  --type-small-title-weight: 500; /* display.s */
  --type-small-title-size: 17px; /* display.s */
  --type-small-title-line: 22px; /* display.s */
  --type-small-title-tracking: normal; /* display.s */
  --type-story-text-face: "Literata"; /* body.read */
  --type-story-text-weight: 400; /* body.read */
  --type-story-text-size: 19px; /* body.read */
  --type-story-text-line: 30px; /* body.read */
  --type-story-text-tracking: normal; /* body.read */
  --type-story-text-sans-face: "Inter"; /* body.readSans */
  --type-story-text-sans-weight: 400; /* body.readSans */
  --type-story-text-sans-size: 18px; /* body.readSans */
  --type-story-text-sans-line: 30px; /* body.readSans */
  --type-story-text-sans-tracking: normal; /* body.readSans */
  --type-body-face: "Inter"; /* body.regular */
  --type-body-weight: 400; /* body.regular */
  --type-body-size: 15px; /* body.regular */
  --type-body-line: 22px; /* body.regular */
  --type-body-tracking: normal; /* body.regular */
  --type-label-face: "Inter"; /* body.label */
  --type-label-weight: 500; /* body.label */
  --type-label-size: 13px; /* body.label */
  --type-label-line: 18px; /* body.label */
  --type-label-tracking: normal; /* body.label */
  --type-line-face: "Inter"; /* body.line */
  --type-line-weight: 400; /* body.line */
  --type-line-size: 17px; /* body.line */
  --type-line-line: 24px; /* body.line */
  --type-line-tracking: normal; /* body.line */
  --type-button-label-face: "Inter"; /* body.buttonLabel */
  --type-button-label-weight: 500; /* body.buttonLabel */
  --type-button-label-size: 17px; /* body.buttonLabel */
  --type-button-label-line: 24px; /* body.buttonLabel */
  --type-button-label-tracking: normal; /* body.buttonLabel */
  --type-button-label-regular-face: "Inter"; /* body.buttonLabelRegular */
  --type-button-label-regular-weight: 500; /* body.buttonLabelRegular */
  --type-button-label-regular-size: 15px; /* body.buttonLabelRegular */
  --type-button-label-regular-line: 18px; /* body.buttonLabelRegular */
  --type-button-label-regular-tracking: normal; /* body.buttonLabelRegular */
  --type-button-label-chosen-face: "Inter"; /* body.buttonLabelChosen */
  --type-button-label-chosen-weight: 600; /* body.buttonLabelChosen */
  --type-button-label-chosen-size: 15px; /* body.buttonLabelChosen */
  --type-button-label-chosen-line: 18px; /* body.buttonLabelChosen */
  --type-button-label-chosen-tracking: normal; /* body.buttonLabelChosen */
  --type-tab-label-face: "Inter"; /* body.tabLabel */
  --type-tab-label-weight: 500; /* body.tabLabel */
  --type-tab-label-size: 13px; /* body.tabLabel */
  --type-tab-label-line: 16px; /* body.tabLabel */
  --type-tab-label-tracking: normal; /* body.tabLabel */
  --type-tab-label-chosen-face: "Inter"; /* body.tabLabelChosen */
  --type-tab-label-chosen-weight: 600; /* body.tabLabelChosen */
  --type-tab-label-chosen-size: 13px; /* body.tabLabelChosen */
  --type-tab-label-chosen-line: 16px; /* body.tabLabelChosen */
  --type-tab-label-chosen-tracking: normal; /* body.tabLabelChosen */
  --type-caption-face: "Inter"; /* meta.regular */
  --type-caption-weight: 500; /* meta.regular */
  --type-caption-size: 12px; /* meta.regular */
  --type-caption-line: 16px; /* meta.regular */
  --type-caption-tracking: 0.12em; /* meta.regular */
  --type-caption-transform: uppercase; /* meta.regular */
  --type-heading-large-face: "Inter"; /* heading.h1 */
  --type-heading-large-weight: 600; /* heading.h1 */
  --type-heading-large-size: 24px; /* heading.h1 */
  --type-heading-large-line: 32px; /* heading.h1 */
  --type-heading-large-tracking: normal; /* heading.h1 */
  --type-heading-face: "Inter"; /* heading.h2 */
  --type-heading-weight: 600; /* heading.h2 */
  --type-heading-size: 20px; /* heading.h2 */
  --type-heading-line: 28px; /* heading.h2 */
  --type-heading-tracking: normal; /* heading.h2 */
  --type-heading-small-face: "Inter"; /* heading.h3 */
  --type-heading-small-weight: 600; /* heading.h3 */
  --type-heading-small-size: 17px; /* heading.h3 */
  --type-heading-small-line: 24px; /* heading.h3 */
  --type-heading-small-tracking: normal; /* heading.h3 */
  --type-reference-face: "Inter"; /* mono.regular */
  --type-reference-weight: 400; /* mono.regular */
  --type-reference-size: 13px; /* mono.regular */
  --type-reference-line: 18px; /* mono.regular */
  --type-reference-tracking: normal; /* mono.regular */
  --type-reference-numeric: tabular-nums; /* mono.regular */
  --type-count-face: "Inter"; /* mono.sm */
  --type-count-weight: 400; /* mono.sm */
  --type-count-size: 13px; /* mono.sm */
  --type-count-line: 16px; /* mono.sm */
  --type-count-tracking: normal; /* mono.sm */
  --type-count-numeric: tabular-nums; /* mono.sm */
}
/* tokens:pull end */

/* The faces, self-hosted (fonts/, OFL licences beside them): no request leaves the site. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+00A0-00FF, U+0100-017F, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+2030, U+2032-2033,
    U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+00A0-00FF, U+0100-017F, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+2030, U+2032-2033,
    U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+00A0-00FF, U+0100-017F, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+2030, U+2032-2033,
    U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/eb-garamond-400.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+00A0-00FF, U+0100-017F, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+2030, U+2032-2033,
    U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/eb-garamond-500.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+00A0-00FF, U+0100-017F, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+2030, U+2032-2033,
    U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/literata-400.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+00A0-00FF, U+0100-017F, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+2030, U+2032-2033,
    U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2212;
}

/* 2. Variables: only what the tokens do not name for the site. */

:root {
  /* NAME: the product's name, the only place it is written. Every page's
     wordmark and copyright line show it (see site/README.md). */
  --name: "Tolden";

  /* Each recipe's face comes first from its --type-*-face token; these follow it while the face loads. */
  --serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --story: Literata, "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --gutter: 16px;
  --max: 1088px;

  /* The line drawing has no token, so it stays here. */
  --draw-ms: 1200ms;

  /* Press and travel (DESIGN.md, Motion, The numbers): the tokens' motion.press and motion.travel, which the
     generated block does not carry yet, copied as they stand. A part with no wall scales to 0.96; a raised part goes
     straight down by its wall. */
  --press-in: 120ms;
  --press-in-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --press-out: 200ms;
  --press-out-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --travel-in: 80ms;
  --travel-out: 160ms;
  --travel-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: dark;
}

/* 3. Base */

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

/* Every focusable part shows the link colour's ring when reached by keyboard; it follows the part's own corners. */
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

/* 4. Type: DESIGN.md, Type, Recipes, read from the --type-* tokens. Each rule lists the class and every place on the
   site that sets that recipe. Running text is never raised. */

body,
.t-body {
  font:
    var(--type-body-weight) var(--type-body-size) / var(--type-body-line) var(--type-body-face),
    var(--sans);
  letter-spacing: var(--type-body-tracking);
}

.t-cover-title {
  font:
    var(--type-cover-title-weight) var(--type-cover-title-size) / var(--type-cover-title-line)
      var(--type-cover-title-face),
    var(--serif);
  letter-spacing: var(--type-cover-title-tracking);
}

.t-hero,
.hero h1 {
  font:
    var(--type-hero-weight) var(--type-hero-size) / var(--type-hero-line) var(--type-hero-face),
    var(--serif);
  letter-spacing: var(--type-hero-tracking);
}

.t-scene-title {
  font:
    var(--type-scene-title-weight) var(--type-scene-title-size) / var(--type-scene-title-line)
      var(--type-scene-title-face),
    var(--serif);
  letter-spacing: var(--type-scene-title-tracking);
}

.t-card-title,
.story h3 {
  font:
    var(--type-card-title-weight) var(--type-card-title-size) / var(--type-card-title-line) var(--type-card-title-face),
    var(--serif);
  letter-spacing: var(--type-card-title-tracking);
}

.t-small-title {
  font:
    var(--type-small-title-weight) var(--type-small-title-size) / var(--type-small-title-line)
      var(--type-small-title-face),
    var(--serif);
  letter-spacing: var(--type-small-title-tracking);
}

.t-line,
.hero__lead,
.check,
.kept p,
.inshort p:last-child,
.legal section p,
.legal section li,
.credit dd {
  font:
    var(--type-line-weight) var(--type-line-size) / var(--type-line-line) var(--type-line-face),
    var(--sans);
  letter-spacing: var(--type-line-tracking);
}

.t-heading-large,
.section h2,
.legal h1 {
  font:
    var(--type-heading-large-weight) var(--type-heading-large-size) / var(--type-heading-large-line)
      var(--type-heading-large-face),
    var(--sans);
  letter-spacing: var(--type-heading-large-tracking);
}

.t-heading,
.door h3,
.legal h2 {
  font:
    var(--type-heading-weight) var(--type-heading-size) / var(--type-heading-line) var(--type-heading-face),
    var(--sans);
  letter-spacing: var(--type-heading-tracking);
}

.t-heading-small,
.legal h3 {
  font:
    var(--type-heading-small-weight) var(--type-heading-small-size) / var(--type-heading-small-line)
      var(--type-heading-small-face),
    var(--sans);
  letter-spacing: var(--type-heading-small-tracking);
}

.t-label,
.site-footer nav a {
  font:
    var(--type-label-weight) var(--type-label-size) / var(--type-label-line) var(--type-label-face),
    var(--sans);
  letter-spacing: var(--type-label-tracking);
}

.t-caption,
.credit dt {
  font:
    var(--type-caption-weight) var(--type-caption-size) / var(--type-caption-line) var(--type-caption-face),
    var(--sans);
  letter-spacing: var(--type-caption-tracking);
  text-transform: var(--type-caption-transform);
  color: var(--muted);
}

.t-reference,
.story p,
.updated,
.site-footer__notes {
  font:
    var(--type-reference-weight) var(--type-reference-size) / var(--type-reference-line) var(--type-reference-face),
    var(--sans);
  letter-spacing: var(--type-reference-tracking);
  font-variant-numeric: var(--type-reference-numeric);
  color: var(--muted);
}

.t-count,
.station {
  font:
    var(--type-count-weight) var(--type-count-size) / var(--type-count-line) var(--type-count-face),
    var(--sans);
  letter-spacing: var(--type-count-tracking);
  font-variant-numeric: var(--type-count-numeric);
}

/* 5. Parts. The depth is the app's third round of the buttons (packages/dls/src/tokens/depthMeasures.ts), as the
   portal's src/portal/dls/tokens/depth.ts draws it: lit from above, every shade cast straight down. */

/* Main button: the soft step, the most raised thing on a page and the only amber one. At most one a page. Pressed, it
   goes 2px straight down onto its tightened shade. */
.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background-color: var(--primary);
  background-image:
    radial-gradient(110% 100% at 50% 8%, var(--depth-primary-dome) 0%, transparent 58%),
    linear-gradient(
      to bottom,
      var(--depth-primary-face-top) 0%,
      var(--primary) 60%,
      var(--depth-primary-face-bottom) 100%
    );
  box-shadow:
    inset 0 2px 1px 0 var(--depth-primary-rim),
    inset 0 -7px 8px -3px var(--depth-primary-inner-shade),
    0 1px 0 0 var(--depth-primary-wall-top),
    0 2px 0 0 var(--depth-primary-wall),
    0 8px 18px 0 var(--depth-soft-shade);
  color: var(--on-primary);
  font:
    var(--type-button-label-weight) var(--type-button-label-size) / var(--type-button-label-line)
      var(--type-button-label-face),
    var(--sans);
  letter-spacing: var(--type-button-label-tracking);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--travel-out) var(--travel-ease),
    box-shadow var(--travel-out) var(--travel-ease);
}

.main-button:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 1px 0 var(--depth-primary-rim),
    inset 0 -7px 8px -3px var(--depth-primary-inner-shade),
    0 0 4px 0 var(--depth-soft-shade);
  transition-duration: var(--travel-in);
}

.main-button:focus-visible {
  outline-offset: 5px;
}

/* Not to be taken yet: flat and grey, with the reason beside it; the page then has no amber. */
.main-button[aria-disabled="true"],
.main-button:disabled {
  background: var(--raised);
  box-shadow: none;
  color: var(--route);
  cursor: not-allowed;
  transform: none;
}

/* Secondary button: every other action, on the cushion (a 1px wall and its soft shade). Pressed, 1px down. */
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background-color: var(--depth-cushion-mid);
  background-image:
    radial-gradient(110% 100% at 50% 6%, var(--depth-cushion-dome) 0%, transparent 60%),
    linear-gradient(
      to bottom,
      var(--depth-cushion-top) 0%,
      var(--depth-cushion-mid) 55%,
      var(--depth-cushion-bottom) 100%
    );
  box-shadow:
    inset 0 1.5px 1px 0 var(--depth-cushion-rim),
    inset 0 -5px 6px -3px var(--depth-cushion-inner-shade),
    0 1px 0 0 var(--depth-cushion-wall),
    0 4px 10px 0 var(--depth-cushion-shade);
  color: var(--text);
  font:
    var(--type-button-label-regular-weight) var(--type-button-label-regular-size) /
      var(--type-button-label-regular-line) var(--type-button-label-regular-face),
    var(--sans);
  letter-spacing: var(--type-button-label-regular-tracking);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--travel-out) var(--travel-ease),
    box-shadow var(--travel-out) var(--travel-ease);
}

.secondary-button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1.5px 1px 0 var(--depth-cushion-rim),
    inset 0 -5px 6px -3px var(--depth-cushion-inner-shade),
    0 1px 4px 0 var(--depth-cushion-shade);
  transition-duration: var(--travel-in);
}

.secondary-button[aria-disabled="true"],
.secondary-button:disabled {
  color: var(--route);
  cursor: not-allowed;
  transform: none;
}

/* Text link: link blue, a 1px underline 3px below (never colour alone); 2px on hover. Every link in running text. */
:where(a),
.text-link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:where(a):hover,
.text-link:hover {
  text-decoration-thickness: 2px;
}

/* Chip: a small pill on the soft lift (no wall). One that is a link or a button goes 1px down when pressed. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background-color: var(--depth-chip-face-mid);
  background-image:
    radial-gradient(110% 100% at 50% 6%, var(--depth-cushion-dome) 0%, transparent 60%),
    linear-gradient(
      to bottom,
      var(--depth-chip-face-top) 0%,
      var(--depth-chip-face-mid) 55%,
      var(--depth-chip-face-bottom) 100%
    );
  box-shadow:
    inset 0 1px 1px 0 var(--depth-cushion-rim),
    inset 0 -4px 5px -3px var(--depth-cushion-inner-shade),
    0 2px 7px 0 var(--depth-cushion-shade);
  color: var(--text);
  font:
    var(--type-body-weight) var(--type-body-size) / var(--type-body-line) var(--type-body-face),
    var(--sans);
  letter-spacing: var(--type-body-tracking);
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}

a.chip,
button.chip {
  position: relative;
  cursor: pointer;
  transition:
    transform var(--travel-out) var(--travel-ease),
    box-shadow var(--travel-out) var(--travel-ease);
}

/* A pressable chip's target reaches 44px tall, beyond its drawn 36. */
a.chip::after,
button.chip::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}

a.chip:active,
button.chip:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 1px 0 var(--depth-cushion-rim),
    inset 0 -4px 5px -3px var(--depth-cushion-inner-shade),
    0 1px 3px 0 var(--depth-cushion-shade);
  transition-duration: var(--travel-in);
}

/* Card: the card surface on its rim, soft shade and close contact shade, at the card corner. It stands still; one that
   is a link keeps the 0.96 press. */
.card {
  padding: 16px;
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 0 var(--depth-card-rim),
    0 4px 14px -2px var(--depth-card-shade),
    0 1px 2px 0 var(--depth-card-contact);
}

.card--large {
  padding: 20px 24px;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform var(--press-out) var(--press-out-ease);
}

a.card:active {
  transform: scale(0.96);
  transition: transform var(--press-in) var(--press-in-ease);
}

/* Carved well: a place that holds something, one step below its ground: the carve's floor, its soft shade inside the
   top, a glow inside the bottom and a 1px lip below. Shallow is cut 1 where the default is cut 2. */
.well {
  border-radius: var(--card-radius);
  background: var(--depth-carve-fill);
  box-shadow:
    inset 0 3px 5px -1px var(--depth-well-shade),
    inset 0 -1px 0 0 var(--depth-carve-glow),
    0 1px 0 0 var(--depth-carve-lip);
}

.well--shallow {
  box-shadow:
    inset 0 1.5px 2.5px -0.5px var(--depth-well-shade),
    inset 0 -1px 0 0 var(--depth-carve-glow),
    0 1px 0 0 var(--depth-carve-lip);
}

/* Store badge: an outlined placeholder until the listings exist. It carries no Apple or Google artwork and is not a
   button; at launch the stores' official badges, as links, replace it. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  font:
    var(--type-button-label-regular-weight) var(--type-button-label-regular-size) /
      var(--type-button-label-regular-line) var(--type-button-label-regular-face),
    var(--sans);
}

.store-badge svg {
  flex: none;
}

/* Station: a stop on a route line, the route's ring on the page; the last stop carries the 2px ring in the text
   colour. */
.station {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--route);
  border-radius: 50%;
  background: var(--page);
  color: var(--muted);
}

.station--end {
  border: 2px solid var(--text);
  color: var(--text);
}

/* Header: the wordmark, then the site's links, muted until hovered or current. */
.site-header {
  padding: 24px 0 20px;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

/* The wordmark is the name drawn, not running text: EB Garamond in spaced capitals, from --name above. Generated
   content is read by screen readers as the link's name. */
.wordmark {
  font: 400 19px/26px var(--serif);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.wordmark::before {
  content: var(--name);
}

.site-header ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header ul {
  gap: 0 24px;
}

.site-header nav a,
.site-footer nav a {
  display: inline-block;
  padding: 11px 0;
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a {
  padding: 13px 0;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.site-header nav a[aria-current="page"],
.site-footer nav a[aria-current="page"] {
  color: var(--text);
}

@media (max-width: 639px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Footer: the legal links and the notes, below a hairline. */
.site-footer {
  margin-top: 48px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--hairline);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 48px;
}

.site-footer ul {
  gap: 0 24px;
}

.site-footer__notes {
  padding-top: 13px;
}

.site-footer__notes p + p {
  margin-top: 4px;
}

/* The name, from --name above, in capitals as the wordmark shows it. */
.copyright::after {
  content: var(--name);
  text-transform: uppercase;
}

/* Contents rail: the page's sections as stations on a route line at the left; the section being read is the station
   with the 2px ring. */
.contents ol {
  position: relative;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

/* The route line behind the stations, drawn once on arrival. */
.contents ol::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  bottom: 22px;
  width: 1.5px;
  background: var(--route);
  transform-origin: top;
}

.contents a {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 0;
  color: var(--muted);
  text-decoration: none;
}

.contents a::before {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 4.5px;
  border: 1.5px solid var(--route);
  border-radius: 50%;
  background: var(--page);
}

.contents a:hover,
.contents a[aria-current="true"] {
  color: var(--text);
}

.contents a[aria-current="true"]::before {
  border: 2px solid var(--text);
}

/* 6. Layout: one column, 16px from the edges on a phone, 32px from 640px, at most --max wide. */

.wrap {
  --side: var(--gutter);
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--side));
  margin: 0 auto;
  padding: 0 var(--side);
}

@media (min-width: 640px) {
  .wrap {
    --side: 32px;
  }
}

.section {
  padding: 64px 0;
}

.section h2 {
  margin: 0 0 32px;
}

@media (max-width: 639px) {
  .section {
    padding: 48px 0;
  }

  .section h2 {
    margin-bottom: 24px;
  }
}

/* 7. Pages */

/* Landing: the hero, Bethlehem behind the headline. */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--page);
}

.hero__picture {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
}

.hero__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* The scrim (the one gradient besides the soft step): 0.9 or more under the words (the text column reaches at most
   340px into the picture from 900px up), clearing toward the right. */
.hero__picture::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--scrim), 1) 0,
    rgba(var(--scrim), 0.9) 340px,
    rgba(var(--scrim), 0.4) 540px,
    rgba(var(--scrim), 0) 80%
  );
}

.hero__body {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero__body > * {
  max-width: 640px;
}

/* On a wide screen the hero holds most of the first view, its words centred against the picture. */
@media (min-width: 900px) {
  .hero__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: min(80vh, 680px);
  }
}

/* The headline is the hero recipe, a phone size: from 390px it grows with the screen up to twice that, keeping the
   recipe's 38 over 32. */
.hero h1 {
  font-size: clamp(var(--type-hero-size), 2.4vw + 22px, calc(2 * var(--type-hero-size)));
  line-height: 1.1875;
}

.hero__lead {
  max-width: 34em;
  margin: 24px 0 32px;
}

@media (max-width: 899px) {
  .hero__picture {
    inset: 0 0 auto 0;
    width: 100%;
    height: 300px;
  }

  .hero__picture::before {
    background: linear-gradient(
      180deg,
      rgba(var(--scrim), 0) 0%,
      rgba(var(--scrim), 0.2) 40%,
      rgba(var(--scrim), 0.88) 78%,
      rgba(var(--scrim), 1) 100%
    );
  }

  .hero__body {
    padding-top: 236px;
    padding-bottom: 48px;
  }
}

/* Landing: the four doors, each screen held in a carved arch. */

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.door__arch {
  padding: 64px 22px 22px;
  border-radius: 999px 999px var(--card-radius) var(--card-radius);
}

.phone {
  margin: 0 auto;
  max-width: 236px;
  padding: 7px;
  border: 1px solid var(--hairline);
  border-radius: 30px;
  background: var(--raised);
}

.phone img {
  width: 100%;
  aspect-ratio: 390 / 844;
  border-radius: 23px;
  background: var(--page);
}

.door h3 {
  margin: 24px 0 8px;
}

.door p {
  max-width: 34ch;
  color: var(--muted);
}

@media (max-width: 639px) {
  .door {
    padding: 0 24px;
  }
}

/* Landing: How we check, one route line through four stations. */

.checks {
  position: relative;
}

.checks__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check {
  position: relative;
  z-index: 1;
  max-width: 30ch;
}

.check .station {
  margin-bottom: 16px;
}

.route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.route line {
  stroke: var(--route);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

@media (max-width: 899px) {
  .checks__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .check {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 16px;
    max-width: none;
  }

  .check .station {
    margin: 0;
  }
}

/* Landing: six stories, each a 16:9 cover at the card corner. */

.stories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--card-radius);
  background: var(--surface);
}

.story h3 {
  margin: 12px 0 4px;
}

.more {
  margin-top: 32px;
  color: var(--muted);
}

@media (max-width: 639px) {
  .stories {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .story h3 {
    font:
      var(--type-small-title-weight) var(--type-small-title-size) / var(--type-small-title-line)
        var(--type-small-title-face),
      var(--serif);
  }
}

/* Landing: Kept on your phone, a card holding the stores. */

.kept {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 48px;
}

.section .kept h2 {
  margin: 0 0 12px;
}

.kept p {
  max-width: 44ch;
  color: var(--muted);
}

.kept .store-badges {
  scroll-margin-top: 40vh;
}

@media (max-width: 639px) {
  .kept {
    padding: 32px 24px;
  }

  .kept .store-badges {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Legal pages: the contents on a route line at the left, the text at the right. */

.legal {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  grid-template-areas:
    "contents head"
    "contents body";
  align-content: start;
  gap: 0 96px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.legal__head {
  grid-area: head;
}

.legal__body {
  grid-area: body;
}

.legal .contents {
  grid-area: contents;
  position: sticky;
  top: 32px;
  align-self: start;
}

.updated {
  margin: 8px 0 24px;
}

.inshort {
  margin: 0 0 48px;
}

.inshort p:last-child {
  margin-top: 8px;
}

.legal section {
  margin: 0 0 48px;
  scroll-margin-top: 24px;
}

.legal h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 12px;
}

.legal h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 32px 0 8px;
}

.legal section p,
.legal section li {
  max-width: 68ch;
}

.legal section p,
.legal section ul {
  margin: 0 0 12px;
}

.legal section ul {
  padding-left: 20px;
}

/* Licences: one source's licence, credit and source as label and value. */
.credit {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 16px;
  max-width: 68ch;
  margin: 0 0 12px;
}

.credit dt {
  padding-top: 4px;
}

.credit dd {
  margin: 0;
}

@media (max-width: 899px) {
  .legal {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "contents"
      "body";
    padding-top: 24px;
  }

  .legal .contents {
    position: static;
    margin-bottom: 32px;
  }

  .credit {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .credit dd + dt {
    margin-top: 12px;
  }
}

/* 8. Motion. Only transform, opacity, box-shadow and stroke-dashoffset change. Without JavaScript, or with Reduce
   Motion, everything shows in its final state. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .js .door {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity var(--settle-ms) var(--settle),
      transform var(--settle-ms) var(--settle);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .js .door.is-in {
    opacity: 1;
    transform: none;
  }

  .js .route line {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset var(--draw-ms) var(--journey);
  }

  .js .checks.is-in .route line {
    stroke-dashoffset: 0;
  }

  /* Each station arrives as the line reaches it. */
  .js .check {
    opacity: 0;
    transition: opacity var(--settle-ms) var(--settle);
    transition-delay: calc(var(--i, 0) * var(--draw-ms) / 3);
  }

  .js .checks.is-in .check {
    opacity: 1;
  }

  .js .contents ol::before {
    transform: scaleY(0);
    transition: transform var(--draw-ms) var(--journey);
  }

  .js .contents.is-in ol::before {
    transform: none;
  }
}

/* Reduce Motion: a raised part pressed closes its wall at once, with no travel. The 0.96 press is kept: a scale is not
   travel. */
@media (prefers-reduced-motion: reduce) {
  .main-button,
  .secondary-button,
  a.chip,
  button.chip {
    transition: none;
  }

  .main-button:active,
  .secondary-button:active,
  a.chip:active,
  button.chip:active {
    transform: none;
  }
}
