/* No font, image or stylesheet from another origin, so the "no cookie banner"
   position holds (docs/operations/legal-and-privacy.md §4): the application's
   own fonts are served from here (fonts/README.md). */
@font-face {
  font-family: "Fraunces";
  src: url(fonts/fraunces-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* The light scheme is the application's linen (web/src/style.css, board
   Clair-Connexion-2, G, ruled 2026-11-06): the page at 90 % as the application's, a card a shade
   above, the inks of its text hue, and one gold for both schemes. */
:root {
  color-scheme: light;
  --bg: hsl(40deg 10% 90%);
  --ink: hsl(35deg 8% 13%);
  --soft: hsl(35deg 8% 25%);
  --weak: hsl(35deg 8% 36%);
  --gold: hsl(41deg 82% 58%);
  --mark: 0.07;
  --card: hsl(40deg 16% 96.5%);
  --hover: hsl(40deg 16% 91%);
  --line: hsl(40deg 16% 79%);
  --halo: transparent;
  --display: Fraunces, Georgia, serif;
  --gold-ink: hsl(41deg 82% 8%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: hsl(197deg 30% 8%);
    --ink: #e3ebee;
    --soft: #c3d0d5;
    --weak: #93a4ab;
    --gold: hsl(41deg 82% 58%);
    --mark: 0.07;
    --card: #1c2e35;
    --hover: #24383f;
    --line: #2c434b;
    --halo: hsl(197deg 24% 20%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: hsl(197deg 30% 8%);
  --ink: #e3ebee;
  --soft: #c3d0d5;
  --weak: #93a4ab;
  --gold: hsl(41deg 82% 58%);
  --mark: 0.07;
  --card: #1c2e35;
  --hover: #24383f;
  --line: #2c434b;
  --halo: hsl(197deg 24% 20%);
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  position: relative;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* The home page: one screen, the name in the middle. */
.home { height: 100%; overflow: hidden; }
.home main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 16px 64px;
  position: relative;
}
.mark {
  position: absolute;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: clamp(5rem, 22vw, 16rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  opacity: var(--mark);
  user-select: none;
  pointer-events: none;
}
.home h1 { position: relative; margin: 0 0 20px; }
/* The 404 page draws its number where the home page draws the name. */
.mark.digits { font-family: Georgia, "Times New Roman", serif; }

/* The application's mark and name (layouts/_partials/logo.html): the lit
   paper as drawn, everything else in the strong text. */
.logo { display: inline-flex; align-items: center; gap: 0.3em; vertical-align: middle; }
.logo svg { display: block; overflow: visible; }
.logo-mark { color: var(--ink); }
.logo-name { fill: var(--ink); }
.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.what { position: relative; margin: 0; font-size: 1.0625rem; color: var(--soft); }
.when { position: relative; margin: 28px 0 0; font-size: 0.875rem; color: var(--weak); }
.home .foot { position: absolute; left: 0; right: 0; bottom: 0; }

/* A legal document: one readable column. */
.text { max-width: 42rem; margin: 0 auto; padding: 20px 16px 32px; line-height: 1.6; }
.name { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.text h1 { font-family: Fraunces, Georgia, "Times New Roman", serif; font-weight: 600; font-size: 2rem; line-height: 1.25; margin: 32px 0 4px; }
.text h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.text h3 { font-size: 1.0625rem; margin: 24px 0 4px; }
.date { margin: 0 0 24px; font-size: 0.875rem; color: var(--weak); }
.versions { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); }
.versions h2 { font-size: 1rem; }
.versions ul { padding-left: 20px; }

/* Every page's foot: the legal documents, then the other language. */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  padding: 16px;
  font-size: 0.8125rem;
  color: var(--weak);
}
.foot a { text-decoration: none; min-height: 32px; line-height: 32px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* The language and theme menus, as the application draws them (PageSettings.vue). */
.settings { position: absolute; top: 12px; right: 12px; display: none; gap: 4px; z-index: 1; }
.js .settings { display: flex; }
.dropdown { position: relative; }
.settings svg { fill: currentColor; }
.glyph {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: none;
  border-radius: 8px;
  color: var(--soft);
  cursor: pointer;
  position: relative;
}
.glyph::before { content: ""; position: absolute; inset: -2px; }
.glyph:hover { background: var(--hover); color: var(--ink); }
.glyph:focus-visible, .item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* The theme button shows the scheme in use; site.js names it on the dropdown. */
[data-menu="theme"] .glyph svg { display: none; }
[data-menu="theme"]:not([data-scheme]) .glyph svg[data-icon="auto"],
[data-scheme="auto"] .glyph svg[data-icon="auto"],
[data-scheme="light"] .glyph svg[data-icon="light"],
[data-scheme="dark"] .glyph svg[data-icon="dark"] { display: block; }
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 0;
}
.menu[hidden] { display: none; }
.item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  padding: 0 12px 0 16px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.item:hover { background: var(--hover); }
.tick { margin-left: auto; display: inline-flex; }
.item[aria-checked="false"] .tick { visibility: hidden; }

/* A table in a legal text scrolls on its own rather than widening the page. */
.text table { display: block; overflow-x: auto; border-collapse: collapse; margin: 16px 0; font-size: 0.875rem; line-height: 1.45; }
.text th, .text td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); min-width: 8rem; }
.text th { color: var(--soft); font-weight: 600; }

/* Every page's head (layouts/_partials/header.html): the name on the left, the
   links and the two menus on the right. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  height: 76px;
  margin: 0 auto;
  padding: 0 40px;
}
.top-nav { display: flex; align-items: center; gap: 24px; font-size: 0.9375rem; color: var(--soft); }
.top-nav > a { color: inherit; text-decoration: none; white-space: nowrap; }
.top-nav > a:hover { color: var(--ink); text-decoration: underline; }
.top .settings { position: static; }
/* « Exemples » leads to the home's section; its caret opens the cases under
   the name, from its left edge. Without JavaScript the caret has nothing to do. */
[data-menu="examples"] { display: flex; align-items: center; }
[data-menu="examples"] > a { color: inherit; text-decoration: none; white-space: nowrap; }
[data-menu="examples"] > a:hover { color: var(--ink); text-decoration: underline; }
.caret {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  border: 0;
  padding: 0;
  background: none;
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
}
.js .caret { display: inline-flex; }
.caret svg { fill: currentColor; transition: transform 0.15s; }
.caret:hover, .caret[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
.caret[aria-expanded="true"] svg { transform: rotate(180deg); }
.caret:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[data-menu="examples"] .menu { left: -16px; right: auto; z-index: 2; }
.item[aria-current="page"] { font-weight: 600; }
/* Where the links do not fit, one menu holds them, and the six cases, the
   language and the theme with them as three rows that unfold their choices,
   as the application's phone menus do (PageSettings.vue; the author's ruling
   of 2026-12-03). Without JavaScript nothing opens it: the sections are on
   the page and the footer carries the language. */
.narrow { display: none; }
.narrow .glyph { color: var(--ink); }
.narrow .menu { min-width: 276px; max-height: calc(100dvh - 72px); overflow-y: auto; z-index: 2; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.row svg { fill: currentColor; }
.fold { display: inline-flex; margin-left: auto; transition: transform 0.2s ease-out; }
.row[aria-expanded="true"] .fold { transform: rotate(180deg); }
/* The theme's row shows the scheme in use, read from the page's root. */
.row-theme > svg { display: none; }
:root:not([data-theme]) .row-theme > svg[data-icon="auto"],
[data-theme="light"] .row-theme > svg[data-icon="light"],
[data-theme="dark"] .row-theme > svg[data-icon="dark"] { display: block; }
/* A grid row going from 0fr to 1fr unfolds a height nobody knows in advance. */
.unfold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.2s ease-out; }
.row[aria-expanded="true"] + .unfold { grid-template-rows: 1fr; }
.unfold > div { min-height: 0; overflow: hidden; }
/* Indented to where a row's word starts after its glyph. */
.unfold .item { padding-left: 39px; }
.unfold .item:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  .fold, .unfold { transition: none; }
}
/* A touch screen keeps the hover on the row pressed, the menu staying open. */
@media (hover: none) {
  .row:hover { background: none; }
}
@media (max-width: 900px) {
  .top-nav .wide { display: none; }
  .js .top .settings { display: none; }
  .js .narrow { display: block; }
}
@media (max-width: 700px) {
  .top { height: 60px; padding: 0 8px 0 16px; }
  .top-nav { gap: 8px; }
  .top-nav .wide { display: none; }
}

/* The home (layouts/home.html): one column of sections 1240 pixels wide. */
/* Every excerpt is drawn at one width (--fit: a module's 390 on a computer
   and 343 on a phone, a phone's frame 269, the carpool's two tiles 458) and
   excerpts.js zooms it whole to its slot (--k): the text, the buttons and the
   frame shrink together, nothing wraps or is cut (the author's ruling of
   2026-11-25). */
.slot { min-width: 0; }
.fit { width: calc(var(--fit) * 1px); zoom: var(--k, 1); }
.phone { --fit: 269; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 40px; }
.landing h1, .landing h2, .landing h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.landing { overflow-x: clip; }
.landing h2 { font-size: 3rem; line-height: 1.08; max-width: 22ch; }
.ctas { display: flex; gap: 22px; align-items: center; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 600; text-decoration: none; }
.btn { transition: transform 0.12s, filter 0.12s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .link:focus-visible, .outing:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.link:hover { text-decoration-color: currentColor; }

/* The home's head stays at the top of the window, its ground as wide as the
   window, its content on the page's column; past the first screen it gains a hairline and, on a computer, the
   button (home.js sets past-hero on the root). */
body.landing .top { position: sticky; top: 0; z-index: 5; max-width: none; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.past-hero body.landing .top { border-bottom-color: var(--line); }
@media (min-width: 701px) {
  body.landing .top { padding-inline: max(40px, calc(50% - 580px)); }
}
.top-cta { display: none; height: 38px; padding: 0 16px; font-size: 0.9375rem; }
.top-cta .short { display: none; }
/* The bar's links take the bar's colour; the button keeps its own ink. */
.top-nav > .top-cta, .top-nav > .top-cta:hover { color: var(--gold-ink); text-decoration: none; }

/* The first screen: the words, then the event as a guest opens it, in a
   phone cut at its foot. In the dark scheme a lighter patch stands behind the
   phone, whose frame and the page are of one darkness (solution A, the
   author's ruling of 2026-11-19), drawn wider than the hero so no edge shows. */
.hero { display: grid; grid-template-columns: minmax(0, 756fr) minmax(0, 340fr); gap: 64px; align-items: center; min-height: calc(100svh - 210px); padding-block: 40px 4vh; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -190px; top: 50%; width: 800px; height: 900px; transform: translateY(-50%); background: radial-gradient(closest-side, var(--halo), transparent); pointer-events: none; }
/* The phone comes up once as the page opens. */
@keyframes arrive { from { opacity: 0; transform: translateY(28px); } }
.hero-slot { animation: arrive 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s backwards; }
.hero h1 { font-size: 4.75rem; line-height: 1.02; }
.hero p { margin: 22px 0 0; font-size: 1.3125rem; line-height: 1.5; color: var(--soft); }
.hero-phone, .js .steps .phone { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }

.story, .sits, .outings, .faq { padding-top: 136px; }

/* The principle, three steps on the restaurant: three phones side by side. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.step .slot { max-width: 300px; }
.step-n { font-family: var(--display); font-size: 1rem; color: var(--weak); margin-top: 20px; }
.step h3 { font-size: 1.5rem; margin-top: 2px; }
.step p { margin: 8px 0 0; color: var(--soft); font-size: 1.0625rem; line-height: 1.5; max-width: 26rem; }
/* On a computer, with the script, one phone stays in place while the three
   steps pass beside it, and shows the screen of the step at the window's
   middle (home.js sets "on"). The three phones share one cell of the grid,
   which spans every row, so each sticks as far as the last step. */
@media (min-width: 1000px) and (min-height: 640px) {
  .js .steps { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 0 64px; margin-top: 0; }
  .js .step { display: contents; }
  .js .step-text { grid-column: 1; min-height: 64vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.35s; }
  .js .step.on .step-text { opacity: 1; }
  .js .step .slot { grid-column: 2; grid-row: 1 / span 3; align-self: start; justify-self: center; width: 300px; position: sticky; top: calc(50vh - 218px); opacity: 0; transition: opacity 0.4s; }
  .js .step.on .slot { opacity: 1; }
  .js .step-n { font-size: 1.125rem; margin-top: 0; }
  .js .step h3 { font-size: 2.5rem; line-height: 1.1; margin-top: 6px; }
  .js .step p { font-size: 1.1875rem; margin-top: 14px; }
}

/* What an event can add: one block a module, its question, its sentence and
   its excerpt, the sides alternating, a hairline between two. */
.sits h2 { margin-bottom: 24px; }
.sit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 72px; }
.sit + .sit { border-top: 1px solid var(--line); }
.sit:nth-of-type(even) .sit-text { order: 2; }
.sit h3 { font-size: 2.5rem; line-height: 1.1; }
.sit-text p { margin: 14px 0 0; max-width: 27rem; font-size: 1.1875rem; line-height: 1.55; color: var(--soft); }
.sit-text .sit-module { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: 0.9375rem; color: var(--weak); }
.sit-module svg { flex: none; }
.sit-slot { width: 100%; max-width: 420px; justify-self: center; }
/* The carpool's two tiles, at the scale of the other cases (420 for 390). */
.sit-slot.s-yearEnd { max-width: 494px; }
.sit-case { --fit: 390; }
.sit-case.c-yearEnd { --fit: 458; }
.case { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
/* A module alone stands whole; the order's card is cut and faded, its total
   clear above the fade. */
.sit-case:not(.c-restaurant) .app { flex: none; -webkit-mask-image: none; mask-image: none; }
.sit-case.c-restaurant { height: 500px; }
.c-restaurant .app, .c-anniversary .app { display: flex; flex-direction: column; -webkit-mask-image: none; mask-image: none; }
.c-restaurant .a-body, .c-anniversary .a-body { flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent); }
.sits-end { margin: 40px 0 0; max-width: 44rem; font-family: var(--display); font-size: 1.625rem; line-height: 1.35; color: var(--ink); }
/* Each excerpt plays its own act once, when it comes into view (home.js adds
   "wait" before and removes it then): a poll's shares grow, slower than a
   vote moves them (excerpts.css), the expenses' lines arrive one after the
   other, the last one marked as new. An example page's polls and expenses
   arrive the same way, each on its own (excerpts.js: "wait", then "arrives"
   for the arrival's time). */
.sit .p-opt::before, .arrives .p-opt::before { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .wait .p-opt::before { transform: scaleX(0); }
.sit .e-stats div, .sit .e-line, .arrives .e-stats div, .arrives .e-line { transition: opacity 0.5s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sit .e-stats div:nth-child(2), .arrives .e-stats div:nth-child(2) { transition-delay: 0.1s; }
.sit .e-stats div:nth-child(3), .arrives .e-stats div:nth-child(3) { transition-delay: 0.2s; }
.sit .e-line, .arrives .e-line { transition-delay: 0.4s; }
.sit .e-line + .e-line, .arrives .e-line + .e-line { transition-delay: 0.6s; }
.js .wait .e-stats div, .js .wait .e-line { opacity: 0; transform: translateY(12px); }
/* The last line arrives as an expense just added does in the application
   (ExpensesDays.vue): the gold edge and tint of what is new, held a moment
   then fading. Nothing for somebody who asked for less motion, whose lines
   do not arrive either. */
@media (prefers-reduced-motion: no-preference) {
  .sit .e-line:last-child, .example-case .e-line:last-child { position: relative; }
  .sit .e-line:last-child::after, .example-case .e-line:last-child::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--a-tint-gold); box-shadow: inset 4px 0 0 var(--a-gold); opacity: 0; pointer-events: none; }
  .js .sit:not(.wait) .e-line:last-child::after, .arrives .e-line:last-child::after { animation: settle 2.4s ease-out 1.9s backwards; }
}
@keyframes settle { from { opacity: 1; } }

/* The six cases, each a link to its page: its drawing, its name, its line. */
.cases-text { margin: 18px 0 0; max-width: 40rem; font-size: 1.1875rem; line-height: 1.55; color: var(--soft); }
.outing-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; margin: 48px 0 0; padding: 0; }
.outing { display: block; color: inherit; text-decoration: none; }
.outing-pic { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--card); font-family: var(--display); font-weight: 600; font-size: 3.5rem; color: var(--weak); transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.outing-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.outing:hover .outing-pic { transform: translateY(-4px); }
.outing-text { display: block; }
.landing .outing :is(h2, h3) { font-size: 1.5rem; line-height: 1.2; margin-top: 18px; max-width: none; }
.outing:hover :is(h2, h3) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.outing p { margin: 6px 0 0; color: var(--soft); font-size: 1rem; line-height: 1.5; }

.qs { margin-top: 36px; border-top: 1px solid var(--line); max-width: 48rem; }
.qs details { border-bottom: 1px solid var(--line); }
.qs summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font-weight: 500; font-size: 1.125rem; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.375rem; color: var(--weak); }
.qs details[open] summary::after { content: "−"; }
.qs summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.qs details p { margin: -6px 0 20px; color: var(--soft); max-width: 42rem; line-height: 1.6; }
.end { margin: 112px 0 0; padding: 64px 0; border-top: 1px solid var(--line); }
.end h2 { max-width: none; text-align: center; }
.end .ctas { justify-content: center; margin-top: 32px; }

