/* ==========================================================================
   Harmu Collections — dark mystical theme
   Serif display (Cormorant Garamond) + Inter UI, gold accents on deep night.
   ========================================================================== */

:root {
  --bg:        #0a0912;
  --bg-soft:   #0e0c18;
  --panel:     #130f1f;
  --panel-2:   #171226;
  --ink:       #efe9dc;
  --ink-dim:   #c3b9a6;
  --muted:     #928875;
  --gold:      #c9a45c;
  --gold-2:    #e9d09a;
  --gold-3:    #8a6d33;
  --line:      rgba(201, 164, 92, .16);
  --line-soft: rgba(201, 164, 92, .09);
  --glass:     rgba(18, 14, 30, .72);
  --radius:    18px;
  --radius-sm: 12px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 18px 50px -22px rgba(0, 0, 0, .75);
  --shadow-soft: 0 8px 30px -18px rgba(0, 0, 0, .65);
  --wrap: 1240px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 50% -240px, rgba(122, 90, 210, .16), transparent 62%),
    radial-gradient(900px 520px at 88% -80px, rgba(201, 164, 92, .10), transparent 60%),
    radial-gradient(800px 620px at 4% 8%, rgba(70, 96, 190, .10), transparent 58%),
    var(--bg);
}

::selection { background: rgba(201, 164, 92, .32); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }

/* Cormorant Garamond ships old-style figures by default; use lining numerals
   wherever digits carry meaning (counts, indexes, stats). */
h1, h2, h3, h4, h5, h6, .card-title, .pager-title, .deck-card h3,
.hero-stats strong, .deck-card-kicker, .card-index, .pager-count,
.toc-head span, .deck-meta li, .section-sub, .cover-letter {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--panel); color: var(--ink); padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-2));
  z-index: 120; transition: width .12s linear;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; gap: 26px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  background: #f4efe4;
  padding: 2px;
  box-shadow: 0 0 0 4px rgba(201, 164, 92, .07);
}
.brand-name {
  font-family: var(--serif); font-size: 1.42rem; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1;
}
.brand-harmu { font-weight: 700; }
.brand-coll { font-weight: 500; color: var(--gold-2); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-link {
  appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--ink-dim); font: inherit; font-size: .95rem;
  padding: 10px 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.chev { width: 11px; height: 8px; transition: transform .2s; }
.nav-drop.open .chev { transform: rotate(180deg); }
.nav-search kbd {
  font: 600 .72rem var(--sans); color: var(--muted);
  border: 1px solid var(--line); border-bottom-width: 2px;
  padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.03);
}

.nav-drop { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); right: 0; width: 440px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; z-index: 110;
}
.mega-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 8px; }
.mega-list li { break-inside: avoid; }
.mega-list a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 12px; border-radius: 10px; color: var(--ink);
  transition: background .16s;
}
.mega-list a:hover, .mega-list a.active { background: rgba(201, 164, 92, .10); }
.mi-title { font-size: .92rem; font-weight: 500; }
.mi-count { font-size: .74rem; color: var(--muted); }
.mega-all {
  display: block; margin-top: 8px; padding: 10px 12px; border-top: 1px solid var(--line-soft);
  color: var(--gold-2); font-size: .9rem;
}

.burger {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; padding: 12px 10px;
}
.burger span { display: block; height: 1.6px; background: var(--gold-2); margin: 4px 0; border-radius: 2px; }

