/* ============================================================
   Etherwave Chronicle — Stories theme for shah.travel/stories
   Tokens & chrome mirrored from the shah.travel landing page.
   ============================================================ */

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

:root {
  --gold:      #b8963e;
  --gold-l:    #d4af6a;
  --bg:        #0a0806;
  --bg-2:      #050302;
  --glass-bg:  rgba(255,255,255,.08);
  --glass-bg2: rgba(255,255,255,.14);
  --glass-bdr: rgba(255,255,255,.14);
  --ink:       #fff;
  --ink-70:    rgba(255,255,255,.7);
  --ink-58:    rgba(255,255,255,.58);
  --ink-45:    rgba(255,255,255,.45);
  --ink-28:    rgba(255,255,255,.28);
  --font-display: 'Medula One', Georgia, serif;
  --font-body:    'Mulish', -apple-system, sans-serif;
  --content-w: 720px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── Nav ─────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 200; display: flex; align-items: center; padding: 0 40px; height: 58px; gap: 16px; background: rgba(0,0,0,.52); backdrop-filter: blur(28px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-wordmark { font-family: var(--font-display); font-size: 22px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.nav-parent { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-28); border: 1px solid rgba(255,255,255,.12); padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-45); text-decoration: none; padding: 5px 12px; border-radius: 6px; transition: color .18s, background .18s; }
.nav-link:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.07); }
.nav-link-active { color: var(--gold-l); }
.nav-link-cta { background: var(--gold); color: #fff !important; box-shadow: 0 2px 12px rgba(184,150,62,.35); }
.nav-link-cta:hover { background: var(--gold-l) !important; transform: translateY(-1px); }
.cta-short { display: none; }

.site-main { position: relative; z-index: 2; }

/* ── Stories masthead ────────────────────────────────── */
.stories-hero { position: relative; padding: 96px 40px 72px; text-align: center; overflow: hidden; background: linear-gradient(180deg, rgba(10,8,6,.55), rgba(10,8,6,.92)), url('/wallpapers/NatGeo11.jpg') center/cover no-repeat; }
.stories-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-platform { font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-28); margin-bottom: 16px; }
.stories-hero-title { font-family: var(--font-display); font-size: clamp(56px, 9vw, 110px); font-weight: 400; line-height: .95; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.stories-hero-manifesto { font-size: clamp(15px, 2vw, 20px); font-weight: 300; font-style: italic; color: var(--ink-70); margin-bottom: 12px; }
.stories-hero-sub { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--ink-58); max-width: 520px; margin: 0 auto 28px; }
.column-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.column-chip { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-70); text-decoration: none; padding: 8px 18px; border-radius: 22px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); backdrop-filter: blur(12px); transition: all .2s; }
.column-chip:hover { color: #fff; border-color: rgba(184,150,62,.4); background: rgba(184,150,62,.1); transform: translateY(-1px); }

/* ── Layout primitives ───────────────────────────────── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); margin: 0 40px; }
.section { padding: 72px 40px; max-width: 1200px; margin: 0 auto; }

/* ── Cards (mirrors shah.travel) ─────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--glass-bg); backdrop-filter: blur(32px) saturate(1.4); border: 1px solid var(--glass-bdr); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .32s cubic-bezier(.25,.46,.45,.94), box-shadow .32s, background .25s, border-color .25s; box-shadow: 0 8px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px) scale(1.01); background: var(--glass-bg2); border-color: rgba(255,255,255,.28); box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.card-thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; background: rgba(255,255,255,.04); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.25,.46,.45,.94), filter .4s; filter: saturate(.85) brightness(.85); }
.card:hover .card-thumb img { transform: scale(1.06); filter: saturate(1.05) brightness(.95); }
.card-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(10,8,6,.55) 100%); }
.card-tag { position: absolute; bottom: 14px; left: 16px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-l); background: rgba(10,8,6,.45); backdrop-filter: blur(8px); padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(184,150,62,.3); z-index: 1; }
.card-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.card-product { font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-28); margin-bottom: 4px; }
.card-title { font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: #fff; line-height: 1.05; margin-bottom: 8px; }
.card-desc { font-size: 14px; font-weight: 300; line-height: 1.75; color: var(--ink-58); margin-bottom: 20px; flex: 1; }
.card-action { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-l); transition: gap .18s; }
.card:hover .card-action { gap: 10px; }
.card-action svg { width: 13px; height: 13px; }

/* ── Pagination ──────────────────────────────────────── */
.pagination-row { display: flex; justify-content: space-between; gap: 12px; max-width: 1200px; margin: 8px auto 0; padding: 24px 0 0; }
.page-btn { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-70); text-decoration: none; padding: 10px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; transition: all .2s; }
.page-btn:hover { color: #fff; border-color: rgba(184,150,62,.4); background: rgba(184,150,62,.08); }

/* ── Archive (column / dimension landing) ────────────── */
.archive-hero { padding: 88px 40px 56px; text-align: center; }
.archive-hero-inner { max-width: 720px; margin: 0 auto; }
.archive-title { font-family: var(--font-display); font-size: clamp(44px, 6vw, 76px); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; line-height: 1; margin-bottom: 16px; }
.archive-desc { font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--ink-70); max-width: 560px; margin: 0 auto; }

