/* ═══════════════════════════════════════════════════════
   משפטי הרב קוק — ravkook.fkd.co.il
   "כתב היד החי" — the living manuscript
   ═══════════════════════════════════════════════════════ */

:root {
  --night: #101729;
  --ink: #1b2440;
  --ink-soft: #2a3558;
  --gold: #d9a613;
  --gold-bright: #f2c744;
  --gold-dim: #8f6f14;
  --parchment: #f4ecd8;
  --cream: #efe4c9;
  --paper: #faf5e8;
  --brick: #b23a26;
  --brick-dark: #8e2d1c;
  --leaf: #c96f2e;
  --font-display: 'Heebo', sans-serif;
  --font-body: 'Assistant', sans-serif;
  --font-hand: 'Amatic SC', cursive;
  --mx: 50vw;
  --my: 40vh;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--parchment);
  overflow-x: clip;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--night); }

/* ── grain overlay (hero only — a fixed blended layer breaks paint on very tall pages) ── */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── the manuscript layers ─────────────────────── */
.manuscript { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.manuscript .layer {
  position: absolute; inset: -10%;
  background-image: url('../img/ink-gold.png');
  background-size: 620px auto; background-repeat: repeat;
}
.manuscript .base {
  opacity: .17;
  animation: driftbg 90s linear infinite alternate;
}
.manuscript .lantern {
  opacity: 0; transition: opacity .6s ease;
  background-image: url('../img/ink-bright.png');
  animation: driftbg 90s linear infinite alternate;
  -webkit-mask-image: radial-gradient(circle 230px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.5) 45%, transparent 72%);
          mask-image: radial-gradient(circle 230px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.5) 45%, transparent 72%);
}
body.lit .manuscript .lantern { opacity: .8; }
.lantern-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(circle 260px at var(--mx) var(--my), rgba(242,199,68,.13) 0%, transparent 70%);
}
body.lit .lantern-glow { opacity: 1; }
@keyframes driftbg {
  from { transform: translate(0,0) rotate(-.6deg); }
  to   { transform: translate(-2.5%,-4%) rotate(.4deg); }
}