.mobile-panel {
  position: fixed; inset: 76px 0 auto 0; z-index: 95;
  background: var(--panel); border-bottom: 1px solid var(--line);
  padding: 18px 26px 22px; max-height: calc(100vh - 76px); overflow: auto;
}
.mp-title { color: var(--muted); text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; margin: 0 0 10px; }
.mp-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.mp-list a { display: flex; justify-content: space-between; padding: 11px 12px; border-radius: 10px; color: var(--ink); }
.mp-list a:hover, .mp-list a.active { background: rgba(201, 164, 92, .1); }
.mp-foot { display: flex; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 500 .95rem var(--sans); padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .16s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn.gold {
  background: linear-gradient(140deg, var(--gold-2), var(--gold) 45%, var(--gold-3));
  color: #1c1405; box-shadow: 0 10px 30px -12px rgba(201, 164, 92, .55);
}
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(201, 164, 92, .7); color: #150f03; }
.btn.ghost {
  border-color: var(--line); color: var(--ink-dim); background: rgba(255, 255, 255, .02);
}
.btn.ghost:hover { color: var(--ink); border-color: rgba(201, 164, 92, .42); background: rgba(201, 164, 92, .07); }
.linklike { background: none; border: 0; color: var(--gold-2); font: inherit; cursor: pointer; padding: 0; }
.linklike:hover { color: #fff; }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding: 84px 0 30px; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto; height: 620px; pointer-events: none;
  background:
    radial-gradient(560px 320px at 50% 30%, rgba(201, 164, 92, .14), transparent 68%),
    radial-gradient(420px 260px at 18% 60%, rgba(122, 90, 210, .12), transparent 70%),
    radial-gradient(420px 260px at 82% 55%, rgba(70, 96, 190, .12), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(233, 208, 154, .8) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 28% 8%, rgba(233, 208, 154, .55) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 44% 30%, rgba(255, 255, 255, .5) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 63% 12%, rgba(233, 208, 154, .6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 26%, rgba(255, 255, 255, .45) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 90% 9%, rgba(233, 208, 154, .5) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 7% 46%, rgba(255, 255, 255, .35) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 94% 42%, rgba(255, 255, 255, .35) 50%, transparent 51%);
  opacity: .9;
}
.hero-inner { position: relative; }
.hero-emblem {
  width: 148px; height: 148px; margin: 0 auto 26px; border-radius: 50%;
  background: #f4efe4; padding: 4px;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 12px rgba(201, 164, 92, .05), 0 30px 70px -30px rgba(201, 164, 92, .45);
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; margin: 0 0 8px;
  font-size: clamp(2.6rem, 6vw, 4.3rem); letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 20%, var(--gold-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-greeting {
  max-width: 620px; margin: 0 auto; color: var(--ink-dim); font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-stats {
  list-style: none; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin: 0; padding: 0;
}
.hero-stats li {
  min-width: 132px; padding: 14px 20px; border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02);
  display: flex; flex-direction: column; gap: 2px;
}
.hero-stats strong { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-2); line-height: 1.1; }
.hero-stats span { font-size: .8rem; color: var(--muted); letter-spacing: .06em; }

/* ---------- sections ---------- */
.section-head { text-align: center; margin: 74px auto 34px; max-width: 640px; }
.kicker {
  font-size: .76rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px; font-weight: 600;
}
.section-head h2, .decks h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 0 0 10px;
}
.section-sub { color: var(--muted); margin: 0; }

/* ---------- deck grid (home) ---------- */
.deck-grid {
  list-style: none; margin: 0 0 90px; padding: 0;
  display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
}
.deck-card > a {
  display: flex; flex-direction: column; height: 100%;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; color: var(--ink);
  transition: transform .22s ease, border-color .22s, box-shadow .3s;
}
.deck-card > a:hover {
  transform: translateY(-5px); border-color: rgba(201, 164, 92, .45);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(201, 164, 92, .12);
}
.deck-card-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0c0a16; }
.cover { margin: 0; width: 100%; height: 100%; }
.cover-sigil { position: relative; display: grid; place-items: center; }
.cover-sigil svg { position: relative; z-index: 1; width: 80%; height: 80%; }
.cover-letter {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 8.6rem; color: #fff;
  opacity: .1; z-index: 0; transform: translateY(6px);
  text-shadow: none; letter-spacing: 0;
}
.cover-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .5s ease; }
.deck-card > a:hover .cover-photo img { transform: scale(1.045); }
.deck-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.deck-card-kicker { margin: 0; font-family: var(--serif); color: var(--gold); font-size: .95rem; letter-spacing: .2em; }
.deck-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0; line-height: 1.25; }
.deck-card-teaser { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.65; flex: 1; }
.deck-card-meta { list-style: none; display: flex; gap: 8px; margin: 4px 0 0; padding: 0; }
.deck-card-meta li {
  font-size: .74rem; color: var(--ink-dim); border: 1px solid var(--line-soft);
  padding: 3px 10px; border-radius: 999px; letter-spacing: .04em;
}
.deck-card-more { color: var(--gold-2); font-size: .9rem; margin-top: 8px; display: inline-flex; gap: 7px; align-items: center; }
.deck-card > a:hover .deck-card-more { color: #fff; }

/* ---------- deck hero ---------- */
.deck-hero-wrap { position: relative; padding: 44px 0 26px; border-bottom: 1px solid var(--line-soft); }
.deck-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 380px at 12% 0%, color-mix(in srgb, var(--a) 22%, transparent), transparent 66%);
  opacity: .55;
}
.crumbs { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .82rem; margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-2); }
.crumb-current { max-width: min(58ch, 70vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-hero { position: relative; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.deck-hero:has(.deck-hero-gallery) { grid-template-columns: minmax(0, .92fr) minmax(280px, .55fr); }
.deck-hero h1 {
  font-family: var(--serif); font-weight: 600; margin: 0 0 14px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: .01em;
}
.deck-hero .lead { max-width: 720px; color: var(--ink-dim); }
.lead .rt { margin: 0 0 12px; }
.deck-meta { list-style: none; display: flex; gap: 9px; padding: 0; margin: 20px 0 0; flex-wrap: wrap; }
.deck-meta li {
  font-size: .78rem; letter-spacing: .05em; color: var(--gold-2);
  border: 1px solid var(--line); background: rgba(201, 164, 92, .06);
  padding: 5px 13px; border-radius: 999px;
}
.deck-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 26px; }

/* gallery */
.gallery { display: grid; gap: 14px; }
.gal-main {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #f4efe4;
  box-shadow: var(--shadow);
}
.gal-main img { width: 100%; aspect-ratio: 3 / 4.1; object-fit: contain; }
.gal-thumbs {
  display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 6px; scrollbar-width: thin;
}
.gal-thumb {
  flex: 0 0 auto; width: 56px; height: 72px; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-soft); border-radius: 10px; background: #f4efe4;
  opacity: .6; transition: opacity .18s, border-color .18s, transform .18s;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb:hover { opacity: 1; transform: translateY(-2px); }
.gal-thumb.active { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201,164,92,.4); }

/* ---------- deck layout: toc + content ---------- */
.deck-layout {
  display: grid; gap: 44px; padding-top: 40px; padding-bottom: 30px;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}
.deck-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
.deck-layout.no-toc .deck-content { max-width: 900px; }
.deck-toc { position: sticky; top: 96px; }
.toc-panel {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 18, 38, .7), rgba(19, 15, 31, .82));
  box-shadow: var(--shadow-soft);
  overflow: hidden; display: flex; flex-direction: column;
  max-height: calc(100vh - 130px);
}
.toc-head {
  display: flex; align-items: baseline; gap: 10px; padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.toc-head h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0; }
