/* ZecBooks guides — Cite structure, gold brand */
:root {
  --ink: #0c0b09;
  --ink-2: #161410;
  --ink-3: #201c14;
  --text: #f7f2ea;
  --paper: #e8dfd0;
  --muted: #c9bda8;
  --gold: #f4b728;
  --gold-soft: #fdc63e;
  --gold-deep: #c8880a;
  --line: rgba(244, 183, 40, 0.28);
  --ok: #9fd4a3;
  --warn: #e3bc68;
  --bad: #e8a07a;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Sora", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0, rgba(244,183,40,.12), transparent 28rem),
    var(--ink);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
a:hover { color: var(--gold-soft); }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  background: var(--gold); color: #1a1205; padding: 10px 14px; font-weight: 750; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(12,11,9,.9);
  backdrop-filter: blur(18px);
}
.site-nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 760; }
.mark {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold-deep));
}
.mark img { width: 20px; height: 20px; border-radius: 4px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 18px; border-radius: 999px; border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  color: #1a1205 !important; text-decoration: none; font-weight: 760;
}
.button:hover { filter: brightness(1.05); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { cursor: pointer; color: var(--text); font-weight: 700; list-style: none; padding: 8px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel {
  position: absolute; right: 0; top: 46px; width: 220px; padding: 10px;
  display: grid; gap: 4px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
}
.nav-menu-panel a { padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: 7px; }
.nav-menu-panel a:hover { background: rgba(244,183,40,.09); }

main { padding-top: 68px; }
.guide-hero { padding: clamp(76px, 10vw, 128px) 0 58px; text-align: center; }
.guide-hero.article-hero { text-align: left; padding-bottom: 38px; }
.eyebrow {
  margin: 0 0 14px; color: var(--gold); font-size: 14px; font-weight: 780;
  letter-spacing: .14em; text-transform: uppercase;
}
h1, h2, h3 { color: var(--text); text-wrap: balance; }
h1 {
  margin: 0 auto 20px; max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px); font-weight: 560; line-height: 1.02;
}
.article-hero h1 { margin-left: 0; }
.lede { max-width: 690px; margin: 0 auto; color: var(--paper); font-size: clamp(18px, 2vw, 22px); line-height: 1.58; }
.article-hero .lede { margin-left: 0; }
.breadcrumb { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--muted); }
.byline { margin: 22px 0 0; color: var(--muted); font-size: 14px; }

.hub-intro {
  max-width: 760px; margin: 0 auto 38px; padding: 22px 24px;
  border-left: 3px solid var(--gold); background: rgba(244,183,40,.055); color: var(--paper);
}
.guide-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; padding-bottom: 72px;
}
.guide-card {
  min-height: 290px; padding: 26px; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(160deg, rgba(244,183,40,.07), transparent 45%), var(--ink-2);
  transition: transform .2s ease, border-color .2s ease;
}
.guide-card:hover { transform: translateY(-3px); border-color: var(--gold); color: inherit; }
.guide-card .label { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.guide-card h2 { margin: 14px 0 10px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 560; line-height: 1.15; }
.guide-card p { margin: 0; color: var(--muted); flex: 1; }
.guide-card .more { margin-top: 18px; color: var(--gold); font-weight: 700; }

.article { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 80px; }
.article h2 { margin: 42px 0 14px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 560; }
.article h3 { margin: 0 0 8px; font-size: 1.05rem; }
.article p, .article li { color: var(--muted); }
.answer-box {
  margin: 0 0 28px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(244,183,40,.07); color: var(--paper);
}
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps li {
  position: relative; padding: 18px 18px 18px 64px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); font-weight: 700; font-size: 13px;
}
.example {
  padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--ink-2);
}
.example-label { margin: 0 0 10px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mistakes ul { margin: 0; padding-left: 1.2rem; }
.pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; margin-right: 6px;
}
.pill.supported { background: rgba(159,212,163,.15); color: var(--ok); }
.pill.review { background: rgba(227,188,104,.15); color: var(--warn); }
.pill.unknown { background: rgba(232,160,122,.15); color: var(--bad); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--ink-3); color: var(--paper); }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.cta-band {
  margin: 48px 0 28px; padding: 24px;
  display: grid; gap: 16px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
}
.cta-band h2 { margin: 0; font-family: var(--font-display); font-size: 1.6rem; }
.cta-band p { margin: 0; }
.related { display: grid; gap: 10px; }
.related a { color: var(--gold); text-decoration: none; font-weight: 600; }
.related a:hover { color: var(--gold-soft); }

.site-footer {
  padding: 36px 0 56px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.92rem;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .guide-grid { grid-template-columns: 1fr; }
}