/* ── floating leaves ───────────────────────────── */
.leaves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.leaf {
  position: absolute; top: -6%;
  width: 14px; height: 22px; opacity: 0;
  background: var(--leaf);
  border-radius: 80% 0 80% 0;
  animation: fall linear infinite;
}
.leaf:nth-child(odd) { background: #a85a20; }
@keyframes fall {
  0%   { opacity: 0; transform: translate(0,-4vh) rotate(0deg); }
  8%   { opacity: .75; }
  100% { opacity: 0; transform: translate(var(--sway,60px),108vh) rotate(660deg); }
}

/* ── nav ───────────────────────────────────────── */
nav {
  position: fixed; top: 18px; inset-inline: 0; z-index: 100;
  display: flex; justify-content: center; pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  background: rgba(16,23,41,.9);
  border: 1px solid rgba(217,166,19,.28);
  border-radius: 999px; padding: 7px 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none;
}
.nav-pill::-webkit-scrollbar { display: none; }
.nav-pill a {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  color: var(--cream); transition: all .25s;
}
.nav-pill a:hover { background: rgba(217,166,19,.16); color: var(--gold-bright); }
.nav-pill .lang {
  font-family: var(--font-hand); font-weight: 700; font-size: 1.05rem;
  border: 1px solid rgba(217,166,19,.5); color: var(--gold-bright);
  margin-inline-start: 6px;
}
.nav-pill .brandmark { display: flex; align-items: center; padding: 0 8px 0 4px; }
.nav-pill .brandmark img { width: 30px; height: 30px; border-radius: 50%; filter: sepia(.3); }

/* ── hero ──────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 110px 20px 90px;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #223055 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 115%, #2c1f10 0%, transparent 55%),
    var(--night);
}
.hero .stamp {
  width: 118px; height: 118px; border-radius: 50%;
  border: 3px solid rgba(217,166,19,.55);
  box-shadow: 0 0 0 6px rgba(217,166,19,.12), 0 18px 50px rgba(0,0,0,.5);
  margin-bottom: 26px; position: relative; z-index: 2;
  animation: stampIn 1.1s cubic-bezier(.2,1.6,.35,1) .15s backwards;
}
@keyframes stampIn {
  from { transform: scale(2.4) rotate(-14deg); opacity: 0; filter: blur(3px); }
  to   { transform: scale(1) rotate(0); opacity: 1; filter: blur(0); }
}
.hero .kicker {
  font-family: var(--font-hand); font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--gold); letter-spacing: .1em; z-index: 2;
  animation: riseIn .9s ease .5s backwards;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.9rem, 9vw, 6.8rem);
  line-height: 1.02; color: var(--parchment); z-index: 2;
  text-shadow: 0 6px 40px rgba(0,0,0,.55), 0 0 90px rgba(217,166,19,.18);
  animation: riseIn 1s ease .65s backwards;
}
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero .sub {
  max-width: 620px; margin-top: 18px; z-index: 2;
  font-size: clamp(1.02rem, 1.9vw, 1.22rem); color: #cfc4a6;
  animation: riseIn 1s ease .85s backwards;
}
.hero .cta-row {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 36px; z-index: 2;
  animation: riseIn 1s ease 1.05s backwards;
}
@keyframes riseIn { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .01em;
  padding: 14px 30px; border-radius: 999px; cursor: pointer;
  border: none; transition: transform .25s, box-shadow .25s, background .25s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  color: #241a02; box-shadow: 0 12px 34px rgba(217,166,19,.35);
}
.btn-gold:hover { box-shadow: 0 18px 44px rgba(217,166,19,.5); }
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1.5px solid rgba(239,228,201,.4);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.hero .counters {
  display: flex; gap: clamp(22px, 6vw, 70px); flex-wrap: wrap; justify-content: center;
  margin-top: 58px; z-index: 2;
  animation: riseIn 1s ease 1.25s backwards;
}
.counter { text-align: center; }
.counter b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.1; color: var(--gold-bright);
}
.counter span { font-family: var(--font-hand); font-weight: 700; font-size: 1.15rem; color: #bfb394; letter-spacing: .08em; }

/* ── sections shared ───────────────────────────── */
section { position: relative; }
.wrap { max-width: 1160px; margin-inline: auto; padding: clamp(70px, 10vw, 130px) 22px; position: relative; z-index: 2; }
.sec-label {
  font-family: var(--font-hand); font-weight: 700; letter-spacing: .14em;
  font-size: 1.3rem; color: var(--brick); display: flex; align-items: center; gap: 14px;
}
.sec-label::after { content: ''; height: 1.5px; width: 72px; background: currentColor; opacity: .5; }
.dark .sec-label { color: var(--gold); }
h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.08; margin: 10px 0 14px;
}
.sec-intro { max-width: 640px; font-size: 1.08rem; opacity: .82; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(38px); }
.reveal.on { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.d1.on { transition-delay: .12s; } .reveal.d2.on { transition-delay: .24s; } .reveal.d3.on { transition-delay: .36s; }

/* ── daily quote (dark, manuscript behind) ─────── */
.daily { background: linear-gradient(180deg, var(--night), #0d1322 55%, var(--night)); overflow: hidden; }
.daily .wrap { text-align: center; }
.daily .day-chip {
  display: inline-block; font-family: var(--font-hand); font-weight: 700; font-size: 1.2rem;
  letter-spacing: .12em; color: var(--night); background: var(--gold);
  border-radius: 999px; padding: 3px 20px 5px; transform: rotate(-1.5deg);
}
.daily blockquote {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.7rem, 4.1vw, 3.1rem); line-height: 1.35;
  color: var(--parchment); max-width: 900px; margin: 30px auto 18px;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.daily blockquote .qmark { color: var(--gold-bright); font-size: 1.3em; line-height: 0; vertical-align: -.12em; }
.daily cite { font-style: normal; font-family: var(--font-hand); font-weight: 700; font-size: 1.35rem; color: var(--gold); letter-spacing: .06em; }
.daily .swap { margin-top: 34px; }

/* ── books (parchment) ─────────────────────────── */
.books { background: var(--parchment); color: #2a2313; }
.books::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../img/grid.jpg'); background-size: 700px auto;
  opacity: .055; mix-blend-mode: multiply;
}
.books .torn-top, .torn-bottom { display: block; width: 100%; height: 26px; }
.book-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(26px, 4vw, 54px); margin-top: 54px; align-items: stretch;
}
.book-card {
  background: var(--paper); border-radius: 18px; padding: 34px 30px 30px;
  box-shadow: 0 24px 60px rgba(66,50,12,.18), 0 3px 10px rgba(66,50,12,.1);
  border: 1px solid rgba(120,95,30,.18);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative;
}
.book-card .ribbon {
  position: absolute; top: 18px; inset-inline-start: -8px;
  background: var(--brick); color: var(--paper);
  font-family: var(--font-hand); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em;
  padding: 3px 16px 5px; border-radius: 4px; transform: rotate(-4deg);
  box-shadow: 0 6px 16px rgba(178,58,38,.4);
}
.book-tilt { perspective: 900px; margin-bottom: 24px; }
.book-tilt img {
  width: 190px; border-radius: 6px 12px 12px 6px;
  box-shadow: -18px 24px 44px rgba(60,45,10,.35), inset 4px 0 8px rgba(255,255,255,.25);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  transform: rotateY(14deg) rotateX(2deg);
}
.book-card:hover .book-tilt img { transform: rotateY(-4deg) rotateX(0) scale(1.04); }
.book-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1.15; color: var(--ink); }
.book-card .year { font-family: var(--font-hand); font-weight: 700; font-size: 1.15rem; color: var(--brick); letter-spacing: .1em; }
.book-card p { font-size: .98rem; margin: 12px 0 20px; opacity: .85; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: auto; }
.buy {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid var(--ink); color: var(--ink);
  transition: all .25s; display: inline-flex; align-items: center; gap: 8px;
}
.buy:hover { background: var(--ink); color: var(--gold-bright); transform: translateY(-2px); }
.buy.primary { background: var(--ink); color: var(--paper); }
.buy.primary:hover { background: var(--ink-soft); color: var(--gold-bright); }

/* ── instagram feed belt: auto-run + manual scroll + arrows ── */
.feed { background: var(--night); overflow: hidden; }
.feed .wrap { padding-bottom: 30px; }
.feed-belt { position: relative; padding: 10px 0 70px; }
.feed-track {
  display: flex; gap: 26px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 14px clamp(16px, 5vw, 70px) 26px;
  scroll-snap-type: x proximity;
  cursor: grab;
}
.feed-track::-webkit-scrollbar { display: none; }
.feed-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.feed-track .ig-card { scroll-snap-align: center; }
.belt-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(16,23,41,.82); color: var(--gold-bright);
  border: 1.5px dashed rgba(217,166,19,.55);
  box-shadow: 0 8px 26px rgba(0,0,0,.5);
  transition: all .25s;
}
.belt-btn:hover { background: var(--gold); color: var(--night); border-color: var(--gold); transform: translateY(-50%) scale(1.1); }
.belt-btn svg { width: 20px; height: 20px; }
.belt-btn.prev { inset-inline-start: clamp(8px, 2vw, 26px); }
.belt-btn.next { inset-inline-end: clamp(8px, 2vw, 26px); }
@media (max-width: 700px) {
  .belt-btn { width: 40px; height: 40px; }
  .feed-track { gap: 16px; }
  .ig-card { width: 210px; }
}
.ig-card {
  width: 250px; flex-shrink: 0;
  background: var(--paper); border-radius: 10px; padding: 10px 10px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  transform: rotate(var(--tilt, -1.4deg));
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
  position: relative;
}
.ig-card:nth-child(even) { --tilt: 1.6deg; }
.ig-card:hover {
  transform: rotate(0) scale(1.07) translateY(-10px); z-index: 5;
  box-shadow: 0 30px 70px rgba(0,0,0,.65);
}
.ig-card::before {
  content: ''; position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(2deg);
  width: 74px; height: 20px; background: rgba(217,166,19,.55);
  border-left: 1px dashed rgba(0,0,0,.15); border-right: 1px dashed rgba(0,0,0,.15);
}
.ig-card img { border-radius: 6px; aspect-ratio: 3/4; object-fit: cover; }
.ig-card .cap {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-hand); font-weight: 700; color: #52431c;
  padding: 9px 4px 0; font-size: 1.02rem; letter-spacing: .05em;
}
.ig-card .cap small { font-size: .85rem; opacity: .75; }

