/* ============================================================================
   s—work — shared design system
   ONE source of truth for palette, type, header, footer, and buttons. Every page
   links this first, then adds only its own page-specific styles.
   Fonts: Akzidenz-Grotesk Next Pro (Typekit) display · Inter body · Roboto Mono labels.
   Buttons follow the APP style guide: green = primary action, rounded, sentence-case,
   semibold. Brand RED is the logo lockup + accents only — never a UI control.
   ========================================================================== */

:root {
  --red: #E8001C;         /* brand lockup + accents only */
  --red-dark: #C4001A;
  --green: #15803D;       /* primary action (matches app --primary) */
  --green-dark: #126A33;
  --blush: #DCAFC8;
  --white: #FFFFFF;
  --ink: #09090B;
  --mid: #71717A;
  --faint: #A1A1AA;
  --rule: #E4E4E7;
  --off: #F4F4F5;

  --maxw: 1100px;         /* shared page width — every page's content + header align to this */
  --gutter: 60px;

  --disp: "akzidenz-grotesk-next-pro", "Helvetica Neue", Arial, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
}

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

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER — identical on every page, aligned to the shared page width ──── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px max(24px, calc((100% - var(--maxw)) / 2 + var(--gutter)));
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.site-nav .logo { display: inline-flex; }
.site-nav .logo img { height: 30px; width: auto; display: block; }
.site-nav-right { display: flex; align-items: center; gap: 22px; }
.site-nav-link {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}
.site-nav-link:hover { text-decoration: underline; }
.site-nav-domain {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}
.site-nav-cta {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  background: var(--red);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 9px;
  white-space: nowrap;
  transition: filter .18s;
}
.site-nav-cta:hover { filter: brightness(0.94); }

/* ── FOOTER — identical on every page ──────────────────────────────────── */
.site-footer {
  padding: 32px max(24px, calc((100% - var(--maxw)) / 2 + var(--gutter)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  background: var(--white);
}
.site-footer .footer-logo { display: inline-flex; }
.site-footer .footer-logo img { height: 24px; width: auto; display: block; }
.site-footer .footer-note {
  font-family: var(--body);
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.06em;
}
.site-footer .footer-note a { color: inherit; text-decoration: none; }
.site-footer .footer-note a:hover { text-decoration: underline; }

/* ── BUTTONS — rounded, sentence-case, semibold (the app's button SHAPE).
   On the SITE, primary = brand RED — a deliberate exception: the app reserves
   red for the lockup, the marketing site leans into it. Ghost = secondary. ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.15;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: filter .18s, background .18s, color .18s, border-color .18s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { filter: brightness(0.94); }
/* app colour law (adopted with the side-nav chrome): green = primary action;
   red is the lockup + passive accents only, never a control */
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(0.94); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--off); border-color: var(--faint); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { filter: brightness(1.8); }

/* ── Shared responsive + motion ────────────────────────────────────────── */
@media (max-width: 760px) {
  .site-nav { padding: 16px 18px; }
  .site-nav-domain { display: none; }
  .site-nav-right { gap: 15px; }
  .site-footer { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
