/* ============================================================
   HoleRecord — Clubhouse (blog) styles
   Design tokens mirror the homepage (colors.ts / onboarding).
   ============================================================ */
:root {
  --bg:#162016; --bg-grad:linear-gradient(180deg,#1B2A1B 0%,#162016 100%);
  --surface:#0E1A0E; --surface-alt:#1A2E1A; --card:#37474F; --card-border:rgba(255,255,255,0.06);
  --green:#1B3A1B; --green-mid:#5A7A5A; --gold:#C4943A; --gold-light:rgba(196,148,58,0.15); --gold-glow:rgba(196,148,58,0.25);
  --text:#F0EBE0; --text-mid:rgba(240,235,224,0.7); --text-light:rgba(240,235,224,0.5); --text-faint:rgba(240,235,224,0.25);
  --border:rgba(90,122,90,0.3); --border-light:rgba(90,122,90,0.2);
  --radius:14px; --radius-sm:8px; --radius-pill:20px;
}
[data-theme="light"] {
  --bg:#FAF8F3; --bg-grad:linear-gradient(180deg,#FAF8F3 0%,#F4F1EB 100%);
  --surface:#FFFFFF; --surface-alt:#F4F1EB; --card:#FFFFFF; --card-border:#E0DCD4;
  --green-mid:#2E5E2E; --gold:#B8862D; --gold-light:rgba(184,134,45,0.12); --gold-glow:rgba(184,134,45,0.30);
  --text:#1A1A1A; --text-mid:#4A4A4A; --text-light:#7A7A7A; --text-faint:#B0ADA6;
  --border:#E0DCD4; --border-light:#EBE8E2;
}
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body { font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif; background:var(--bg); color:var(--text); line-height:1.6; transition:background .35s ease,color .35s ease; }
a { color:var(--gold); text-decoration:none; }
a:hover { text-decoration:underline; }
img { max-width:100%; height:auto; }
.container { max-width:1080px; margin:0 auto; padding:0 24px; }

/* NAV (mirrors homepage) */
.nav { position:fixed; top:0; left:0; right:0; z-index:100; background:rgba(22,32,22,0.85); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom:1px solid var(--border-light); transition:background .35s ease; }
[data-theme="light"] .nav { background:rgba(250,248,243,0.88); }
.nav-inner { max-width:1080px; margin:0 auto; padding:0 24px; height:64px; display:flex; align-items:center; justify-content:space-between; }
.nav-logo { display:flex; align-items:center; text-decoration:none; }
.nav-logo:hover { text-decoration:none; }
.nav-icon { height:36px; width:auto; }
.nav-right { display:flex; align-items:center; gap:20px; }
.nav-links { display:flex; gap:24px; list-style:none; }
.nav-links a { font-size:14px; font-weight:500; color:var(--text-mid); transition:color .2s; }
.nav-links a:hover { color:var(--gold); text-decoration:none; }
.theme-toggle { width:40px; height:40px; border-radius:10px; background:var(--gold-light); border:1px solid rgba(196,148,58,0.3); cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background .2s,border-color .2s,transform .15s; }
.theme-toggle:hover { background:var(--gold-glow); border-color:var(--gold); transform:scale(1.05); }
.theme-toggle svg { width:20px; height:20px; stroke:var(--gold); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
[data-theme="dark"] .theme-toggle .icon-sun { display:block; }
[data-theme="dark"] .theme-toggle .icon-moon { display:none; }
[data-theme="light"] .theme-toggle .icon-sun { display:none; }
[data-theme="light"] .theme-toggle .icon-moon { display:block; }
.nav-hamburger { display:none; background:none; border:none; cursor:pointer; padding:4px; }
.nav-hamburger span { display:block; width:22px; height:2px; background:var(--text-mid); margin:5px 0; border-radius:1px; transition:all .3s; }
@media (max-width:640px){ .nav-links{display:none;} .nav-hamburger{display:block;} .nav-links.open{display:flex; flex-direction:column; position:absolute; top:64px; left:0; right:0; background:var(--surface); border-bottom:1px solid var(--border); padding:16px 24px; gap:16px;} }

.section-label { display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; color:var(--gold); margin-bottom:12px; }
.section-subtitle { font-size:17px; color:var(--text-mid); max-width:620px; line-height:1.6; }
.section-subtitle.centered { margin:0 auto; }

/* CLUBHOUSE HERO */
.clubhouse-hero { background:var(--bg-grad); border-bottom:1px solid var(--border-light); padding:120px 24px 56px; text-align:center; position:relative; overflow:hidden; }
.clubhouse-hero::before { content:''; position:absolute; top:-80px; left:50%; transform:translateX(-50%); width:520px; height:520px; background:radial-gradient(circle,var(--gold-glow) 0%,transparent 70%); opacity:.25; pointer-events:none; }
.clubhouse-hero .container { position:relative; z-index:1; }
.clubhouse-hero h1 { font-size:clamp(30px,5vw,44px); font-weight:800; letter-spacing:-0.5px; line-height:1.12; color:var(--text); margin-bottom:14px; }
.clubhouse-icon-wrap { width:72px; height:72px; border-radius:50%; background:var(--gold-light); border:2px solid var(--gold-glow); display:flex; align-items:center; justify-content:center; margin:0 auto 22px; }
.clubhouse-icon-wrap svg { width:32px; height:32px; }

/* POST GRID (index) */
main { padding:56px 24px 80px; }
.post-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:720px){ .post-grid{ grid-template-columns:1fr; } }
.post-card { display:flex; flex-direction:column; background:var(--card); border:1px solid var(--card-border); border-radius:var(--radius); padding:26px 24px; text-decoration:none; transition:transform .2s,box-shadow .2s,border-color .2s; }
.post-card:hover { transform:translateY(-3px); box-shadow:0 10px 34px rgba(0,0,0,0.18); border-color:var(--gold-glow); text-decoration:none; }
.post-card-cat { display:inline-block; align-self:flex-start; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:var(--gold); background:var(--gold-light); border:1px solid var(--gold-glow); border-radius:var(--radius-pill); padding:3px 10px; margin-bottom:14px; }
.post-card h3 { font-size:20px; font-weight:800; line-height:1.25; letter-spacing:-0.3px; color:var(--text); margin-bottom:8px; }
.post-card-meta { font-size:12px; color:var(--text-faint); font-weight:600; margin-bottom:12px; }
.post-card-excerpt { font-size:14.5px; color:var(--text-mid); line-height:1.6; flex:1; }
.post-card-more { margin-top:16px; font-size:13px; font-weight:700; color:var(--gold); }