/* ── blog (parchment timeline) ─────────────────── */
.blog { background: var(--cream); color: #291f0e; }
.blog::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../img/grid.jpg'); background-size: 900px auto;
  opacity: .07; mix-blend-mode: multiply;
}
.blog-line { position: relative; margin-top: 60px; }
.blog-line::before {
  content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 9px;
  width: 2px; background: repeating-linear-gradient(180deg, var(--brick) 0 8px, transparent 8px 15px);
  opacity: .5;
}
.entry { position: relative; padding-inline-start: 46px; padding-bottom: 34px; }
.entry::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--brick);
  box-shadow: 0 0 0 5px var(--cream);
}
.entry .date {
  font-family: var(--font-hand); font-weight: 700; font-size: 1.12rem;
  color: var(--brick); letter-spacing: .1em;
}
.entry h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.2; color: var(--ink); margin: 2px 0 8px; }
.entry blockquote {
  font-size: 1.14rem; font-weight: 500; color: #3d3115;
  border-inline-start: 3px solid var(--gold); padding-inline-start: 16px; margin: 10px 0;
}
.entry cite { font-style: normal; font-size: .92rem; color: var(--gold-dim); font-weight: 700; }
.entry details { margin-top: 10px; }
.entry summary {
  cursor: pointer; font-family: var(--font-hand); font-weight: 700; font-size: 1.15rem;
  color: var(--brick); letter-spacing: .06em; list-style: none; display: inline-flex; align-items: center; gap: 8px;
  user-select: none;
}
.entry summary::-webkit-details-marker { display: none; }
.entry summary::after { content: '✦'; font-size: .8em; transition: transform .3s; }
.entry details[open] summary::after { transform: rotate(180deg); }
.entry .body {
  background: rgba(250,245,232,.85); border: 1px solid rgba(120,95,30,.2);
  border-radius: 12px; padding: 18px 20px; margin-top: 10px; max-width: 720px;
  font-size: 1.02rem; box-shadow: 0 10px 26px rgba(66,50,12,.1);
}
.entry .goto { font-size: .88rem; font-weight: 700; color: var(--gold-dim); display: inline-block; margin-top: 8px; }
.entry .goto:hover { color: var(--brick); }

