@font-face { font-family: "Doto"; src: url("/fonts/doto-round.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Doto Square"; src: url("/fonts/doto-black.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f4f4f1;
  --ink: #0b0b0b;
  --lit: #f2542d;
  --unlit: #cfcfca;
  --unlit-ink: #34342f;
  --gut: clamp(16px, 4vw, 56px);
  --rule: 1.5px solid var(--ink);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dot-face: "Doto", ui-monospace, monospace;
  --text-face: "Space Grotesk", system-ui, sans-serif;

  /* Specimen theme, set by the settings form (html[data-theme]). Values are the app's own palettes. */
  --w-bg: #000; --w-fg: #fff; --w-acc: #f2542d; --mat: var(--paper); --mat-dot: var(--unlit);
}
html[data-theme="light"] { --w-bg: #f4f4f4; --w-fg: #000; --w-acc: #f2542d; --mat: var(--ink); --mat-dot: var(--unlit-ink); }
html[data-theme="you"] { --w-bg: #25190f; --w-fg: #f6e9dd; --w-acc: #f1c39f; --mat: var(--paper); --mat-dot: var(--unlit); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scrollbar-color: var(--ink) var(--paper); -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--text-face); font-feature-settings: "ss01" 0; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: var(--lit); color: var(--ink); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--lit); }
:focus-visible { outline: 2px solid var(--lit); outline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -60px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 8px; }
.cap { font-size: .8125rem; font-weight: 600; line-height: 1.35; }
.fine { font-size: .8125rem; line-height: 1.5; max-width: 90ch; }
.i { width: 1.1em; height: 1.1em; flex: none; transition: transform .3s var(--ease); }
.lit { color: var(--lit); }

/* Bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  height: 64px; padding: 0 var(--gut);
  background: var(--paper); border-bottom: var(--rule);
}
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark-dots { display: grid; grid-template-columns: repeat(3, 4px); gap: 3px; padding: 6px; background: var(--ink); border-radius: 7px; }
.mark-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--paper); }
.mark-dots i.lit { background: var(--lit); }
.mark-name { font: 900 1.625rem/1 var(--dot-face); letter-spacing: .01em; white-space: nowrap; }
.nav { display: flex; gap: 28px; font-size: .9375rem; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; }
.bar-end { display: flex; align-items: center; gap: 20px; }
.lang { font-size: .875rem; text-decoration: none; white-space: nowrap; }
.lang b { font-weight: 600; text-decoration: underline; }

/* Buttons: a dot that lights when the button is pointed at or focused. */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 22px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease);
}
.btn .led { width: 9px; height: 9px; border-radius: 50%; background: var(--unlit-ink); transition: background-color .2s var(--ease); }
.btn:hover .led, .btn:focus-visible .led { background: var(--lit); }
.btn:hover .i, .btn:focus-visible .i { transform: translateX(4px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .9375rem; gap: 10px; }
.btn-sm .led { width: 7px; height: 7px; }
.btn-inv { background: var(--paper); color: var(--ink); }
.btn-inv .led { background: var(--unlit); }

/* Hero: the specimen sheet */
.hero-sheet {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px;
  padding: clamp(20px, 3vw, 40px) var(--gut) clamp(20px, 2.4vw, 36px);
  background-image: radial-gradient(circle, var(--unlit) 0 1.6px, transparent 2px);
  background-size: 12px 12px; background-position: 6px 6px;
  overflow: hidden;
}
.hero-word {
  display: block; font: 900 clamp(6.5rem, 30vw, 33rem)/.74 var(--dot-face);
  letter-spacing: -.035em; margin-left: -.03em; white-space: nowrap;
}
.hero-clock { display: grid; gap: 10px; justify-items: start; }
.hero-row {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  grid-template-areas: "offer settings";
  border-top: 2px solid var(--ink); border-bottom: var(--rule);
}
.cell { padding: clamp(24px, 2.6vw, 40px) var(--gut); min-width: 0; }
.cell + .cell { border-left: 1px solid var(--ink); }
.cell-offer { grid-area: offer; display: grid; align-content: start; gap: 20px; }
.cell-settings { grid-area: settings; display: grid; align-content: start; gap: 18px; }
h1 { font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.04; max-width: 17ch; }
.lede { font-size: 1.125rem; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }

.live-mat { container-type: inline-size; background: var(--mat); padding: 12px; width: clamp(184px, 17vw, 264px); transition: background-color .45s var(--ease); }
.live {
  aspect-ratio: 1; border-radius: 15%;
  background: var(--w-bg);
  display: grid; place-content: center; text-align: center;
  font: 900 34cqi/.9 "Doto Square", var(--dot-face); letter-spacing: .04em;
  transition: background-color .45s var(--ease);
}
.live .hh { color: var(--w-fg); transition: color .45s var(--ease); }
.live .mm { color: var(--w-acc); transition: color .45s var(--ease); }
html[data-style="solid"] .live { font: 700 36cqi/.9 var(--text-face); letter-spacing: -.02em; }

.cell-settings fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cell-settings legend { float: left; width: 100%; font-weight: 600; font-size: .8125rem; margin-bottom: 6px; }
.cell-settings label { display: inline-flex; align-items: center; gap: 9px; font-size: 1rem; cursor: pointer; padding: 4px 0; }
.cell-settings input {
  appearance: none; margin: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--unlit); cursor: pointer; transition: background-color .2s var(--ease);
}
.cell-settings input:checked { background: var(--lit); }
.cell-settings input:hover:not(:checked) { background: var(--ink); }
.note { font-size: .875rem; max-width: 34ch; }
.no-js .cell-settings fieldset, .no-js .cell-settings .note { display: none; }

/* Sheets */
/* Each sheet opens with two rows of unlit dots under its rule: the dot band as the page's spine. */
.sheet {
  padding: clamp(64px, 8vw, 120px) var(--gut);
  background:
    radial-gradient(circle, var(--unlit) 0 1.6px, transparent 2px) 6px 8px / 12px 12px repeat-x,
    radial-gradient(circle, var(--unlit) 0 1.6px, transparent 2px) 6px 20px / 12px 12px repeat-x;
  border-top: var(--rule);
}
.sheet-pro { border-top: 0; padding-top: clamp(36px, 4vw, 56px); }
.sheet-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sheet-head h2, .band h2 { font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.02; }
.sheet-head p { font-size: 1.125rem; max-width: 46ch; }

/* The specimen viewer's caption strip: sticks to the bottom of the screen while its grid is in view
   and names the plate under the pointer, the tapped plate, or the one reached from the index. */
.readout {
  position: sticky; bottom: 0; z-index: 5;
  padding: 14px 0 16px; background: var(--paper); border-top: var(--rule);
  font: 900 1.625rem/1 var(--dot-face); letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Plates: a home-screen grid at the app's own cell proportions (74 dp cells, 12 dp gaps). */
.plates { container-type: inline-size; background: var(--mat); padding: clamp(12px, 2.2vw, 32px); transition: background-color .45s var(--ease); }
.plates-grid {
  --n: 12; --r: .162;
  --c: calc(100cqi / (var(--n) + (var(--n) - 1) * var(--r)));
  --g: calc(var(--c) * var(--r));
  display: grid; grid-template-columns: repeat(var(--n), var(--c)); grid-auto-rows: var(--c);
  gap: var(--g); grid-auto-flow: row dense;
  background-image: radial-gradient(circle, var(--mat-dot) 0 2.5px, transparent 3px);
  background-size: calc(var(--c) + var(--g)) calc(var(--c) + var(--g));
  background-position: calc(var(--g) / -2) calc(var(--g) / -2);
}
.plate { position: relative; }
.plate:target img { outline: 2px solid var(--lit); outline-offset: 3px; border-radius: 12%; }
.plate img { width: 100%; height: 100%; object-fit: contain; transition: opacity .28s var(--ease); }
.plate img.swap { opacity: .06; }
.plates-grid:hover .plate:not(:hover) img { opacity: .4; }
.w1 { grid-column: span 1; } .w2 { grid-column: span 2; } .w4 { grid-column: span 4; }
.h1 { grid-row: span 1; } .h2 { grid-row: span 2; } .h3 { grid-row: span 3; } .h4 { grid-row: span 4; }

/* Index: the parts list under each sheet */
.idx-wrap { margin-top: 28px; }
.idx-wrap > summary { cursor: pointer; font-weight: 600; font-size: .9375rem; padding: 10px 0; border-top: var(--rule); list-style: none; display: flex; align-items: center; gap: 10px; }
.idx-wrap > summary::-webkit-details-marker { display: none; }
.idx-wrap > summary::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--unlit); transition: background-color .2s var(--ease); }
.idx-wrap[open] > summary::before, .idx-wrap > summary:hover::before { background: var(--lit); }
.idx { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 40px; }
.idx > .idx-list { display: contents; }
.idx-cols { display: block; columns: 5 200px; column-gap: 40px; }
.idx-cols .idx-group h3 { break-after: avoid; }
.idx-group:first-of-type h3 { margin-top: 0; }
.idx-group h3 { font-size: .8125rem; font-weight: 600; letter-spacing: 0; margin: 18px 0 4px; }
.idx-list li { break-inside: avoid; }
.idx-list { list-style: none; padding: 0; }
.idx-list a { display: grid; grid-template-columns: 2.6em 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--unlit); text-decoration: none; font-size: .9375rem; }
.idx .no { font: 900 1.125rem/1 var(--dot-face); }
.idx .sz { font-size: .8125rem; font-variant-numeric: tabular-nums; }
.idx-list a:hover .no, .idx-list a.on .no { color: var(--lit); }

