/* ============================================================
   Guides — editorial long-form stylesheet
   Self-contained. Shares brand tokens with /cohort/styles.css.
   ============================================================ */
:root {
  --ink: #0a0a0c;
  --ink-soft: #1f1f23;
  --muted: #5e636a;
  --muted-2: #8a8f96;
  --line: rgba(10,10,12,0.10);
  --orange: #e8551a;
  --cream: #f6f1ea;
  --paper: #f4efe8;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --radius-card: 18px;
  --radius-pill: 999px;
  --measure: 68ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.6;
}
::selection { background: var(--ink); color: var(--cream); }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.g-container { width: min(720px, 92vw); margin: 0 auto; }
.g-wide { width: min(1040px, 92vw); margin: 0 auto; }

/* ---- top bar ---- */
.g-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,232,0.82);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.g-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; width: min(1040px, 92vw); margin: 0 auto;
}
.g-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }
.g-brand:hover { text-decoration: none; }
.g-brand-plus { color: var(--orange); font-size: 20px; line-height: 1; }
.g-brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.g-topcta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--cream); padding: 9px 16px;
  border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
}
.g-topcta:hover { text-decoration: none; background: var(--orange); }

/* ---- breadcrumb ---- */
.g-crumb {
  font-size: 12px; color: var(--muted-2); letter-spacing: 0.02em;
  padding: 22px 0 0;
}
.g-crumb a { color: var(--muted); }
.g-crumb span { margin: 0 7px; opacity: 0.5; }

/* ---- article header ---- */
.g-head { padding: 26px 0 30px; }
.g-kicker {
  display: inline-block; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange); font-weight: 600; margin-bottom: 16px;
}
.g-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 6vw, 58px); line-height: 1.03;
  letter-spacing: -0.01em; margin: 0 0 18px;
}
.g-title em { font-style: italic; color: var(--orange); }
.g-dek {
  font-size: clamp(17px, 2.4vw, 21px); color: var(--ink-soft);
  line-height: 1.5; max-width: 60ch; margin: 0 0 24px;
}
.g-byline {
  display: flex; align-items: center; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.g-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.g-byline strong { color: var(--ink); font-weight: 600; }
.g-byline-meta { display: flex; flex-direction: column; gap: 2px; }

/* ---- article body ---- */
.g-body { padding: 8px 0 40px; }
.g-body > * { max-width: var(--measure); }
.g-body h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1;
  letter-spacing: -0.01em; margin: 48px 0 14px;
}
.g-body h3 {
  font-size: clamp(18px, 2.4vw, 22px); font-weight: 700;
  margin: 34px 0 10px; letter-spacing: -0.01em;
}
.g-body p { font-size: 17px; color: var(--ink-soft); margin: 0 0 18px; }
.g-body ul, .g-body ol { font-size: 17px; color: var(--ink-soft); padding-left: 22px; margin: 0 0 18px; }
.g-body li { margin-bottom: 9px; }
.g-body strong { color: var(--ink); }
.g-body a { font-weight: 600; }
.g-body blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--orange);
  font-family: var(--serif); font-size: clamp(20px, 3vw, 26px);
  line-height: 1.35; color: var(--ink); font-style: italic;
}

/* ---- TL;DR / key takeaways box ---- */
.g-tldr {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 22px 24px; margin: 8px 0 30px; box-shadow: 0 18px 40px -30px rgba(15,20,35,0.25);
}
.g-tldr h2 { font-family: var(--sans); font-size: 13px !important; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 12px !important; font-weight: 700; }
.g-tldr ul { margin: 0; padding-left: 20px; }
.g-tldr li { font-size: 15.5px; }

/* ---- inline CTA card ---- */
.g-cta {
  background: linear-gradient(160deg, #141417 0%, #0a0a0c 100%);
  color: #fff; border-radius: 22px; padding: 38px 34px; margin: 44px 0;
  text-align: center; max-width: 100% !important;
  box-shadow: 0 30px 70px -34px rgba(15,20,35,0.5);
}
.g-cta-kicker { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); font-weight: 600; }
.g-cta h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 4vw, 34px);
  line-height: 1.12; margin: 12px 0 10px; color: #fff; }
.g-cta p { color: rgba(255,255,255,0.66); font-size: 15px; max-width: 46ch; margin: 0 auto 22px; }
.g-cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--orange); color: #fff; padding: 14px 26px;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 15px;
}
.g-cta-btn:hover { text-decoration: none; filter: brightness(1.08); }
.g-cta-fine { margin-top: 14px !important; font-size: 12.5px !important; color: rgba(255,255,255,0.45) !important; }

/* ---- FAQ on guide pages ---- */
.g-faq { margin: 40px 0; }
.g-faq h2 { margin-bottom: 8px; }
.g-faq details { border-bottom: 1px solid var(--line); }
.g-faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; gap: 18px; color: var(--ink);
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: '+'; color: var(--orange); font-size: 22px; line-height: 1; }
.g-faq details[open] summary::after { content: '–'; }
.g-faq .g-faq-a { padding: 0 0 20px; color: var(--muted); font-size: 16px; max-width: var(--measure); }

/* ---- related guides ---- */
.g-related { padding: 50px 0 20px; border-top: 1px solid var(--line); }
.g-related-h { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 20px; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.g-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 22px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.g-card:hover { text-decoration: none; transform: translateY(-3px);
  box-shadow: 0 22px 48px -30px rgba(15,20,35,0.35); }
.g-card-tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); font-weight: 600; }
.g-card h4 { font-size: 18px; line-height: 1.25; margin: 10px 0 8px; color: var(--ink); letter-spacing: -0.01em; }
.g-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---- footer ---- */
.g-footer { padding: 46px 0; border-top: 1px solid var(--line); margin-top: 30px;
  font-size: 13px; color: var(--muted-2); }
.g-footer a { color: var(--muted); }
.g-footer-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }

/* ============ Hub page ============ */
.g-hub-hero { padding: 56px 0 34px; text-align: center; }
.g-hub-hero .g-title { margin-left: auto; margin-right: auto; }
.g-hub-hero .g-dek { margin-left: auto; margin-right: auto; }
.g-hub-grid { padding: 10px 0 50px; }
.g-hub-grid .g-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g-hub-feature {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  overflow: hidden; padding: 0;
}
.g-hub-feature .g-feat-body { padding: 34px; }
.g-hub-feature .g-feat-side {
  background: linear-gradient(160deg, #141417, #0a0a0c); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 34px;
}
.g-hub-feature h4 { font-size: 24px; font-family: var(--serif); font-weight: 400; }
@media (max-width: 720px) {
  .g-hub-feature { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .g-topcta span.full { display: none; }
  .g-body > *, .g-body { max-width: 100%; }
}
