:root {
  --paper: #EFEDE7;
  --surface: #F7F6F2;
  --ink: #16191A;
  --muted: #545A58;
  --rule: #D6D3CA;
  --accent: #0E4F47;
  --accent-soft: #DCE8E4;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121514;
    --surface: #1A1E1C;
    --ink: #ECEAE4;
    --muted: #A3A8A4;
    --rule: #2C3230;
    --accent: #5FB3A6;
    --accent-soft: #1C3330;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 960px; margin: 0 auto; padding-inline: 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.wordmark {
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
nav { display: flex; gap: 20px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0; }

/* Sections */
.section { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--rule); }
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.section > p { max-width: 64ch; }
.section-intro { color: var(--muted); margin: 0 0 28px; }

/* Product cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.card p { margin: 0 0 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h3 { font-size: 20px; margin: 0; }
.tagline { color: var(--accent); font-weight: 600; margin: 4px 0 12px !important; }
.badge {
  font-size: 12px;
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--muted);
}
.badge-live { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.plain-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 24px; flex-wrap: wrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer p { margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .lede { font-size: 17px; }
  nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