@media (min-width: 1000px) {
  .past-hero .top-cta { display: inline-flex; }
}
/* The home's bar holds two links more than any other page's and, past the
   first screen, the button. Under 1150 pixels its links go to the menu, as
   every page's do under 900; under 1300 the button takes the application
   link's place, as on a phone. */
@media (max-width: 1149px) {
  body.landing .top-nav .wide { display: none; }
  .js body.landing .top .settings { display: none; }
  .js body.landing .narrow { display: block; }
}
@media (min-width: 1000px) and (max-width: 1299px) {
  .past-hero .open-app { display: none; }
}
@media (max-width: 999px) {
  .landing h2 { font-size: 2.375rem; }
  .hero h1 { font-size: 3.75rem; }
  .sit { gap: 40px; }
  .sit h3 { font-size: 2rem; }
}
@media (max-width: 700px) {
  .wrap { padding-inline: 16px; }
  .landing h2 { font-size: 1.875rem; line-height: 1.12; }
  .story, .sits, .outings, .faq { padding-top: 88px; }
  /* The phone follows the words, three quarters of the window wide, and runs
     past the foot of the first screen (M2). */
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; padding-block: 12px 0; }
  .hero h1 { font-size: 2.75rem; }
  .hero p { font-size: 1.125rem; margin-top: 16px; }
  .hero-slot { width: 74%; max-width: 300px; margin: 40px auto 0; }
  .hero::before { right: 50%; top: auto; bottom: -260px; width: 620px; height: 760px; transform: translateX(50%); }
  .ctas { flex-direction: column; align-items: stretch; gap: 14px; text-align: center; }
  .btn { justify-content: center; }
  /* The steps pass sideways, the next one showing at the edge. */
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 32px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .step { scroll-snap-align: start; }
  .step h3 { font-size: 1.25rem; }
  .step p { font-size: 1rem; }
  .sits h2 { margin-bottom: 8px; }
  .sit { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 48px; }
  .sit:nth-of-type(even) .sit-text { order: 0; }
  .sit h3 { font-size: 1.75rem; }
  .sit-text p { font-size: 1.0625rem; margin-top: 10px; }
  .sit-text .sit-module { margin-top: 16px; }
  .sit-slot, .sit-slot.s-yearEnd { max-width: none; }
  /* Drawn at the width of its place on a 375-pixel phone, so the text keeps
     its size there instead of shrinking to 88 %; a narrower phone shrinks it
     whole as before. The carpool's tiles run past the right edge. */
  .sit-case, .sit-case.c-yearEnd { --fit: 343; }
  .sit-case.c-yearEnd .app { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .sits-end { font-size: 1.25rem; margin-top: 16px; }
  .cases-text { font-size: 1.0625rem; margin-top: 12px; }
  /* The six cases as cards passing sideways, the drawing large, the next
     card showing at the edge. */
  .outing-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 24px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .outing-list::-webkit-scrollbar { display: none; }
  .outing-list li { scroll-snap-align: start; }
  .outing:hover .outing-pic { transform: none; }
  .landing .outing :is(h2, h3) { font-size: 1.25rem; margin-top: 14px; }
  /* On the examples' own page the cards stand one under the other. */
  .outing-list.stacked { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 32px; overflow: visible; margin: 24px 0 0; padding: 0; }
  /* Past the first screen the button takes the application link's place. */
  .past-hero .top-cta { display: inline-flex; height: 36px; padding: 0 14px; }
  .top-cta .long { display: none; }
  .top-cta .short { display: inline; }
  .past-hero .open-app { display: none; }
  .qs summary { font-size: 1.0625rem; }
  .end { margin-top: 72px; padding: 48px 0; }
}

