/* Satoa — satoa.app — printed-almanac edition */

:root {
  --paper: #f6f1e7;
  --paper-deep: #efe8d8;
  --ink: #1c1a15;
  --ink-soft: #4a463c;
  --muted: #7a7466;
  --rule: #cfc6b2;
  --rule-dark: #1c1a15;
  --green: #1f5e2e;
  --green-bright: #30d158;
  --red: #9c3a1a;
  --serif: ui-serif, "New York", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1020px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(48, 209, 88, 0.3); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
a { color: var(--green); }
small { font-size: 0.82em; }

/* ---------- masthead ---------- */

.topbar { border-bottom: 1px solid var(--rule-dark); }
.topbar .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 22px; padding-bottom: 14px;
}
.wordmark {
  font-family: var(--serif); font-weight: 700; font-size: 30px;
  letter-spacing: -0.5px; color: var(--ink); text-decoration: none;
}
.wordmark .est {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
  margin-left: 12px;
}
nav { display: flex; gap: 24px; align-items: baseline; }
nav a {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; letter-spacing: 0.2px;
}
nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
nav a.buy {
  font-weight: 700; color: var(--paper); background: var(--ink);
  padding: 7px 15px; border-radius: 999px;
}
nav a.buy:hover { background: var(--green); text-decoration: none; }

.issue-line {
  border-bottom: 3px double var(--rule-dark);
}
.issue-line .wrap {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--muted);
  padding-top: 9px; padding-bottom: 9px;
}

/* ---------- article scaffold ---------- */

article { border-bottom: 1px solid var(--rule); padding: 64px 0 72px; }
article:last-of-type { border-bottom: none; }

.kicker {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: 2px; font-size: 12px; font-weight: 700;
  margin-bottom: 26px;
}
.kicker .n {
  font-family: var(--serif); font-style: italic; font-size: 30px;
  font-weight: 400; letter-spacing: 0; color: var(--green);
  border: 1px solid var(--rule); border-radius: 50%;
  width: 46px; height: 46px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  transform: translateY(10px);
}

h1, h2 { font-weight: 700; letter-spacing: -0.4px; line-height: 1.1; text-wrap: balance; }
article h2 { font-size: clamp(30px, 4.5vw, 44px); max-width: 640px; }
article h2 em { font-style: italic; color: var(--green); }

.dek {
  font-size: clamp(18px, 2.4vw, 21px); line-height: 1.55;
  color: var(--ink-soft); max-width: 560px; margin-top: 18px;
}
.dek em { font-style: italic; }

/* ---------- hero / first article ---------- */

.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: start; margin-top: 10px;
}
.hero-grid .cta-line { margin-top: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--green); }
.note-link {
  font-family: var(--sans); font-size: 14px; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule);
}
.note-link:hover { color: var(--ink); }

/* figures — printed plates */
figure { margin: 0; }
.plate {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px 22px 18px;
  box-shadow: 6px 6px 0 rgba(28, 26, 21, 0.08);
}
.plate.tilt { transform: rotate(1.2deg); }
.plate img {
  display: block; width: 100%; height: auto;
  border-radius: 4px; border: 1px solid var(--rule);
}
figcaption {
  margin-top: 14px;
  font-family: var(--sans); font-size: 12.5px; line-height: 1.5; color: var(--muted);
}
figcaption b { color: var(--ink-soft); font-weight: 600; }
.plate-grid { display: grid; gap: 40px; }

/* ---------- method: recipe card ---------- */

.method-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; margin-top: 8px; align-items: start; }