/* ── Article ─────────────────────────────────────────── */
.post { max-width: var(--content-w); margin: 0 auto; padding: 72px 24px 0; }
.post-head { margin-bottom: 36px; }
.chronicle-kicker { font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 14px; }
.post-eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-45); text-decoration: none; margin-bottom: 16px; transition: color .18s; }
.post-eyebrow:hover { color: var(--gold-l); }
.post-title { font-family: var(--font-display); font-size: clamp(40px, 6vw, 68px); font-weight: 400; letter-spacing: .04em; line-height: 1.02; text-transform: uppercase; margin-bottom: 20px; }
.post-dek { font-size: 20px; font-weight: 300; font-style: italic; line-height: 1.6; color: var(--ink-70); margin-bottom: 24px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-45); }
.post-meta .dot { color: var(--ink-28); }
.post-author { color: var(--ink-70); }

.post-hero { margin: 0 0 44px; }
.post-hero-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(184,150,62,.35); }
.post-hero-frame img { width: 100%; display: block; }
.post-hero-tag { position: absolute; bottom: 12px; left: 14px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-l); background: rgba(10,8,6,.5); border: 1px solid rgba(184,150,62,.3); padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(6px); }
.post-hero figcaption { font-size: 12px; color: var(--ink-45); padding: 10px 4px 0; text-align: center; }