/* Pro band */
.band {
  background: var(--ink); color: var(--paper);
  padding: clamp(56px, 7vw, 104px) var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 48px; align-items: end;
  background-image: radial-gradient(circle, var(--unlit-ink) 0 1.6px, transparent 2px);
  background-size: 12px 12px; background-position: 6px 6px;
}
.band p { font-size: 1.125rem; max-width: 46ch; }
.band h2 { max-width: 16ch; }

/* Made to measure */
.spec { border-bottom: var(--rule); }
.spec-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px 40px; padding: 28px 0; border-top: var(--rule); }
.spec dt { font: 900 2.25rem/1 var(--dot-face); }
.spec dd { display: grid; gap: 16px; justify-items: start; }
.spec dd > p { max-width: 60ch; }
.trio, .duo, .shapes, .accents { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 20px 28px; }
.trio li, .duo li { display: grid; gap: 8px; font-size: .875rem; font-weight: 600; }
.trio img {
  width: clamp(128px, 14vw, 184px); padding: 14px;
  background: var(--paper) radial-gradient(circle, var(--unlit) 0 1.6px, transparent 2px) 0 0 / 12px 12px;
}
.trio li:nth-child(2) img { background: var(--ink) radial-gradient(circle, var(--unlit-ink) 0 1.6px, transparent 2px) 0 0 / 12px 12px; }
.duo img { width: clamp(220px, 27vw, 340px); }
.shapes li, .accents li { display: grid; justify-items: center; gap: 8px; font-size: .8125rem; }
.shapes svg { width: 52px; height: 52px; fill: var(--ink); }
.sw { width: 30px; height: 30px; border-radius: 50%; }
.sw-f2542d { background: #f2542d; } .sw-ff6b1a { background: #ff6b1a; } .sw-ffc21a { background: #ffc21a; }
.sw-3ddc84 { background: #3ddc84; } .sw-3d8bff { background: #3d8bff; } .sw-a66bff { background: #a66bff; }
.sw-ff5c9a { background: #ff5c9a; } .sw-mono { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.sw-you { background: #f1c39f; }

/* Sources */
.table-wrap { border-top: 2px solid var(--ink); }
.sources { width: 100%; border-collapse: collapse; font-size: 1rem; }
.sources th, .sources td { text-align: left; vertical-align: top; padding: 14px 24px 14px 0; border-bottom: 1px solid var(--unlit); }
.sources thead th { font-size: .8125rem; font-weight: 600; border-bottom: var(--rule); }
.sources tbody th { font-weight: 600; width: 32%; }
.sources td:nth-child(2) { white-space: nowrap; width: 18%; }
#sources > .fine { margin-top: 20px; }

/* Privacy facts */
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-bottom: 28px; }
.facts li { position: relative; padding: 20px 0 22px 30px; border-top: var(--rule); font-size: 1.25rem; line-height: 1.4; }
.facts li::before { content: ""; position: absolute; left: 0; top: 29px; width: 11px; height: 11px; border-radius: 50%; background: var(--lit); }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; }
.more:hover .i { transform: translateX(4px); }

/* Close */
.close { background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 152px) var(--gut); display: grid; gap: 24px; justify-items: start; }
.close h2 { font: 900 clamp(2.75rem, 7vw, 6rem)/.9 var(--dot-face); letter-spacing: -.01em; max-width: 13ch; }
.close p { font-size: 1.125rem; }
.close .cap { color: var(--paper); }

