/* sprone.app — one stylesheet for every page.

   The brand's own pair, cream and brick, is the page (records/design_and_
   typography.md: brick and cream are for "a page about Sprone"); the type is
   Strichpunkt Sans, Sprone's default face, at the leading of 1.375 it wears
   everywhere. Designs drawn on these pages keep their own colors in dark, as a
   design does in the app. No script, no shadow but the compare line's, and
   nothing slides or spins for show.

   Contrast, measured (WCAG 2): ink #4a4542 on cream 8.06, secondary #6b625b on
   cream 5.08 and on the band 4.60, brick #ad4e3f on cream 4.55 and on the card
   4.95; dark: cream on night 15.6, secondary #b8aea4 8.4, brick light
   #e28c7c 7.2. Brick words sit on cream or the card only, never the band. */

@font-face {
  font-family: "Strichpunkt Sans";
  src: url("/fonts/StrichpunktSans.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 100% 200%;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f4ecdf;
  --card: #faf6ef;
  --band: #ece2d1;
  --label: #2b2623;
  --ink: #4a4542;
  --soft: #6b625b;
  --accent: #ad4e3f;
  --rule: rgba(74, 69, 66, 0.16);
  --fill: rgba(74, 69, 66, 0.08);
  --ground: #4a4542;
  --on-ground: #ffffff;
  --brick: #ad4e3f;
  --cream: #f4ecdf;
  --night: #171418;

  --face: "Strichpunkt Sans", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --lead: 1.375;
  --gutter: 16px;
  --wrap: 1180px;
  --text: 640px;
  --radius-design: 12px;
  --radius-card: 20px;
  --space-card: 24px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --space-card: 28px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171418;
    --card: #221e22;
    --band: #1d191d;
    --label: #f4ecdf;
    --ink: #e6ddd1;
    --soft: #b8aea4;
    --accent: #e28c7c;
    --rule: rgba(244, 236, 223, 0.14);
    --fill: rgba(244, 236, 223, 0.08);
    --ground: #7a726a;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face);
  font-size: 17px;
  line-height: var(--lead);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

@media (min-width: 720px) { body { font-size: 18px; } }

::selection { background: var(--brick); color: var(--cream); }

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 160ms ease;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 10px 16px;
  border-radius: 9999px;
  background: var(--ground);
  color: var(--on-ground);
  text-decoration: none;
  z-index: 10;
}
.skip:focus-visible { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* The top: the mark and the name, the pages at the right. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--label);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.name svg { width: 28px; height: 28px; flex: none; }
.pages {
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.pages a { color: var(--soft); text-decoration: none; }
.pages a:hover, .pages a[aria-current="page"] { color: var(--label); }

/* Type, by role: one role, one style. */
h1, h2, h3 { color: var(--label); margin: 0; font-weight: 700; text-wrap: balance; }
.display {
  color: var(--accent);
  font-size: clamp(44px, 8.4vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h2, .title {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(19px, 2.1vw, 23px); color: var(--ink); }
.label {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.status, .explanation { color: var(--soft); font-size: 15px; }
.status { font-variant-numeric: tabular-nums; }
.measure { max-width: var(--text); }
.stack > * + * { margin-top: 18px; }

/* Sections and bands. */
.section { padding-block: clamp(72px, 11vw, 136px); }
.band { background: var(--band); }
.band .label { color: var(--soft); }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }

/* The hero. */
.hero {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(32px, 7vw, 96px) clamp(72px, 10vw, 128px);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.hero-text { display: grid; gap: 24px; }
.hero-art { width: 100%; max-width: 520px; justify-self: center; }
.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--ground);
  color: var(--on-ground);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.pill svg { width: 18px; height: 18px; }

/* Cards on the grouped ground. */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 999px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: var(--space-card);
  display: grid;
  align-content: start;
  gap: 10px;
}
.band .card { background: var(--paper); }
.card .glyph { width: 30px; height: 30px; color: var(--label); margin-bottom: 10px; }
.card p { color: var(--ink); font-size: 16px; }
@media (min-width: 720px) { .card p { font-size: 17px; } }

/* Two columns: words beside a drawing. */
.split { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.flip > :first-child { order: 2; }
}
.split .head { margin-bottom: 0; }

/* The feels: seven designs from Minimal to Maximal, at a design's 4:5. */
.feels {
  display: grid;
  gap: 24px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .feels { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .feels { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.feels li { display: grid; gap: 8px; align-content: start; }
.feels svg { width: 100%; height: auto; border-radius: var(--radius-design); }
.feels h3 { font-size: 16px; margin-top: 6px; }
.feels p { font-size: 14px; color: var(--soft); }
.scale {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--soft);
  font-size: 14px;
}
.scale::before {
  content: "";
  order: 2;
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.scale span:last-child { order: 3; }

/* Designs drawn in the page take the type of the page. */
.drawn text { font-family: var(--face); }
.w5 { font-weight: 500; } .w6 { font-weight: 600; } .w7 { font-weight: 700; } .w8 { font-weight: 800; } .w9 { font-weight: 900; }
.wide { font-stretch: 150%; } .widest { font-stretch: 200%; }
.slant { font-style: oblique 12deg; }
.tnum { font-variant-numeric: tabular-nums; }

/* Fields, as the brief asks for them: a capsule each. */
.purpose h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.purpose h3 .status { font-weight: 400; }
.fields { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.fields li {
  padding: 9px 16px;
  border-radius: 9999px;
  background: var(--fill);
  color: var(--soft);
  font-size: 15px;
}
.fields .group {
  padding: 10px 2px 0;
  background: none;
  color: var(--label);
  font-size: 13px;
  font-weight: 600;
}

/* A brand, as the Brand sheet keeps it. */
.brand-card { max-width: 440px; justify-self: center; width: 100%; gap: 0; padding: 0; overflow: hidden; }
.brand-card .row { display: flex; align-items: center; gap: 14px; padding: 15px var(--space-card); }
.brand-card .row + .row { border-top: 1px solid var(--rule); }
.brand-card .row-title { flex: 1; color: var(--label); font-weight: 600; }
.brand-card .head-row { padding-block: 20px; }
.brand-card .head-row .row-title { font-size: 22px; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule); }
.sw-1 { background: #0b4f9e; } .sw-2 { background: #bacce5; } .sw-3 { background: #22252b; } .sw-4 { background: #f2ede4; }
.brand-card .value { color: var(--soft); font-size: 15px; }
.logo-tile { width: 44px; height: 44px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; }
.logo-tile svg { width: 26px; height: 26px; }

/* Sizes drawn to scale: each by its own pixels, a sixth. */
.to-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 28px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.to-scale li { display: grid; gap: 10px; }
.to-scale svg { height: auto; }
.to-scale .size-name { color: var(--label); font-size: 15px; font-weight: 600; line-height: 1.25; }
.to-scale .status { font-size: 14px; }
.all-sizes {
  display: grid;
  gap: 28px 32px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.all-sizes dt { color: var(--label); font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.all-sizes dd { margin: 0; color: var(--soft); font-size: 15px; font-variant-numeric: tabular-nums; }
.all-sizes dd + dd { margin-top: 2px; }

/* The catalog, counted. */
.counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--rule);
}
@media (min-width: 720px) { .counts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.counts div { background: var(--card); padding: 22px var(--space-card) 24px; display: grid; gap: 2px; }
.counts dt { order: 2; color: var(--soft); font-size: 15px; }
.counts dd {
  order: 1;
  margin: 0;
  color: var(--label);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.counts div { display: flex; flex-direction: column; }

/* Privacy: the brand's own ground. */
.private { background: var(--brick); color: var(--cream); }
.private h2, .private .label { color: var(--cream); }
.private .label { opacity: 0.86; }
.private p { color: var(--cream); }
.private a { color: var(--cream); }
.promises { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.promises li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.promises svg { width: 22px; height: 22px; margin-top: 0.15em; }
@media (prefers-color-scheme: dark) { .private { background: #8f3f33; } }

/* Questions. */
.faq { display: grid; gap: 0; margin: 0; }
.faq div { padding-block: 26px; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
@media (min-width: 900px) { .faq div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; } }
.faq dt { color: var(--label); font-weight: 600; font-size: 19px; line-height: 1.3; }
.faq dd { margin: 0; }

/* Long pages: privacy, terms, support. */
.doc { display: grid; gap: 48px; padding-block: clamp(40px, 8vw, 96px) 0; }
@media (min-width: 1000px) { .doc { grid-template-columns: 240px minmax(0, var(--text)); gap: 80px; } }
.doc-head { display: grid; gap: 18px; margin-bottom: 8px; }
.doc-head h1 { color: var(--accent); font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.025em; }
.contents { font-size: 15px; }
@media (min-width: 1000px) { .contents { position: sticky; top: 32px; align-self: start; } }
.contents h2 { font-size: 13px; letter-spacing: 0.02em; color: var(--soft); font-weight: 600; margin-bottom: 10px; }
.contents ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.contents a { color: var(--soft); text-decoration: none; }
.contents a:hover { color: var(--label); }
@media (max-width: 999px) { .contents { display: none; } }
.prose h2 { font-size: 23px; line-height: 1.25; letter-spacing: -0.01em; margin: 52px 0 12px; scroll-margin-top: 24px; }
.prose h2:first-of-type { margin-top: 36px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { margin: 0; padding-left: 1.1em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--soft); }
.prose strong { color: var(--label); font-weight: 600; }
.when { margin-top: 48px; color: var(--soft); font-size: 15px; }

/* The foot. */
.foot {
  margin-top: clamp(72px, 10vw, 120px);
  padding-block: 40px 56px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 28px;
  font-size: 15px;
  color: var(--soft);
}
@media (min-width: 720px) { .foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.foot .name { font-size: 18px; }
.foot .name svg { width: 24px; height: 24px; }
.foot-words { display: grid; gap: 10px; max-width: 520px; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.foot nav a { color: var(--soft); text-decoration: none; }
.foot nav a:hover { color: var(--label); }
.fine { font-size: 13px; color: var(--soft); }
.section + .foot, .private + .wrap .foot { margin-top: 0; }

/* The 404. */
.lost { display: grid; gap: 20px; padding-block: clamp(64px, 14vw, 160px); max-width: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .top .pages, .contents, .skip { display: none; }
  body { background: #fff; color: #000; }
}

/* Details of the drawings. */
.card .knock { fill: var(--card); }
.band .card .knock { fill: var(--paper); }
.crop { stroke: var(--soft); }
.crop-label { fill: var(--soft); }
.grid + .explanation, .to-scale + .explanation { margin-top: 24px; }
/* A drawn design keeps its edge on a ground of its own color. */
.feels svg, svg.compare { outline: 1px solid var(--rule); outline-offset: -1px; border-radius: var(--radius-design); }
svg.compare { width: 100%; max-width: 400px; justify-self: center; }
.split > svg.drawn:not(.compare) { width: 100%; max-width: 520px; justify-self: center; }