.recipe-card {
  background: #fbf8f0;
  border: 1px solid var(--rule-dark);
  border-radius: 6px;
  box-shadow: 6px 6px 0 rgba(28, 26, 21, 0.08);
  overflow: hidden;
}
.recipe-card .rc-head {
  padding: 16px 24px; border-bottom: 1px solid var(--rule-dark);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 1.8px;
  font-size: 11px; font-weight: 700; color: var(--ink-soft);
}
.recipe-card .rc-head span:last-child { color: var(--muted); font-weight: 500; }
.rc-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 18px 24px; border-bottom: 1px solid var(--rule);
}
.rc-row:last-of-type { border-bottom: none; }
.rc-row .pts { font-family: var(--serif); font-weight: 700; font-size: 26px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-row .pts small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.rc-row .what { color: var(--ink-soft); font-size: 15.5px; }
.rc-row .dots {
  flex: 1; border-bottom: 1.5px dotted var(--rule);
  transform: translateY(-4px); min-width: 20px;
}
.rc-total {
  padding: 16px 24px; background: var(--ink); color: var(--paper);
  display: flex; justify-content: space-between; align-items: baseline;
}
.rc-total .lbl { font-family: var(--sans); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700; }
.rc-total .val { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }

.footnotes { margin-top: 26px; }
.footnotes li {
  font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--muted);
  list-style: none; display: flex; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}
.footnotes .fn { font-style: normal; color: var(--green); font-weight: 700; flex: none; }

.method-prose p { color: var(--ink-soft); margin-top: 16px; max-width: 46ch; }
.method-prose .lede { font-size: 19px; color: var(--ink); margin-top: 20px; }
.method-prose .lede em { font-style: italic; color: var(--green); }

/* ---------- two-col prose+figure ---------- */

.coach-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; margin-top: 8px; }
.coach-grid .prose p { color: var(--ink-soft); margin-top: 16px; max-width: 48ch; }
.coach-grid .prose p:first-of-type { font-size: 19px; color: var(--ink); margin-top: 20px; }
.coach-grid .prose .say {
  margin: 26px 0; padding: 18px 22px;
  border-left: 3px solid var(--green);
  font-style: italic; font-size: 18px; color: var(--ink);
  background: rgba(31, 94, 46, 0.05);
}
.coach-grid .prose .say small { display: block; margin-top: 6px; font-style: normal; font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }

/* ---------- questions ---------- */

.qa { margin-top: 14px; max-width: 760px; }
.qa .q {
  display: flex; gap: 18px; align-items: baseline;
  padding: 22px 0 10px; border-top: 1px solid var(--rule);
}
.qa .q .qn { font-family: var(--serif); font-style: italic; color: var(--green); font-size: 20px; flex: none; width: 30px; }
.qa .q h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.2px; }
.qa .a { margin-left: 48px; max-width: 620px; color: var(--ink-soft); font-size: 16.5px; padding-bottom: 22px; }
.qa .a-n { border-top: 1px solid var(--rule); margin-bottom: 4px; }

/* ---------- closing / colophon ---------- */

.closing { text-align: center; padding: 80px 0 40px; border-bottom: none; }
.closing h2 { font-size: clamp(34px, 5vw, 52px); margin: 0 auto; max-width: 640px; }
.closing h2 em { font-style: italic; color: var(--green); }
.closing .dek { margin: 18px auto 0; }
.closing .cta-line { justify-content: center; margin-top: 32px; }

.colophon {
  border-top: 3px double var(--rule-dark);
  padding: 22px 0 46px;
}
.colophon .wrap {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 12.5px; color: var(--muted);
}
.colophon a { color: var(--ink-soft); text-decoration: none; }
.colophon a:hover { text-decoration: underline; text-underline-offset: 3px; }
.colophon .set { display: flex; gap: 20px; }

/* ---------- privacy doc ---------- */

.doc { padding: 60px 0 80px; }
.doc-inner { max-width: 680px; }
.doc h1 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 8px; }
.doc .updated {
  font-family: var(--sans); font-size: 13px; color: var(--muted);
  padding-bottom: 20px; margin-bottom: 8px;
  border-bottom: 3px double var(--rule-dark);
}
.doc h2 { font-size: 23px; margin: 36px 0 10px; }
.doc h2::before { content: "§ "; color: var(--green); font-style: italic; font-weight: 400; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16.5px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 7px 0; }
.doc li::marker { color: var(--green); }
.doc strong { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .method-grid, .coach-grid { grid-template-columns: 1fr; gap: 40px; }
  .plate.tilt { transform: none; }
  article { padding: 48px 0 56px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  nav a:not(.buy) { display: none; }
  .wordmark { font-size: 24px; }
  .wordmark .est { display: none; }
  .wrap { padding: 0 20px; }
}