.foot { padding: 40px var(--gut) 56px; display: grid; gap: 10px; font-size: .9375rem; }

/* Privacy policy and 404 */
.read { max-width: calc(70ch + 2 * var(--gut)); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gut) 96px; }
.policy h1 { font: 900 clamp(2.75rem, 7vw, 5rem)/.9 var(--dot-face); letter-spacing: -.01em; margin-bottom: 16px; }
.policy > .cap { margin-bottom: 36px; }
.policy h2 { font-size: 1.5rem; line-height: 1.2; margin: 2.2em 0 .6em; padding-top: 18px; border-top: var(--rule); }
.policy p, .policy li { line-height: 1.65; }
.policy p + p, .policy ul + p { margin-top: 1em; }
.policy ul { padding-left: 1.1em; display: grid; gap: .55em; }
.policy li::marker { color: var(--lit); }
.policy code { font: 600 .95em var(--text-face); background: var(--ink); color: var(--paper); padding: 1px 6px; }
.nf { min-height: 100vh; display: grid; align-content: center; gap: 18px; padding: 48px var(--gut); max-width: 70ch; }
.nf-code { font: 900 clamp(7rem, 30vw, 16rem)/.8 var(--dot-face); }
.nf h1 { max-width: none; }

/* Medium */
@media (max-width: 1099px) {
  .plates-grid { --n: 8; }
  .hero-row { grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr); }
  .sheet-head, .band { grid-template-columns: 1fr; align-items: start; }
  .nav { gap: 20px; }
}

