/* Mockup page for the Garmin tide app. Dark page so the round watch screens are
   judged the way they look on the wrist, not against white paper. */

:root {
  --page: #0b0f14;
  --panel: #131a22;
  --edge: #223040;
  --ink: #e8eef4;
  --ink-dim: #93a2ad;
  --accent: #38bdf8;
  --warn: #ffb020;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 1.5rem 4rem;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

/* Wide enough that three 416 px watches fit side by side without being scaled
   down — the whole point is to judge them at the size they will really be. */
.topbar, .block, .control, .foot {
  max-width: 1500px;
  margin: 0 auto;
}

.topbar { padding: 3rem 0 1rem; }

h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -.02em;
}

h2 {
  margin: 3.5rem 0 .5rem;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--accent);
}

h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
}

p { margin: 0 0 .8rem; max-width: 62ch; }

.lede { color: var(--ink-dim); font-size: 1.05rem; max-width: 70ch; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .9em;
  background: #1b242e;
  padding: .1em .35em;
  border-radius: 4px;
}

/* --- time scrubber -------------------------------------------------------- */

.control {
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .4rem 1rem;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 5;
}

.control label { color: var(--ink-dim); font-size: .9rem; white-space: nowrap; }

.control input[type=range] { width: 100%; accent-color: var(--accent); }

.control select {
  width: 100%;
  padding: .35rem .5rem;
  background: #1b242e;
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: 6px;
  font: inherit;
  font-size: .95rem;
}

.control output {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  min-width: 4.5ch;
  text-align: right;
}

.control .hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .85rem;
  color: var(--ink-dim);
  max-width: 80ch;
}

/* --- watch gallery -------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(462px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-tight { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }

.card {
  margin: 0;
  padding: 1.3rem;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card p { font-size: .92rem; color: var(--ink-dim); margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .tradeoff { color: #7f8f9c; }

/* The round screen. Black bezel ring so the circle reads as a watch and not as
   a hole in the page. */
.watch {
  width: 416px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 8px #1c242c, 0 0 0 10px #2c3843, 0 14px 34px rgba(0, 0, 0, .6);
  overflow: hidden;
}

.watch svg { display: block; width: 100%; height: 100%; }

.badge {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--accent);
  color: #04121c;
  padding: .15em .5em;
  border-radius: 999px;
  vertical-align: middle;
  font-weight: 700;
}

/* --- footer --------------------------------------------------------------- */

.foot { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--edge); }
.foot ul { max-width: 68ch; padding-left: 1.2rem; color: var(--ink-dim); }
.foot li { margin-bottom: .6rem; }
.foot strong { color: var(--ink); }
.fineprint { font-size: .85rem; color: #6d7c88; margin-top: 1.5rem; }

@media (max-width: 640px) {
  body { padding: 0 1rem 3rem; }
  .control { grid-template-columns: 1fr; position: static; }
  .control output { text-align: left; }
}