.toc-head span { color: var(--muted); font-size: .76rem; margin-left: auto; }
.toc-close { display: none; background: none; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; }
.toc-filter-wrap { padding: 12px 16px 6px; }
.toc-filter {
  width: 100%; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft);
  border-radius: 10px; color: var(--ink); font: inherit; font-size: .9rem; padding: 9px 13px;
}
.toc-filter::placeholder { color: var(--muted); }
.toc-filter:focus { outline: none; border-color: rgba(201, 164, 92, .5); background: rgba(201, 164, 92, .05); }
.toc-nav { overflow: auto; padding: 8px 10px 16px; }
.toc-nav ol { list-style: none; margin: 0; padding: 0; }
.toc-nav li { margin: 1px 0; }
.toc-nav a {
  display: block; padding: 7px 12px; border-radius: 9px; color: var(--ink-dim);
  font-size: .88rem; line-height: 1.45; border-left: 2px solid transparent;
}
.toc-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.toc-nav .toc-group { margin-top: 12px; }
.toc-nav .toc-group > a {
  font-family: var(--serif); font-size: 1rem; color: var(--gold-2); letter-spacing: .02em;
  border-left-color: var(--line); padding-left: 12px;
}
.toc-nav .toc-item a { padding-left: 22px; }
.toc-nav a.active {
  color: #fff; background: linear-gradient(90deg, rgba(201, 164, 92, .16), transparent 85%);
  border-left-color: var(--gold);
}
.toc-none { color: var(--muted); font-size: .85rem; padding: 0 20px 16px; margin: 0; }

