/* zipz.dev — page styles. Brand values come from tokens.css; nothing is
   hard-coded here that tokens.css already defines. */

/* ── theme ────────────────────────────────────────────────────────────────
   Light is the base. Dark only redefines the tokens that change, so a value
   is never defined solely inside a media query. */
:root {
  --bg:        var(--zipz-paper);
  --surface:   var(--zipz-surface);
  --text:      var(--zipz-ink);
  --text-soft: var(--zipz-muted);
  --line:      var(--zipz-line);
  --logo-word: var(--zipz-ink);
  --logo-arc:  var(--zipz-accent);
  --rule-accent: var(--zipz-accent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        var(--zipz-surface-dark);
    --surface:   #161B22;
    --text:      var(--zipz-paper);
    --text-soft: #9AA3B0;          /* muted is only 3.57:1 on ink — brand README */
    --line:      #242B35;
    --logo-word: var(--zipz-paper);
    --logo-arc:  var(--zipz-accent-on-dark);
    --rule-accent: var(--zipz-accent-on-dark);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--zipz-font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ── logo ─────────────────────────────────────────────────────────────────
   The lockup is inlined so each group can take its own colour and follow the
   theme. Word group and arc group inherit from `color` via currentColor. */
.zipz-logo { display: block; width: auto; }
.zipz-logo svg { height: 100%; width: auto; display: block; }
.zl-word { color: var(--logo-word); }
.zl-arc  { color: var(--logo-arc); }

/* ── header ───────────────────────────────────────────────────────────────
   Clear space is half the logo height on all four sides — brand rule. */
.site-header { padding: 2rem 0; }
.site-header .zipz-logo { height: 34px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 4.5rem 0 5rem; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 600;
  max-width: 20ch;
}

.hero .lede {
  margin: 1.75rem 0 0;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 2.1vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-soft);
}

/* The pronunciation line. Accent at this size is fine — it is well over the
   24px floor the brand sets for accent-on-paper (3.12:1). */
.saying {
  display: inline-block;
  margin: 0 0 1.5rem;
  font-family: var(--zipz-font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.saying b { color: var(--text); font-weight: 600; }

.rule {
  width: 64px;
  height: 4px;
  margin: 2.5rem 0 0;
  background: var(--rule-accent);
  border: 0;
}

/* ── capabilities ─────────────────────────────────────────────────────── */
.work {
  padding: 1rem 0 5.5rem;
}

.work h2 {
  margin: 0 0 2.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.008em;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9688rem;
  line-height: 1.62;
}

/* ── close ────────────────────────────────────────────────────────────── */
.close {
  border-top: 1px solid var(--line);
  padding: 4rem 0 5rem;
}
.close p {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(1.125rem, 2.4vw, 1.4375rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
}

/* ── footer ───────────────────────────────────────────────────────────────
   Always the ink field in both themes, so the reversed lockup is always
   correct on it. */
.site-footer {
  background: var(--zipz-ink);
  color: var(--zipz-paper);
  padding: 3rem 0;
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer .zipz-logo { height: 30px; }
.site-footer small {
  color: #9AA3B0;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
