:root {
  --bg: #D4BC86;
  --fg: #2B2B2E;
  --soft: rgba(43, 43, 46, 0.64);
  --faint: rgba(43, 43, 46, 0.16);
  --light: #F4EEE1;
  --error: #8A2B1F;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-inline: clamp(20px, 4vw, 48px);
  padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* nav */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 22px; font-size: 13px;
}
.wordmark { font-weight: 600; font-size: 15px; letter-spacing: 0.22em; text-decoration: none; }
.nav .you { color: var(--soft); font-variant-numeric: tabular-nums; }

main { flex: 1; }

/* hero */
.hero {
  display: grid; justify-items: center; text-align: center; gap: 18px;
  padding-top: clamp(48px, 9vh, 110px);
}
.tagline {
  margin: 0;
  font-weight: 700;
  font-size: clamp(52px, 9vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.sub {
  margin: 0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--soft);
  max-width: 34ch;
  text-wrap: balance;
}

.signup { margin-top: 12px; width: min(420px, 100%); display: grid; gap: 10px; }
.field {
  display: flex; align-items: center;
  background: var(--light); border-radius: 999px;
  padding: 5px 5px 5px 22px;
  transition: box-shadow 0.2s;
}
.field:focus-within { box-shadow: 0 0 0 2px var(--fg); }
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg);
  font: 400 17px/1 var(--font); padding: 12px 0; outline: none;
}
.field input::placeholder { color: rgba(43, 43, 46, 0.48); }
.field button {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--fg); color: var(--light); font-size: 19px; cursor: pointer;
  display: grid; place-items: center; transition: transform 0.15s, opacity 0.15s;
}
.field button:hover { transform: translateX(2px); }
.field button[disabled] { opacity: 0.5; cursor: default; transform: none; }
.msg { min-height: 1.4em; margin: 0; font-size: 14px; color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* radar + clocks */
.dialrow {
  display: grid; grid-template-columns: 1fr minmax(0, 360px) 1fr;
  align-items: center; gap: clamp(12px, 3vw, 40px);
  max-width: 980px; margin: clamp(32px, 6vh, 64px) auto 0;
}
.dial { width: 100%; max-width: 360px; aspect-ratio: 1; justify-self: center; }
.dial canvas { width: 100%; height: 100%; display: block; }
.clock { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.clock.left { text-align: right; }
.clock .name, .clock .status { font-size: 13px; color: var(--soft); }
.clock .time { font-weight: 500; font-size: clamp(24px, 3vw, 36px); line-height: 1.05; letter-spacing: -0.02em; }
.clock .time small { font-size: 0.42em; color: var(--soft); margin-left: 3px; margin-right: 6px; letter-spacing: 0; }

/* welcome */
.welcome {
  display: grid; justify-items: center; text-align: center; gap: 18px;
  max-width: 560px; margin: 0 auto; padding-top: clamp(56px, 11vh, 120px);
}
.check {
  width: 52px; height: 52px; border-radius: 50%; background: var(--fg); color: var(--bg);
  display: grid; place-items: center; font-size: 24px;
}
.welcome h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.welcome .lead { margin: 0; font-size: clamp(17px, 1.7vw, 20px); color: var(--soft); }
.next { width: 100%; margin-top: 10px; text-align: left; border-top: 1px solid var(--faint); }
.next div { padding-block: 13px; border-bottom: 1px solid var(--faint); display: grid; gap: 2px; }
.next b { font-weight: 600; }
.next span { color: var(--soft); font-size: 15px; }
.contact { margin: 6px 0 0; font-size: 15px; }
.contact a { font-weight: 600; }

/* text pages */
.doc { max-width: 660px; margin: 0 auto; padding-block: clamp(32px, 6vh, 72px); }
.doc h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 12px; }
.doc h2 { font-size: 19px; margin: 32px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: rgba(43, 43, 46, 0.82); }
.doc ul { padding-left: 20px; }
.doc .updated { color: var(--soft); font-size: 14px; }

/* footer */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px;
  padding-block: 28px 24px; font-size: 13px; color: var(--soft);
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .dialrow { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .dial { grid-column: 1 / -1; grid-row: 1; max-width: 260px; }
  .clock.left { text-align: left; }
  .clock.right { text-align: right; }
  .nav .you { display: none; }
}

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