/* Shared styling for all /guide/ articles. One stylesheet, cached once across
   every guide page, rather than duplicating a full <style> block per file. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --border: #e4e0d8;
  --text: #1c1b18;
  --text-secondary: #4a473e;
  --muted: #6b6960;
  --hint: #9e9a90;
  --accent: #2d6a4f;
  --accent-deep: #1f4d38;
  --accent-tint: #e9f2ec;
  --foil: #93701c;
  --foil-tint: #f6efdb;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}
body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.top-nav {
  background: var(--text); display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 20px; box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.nav-brand { font-family: 'DM Serif Display', serif; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; }
.nav-cta {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .03em;
  color: var(--bg); background: var(--accent); padding: 7px 14px; border-radius: 100px; text-decoration: none;
}
.nav-cta:hover { background: var(--accent-deep); }

.page-wrap { max-width: 760px; margin: 0 auto; padding: 2.5rem 16px 4rem; }
.wide-wrap { max-width: 920px; }

.breadcrumb {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--hint);
  margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

.kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent-deep); display: inline-block; }

h1 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: clamp(28px, 5vw, 40px); line-height: 1.12; color: var(--text);
  letter-spacing: -.02em; text-wrap: balance; margin-bottom: .5rem;
}
.dek { font-size: 17px; line-height: 1.65; color: var(--text-secondary); max-width: 62ch; margin-bottom: 1.25rem; }
.meta-line {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--hint);
  margin-bottom: 2.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}

h2 {
  font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 24px;
  color: var(--text); letter-spacing: -.01em; text-wrap: balance;
  margin: 2.6rem 0 .9rem;
}
h2:first-of-type { margin-top: 0; }
h3 {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 17px;
  color: var(--text); margin: 1.6rem 0 .5rem;
}
p { font-size: 15.5px; line-height: 1.75; color: var(--text-secondary); max-width: 68ch; margin-bottom: 1rem; }
article ul, article ol { padding-left: 1.4rem; margin-bottom: 1rem; }
article li { font-size: 15.5px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 6px; max-width: 66ch; }
article li::marker { color: var(--accent); }
strong { color: var(--text); }
a { color: var(--accent-deep); }

.callout {
  background: var(--accent-tint); border: 1px solid #b7e4c7; border-radius: 8px;
  padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: 15px; color: var(--text-secondary); line-height: 1.75;
}
.callout p { margin: 0; max-width: none; }
.callout strong { color: var(--accent-deep); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 1.25rem 0 1.5rem; }
.item-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.item-card .name { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 14.5px; color: var(--text); margin-bottom: 3px; }
.item-card .price { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent-deep); margin-bottom: 6px; }
.item-card .note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.item-card .icon { font-size: 20px; margin-bottom: 6px; display: block; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--hint); font-weight: 500; background: var(--bg); }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
td strong { color: var(--accent-deep); }

.step-row { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.step-num { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px; color: var(--accent-tint); background: var(--accent); border-radius: 50%; width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.step-row p { margin: 0; }

.cta-box {
  background: var(--text); border-radius: 16px; padding: 1.75rem; margin: 2.5rem 0;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.cta-box .msg { color: #f7f5f0; font-size: 16px; max-width: 42ch; }
.cta-box .msg strong { color: #fff; }
.cta-box a.btn {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .02em; white-space: nowrap;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 500;
}
.cta-box a.btn:hover { background: var(--accent-deep); }

.related-nav {
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--border);
}
.related-nav .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--hint); margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.related-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
}
.related-card:hover { border-color: var(--accent); }
.related-card .t { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 14.5px; color: var(--text); margin-bottom: 4px; }
.related-card .d { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 1.5rem 0; }
.hub-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
}
.hub-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.hub-card .tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-tint); display: inline-block; padding: 3px 8px; border-radius: 100px; margin-bottom: 10px; }
.hub-card .t { font-family: 'DM Serif Display', serif; font-size: 19px; color: var(--text); margin-bottom: 6px; }
.hub-card .d { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.site-footer {
  text-align: center; padding: 2.5rem 1rem 1.5rem; font-size: 12px; color: var(--hint);
  font-family: 'JetBrains Mono', monospace; border-top: 1px solid var(--border); margin-top: 3.5rem;
}
.site-footer a { color: var(--muted); text-decoration: none; margin: 0 6px; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 480px) {
  .cta-box { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ── Blog hub + post list (additive; shared with /guide/) ── */
.post-list { display: flex; flex-direction: column; gap: 2px; margin: 1.5rem 0; }
.post-row {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; margin-bottom: 10px;
}
.post-row:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.post-row .cat {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-tint); display: inline-block; padding: 3px 8px; border-radius: 100px; margin-bottom: 10px;
}
.post-row .t { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--text); margin-bottom: 6px; text-wrap: balance; }
.post-row .d { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 62ch; margin-bottom: 8px; }
.post-row .meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--hint); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 .5rem; }
.tag-pill {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .04em; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); padding: 4px 11px; border-radius: 100px;
}

blockquote {
  border-left: 3px solid var(--accent); margin: 1.25rem 0; padding: .25rem 0 .25rem 1.1rem;
  font-size: 15.5px; color: var(--text-secondary); font-style: italic; max-width: 62ch;
}
