/* Circles & Dials – site stylesheet. Direction A "Instrument" (2026-11-12):
   IBM Plex Sans + IBM Plex Mono, warm paper, ink hairlines, square corners, numbered sections.
   The clocks carry all the colour; the frame stays neutral. */
:root {
  --paper: #f7f3ec;   /* page background – between the two clock creams */
  --ink: #211d18;
  --muted: #655c50;   /* 5.6:1 on paper */
  --line: #d9cfbf;    /* light hairline */
  --soft: #efe8dc;    /* quiet panels */
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1200px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #000; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 600; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* mono labels */
.kicker, .section-num, .card-meta, .from, .rule-num, .here-label, .caption, .crumb, .label, .row-label, .same-title {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400;
}
.crumb, .caption { text-transform: none; letter-spacing: 0.02em; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; min-height: 44px; }
.mark { display: block; width: 32px; height: 32px; }
.nav { display: flex; gap: 28px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.app-band { background: var(--ink); color: var(--paper); }
.app-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.app-band h2 { margin: 0 0 6px; font-size: 24px; }
.app-band p { margin: 0; color: #cfc5b5; }
.site-footer .wrap { padding-top: 20px; padding-bottom: 28px; font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; padding-top: 8px; padding-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.footer-links a { color: var(--muted); display: inline-block; padding: 12px 0; }
.about { border-top: 1px solid var(--ink); margin-top: 48px; padding-top: 28px; }
.about h2 { margin: 0 0 14px; font-size: 24px; letter-spacing: -0.015em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 2px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--soft); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; color: var(--paper); }
.btn-invert { border-color: var(--paper); color: var(--paper); }
.btn-invert:hover { background: var(--paper); color: var(--ink); }
.chip-btn { min-height: 44px; min-width: 56px; padding: 0 14px; border-radius: 2px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--mono); font-size: 14px; cursor: pointer; }
.chip-btn:hover { background: var(--soft); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* chips */
.chip { display: inline-block; border: 1px solid var(--ink); padding: 3px 8px; font-size: 13px; }
.chip-broken { text-decoration: line-through; }

/* clock list */
.page-head { padding-top: 48px; padding-bottom: 32px; }
.page-head h1 { margin: 0 0 14px; font-size: clamp(36px, 5.5vw, 56px); letter-spacing: -0.03em; line-height: 1.02; max-width: 820px; }
.lede { margin: 0; font-size: 20px; line-height: 1.45; max-width: 640px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 0 40px; padding-bottom: 64px; }
.card { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ink); padding: 18px 0 28px; text-decoration: none; color: var(--ink); }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; }
.card .mini { width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--line); overflow: hidden; }
.card:hover .mini { border-color: var(--ink); }
.card h2 { margin: 4px 0 0; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.card:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card .one { margin: 0; color: var(--muted); font-size: 16px; }
.card-breaks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card-breaks .label { font-size: 12px; margin-right: 4px; }

/* clock page – hero */
.crumb { padding-top: 24px; }
.crumb a { color: var(--muted); }
.hero { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; padding: 24px 0 56px; }
.hero-clock { flex: 1 1 440px; max-width: 560px; }
.hero-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero-side h1 { margin: 0; font-size: clamp(40px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.hero-side .lede { font-size: 21px; max-width: 440px; }
.stage { width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--ink); overflow: hidden; }
.stage-fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.readout { align-self: stretch; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 0; font-family: var(--mono); }
.readout .t { font-size: 40px; font-weight: 500; letter-spacing: 0.04em; line-height: 1.1; }
.readout .d { font-size: 14px; color: var(--muted); }
.status { align-self: stretch; margin: -6px 0 0; padding: 10px 14px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 14px; }
.toggles { display: flex; flex-wrap: wrap; gap: 0 24px; }
.toggles label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; cursor: pointer; }
.toggles input { width: 18px; height: 18px; accent-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Explore panel (in the side column) */
.explore { align-self: stretch; border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-label { min-width: 96px; font-size: 12px; }
.row-link { color: var(--ink); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.timefields { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); }
.timefields input { width: 64px; min-height: 44px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; padding: 0 8px; font-family: var(--mono); font-size: 16px; color: var(--ink); }
.timefields input:disabled { border-color: var(--line); color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.explore-foot { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* numbered sections */
.section { padding: 0 0 56px; }
.section-grid { display: flex; flex-wrap: wrap; gap: 16px 48px; border-top: 1px solid var(--ink); padding-top: 32px; }
.section-head { flex: 0 0 220px; }
.section-head h2 { margin: 6px 0 0; font-size: 28px; letter-spacing: -0.015em; line-height: 1.15; }
.section-body { flex: 999 1 560px; min-width: 0; }
.section-body .cards { padding-bottom: 0; }
.intro { font-size: 22px; line-height: 1.4; margin: 0 0 24px; max-width: 640px; }

/* How to read */
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; border-top: 1px solid var(--line); padding: 24px 0; }
.step-fig { margin: 0; flex: 0 0 200px; display: flex; flex-direction: column; gap: 6px; }
.step .fig { width: 200px; aspect-ratio: 1 / 1; border: 1px solid var(--line); overflow: hidden; }
.step .txt { flex: 999 1 280px; min-width: 0; }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; font-size: 17px; line-height: 1.6; max-width: 560px; }
.aside { background: var(--soft); padding: 18px 20px; max-width: 640px; font-size: 16px; line-height: 1.6; }
.aside p { margin: 0; }

/* Rules it breaks */
.compare-note { color: var(--muted); margin: 0 0 8px; }
.rules { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.rule { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; border-top: 1px solid var(--line); padding: 20px 0; }
.rule-num { padding-top: 4px; text-transform: none; }
.rule-body { display: flex; flex-direction: column; gap: 8px; }
.from { font-size: 12px; }
.rule .was { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.rule .here { margin: 0; font-size: 17px; line-height: 1.55; }
.here-label { color: var(--ink); margin-right: 8px; }
.rule .also { margin: 0; font-size: 14px; color: var(--muted); }
.same-title { margin: 28px 0 12px; color: var(--ink); }
.same { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.same li { border: 1px solid var(--ink); padding: 6px 12px; font-size: 14px; }

/* text blocks */
.prose { max-width: 680px; font-size: 18px; line-height: 1.7; }
.prose p { margin: 0 0 16px; }
.credit { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.credit dt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.credit dd { margin: 0; }
.draft { display: inline-block; font-family: var(--mono); font-size: 12px; border: 1px dashed var(--ink); padding: 2px 8px; margin-bottom: 20px; }
.approach { padding-top: 48px; padding-bottom: 64px; }
.approach h1 { margin: 8px 0 20px; font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.05; }
.approach-next { font-family: var(--mono); font-size: 14px; }

/* phones */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .nav { gap: 18px; }
  .hero { gap: 28px; padding-bottom: 40px; }
  .readout .t { font-size: 32px; }
  .section-head { flex-basis: 100%; }
  .step-fig, .step .fig { flex-basis: 100%; width: 100%; max-width: 320px; }
}

/* full screen page */
.live-body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.live-body #stage { flex: 1; min-height: 0; }
.live-bar { position: fixed; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; opacity: 0.85; }
.live-bar .btn { background: rgba(247, 243, 236, 0.85); }
.live-readout { position: fixed; bottom: 24px; left: 0; right: 0; border: 0; justify-content: center; flex-direction: column; align-items: center; gap: 2px; }
.live-readout .t { font-size: 30px; }
.live-readout .d { font-size: 16px; }
