:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --fg: #16161a;
  --muted: #5f6368;
  --accent: #eaec2a;
  --accent-ink: #16161a;
  --border: rgba(0, 0, 0, 0.1);
  --maxw: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101012;
    --surface: #17171a;
    --fg: #f2f2f0;
    --muted: #9a9a9f;
    --border: rgba(255, 255, 255, 0.12);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: inherit; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 0.5rem 0;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 5px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--fg); }

.site-nav a[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

/* ---------- Layout ---------- */

main { flex: 1; }

section { padding: 4rem 0; }

section + section { border-top: 1px solid var(--border); }

.hero { padding: 5.5rem 0 4.5rem; }

h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 680;
  margin: 0 0 1.25rem;
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 660;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 640;
  margin: 0 0 0.6rem;
}

p { margin: 0 0 1.15rem; max-width: 68ch; }

p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 3px;
  background: var(--accent);
  vertical-align: 0.22em;
  margin-right: 0.6rem;
}

/* ---------- Grid & cards ---------- */

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
}

.card p { font-size: 0.97rem; color: var(--muted); }

.card-feature {
  border-top: 3px solid var(--accent);
}

/* ---------- Links & buttons ---------- */

.ink-link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}

.ink-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: 3px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 640;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: transform 0.12s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-secondary { background: var(--surface); }

.btn-secondary:hover { border-color: var(--fg); }

/* ---------- Content lists ---------- */

.stack { display: grid; gap: 2.25rem; }

.check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 62ch;
}

.check li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--muted);
}

.check li strong { color: var(--fg); font-weight: 640; }

.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--accent);
}

.prose h2 { margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { max-width: 68ch; padding-left: 1.25rem; color: var(--muted); }
.prose li { margin-bottom: 0.5rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--fg); }

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
  margin-bottom: 2.5rem;
}

/* ---------- Definition rows ---------- */

.rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
  max-width: 52rem;
}

.row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.row dt {
  font-size: 0.8rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.row dd { margin: 0; }

@media (max-width: 40rem) {
  .row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.footer-col address { font-style: normal; line-height: 1.65; }

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
