/* Yoke site. Colours come from the active Omarchy theme (themes.js sets
   --bg/--fg/--accent/--raised); everything else derives from those four. */
:root {
  --bg: #1A1B26;
  --fg: #A9B1D6;
  --accent: #7AA2F7;
  --raised: #24283B;
  --dim: color-mix(in srgb, var(--fg) 64%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 16%, var(--bg));
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--sans);
  transition: background-color .35s ease, color .35s ease;
}

a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand svg { width: 1.6rem; height: 1.6rem; }
.top nav { display: flex; gap: 1.25rem; font-size: .95rem; }
.top nav a { color: var(--dim); text-decoration: none; }
.top nav a:hover { color: var(--fg); }

/* Hero */
.hero { display: grid; gap: 3rem; padding: 2.5rem 0 4rem; align-items: center; }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.15fr .85fr; padding: 4rem 0 6rem; } }

.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: .98;
  letter-spacing: -.028em;
  word-spacing: .06em;
  font-variation-settings: "wdth" 85;
  max-width: 12ch;
}
.hero p.lede { margin: 1.5rem 0 2rem; font-size: 1.2rem; color: var(--dim); max-width: 34rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  background: var(--accent); color: var(--bg);
  font-weight: 700; text-decoration: none;
  transition: transform .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button svg { width: 1.1rem; height: 1.1rem; }
.quiet { color: var(--dim); }

/* Phone: Yoke's real home screen, in its real font. */
.stage { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.phone {
  position: relative;
  width: min(19rem, 100%);
  aspect-ratio: 9 / 18.5;
  border-radius: 2.4rem;
  padding: 2.6rem 1.8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 .5rem var(--raised), 0 2rem 4rem -1.5rem color-mix(in srgb, #000 60%, transparent);
  font-family: var(--mono);
  overflow: hidden;
  transition: background-color .35s ease, box-shadow .35s ease;
}
.phone .clock { font-size: 2.6rem; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.phone .date { margin-top: .4rem; font-size: .85rem; color: var(--dim); }
.phone ul { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 1.05rem; font-size: 1.15rem; }
.phone li { cursor: default; transition: color .2s ease; }
.phone li.held { color: var(--accent); }

.sheet {
  position: absolute; left: .6rem; right: .6rem; bottom: .6rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 1.4rem;
  background: var(--raised);
  font-size: .8rem;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.sheet.open { transform: none; }
.sheet h3 { margin: 0 0 .7rem; font-size: .85rem; font-weight: 700; }
.sheet .agent { display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.sheet .agent span:last-child { color: var(--dim); }
.sheet .agent.urgent span:last-child { color: var(--accent); }
.sheet .bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sheet .bar i { display: block; height: 100%; background: var(--accent); }

.picker { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.picker p { margin: 0; font-size: .85rem; color: var(--dim); }
#themes { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
#themes button {
  width: 2.4rem; height: 2.4rem; border-radius: .7rem;
  border: 2px solid transparent;
  background: var(--sw-bg); color: var(--sw-fg);
  box-shadow: inset 0 -5px 0 var(--sw-accent), 0 0 0 1px var(--line);
  font: 600 .8rem var(--mono); cursor: pointer;
}
#themes button[aria-pressed="true"] { border-color: var(--accent); }

/* Sections */
section.feature { display: grid; gap: 1rem 3rem; padding: 3.5rem 0; border-top: 1px solid var(--line); }
@media (min-width: 56rem) { section.feature { grid-template-columns: 16rem 1fr; } }
section.feature h2 { margin: 0; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
section.feature .body { max-width: 40rem; }
section.feature .body > p:first-child { margin-top: 0; }
section.feature p { color: var(--dim); }
section.feature strong { color: var(--fg); font-weight: 600; }

table.gestures { width: 100%; border-collapse: collapse; font-size: .98rem; margin-top: 1.25rem; }
table.gestures th, table.gestures td { text-align: left; padding: .6rem .5rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.gestures th { font-weight: 600; color: var(--fg); width: 45%; }
table.gestures td { color: var(--dim); }
table.gestures caption { caption-side: bottom; text-align: left; padding-top: .8rem; font-size: .9rem; color: var(--dim); }

.card-sample {
  margin: 1.25rem 0 0; padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--raised);
  border-radius: 0 .8rem .8rem 0;
  font: .85rem/1.6 var(--mono);
  white-space: pre; overflow-x: auto;
}

/* Closing call to action */
.closing { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.closing h2 { margin: 0 0 1.5rem; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; line-height: 1.05; max-width: 16ch; }

footer { padding: 2rem 0 3rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--dim); }
footer p { margin: .3rem 0; max-width: 46rem; }

/* Download page */
.download { padding: 2.5rem 0 4rem; max-width: 44rem; }
.download h1 { margin: 0 0 .75rem; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -.03em; line-height: 1.02; }
.download .meta { margin: 0 0 2rem; color: var(--dim); }
.download ol { padding-left: 1.4rem; margin: 2.5rem 0; display: grid; gap: 1.1rem; }
.download ol li::marker { color: var(--accent); font-weight: 700; }
.download li strong { color: var(--fg); }
.download li p { margin: .25rem 0 0; color: var(--dim); }
.note { padding: 1rem 1.2rem; border-radius: .8rem; background: var(--raised); color: var(--dim); font-size: .95rem; }
code { font-family: var(--mono); font-size: .88em; }

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

@media (max-width: 26rem) {
  #themes { gap: .35rem; }
  #themes button { width: 2.05rem; height: 2.05rem; font-size: .7rem; }
}
