@font-face {
  font-family: Geist;
  src: url('/assets/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('/assets/ibm-plex-mono-latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --white: #fbfaf6;
  --ink: #1b1c19;
  --muted: #5a5a51;
  --rule: #cecec2;
  --dark: #1c1e1b;
  --dark-rule: #3b3d36;
  --orange: #ff905e;
  --rust: #ad431b;
  --mono: Plex, ui-monospace, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 Geist, system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 3px solid #275abd; outline-offset: 4px; }
button { font: inherit; }
p, h1, h2, h3, figure { margin: 0; }
img { display: block; max-width: 100%; }
.shell { width: min(91.5%, 1256px); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: -5rem; left: 2rem; background: var(--white); padding: 12px; }
.skip:focus { top: 10px; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.masthead { min-height: 82px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 164px; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 2.7vw, 40px); }
nav a { display: grid; align-items: center; min-height: 44px; font-size: .86rem; font-weight: 620; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-block: clamp(34px, 6vw, 74px) 27px; }
h1 { font-size: clamp(3rem, 8vw, 7.75rem); line-height: .91; letter-spacing: -.083em; font-weight: 650; }
.period { color: var(--rust); }
.intro p:not(.mode-flag) { margin-top: 16px; color: var(--muted); font-size: clamp(.99rem, 1.7vw, 1.25rem); }
.label, .mode-flag, .range, .axis-y, .axis-x { font: 500 .72rem/1.35 var(--mono); letter-spacing: .038em; }
.mode-flag { display: inline-flex; gap: 8px; align-items: center; width: max-content; border: 1px solid #c8937c; padding: 8px 10px; color: #8e3515; white-space: nowrap; }
.mode-flag span, .signal-dot { display: inline-block; flex: none; width: 7px; height: 7px; background: currentColor; border-radius: 100%; }
.clock { background: var(--dark); color: #f6f4e9; display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 25%); border: 1px solid #252820; }
.clock-panel { min-width: 0; padding: clamp(15px, 3.35vw, 43px); }
.clock-header, .clock-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.clock-header h2 { display: flex; align-items: center; gap: 10px; color: #d5d2c6; }
.signal-dot { background: var(--orange); width: 6px; height: 6px; }
.clock-zone { color: var(--orange); }
.clock-display { display: grid; place-items: center start; min-height: clamp(106px, 18vw, 238px); padding-block: 10px 15px; container-type: inline-size; }
#utc-clock { white-space: nowrap; font-size: clamp(2.7rem, 19cqw, 11.3rem); line-height: 1; letter-spacing: -.075em; font-weight: 540; font-variant-numeric: tabular-nums; }
#utc-clock span { color: var(--orange); }
.clock-footer { border-top: 1px solid var(--dark-rule); padding-top: 14px; color: #dedbce; font-size: .88rem; }
#clock-source { color: #bdbbb0; text-align: right; }
.dial-panel { display: grid; place-items: center; border-left: 1px solid var(--dark-rule); padding: 15px; }
#dial { width: min(100%, 258px); height: auto; }
.dial-stroke, .dial-inner, .dial-grid { fill: none; stroke: #43463e; }
.dial-grid { stroke-dasharray: 2 5; }
#dial text { fill: #babcb1; font: 10px var(--mono); text-anchor: middle; }
#dial-ticks { stroke: #6e7266; }
#dial-ticks .major { stroke: #dad9cb; stroke-width: 1.6; }
#dial-hand { stroke: var(--orange); fill: var(--orange); stroke-width: 2; }
.dial-center { fill: #f6f4e9; }
.clock-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.section { margin-top: clamp(48px, 7.8vw, 94px); scroll-margin-top: 18px; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
h2:not(.label) { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; font-weight: 650; letter-spacing: -.058em; }
.section-top p, .build-copy p, .use p { margin-top: 9px; color: var(--muted); }
.monitor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(266px, 30%); border: 1px solid var(--rule); }
.chart-card, .source-card { padding: clamp(15px, 2.7vw, 33px); }
.chart-card { min-width: 0; background: var(--white); }
.chart-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.muted { color: var(--muted); }
.metric { font-size: clamp(2.15rem, 5.5vw, 4.35rem); line-height: 1; font-weight: 570; letter-spacing: -.075em; font-variant-numeric: tabular-nums; margin: 7px 0 20px; }
.unit { font: 500 .95rem var(--mono); letter-spacing: 0; color: var(--muted); }
.range { display: flex; }
.range button { background: none; cursor: pointer; color: var(--ink); border: 1px solid var(--rule); min-width: 44px; min-height: 44px; padding: 0 8px; }
.range button + button { border-left: 0; }
.range button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.range button:hover:not([aria-pressed="true"]) { background: #edebe3; }
.plot { display: grid; grid-template-columns: min-content minmax(0, 1fr); gap: 9px; align-items: start; }
.plot-inner { min-width: 0; }
.plot svg { display: block; width: 100%; height: clamp(130px, 19vw, 225px); overflow: visible; }
.axis-y { display: flex; flex-direction: column; justify-content: space-between; height: clamp(130px, 19vw, 225px); color: var(--muted); text-align: right; }
.axis-x { display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted); }
.chart-grid, .chart-zero, #chart-line { fill: none; vector-effect: non-scaling-stroke; }
.chart-grid { stroke: #dfddd2; }
.chart-zero { stroke: #aaa898; stroke-dasharray: 4 4; }
#chart-line { stroke: var(--rust); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-caption, .source-note { margin-top: 14px; color: var(--muted); font-size: .79rem; }
.source-card { border-left: 1px solid var(--rule); }
.chain { list-style: none; padding: 0; margin: 14px 0 0; }
.chain li { position: relative; display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: start; padding-block: 10px; }
.chain li:not(:last-child)::after { content: ''; position: absolute; top: 24px; bottom: -14px; left: 5px; border-left: 1px solid #a2a195; }
.chain-mark { width: 11px; height: 11px; margin-top: 7px; border: 1px solid var(--rust); border-radius: 50%; background: var(--paper); z-index: 1; }
.chain-mark.sat { background: var(--rust); }
.chain-mark.net { border-color: var(--muted); }
.chain strong, .chain div span { display: block; }
.chain strong { font-size: .98rem; font-weight: 650; }
.chain div span { font-size: .82rem; color: var(--muted); }
.source-note { border-top: 1px solid var(--rule); padding-top: 12px; }
.build { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 6vw, 84px); align-items: center; }
.image-window { aspect-ratio: 16 / 9; background: var(--dark); overflow: hidden; }
.image-window img { width: 100%; height: 100%; object-fit: cover; }
.build-image figcaption { margin-top: 10px; }
.build-copy h2 { margin-top: 10px; }
.build-copy p { max-width: 48ch; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-weight: 620; }
.use { padding-top: 24px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(22px, 6vw, 84px); }
.use p { max-width: 40ch; }
.use-links > * { min-height: 66px; padding: 8px 2px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.use-links a:hover strong { text-decoration: underline; }
.use-links strong, .use-links small { display: block; }
.use-links small, .use-links .label { color: var(--muted); }
.footer { margin-top: clamp(42px, 7vw, 84px); padding-block: 17px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .8rem; }
.footer a { display: grid; min-height: 44px; align-items: center; }
@media (max-width: 760px) {
  .clock { grid-template-columns: minmax(0, 1fr) minmax(145px, 26%); }
  .monitor { grid-template-columns: 1fr; }
  .source-card { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 570px) {
  .intro, .section-top { flex-wrap: wrap; }
  .intro { padding-bottom: 16px; }
  .masthead { padding-block: 5px; min-height: 64px; }
  .brand img { width: 116px; }
  nav { gap: 12px; }
  nav a { font-size: .74rem; }
  .clock { grid-template-columns: minmax(0, 1fr); }
  .dial-panel { display: none; }
  #utc-clock { font-size: 20cqw; }
  .clock-footer { font-size: .78rem; }
  #clock-source { font-size: .64rem; }
  .build, .use { grid-template-columns: 1fr; }
  .build-copy { grid-row: 1; }
}
@media (max-width: 340px) {
  .masthead { flex-wrap: wrap; gap: 0 12px; }
  .clock-header h2 { font-size: .64rem; }
  .chart-top { flex-wrap: wrap; }
  .range { margin-bottom: 12px; }
}
