/* Layout: header, the tool (watch beside one step card), then plain written steps and FAQs for reading and search. */
:root {
  --bg: #EBEEF0;
  --surface: #FFFFFF;
  --ink: #16202A;
  --muted: #5A6772;
  --line: #D2D8DD;
  --accent: #D9531A;
  --accent-soft: #FBE3D6;
  --accent-ink: #FFFFFF;

  /* the watch is an object: same in both themes */
  --steel-hi: #F3F5F6;
  --steel-mid: #C3CAD0;
  --steel-lo: #8C969E;
  --engrave: #2A3138;
  --dial-black: #121619;
  --dial-white: #F3F2EC;
  --lume: #F1EEDF;
  --hand-light: #E4E7EA;
  --hand-dark: #1A1F24;
  --gmt: #E5601F;
  --date-bg: #FFFFFF;
  --date-ink: #111111;

  --f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1317; --surface: #172028; --ink: #E6EBEE; --muted: #93A1AB; --line: #2A3640;
    --accent: #F0722F; --accent-soft: #3A2116; --accent-ink: #1A0E07; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 48px;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }

/* Site header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 16px 0; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }
.brand img { width: 28px; height: 28px; }
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

.crumbs { font-size: 13px; color: var(--muted); margin: 0; }
.crumbs a { color: var(--muted); }

.intro { display: flex; flex-direction: column; gap: 6px; }
h1 {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.02; margin: 0; letter-spacing: .01em; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 0; color: var(--muted); max-width: 62ch; font-size: 17px; }

/* Questions */
.setup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.q {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.q label, .q .qlabel { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.q select {
  font: inherit; font-size: 15px; padding: 9px 10px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%;
}
.q .now { font-family: var(--f-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q .now b { color: var(--ink); font-weight: 500; }
.typeline { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.typeline:empty { display: none; }
.typeline b { color: var(--ink); font-weight: 600; }
.unsure { display: flex; flex-direction: column; gap: 6px; }
.bezel { transition: transform 1.2s cubic-bezier(.4,0,.2,1); }
.seg { display: flex; flex-direction: column; gap: 6px; }
.seg button {
  font: inherit; text-align: left; cursor: pointer; padding: 8px 10px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; gap: 1px;
}
.seg button { font-size: 13px; font-weight: 500; }
.seg button b { font-weight: 600; font-size: 14px; }
.seg button small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* Tool */
.tool { display: flex; flex-direction: column; gap: 16px; }
.main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.watch-col { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.watch-svg { width: 100%; max-width: 500px; height: auto; display: block; }

.crownbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 13px; }
.crownbar .lbl { color: var(--muted); margin-right: 2px; font-family: var(--f-display); font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
.crownbar span.pill { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.crownbar span.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.jumpcount { min-height: 1.5em; font-family: var(--f-mono); font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.goal-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: -8px; }
.jumpcount.note { color: var(--muted); font-family: var(--f-body); font-size: 13px; text-align: center; }
.targets { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.chip small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chip b { font-family: var(--f-mono); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.chip.gmt b { color: var(--accent); }

.stepmeta { font-family: var(--f-display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.step-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.05; margin: 0; text-wrap: balance; }
.step-body { margin: 0; font-size: 17px; max-width: 52ch; }
.step-body b { font-family: var(--f-mono); font-weight: 500; background: var(--accent-soft); padding: 0 4px; border-radius: 4px; white-space: nowrap; }
.tip { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin: 0; }
.tip:empty { display: none; }
.tip b { color: var(--ink); font-weight: 600; }

.nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 600; cursor: pointer; padding: 12px 18px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); flex: 1; min-width: 140px; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.small { padding: 6px 10px; font-size: 13px; font-weight: 500; }
.btn:focus-visible, .seg button:focus-visible, .q select:focus-visible, .dots button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 28px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.dots button.on { background: var(--accent); }
.tool-note { font-size: 13px; color: var(--muted); margin: 0; }

/* Watch drawing */
.hand { transition: transform .9s cubic-bezier(.4,0,.2,1); }
.hand.is-ghost { opacity: .28; }
.hand.is-active { animation: glow 1.4s ease-in-out infinite; }
@keyframes glow { 0%,100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 5px var(--gmt)); } }
.crown { transition: transform .5s cubic-bezier(.4,0,.2,1); }
.turn-icon { opacity: 0; transition: opacity .3s; }
.turn-icon.on { opacity: 1; animation: nudge 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes nudge { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(14deg); } }
.dialtxt { font-family: var(--f-display); font-weight: 600; }
.w-black .dial { fill: var(--dial-black); }
.w-black .hfill { fill: var(--hand-light); }
.w-black .hstroke { stroke: var(--hand-light); }
.w-black .mark { fill: var(--lume); stroke: var(--hand-light); }
.w-black .dialtxt { fill: var(--hand-light); }
.w-black .tick { stroke: var(--hand-light); }
.w-white .dial { fill: var(--dial-white); }
.w-white .hfill { fill: var(--hand-dark); }
.w-white .hstroke { stroke: var(--hand-dark); }
.w-white .mark { fill: var(--hand-dark); stroke: var(--hand-dark); }
.w-white .dialtxt { fill: var(--hand-dark); }
.w-white .tick { stroke: var(--hand-dark); }

/* Reading content */
.content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 72ch; }
.content section { display: flex; flex-direction: column; gap: 10px; }
.content h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; margin: 0; text-wrap: balance; }
.content h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; margin: 8px 0 0; }
.content p, .content li { margin: 0; }
.content ul, .content ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
ol.steps { list-style: none; padding: 0; counter-reset: s; gap: 12px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
ol.steps li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-family: var(--f-display); font-weight: 700; font-size: 15px;
}
ol.steps li b { display: block; }
table.spec { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-scroll { overflow-x: auto; }
table.spec th, table.spec td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: .02em; }
details.faq { border-bottom: 1px solid var(--line); padding-block: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin-top: 8px; color: var(--ink); }

.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.model {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
}
.model b { font-weight: 600; }
.model small { color: var(--muted); font-size: 13px; }
.model:hover { border-color: var(--accent); color: var(--ink); }
.model[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); }

.site-footer { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .setup { grid-template-columns: 1fr; }
  .main { grid-template-columns: 1fr; }
  .seg { flex-direction: row; }
  .seg button { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hand, .crown { transition: none !important; }
  .hand.is-active, .turn-icon.on { animation: none; }
}
