/* Cups in a Quart — printed recipe card on a cool steel counter */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0f766e;
  --border: #dbe2ea;
  --border-soft: #eef2f7;
  --error: #b91c1c;
  --success: #15803d;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-2: 0 8px 24px rgba(15, 23, 42, .08);
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 16px;
}
h1 { font-size: 40px; }
h2 { font-size: 28px; margin-top: 0; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0 0 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: var(--bg); }
.site-nav a[aria-current="page"] { color: var(--primary); background: #eff4ff; }

/* ---------- tick divider (the one thematic detail) ---------- */
.ticks {
  height: 24px;
  width: 100%;
  display: block;
  color: var(--border);
  margin: 0;
}

/* ---------- hero ---------- */
.hero { padding: 32px 0 0; }
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero h1 { font-size: 40px; max-width: 20ch; }
.hero__lede {
  font-size: 18px;
  color: #334155;
  max-width: 62ch;
  margin-bottom: 24px;
}
.hero__answer {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: #eff4ff;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 24px;
}
.hero__answer b { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--primary); }

/* ---------- sections ---------- */
.section { padding: 48px 0 0; }
.section--last { padding-bottom: 64px; }
.section__head { margin-bottom: 24px; }
.section__head p { color: var(--muted); max-width: 66ch; margin: 0; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose table { margin-bottom: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #eff4ff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { margin: 0; color: #334155; font-size: 16px; }

/* ---------- tables ---------- */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}
table.data caption {
  caption-side: top;
  text-align: left;
  padding: 16px 24px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
}
table.data th,
table.data td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
table.data th:first-child,
table.data td:first-child { text-align: left; }
table.data thead th {
  position: sticky;
  top: 0;
  background: #f2f6fb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #334155;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
table.data tbody tr:nth-child(even) td { background: #fafcff; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 600; }

/* ---------- two-column note panel ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.duo .card h3 { margin-bottom: 8px; }
.duo .card p:last-child { margin-bottom: 0; }
.duo .card--accent { border-color: #cce7e2; background: #f7fdfc; }

/* ---------- worked examples ---------- */
.examples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.examples li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 24px;
}
.examples strong { font-variant-numeric: tabular-nums; }
.examples p { margin: 0; font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 70ch; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { margin-bottom: 12px; }
.faq p { margin: 0; color: #334155; }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 64px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.site-foot p { margin: 0; color: var(--muted); font-size: 14px; max-width: 46ch; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-foot__links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.site-foot__links a:hover { color: var(--primary); }

/* ---------- legal / simple pages ---------- */
.page-head { padding: 32px 0 0; }
.page-head h1 { font-size: 36px; margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 66ch; margin: 0; }
.legal { font-size: 16px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal ul { padding-left: 24px; }

/* ---------- utility ---------- */
.lede { font-size: 18px; color: #334155; }
.muted { color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg); color: var(--text); border-color: var(--text); }
.btn:focus-visible, .site-nav a:focus-visible, .site-foot__links a:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.inline-links { margin: 0; padding-left: 24px; }
.inline-links li { margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .duo { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  h1, .hero h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .page-head h1 { font-size: 28px; }
  .section { padding-top: 32px; }
  .hero { padding-top: 24px; }
  .hero__lede { font-size: 17px; }
  .site-head__inner { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { gap: 0; margin-left: -12px; }
  .site-nav a { padding: 8px 10px; font-size: 14px; }
  .card, .steps li { padding: 16px; }
  table.data { font-size: 15px; }
  table.data th, table.data td { padding: 10px 12px; }
  table.data caption { padding: 12px 16px; }
  .site-foot__inner { flex-direction: column; }
}