/* ── blog page: search + topic index ───────────── */
.blog-page .wrap { padding-top: 120px; }
.blog-tools {
  margin: 30px 0 8px; max-width: 820px;
  background: var(--paper); border: 1px solid rgba(120,95,30,.22);
  border-radius: 20px; padding: 22px 22px 18px;
  box-shadow: 0 18px 44px rgba(66,50,12,.12);
}
.search-wrap { position: relative; }
.search-wrap .mag {
  position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--gold-dim); pointer-events: none;
}
.blog-search {
  width: 100%; font-family: var(--font-body); font-size: 1.05rem; font-weight: 400;
  padding: 14px 20px; padding-inline-start: 50px; border-radius: 14px;
  border: 1.5px solid rgba(120,95,30,.3); background: var(--cream); color: #2a2313;
  outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
.blog-search:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(217,166,19,.18); }
.blog-search::placeholder { color: #9c8c5e; }
.tools-label {
  font-family: var(--font-hand); font-weight: 700; font-size: 1.15rem; letter-spacing: .1em;
  color: var(--brick); display: block; margin: 16px 0 8px;
}
.tag-index { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-chip {
  font-family: var(--font-body); font-weight: 600; font-size: .85rem;
  padding: 5px 14px; border-radius: 999px; cursor: pointer; user-select: none;
  border: 1px solid rgba(143,111,20,.4); color: var(--gold-dim); background: rgba(217,166,19,.06);
  transition: all .18s; line-height: 1.4;
}
.tag-chip:hover { border-color: var(--gold); color: #6b530f; background: rgba(217,166,19,.16); transform: translateY(-1px); }
.tag-chip.active { background: var(--ink); color: var(--gold-bright); border-color: var(--ink); }
.entry .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.entry .tags .tag-chip { font-size: .78rem; padding: 3px 11px; }
.blog-count {
  font-family: var(--font-body); font-weight: 600; font-size: .88rem;
  color: var(--gold-dim); margin-top: 14px;
}
.blog-empty { text-align: center; padding: 60px 0; font-size: 1.1rem; color: var(--gold-dim); }
mark { background: rgba(217,166,19,.4); color: inherit; border-radius: 3px; padding: 0 2px; }
.load-more { text-align: center; margin-top: 30px; }
.load-more .btn { background: var(--ink); color: var(--gold-bright); border-radius: 999px; }
.load-more .btn:hover { background: var(--ink-soft); }

/* ── story timeline (dark) ─────────────────────── */
.story { background: linear-gradient(180deg, var(--night), #17110a 60%, var(--night)); overflow: hidden; }
.milestones { margin-top: 66px; display: grid; gap: 58px; }
.mile {
  display: grid; grid-template-columns: minmax(96px, 170px) 1fr; gap: clamp(18px, 4vw, 44px);
  align-items: start;
}
.mile .year {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold);
  transition: color .6s ease;
}
.mile:hover .year, .mile.on .year { color: var(--gold); -webkit-text-stroke-color: var(--gold); }
.mile h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--parchment); }
.mile p { max-width: 560px; opacity: .78; font-size: 1.02rem; margin-top: 6px; }

/* ── channels (community) ──────────────────────── */
.channels { background: var(--night); }
.chan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 18px; margin-top: 50px;
}
.chan {
  border: 1px solid rgba(239,228,201,.16); border-radius: 18px;
  padding: 26px 24px; background: rgba(255,255,255,.025);
  transition: all .35s; position: relative; overflow: hidden;
}
.chan::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background-image: url('../img/ink-gold.png'); background-size: 420px auto;
}
.chan:hover { transform: translateY(-6px); border-color: var(--gold); background: rgba(217,166,19,.06); }
.chan:hover::before { opacity: .12; }
.chan .seal {
  width: 58px; height: 58px; display: grid; place-items: center; position: relative;
  border-radius: 50%; color: var(--gold);
  border: 1.5px dashed rgba(217,166,19,.55);
  background: radial-gradient(circle at 35% 30%, rgba(217,166,19,.14), rgba(217,166,19,.03) 70%);
  box-shadow: 0 0 0 4px rgba(217,166,19,.07);
  transition: transform .45s cubic-bezier(.2,1.6,.35,1), box-shadow .35s, color .35s, border-color .35s;
}
.chan .seal svg { width: 27px; height: 27px; display: block; }
.chan:hover .seal {
  transform: rotate(-10deg) scale(1.12); color: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(217,166,19,.15), 0 8px 26px rgba(217,166,19,.28);
}
.chan h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-top: 14px; color: var(--parchment); }
.chan p { font-family: var(--font-hand); font-weight: 700; font-size: 1.1rem; color: var(--gold); letter-spacing: .06em; }
.chan .go {
  position: absolute; top: 20px; inset-inline-end: 20px; opacity: .35; transition: all .3s;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.2rem; color: var(--cream);
}
.chan:hover .go { opacity: 1; color: var(--gold-bright); transform: translate(var(--go-x, -5px), -3px) rotate(8deg); }
[dir="ltr"] .chan .go { --go-x: 5px; }
.community-photo { margin-top: 60px; border-radius: 22px; overflow: hidden; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.community-photo img { width: 100%; }
.community-photo figcaption {
  position: absolute; bottom: 0; inset-inline: 0; padding: 40px 26px 18px;
  background: linear-gradient(0deg, rgba(16,23,41,.92), transparent);
  font-family: var(--font-hand); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; color: var(--cream);
}

/* ── footer ────────────────────────────────────── */
footer {
  background: #0b101f; border-top: 1px solid rgba(217,166,19,.2);
  padding: 60px 22px 40px; text-align: center; position: relative; overflow: hidden;
}
footer .stamp { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 16px; opacity: .9; }
footer .hand { font-family: var(--font-hand); font-weight: 700; font-size: 1.5rem; color: var(--gold); letter-spacing: .1em; }
footer .years { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: #6f6a58; margin-top: 4px; }
footer .credit { margin-top: 26px; font-size: .85rem; color: #57536a; }
footer .credit a { color: #8b86a0; border-bottom: 1px dotted currentColor; }
footer .credit a:hover { color: var(--gold); }
footer .socials { display: flex; gap: 18px; justify-content: center; margin-top: 18px; }
footer .socials a { font-family: var(--font-hand); font-weight: 700; font-size: 1.05rem; color: #9a937c; letter-spacing: .06em; }
footer .socials a:hover { color: var(--gold-bright); }

/* ── separators ────────────────────────────────── */
.ink-sep { height: 34px; position: relative; z-index: 3; }
.ink-sep svg { display: block; width: 100%; height: 100%; }

/* ── responsive ────────────────────────────────── */
@media (max-width: 700px) {
  .mile { grid-template-columns: 1fr; gap: 8px; }
  .hero .counters { gap: 26px; }
  .nav-pill a { font-size: .85rem; padding: 4px 8px; }
  .entry .body { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .feed-track { animation: none !important; flex-wrap: wrap; width: auto; }
}