/* POST ARTICLE */
.post-main { padding:104px 24px 72px; }
.post-container { max-width:720px; }
.post-back { display:inline-block; font-size:13px; font-weight:600; color:var(--text-light); margin-bottom:28px; }
.post-back:hover { color:var(--gold); text-decoration:none; }
.post-header { margin-bottom:32px; padding-bottom:24px; border-bottom:1px solid var(--border-light); }
.post-header .post-cat { display:inline-block; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:var(--gold); background:var(--gold-light); border:1px solid var(--gold-glow); border-radius:var(--radius-pill); padding:3px 10px; margin-bottom:16px; }
.post-header h1 { font-size:clamp(28px,4.5vw,40px); font-weight:800; letter-spacing:-0.6px; line-height:1.14; color:var(--text); margin-bottom:14px; }
.post-meta { font-size:13px; color:var(--text-faint); font-weight:600; }
.post-article { font-size:17px; color:var(--text-mid); line-height:1.75; }
.post-article h2 { font-size:24px; font-weight:800; letter-spacing:-0.3px; color:var(--text); margin:38px 0 14px; line-height:1.2; }
.post-article h3 { font-size:19px; font-weight:700; color:var(--text); margin:28px 0 10px; }
.post-article p { margin:0 0 18px; }
.post-article strong { color:var(--text); font-weight:700; }
.post-article em { color:var(--text); font-style:italic; }
.post-article a { color:var(--gold); text-decoration:underline; text-underline-offset:2px; }
.post-article ul, .post-article ol { margin:0 0 20px 22px; }
.post-article li { margin-bottom:8px; }
.post-article blockquote { margin:22px 0; padding:12px 20px; border-left:3px solid var(--gold); background:var(--surface-alt); border-radius:0 var(--radius-sm) var(--radius-sm) 0; color:var(--text-mid); font-style:italic; }
.post-article code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:0.88em; background:var(--surface-alt); border:1px solid var(--border-light); border-radius:5px; padding:1px 6px; color:var(--text); }
.post-article pre { background:var(--surface); border:1px solid var(--border-light); border-radius:var(--radius-sm); padding:16px; overflow-x:auto; margin:0 0 20px; }
.post-article pre code { background:none; border:none; padding:0; }
.post-article hr { border:none; border-top:1px solid var(--border-light); margin:34px 0; }
.post-article img { border-radius:var(--radius); border:1px solid var(--card-border); margin:20px 0; }
.post-article table { width:100%; border-collapse:collapse; margin:0 0 22px; font-size:15px; overflow:hidden; }
.post-article th, .post-article td { border:1px solid var(--border-light); padding:9px 12px; text-align:left; }
.post-article th { background:var(--surface-alt); color:var(--text); font-weight:700; }
.post-article table code { white-space:nowrap; }

/* NEWSLETTER CTA */
.ch-cta { margin-top:56px; background:var(--card); border:1px solid var(--card-border); border-left:4px solid var(--gold); border-radius:var(--radius); padding:28px 32px; text-align:center; }
.ch-cta h3 { font-size:20px; font-weight:800; color:var(--text); margin-bottom:8px; }
.ch-cta p { font-size:15px; color:var(--text-mid); margin-bottom:18px; }
.ch-cta a.btn { display:inline-block; padding:13px 26px; border-radius:var(--radius); background:var(--gold); color:#fff; font-size:15px; font-weight:600; transition:transform .15s,box-shadow .2s; }
.ch-cta a.btn:hover { transform:translateY(-1px); box-shadow:0 6px 24px var(--gold-glow); text-decoration:none; }

/* FOOTER (mirrors homepage) */
.footer { background:var(--surface); border-top:1px solid var(--border-light); padding:40px 24px; }
.footer-inner { max-width:1080px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.footer-brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.footer-brand:hover { text-decoration:none; }
.footer-brand img { height:28px; width:auto; }
.footer-brand span { font-size:15px; font-weight:600; color:var(--gold); }
.footer-links { display:flex; gap:24px; list-style:none; }
.footer-links a { font-size:13px; color:var(--text-light); transition:color .2s; }
.footer-links a:hover { color:var(--gold); text-decoration:none; }
.footer-copy { width:100%; text-align:center; margin-top:20px; padding-top:20px; border-top:1px solid var(--border-light); font-size:12px; color:var(--text-faint); }
.footer-tagline { font-style:italic; color:var(--text-light); font-size:13px; }
@media (max-width:640px){ .footer-inner{ flex-direction:column; text-align:center; } .footer-links{ flex-wrap:wrap; justify-content:center; } }