/* ---------- deck content ---------- */
.deck-content { min-width: 0; }

/* files panel */
.files-panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(420px 200px at 8% 0%, rgba(201, 164, 92, .12), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 22px 24px; margin: 0 0 34px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  box-shadow: var(--shadow-soft);
}
.files-panel header { flex: 1 1 300px; }
.files-panel h2 { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 4px; font-weight: 600; }
.files-panel p { margin: 0; color: var(--muted); font-size: .9rem; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.file-list a {
  display: flex; align-items: center; gap: 14px; padding: 11px 16px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  background: rgba(255, 255, 255, .02); font-size: .9rem;
  transition: border-color .2s, background .2s, transform .16s;
}
.file-list a:hover { border-color: rgba(201, 164, 92, .5); background: rgba(201, 164, 92, .08); transform: translateY(-1px); }
.file-cta { color: var(--gold-2); margin-left: auto; font-weight: 500; }

/* group dividers */
.group { margin: 54px 0 8px; scroll-margin-top: 100px; }
.group-head { display: flex; align-items: center; gap: 18px; margin: 0 0 14px; }
.group-head h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  margin: 0; text-align: center; color: var(--gold-2); letter-spacing: .02em;
}
.orn { position: relative; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.orn.flip { background: linear-gradient(90deg, var(--line), transparent); }
.orn::after {
  content: "✦"; position: absolute; top: -11px; right: -2px; color: var(--gold);
  font-size: .7rem; opacity: .8;
}
.orn.flip::after { right: auto; left: -2px; }
.group-body { color: var(--ink-dim); max-width: 76ch; margin: 0 auto; }

/* cards */
.card {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 18, 38, .55), rgba(17, 13, 28, .55));
  padding: 26px 28px 24px; margin: 0 0 18px;
  scroll-margin-top: 96px;
  transition: border-color .25s, box-shadow .3s, background .25s;
}
.card:hover { border-color: rgba(201, 164, 92, .34); box-shadow: var(--shadow-soft); }
.card-head { margin-bottom: 12px; }
.card-eyebrow {
  margin: 0 0 6px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.card-titlerow { display: flex; align-items: baseline; gap: 16px; }
.card-index {
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold); opacity: .85;
  min-width: 2.1ch; line-height: 1;
}
.card-title {
  font-family: var(--serif); font-weight: 600; margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 1.7rem); line-height: 1.25;
}
.card-sub { margin: 6px 0 0 3.1ch; color: var(--muted); font-size: .92rem; letter-spacing: .04em; }
.card-body { color: var(--ink-dim); }
.card-body .rt { margin: 0 0 12px; }
.card-body .rt:last-child { margin-bottom: 0; }
.card-anchor {
  position: absolute; top: 18px; right: 18px; opacity: 0; color: var(--gold);
  font-size: .95rem; transition: opacity .2s;
}
.card:hover .card-anchor, .card-anchor:focus-visible { opacity: .75; }

.media-split { display: grid; gap: 24px; grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.media-split .card-media { margin: 0; }
.card-media img {
  width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}
.rt-figure img { border-radius: var(--radius-sm); border: 1px solid var(--line-soft); max-height: 420px; margin: 0 auto; }

/* rich text bits */
.rt a { color: var(--gold-2); border-bottom: 1px solid rgba(201, 164, 92, .35); }
.rt a:hover { color: #fff; border-color: #fff; }
.rt-list ul { margin: 0 0 12px; padding-left: 2px; list-style: none; }
.rt-list li { position: relative; padding-left: 20px; margin: 5px 0; }
.rt-list li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold); font-size: .62rem; top: .42em; }