/* Somebody who asked for less motion: nothing fades or slides, the states
   change at once (home.js plays no act either). */
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after, .top * { transition-duration: 0s !important; }
  .hero-slot { animation: none; }
}

/* A use case's own page (layouts/examples/page.html): its text beside its
   case's excerpt, larger and less cut than on the home. */
.example-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 48px 0; }
.example h1 { font-size: 3rem; line-height: 1.08; }
.example-text p { color: var(--soft); font-size: 1.0625rem; line-height: 1.65; max-width: 36rem; }
/* On its page a case stands whole, its modules to their foot; only the
   restaurant's menu, the longest, is cut. Every case at one width, so at one
   scale. */
.example-case { grid-column: auto; grid-row: auto; }
.example-case:not(.c-restaurant) .app { flex: none; -webkit-mask-image: none; mask-image: none; }
.example-case.c-anniversary .a-body { -webkit-mask-image: none; mask-image: none; }
.example-case.c-restaurant { height: 780px; }
.example-head .example-case { --fit: 548; }
.example .story h2, .example .faq h2, .example .outings h2 { font-size: 2.375rem; line-height: 1.15; max-width: none; }
.example .story, .example .faq, .example .outings { padding-top: 96px; }
.example-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 36px 0 0; padding: 0; }
.example-steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 18px; }
.example-steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 1.125rem; color: var(--weak); }
.example-steps h3 { font-size: 1.3125rem; line-height: 1.25; margin-top: 6px; }
.example-steps p { margin: 8px 0 0; color: var(--soft); font-size: 1.0625rem; line-height: 1.55; }
/* The features and tips page (layouts/tips.html): an example page without
   an excerpt, its tips two abreast. A tip reached by its address clears the
   bar. */