/* ── Reading typography (Ghost content) ──────────────── */
.gh-content { font-size: 18px; line-height: 1.85; color: rgba(255,255,255,.86); font-weight: 400; }
.gh-content > * + * { margin-top: 1.5em; }
.gh-content p { font-weight: 400; }
.gh-content a { color: var(--gold-l); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gh-content a:hover { color: #fff; }
.gh-content h2 { font-family: var(--font-body); font-weight: 800; font-size: 28px; letter-spacing: -.01em; line-height: 1.2; margin-top: 2em; color: #fff; }
.gh-content h3 { font-family: var(--font-body); font-weight: 700; font-size: 21px; line-height: 1.3; margin-top: 1.8em; color: #fff; }
.gh-content strong { color: #fff; font-weight: 800; }
.gh-content em { font-style: italic; }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content li + li { margin-top: .5em; }
.gh-content hr { border: none; height: 1px; background: rgba(255,255,255,.1); margin: 2.4em 0; }

/* First paragraph drop emphasis */
.gh-content > p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 64px; line-height: .8; padding: 6px 12px 0 0; color: var(--gold-l); }

/* Blockquote */
.gh-content blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 24px; margin-left: 0; font-style: italic; font-size: 22px; line-height: 1.6; color: rgba(255,255,255,.92); }

/* Koenig cards */
.gh-content .kg-card { margin-top: 2em; }
.gh-content .kg-width-wide img { border-radius: 12px; }
.gh-content .kg-width-wide { width: 85vw; max-width: 1100px; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full img { border-radius: 0; }
.gh-content figure img { border-radius: 12px; }
.gh-content figcaption { font-size: 13px; color: var(--ink-45); text-align: center; padding-top: 10px; }
.kg-callout-card { border-radius: 14px; padding: 22px 26px; display: flex; gap: 14px; background: rgba(184,150,62,.1); border: 1px solid rgba(184,150,62,.25); }
.kg-callout-card .kg-callout-text { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.88); }
.kg-callout-emoji { font-size: 22px; }
.kg-bookmark-card a { text-decoration: none; }
.kg-bookmark-container { border: 1px solid rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.03); }
.gh-content pre { background: var(--bg-2); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 18px; overflow-x: auto; font-size: 14px; }

/* ── Thinker card ────────────────────────────────────── */
.thinker-card { margin: 56px auto 0; max-width: var(--content-w); background: var(--glass-bg); border: 1px solid var(--glass-bdr); border-radius: 18px; padding: 22px 24px; backdrop-filter: blur(20px); display: flex; gap: 20px; align-items: flex-start; }
.thinker-monogram { flex: 0 0 auto; width: 82px; height: 82px; border-radius: 14px; border: 1px solid rgba(184,150,62,.4); background: rgba(184,150,62,.1); font-family: var(--font-display); color: var(--gold-l); font-size: 0; text-align: center; overflow: hidden; }
.thinker-monogram::first-letter { font-size: 40px; line-height: 82px; letter-spacing: .02em; }
.thinker-portrait { flex: 0 0 auto; width: 82px; height: 82px; border-radius: 14px; border: 1px solid rgba(184,150,62,.4); background-size: cover; background-position: center; }
.thinker-body { min-width: 0; }
.thinker-card-label { font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 6px; }
.thinker-card-name { font-family: var(--font-display); font-size: 28px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; line-height: 1; margin-bottom: 9px; }
.thinker-card-bio { font-size: 14px; font-weight: 300; line-height: 1.65; color: var(--ink-70); margin-bottom: 13px; }
.thinker-card-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.thinker-count { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.thinker-card-link { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-l); text-decoration: none; }
.thinker-card-link:hover { color: #fff; }

/* ── Series nav ──────────────────────────────────────── */
.series-nav { max-width: var(--content-w); margin: 40px auto 0; padding: 24px 24px 0; display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); }
.series-link { flex: 1; min-width: 220px; text-decoration: none; padding: 16px 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; transition: all .2s; }
.series-link:hover { border-color: rgba(184,150,62,.4); background: rgba(184,150,62,.06); }
.series-link.next { text-align: right; }
.series-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 6px; }
.series-link strong { font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: #fff; }

/* ── Footer (mirrors shah.travel) ────────────────────── */
.site-footer { position: relative; z-index: 2; padding: 40px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 80px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.footer-brand { text-decoration: none; }
.footer-wordmark { font-family: var(--font-display); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-28); display: block; }
.footer-platform { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.15); margin-top: 3px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-link { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.2); text-decoration: none; transition: color .18s; }
.footer-link:hover { color: rgba(255,255,255,.5); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.04); }
.footer-copy { font-size: 11px; font-weight: 300; color: rgba(255,255,255,.14); }
.footer-etherwave { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.12); }

/* ── Reveal ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav { padding: 0 20px; }
  .nav-parent { display: none; }
  .nav-links .nav-link:not(.nav-link-cta):not(.nav-link-active) { display: none; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .section { padding: 56px 20px; }
  .stories-hero { padding: 72px 20px 56px; }
  .post { padding: 56px 20px 0; }
  .gh-content { font-size: 17px; }
  .series-link.next { text-align: left; }
  .thinker-card { flex-direction: column; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  footer.site-footer { padding: 28px 20px; }
}