/* Düz / Ters anlam blokları (Astroloji destesi) */
.meanings { display: grid; gap: 14px; }
.meanings .meaning { position: relative; padding-left: 16px; border-left: 2px solid rgba(201, 164, 92, .18); }
.meanings .meaning:hover { border-left-color: rgba(201, 164, 92, .5); }
.meaning .rt p { margin: 0; }
.m-label {
  display: inline-block; font-family: var(--serif); font-weight: 600; font-size: .95em;
  letter-spacing: .06em; color: var(--gold-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; margin-right: 4px;
  background: rgba(201, 164, 92, .07); line-height: 1.5;
}
.rt-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 13px; }
blockquote {
  margin: 14px 0; padding: 12px 18px; border-left: 2px solid var(--gold);
  background: rgba(201, 164, 92, .06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- deck pager ---------- */
.deck-pager {
  display: grid; gap: 16px; grid-template-columns: 1fr auto 1fr;
  align-items: stretch; padding-top: 44px; padding-bottom: 74px;
}
.pager-card {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 22px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.pager-card:hover { border-color: rgba(201, 164, 92, .45); transform: translateY(-2px); color: var(--ink); }
.pager-card.next { text-align: right; align-items: flex-end; }
.pager-dir { font-size: .76rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.pager-title { font-family: var(--serif); font-size: 1.2rem; }
.pager-count { font-size: .78rem; color: var(--muted); }
.pager-home { display: grid; place-items: center; padding: 0 26px; color: var(--muted); font-size: .85rem; }
.pager-home:hover { color: var(--gold-2); }

/* ---------- prose pages ---------- */
.prose-hero { padding-top: 44px; }
.prose-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 10px; }
.prose { max-width: 76ch; }
.prose .rt { margin: 0 0 14px; }
.prose .rt-sec { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; scroll-margin-top: 100px; }
.prose .rt-sec.lvl2 { font-size: 1.7rem; margin: 40px 0 12px; color: var(--gold-2); }
.prose .rt-sec.lvl3 { font-size: 1.28rem; margin: 26px 0 8px; color: var(--ink); }
.prose .rt-list ul { margin-bottom: 16px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px;
  border: 1px solid var(--line-soft); border-radius: var(--radius); color: var(--ink);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.cat-title { font-family: var(--serif); font-size: 1.3rem; }
.cat-more { color: var(--gold-2); align-self: center; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 26px 120px; }
.notfound h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 12px; }
.notfound .lead { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.notfound .deck-actions { justify-content: center; }

/* ---------- search modal ---------- */
.search-modal { position: fixed; inset: 0; z-index: 150; }
.search-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 10, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-box {
  position: relative; width: min(680px, calc(100vw - 32px)); margin: 9vh auto 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  animation: pop .18s ease;
}
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } }
.search-field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.search-field svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.search-field input {
  flex: 1; background: none; border: 0; color: var(--ink); font: inherit; font-size: 1.05rem;
}
.search-field input:focus { outline: none; }
/* tarayıcının varsayılan temizleme çarpısı yerine kendi kapatma düğmemiz var */
.search-field input::-webkit-search-cancel-button,
.search-field input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-esc {
  background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); color: var(--muted);
  border-radius: 7px; font-size: .74rem; padding: 3px 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 26px;
}
.esc-x { display: none; font-size: .95rem; line-height: 1; }
.search-results { max-height: min(56vh, 460px); overflow: auto; padding: 8px; }
.search-empty { color: var(--muted); font-size: .9rem; padding: 18px; margin: 0; }
.sr-item {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 11px 14px; border-radius: 11px; color: var(--ink);
}
.sr-item:hover, .sr-item.active { background: rgba(201, 164, 92, .12); }
.sr-top { display: flex; align-items: baseline; gap: 10px; }
.sr-title { font-weight: 500; }
.sr-kind { font-size: .72rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin-left: auto; }
.sr-sub { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item mark { background: rgba(201, 164, 92, .3); color: #fff; border-radius: 3px; padding: 0 2px; }
.search-hint {
  display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: .76rem;
}
.search-hint kbd {
  border: 1px solid var(--line-soft); border-bottom-width: 2px; border-radius: 5px;
  padding: 0 5px; margin-right: 4px; background: rgba(255,255,255,.03);
}

/* ---------- fab / toc sheet (mobile) ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 19px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(140deg, var(--gold-2), var(--gold));
  color: #1c1405; border: 0; font: 600 .9rem var(--sans);
  box-shadow: 0 16px 40px -14px rgba(201, 164, 92, .65);
}
.fab svg { width: 17px; height: 17px; }
body.toc-open { overflow: hidden; }
body.toc-open::after {
  content: ""; position: fixed; inset: 0; z-index: 125;
  background: rgba(5, 4, 10, .66);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
body.toc-open .deck-toc {
  display: block;
  position: fixed; inset: auto 0 0 0; z-index: 130; top: auto;
  border-radius: 20px 20px 0 0; animation: sheet .22s ease;
}
@keyframes sheet { from { transform: translateY(30px); opacity: 0; } }
body.toc-open .toc-panel {
  max-height: 76vh; border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #191330, #120e1e);
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .85);
}
body.toc-open .toc-close { display: block; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, transparent, rgba(10, 9, 18, .9)); margin-top: 30px; }
.footer-grid {
  display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr .8fr; padding-top: 56px; padding-bottom: 40px;
}
.footer-brand img { border-radius: 50%; border: 1px solid var(--line); background: #f4efe4; padding: 2px; }
.footer-title { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .1em; text-transform: uppercase; margin: 14px 0 4px; }
.footer-note { color: var(--muted); font-size: .88rem; margin: 0; }
.footer-col h2 { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col a, .footer-col .linklike { color: var(--ink-dim); font-size: .92rem; }
.footer-col a:hover, .footer-col .linklike:hover { color: var(--gold-2); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  border-top: 1px solid var(--line-soft); padding-top: 20px; padding-bottom: 26px;
  color: var(--muted); font-size: .84rem;
}
.footer-base p { margin: 0; }
.to-top { color: var(--muted); }
.to-top:hover { color: var(--gold-2); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .deck-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .deck-layout { grid-template-columns: minmax(0, 1fr); }
  /* mobilde içindekiler satır içinde yer kaplamasın; yalnızca sabit buton + panel */
  .deck-toc { display: none; position: static; }
  .toc-panel { max-height: none; }
  .toc-nav { max-height: 45vh; }
  .deck-hero:has(.deck-hero-gallery) { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 56px; }
  .hero-emblem { width: 116px; height: 116px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; width: 100%; }
  .hero-stats li { min-width: 0; padding: 11px 8px; }
  .hero-stats strong { font-size: 1.35rem; }
  .hero-stats span { font-size: .68rem; letter-spacing: .02em; }
  .media-split { grid-template-columns: minmax(0, 1fr); }
  .card-media img { max-width: 320px; margin: 0 auto; }
  .card { padding: 22px 20px 20px; }
  .deck-pager { grid-template-columns: 1fr; }
  .pager-home { padding: 4px 0; }
  .pager-card.next { text-align: left; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .files-panel { padding: 18px; }
  /* mobilde "esc" anlamsız: yerine kapatma çarpısı ve sade ipucu */
  .esc-label { display: none; }
  .esc-x { display: inline; }
  .search-hint { display: none; }
  .search-esc { min-width: 40px; min-height: 34px; }
  .search-results { max-height: min(62vh, 480px); }
}
@media (max-width: 480px) {
  .brand-name { font-size: 1.02rem; letter-spacing: .08em; }
  .brand-logo { width: 36px; height: 36px; }
  .header-inner { min-height: 66px; gap: 14px; }
  .mobile-panel { inset: 66px 0 auto 0; }
}
@media (min-width: 961px) {
  .mobile-panel { display: none !important; }
}

/* ---------- mağaza (Trendyol) ---------- */
.shop { margin: 84px auto 0; }
.shop-panel {
  position: relative; overflow: hidden;
  display: grid; gap: 26px; align-items: center; justify-items: center; text-align: center;
  background:
    radial-gradient(120% 180% at 50% -40%, rgba(201, 164, 92, .16), rgba(201, 164, 92, 0) 60%),
    linear-gradient(180deg, rgba(201, 164, 92, .08), rgba(201, 164, 92, .02));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 46px 28px 50px;
  box-shadow: var(--shadow-soft);
}
.shop-panel::before {
  content: "✦"; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: .8rem; opacity: .7;
}
.shop-copy .kicker { margin-top: 6px; }
.shop-panel h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: .04em;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 4px 0 12px;
}
.shop-text { color: var(--muted); max-width: 560px; margin: 0 auto; }
.shop-btn { white-space: nowrap; }
@media (min-width: 900px) {
  .shop-panel { grid-template-columns: 1fr auto; justify-items: start; text-align: left; padding: 52px 56px; }
  .shop-text { margin: 0; }
  .shop-panel h2 { margin-bottom: 10px; }
}

/* ---------- Rider-Waite sayfası ---------- */
.rw-hero { --a: #b79cff; }
.toc-sub { opacity: .55; font-size: .85em; }
.m-kw { display: block; margin-top: 7px; font-size: .8rem; letter-spacing: .06em; color: var(--gold); opacity: .85; }
#fal-open { font-size: 1.04rem; padding: 14px 26px; }

/* ---------- Tarot falı (modal) ---------- */
body.fal-lock { overflow: hidden; }
.fal-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 18px; }
.fal-backdrop { position: absolute; inset: 0; background: rgba(6, 5, 10, .82); backdrop-filter: blur(6px); }
.fal-panel {
  position: relative; width: min(1020px, 100%); max-height: 92vh; overflow: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px 26px;
  box-shadow: var(--shadow); animation: falIn .28s ease;
}
@keyframes falIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.fal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fal-title { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .06em; margin: 0; }
.fal-title span { color: var(--muted); font-size: .95rem; }
.fal-x {
  border: 1px solid var(--line); background: transparent; color: var(--ink-dim);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: .95rem;
}
.fal-x:hover { color: #fff; border-color: rgba(201, 164, 92, .5); }
.fal-label { display: block; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 4px 0 8px; }
.fal-label em { color: var(--muted); text-transform: none; letter-spacing: 0; font-style: normal; }
#fal-question {
  width: 100%; background: rgba(10, 8, 18, .6); border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); padding: 12px 14px; font: inherit;
  resize: vertical; min-height: 56px;
}
#fal-question:focus { outline: none; border-color: rgba(201, 164, 92, .45); }
.fal-countrow { display: flex; align-items: center; gap: 14px; margin: 16px 0 4px; color: var(--muted); font-size: .92rem; }
.fal-counts { display: flex; gap: 6px; }
.fal-counts button {
  min-width: 44px; padding: 7px 0; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-dim); cursor: pointer; font: inherit;
}
.fal-counts button.active { background: rgba(201, 164, 92, .16); border-color: rgba(201, 164, 92, .5); color: var(--gold-2); }
.fal-hint { color: var(--muted); font-size: .9rem; margin: 10px 0; }
.fal-hint b { color: var(--gold-2); }
.fal-deck-wrap { position: relative; margin: 6px 0 14px; }
.fal-deck-wrap::before, .fal-deck-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 12px; width: 34px; z-index: 1; pointer-events: none;
}
.fal-deck-wrap::before { left: 0; background: linear-gradient(90deg, var(--panel), transparent); }
.fal-deck-wrap::after { right: 0; background: linear-gradient(-90deg, var(--panel), transparent); }
.fal-deck { display: flex; gap: 10px; overflow-x: auto; padding: 12px 6px 16px; scrollbar-width: thin; cursor: grab; }
.fal-deck::-webkit-scrollbar { height: 8px; }
.fal-deck::-webkit-scrollbar-thumb { background: rgba(201, 164, 92, .28); border-radius: 8px; }
.fal-card {
  flex: 0 0 auto; width: 66px; height: 110px; border-radius: 8px; cursor: pointer; position: relative;
  border: 1px solid rgba(201, 164, 92, .35);
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(201, 164, 92, .16), transparent 55%),
    repeating-linear-gradient(45deg, rgba(201, 164, 92, .07) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #1b1530, #120e22);
  box-shadow: inset 0 0 0 3px rgba(10, 8, 18, .55);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.fal-card:hover { transform: translateY(-3px); border-color: rgba(201, 164, 92, .7); }
.fal-card .fal-back-star { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(233, 208, 154, .5); font-size: 1rem; }
.fal-card.picked { border-color: var(--gold-2); box-shadow: 0 0 0 2px rgba(233, 208, 154, .35), 0 10px 24px -14px rgba(0, 0, 0, .8); transform: translateY(-3px); }
.fal-card.picked .fal-back-star { color: var(--gold-2); }
.fal-card.picked::after {
  content: attr(data-num); position: absolute; top: -8px; right: -8px; width: 22px; height: 22px;
  background: var(--gold); color: #14101f; border-radius: 50%; display: grid; place-items: center;
  font-size: .76rem; font-weight: 700;
}
.fal-card.shake { animation: falShake .36s ease; }
@keyframes falShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.fal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* fal sonuçları */
.fal-positions { color: var(--muted); font-size: .9rem; margin: 4px 0 14px; }
.fal-spread { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 20px; }
.fal-reveal { margin: 0; text-align: center; animation: falReveal .5s ease both; }
@keyframes falReveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fal-flip { display: inline-block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #0d0a18; box-shadow: var(--shadow-soft); }
.fal-flip img { display: block; width: 100%; max-width: 190px; height: auto; }
.fal-flip img.rev { transform: rotate(180deg); }
.fal-reveal figcaption { margin-top: 10px; display: grid; gap: 2px; }
.fal-pos { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.fal-name { font-family: var(--serif); font-size: 1.12rem; }
.fal-en { font-size: .78rem; color: var(--muted); }
.fal-orient { font-size: .74rem; letter-spacing: .1em; color: var(--ink-dim); }
.fal-orient.rev { color: #d98d8d; }
.fal-reading { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.fal-reading p { margin: 0 0 12px; }
.fal-loading { color: var(--gold-2); }
.fal-note { color: var(--muted); font-size: .85rem; }

@media (max-width: 720px) {
  .fal-card { width: 58px; height: 96px; }
  .fal-panel { padding: 18px 16px 20px; }
  .fal-spread { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
}

/* ---------- Rider-Waite tanıtım + SSS ---------- */
.rw-intro { max-width: 880px; margin: 46px auto 0; }
.rw-intro h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin: 0 0 14px; }
.rw-intro p { color: var(--ink-dim); margin: 0 0 14px; }
.rw-intro strong { color: var(--gold-2); font-weight: 600; }

.faq { max-width: 880px; margin: 56px auto 0; }
.faq h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; text-align: center; margin: 0 0 22px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: rgba(201, 164, 92, .03); }
.faq summary { cursor: pointer; padding: 16px 46px 16px 20px; position: relative; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.2rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold-2); }
.faq .faq-a { padding: 0 20px 18px; color: var(--ink-dim); }
.faq .faq-a p { margin: 0; }

/* ---------- Hakkımızda ---------- */
.about-body h2 { margin-top: 36px; }
.about-body h2:first-child { margin-top: 0; }
.about-decks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.about-decks li { display: flex; align-items: center; gap: 12px; border-bottom: 1px dashed var(--line-soft); padding: 10px 2px; }
.about-decks a { color: var(--ink); border-bottom: 0; }
.about-decks a:hover { color: var(--gold-2); }
.about-deck-meta { margin-left: auto; color: var(--muted); font-size: .84rem; letter-spacing: .06em; }
.about-cta { margin-top: 18px; }

/* ---------- motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media print {
  body { background: #fff; color: #111; font-size: 12pt; }
  .site-header, .site-footer, .deck-toc, .fab, .progress, .deck-pager, .search-modal, .fal-modal, .deck-actions, .files-panel, .deck-hero-bg { display: none !important; }
  .deck-layout { display: block; padding: 0; }
  .card { border: 0; border-bottom: 1px solid #ddd; border-radius: 0; background: none; page-break-inside: avoid; padding: 10px 0; }
  .card-title, .group-head h2 { color: #000; }
  a { color: #000; }
  .card-media img { border: 0; }
}