.tips-head { padding-block: 48px 0; }
.tips-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; margin-top: 36px; }
.tips-list article { border-top: 1px solid var(--line); padding-top: 18px; scroll-margin-top: 96px; }
.tips-list h3 { font-size: 1.3125rem; line-height: 1.25; }
.tips-list p { margin: 8px 0 0; color: var(--soft); font-size: 1.0625rem; line-height: 1.55; max-width: 36rem; }
/* The examples' own address (layouts/examples/section.html): the six cases
   as the home's cards. At the foot of a case's page, the five others in one
   row, smaller, their name alone. */
.example-index { padding-block: 48px 0; }
@media (min-width: 701px) {
  .outing-list.others { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
  .landing .others .outing h3 { font-size: 1.125rem; margin-top: 12px; }
}
@media (max-width: 700px) {
  .example-index { padding-block: 24px 0; }
  .example-head { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 24px 0; }
  .example h1 { font-size: 2.125rem; }
  .example-head .example-case { --fit: 343; }
  /* The mains show under the starters, the pill clear of the chosen one's foot. */
  .example-case.c-restaurant { height: 800px; }
  .example-case.c-yearEnd .app { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .example-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tips-head { padding-block: 24px 0; }
  .tips-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .example .story h2, .example .faq h2, .example .outings h2 { font-size: 1.75rem; }
  .example .story, .example .faq, .example .outings { padding-top: 64px; }
}