/* Small */
@media (max-width: 759px) {
  .bar { height: 56px; gap: 12px; }
  .nav { display: none; }
  .mark-name { font-size: 1.5rem; }
  .mark-sub { display: none; }
  .lang { font-size: .8125rem; }
  .plates-grid { --n: 6; }
  .hero-sheet { grid-template-columns: 1fr; }
  .hero-word { font-size: 37vw; }
  .hero-clock { grid-template-columns: auto 1fr; align-items: end; gap: 16px; }
  .hero-clock .cap { grid-column: 2; grid-row: 1; max-width: 16ch; }
  .live-mat { width: 132px; grid-row: 1; padding: 8px; }
  .hero-row { grid-template-columns: 1fr; grid-template-areas: "offer" "settings"; }
  .cell + .cell { border-left: 0; border-top: 1px solid var(--ink); }
  .btn:not(.btn-sm) { height: 52px; }
  .spec-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .readout { font-size: 1.25rem; line-height: 1.2; padding: 12px 0 14px; white-space: normal; }
  .facts li { font-size: 1.125rem; }
  .sources thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sources tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--unlit); }
  .sources th, .sources td { padding: 0; border: 0; width: auto !important; }
  .sources td:nth-child(2) { font-size: .875rem; }
  .sources td:last-child { grid-column: 1 / -1; }
}

@media (hover: none) {
  .plates-grid:hover .plate:not(:hover) img { opacity: 1; }
  .plate.show img { outline: 2px solid var(--lit); outline-offset: 3px; border-radius: 12%; }
}

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