/* =========================================================================
   The Topic Tree — Design System v2 (modern pass)
   Palette:  paper #F2F1E8 · ink #12201A · pine #1B4332 · pine-light #2F6B4F
             pine-deep #0E2A1F · gold #C99A2E · gold-light #E7C065
   Type:     Fraunces (display) · Inter (body) · JetBrains Mono (labels)
   ========================================================================= */

:root {
  --paper: #F2F1E8;
  --paper-alt: #E9E5D4;
  --card: #FFFEFA;
  --ink: #12201A;
  --pine: #1B4332;
  --pine-light: #2F6B4F;
  --pine-deep: #0E2A1F;
  --gold: #C99A2E;
  --gold-light: #E7C065;
  --muted: #667368;
  --line: #DEDACB;
  --line-strong: #CFC9B2;

  --grad-pine: linear-gradient(135deg, #1B4332 0%, #2F6B4F 55%, #3F8264 100%);
  --grad-gold: linear-gradient(135deg, #C99A2E 0%, #E7C065 100%);
  --grad-dark: radial-gradient(120% 140% at 15% 0%, #1E4A37 0%, #0E2A1F 55%, #0A2018 100%);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 26px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(18,32,26,0.06), 0 2px 8px rgba(18,32,26,0.05);
  --shadow-md: 0 4px 10px rgba(18,32,26,0.06), 0 16px 36px rgba(18,32,26,0.10);
  --shadow-lg: 0 10px 24px rgba(18,32,26,0.10), 0 30px 70px rgba(18,32,26,0.16);
  --shadow-gold: 0 10px 26px rgba(201,154,46,0.35);

  --ease: cubic-bezier(.22,1,.36,1);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 3vw + 1.6rem, 4.2rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.6vw + 1.1rem, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--pine); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--gold); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff;
  padding: .75em 1.25em; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--pine-light); margin-bottom: 1em;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1.5px; background: var(--gold); display: inline-block;
}
.eyebrow--on-dark { color: var(--gold-light); }

/* ---------------------------------------------------------------------
   Scroll-reveal (progressive enhancement; JS adds .is-visible)
   ------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .09s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .23s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .30s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .37s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tree-draw path, .tree-draw circle { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }
  * { animation-duration: .001ms !important; }
}

/* ---------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .95em 1.7em; border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--grad-pine); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--pine); color: var(--pine); transform: translateY(-2px); }
.btn--gold { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.btn--gold:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(201,154,46,0.42); }
.btn--on-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); backdrop-filter: blur(6px); }
.btn--on-dark:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.btn--sm { padding: .6em 1.3em; font-size: .85rem; border-radius: var(--radius-full); }
.btn--danger { background: #9C3B2C; color: #fff; }
.btn--danger:hover { background: #7f2f22; color: #fff; transform: translateY(-2px); }
/* keep legacy alias so any old class references still render sensibly */
.btn { background: var(--grad-pine); color: #fff; }

/* ---------------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(242,241,232,0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(222,218,201,0.7);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(18,32,26,0.08); background: rgba(242,241,232,0.92); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(18,32,26,0.12)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
.brand__tagline { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--ink); font-weight: 500; font-size: .93rem;
  padding: 9px 16px; border-radius: var(--radius-full);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.site-nav a:hover { color: var(--pine); background: rgba(27,67,50,0.07); }
.site-nav a.is-active { color: var(--pine); background: rgba(27,67,50,0.1); font-weight: 600; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; border-radius: var(--radius-sm);
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------- */
.hero { position: relative; padding: 84px 0 56px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0; pointer-events: none;
}
.hero::before { width: 480px; height: 480px; background: radial-gradient(circle, rgba(47,107,79,0.28), transparent 70%); top: -180px; left: -140px; }
.hero::after { width: 420px; height: 420px; background: radial-gradient(circle, rgba(201,154,46,0.22), transparent 70%); bottom: -160px; right: -120px; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero__copy p.lead { font-size: 1.2rem; color: var(--muted); max-width: 48ch; }
.hero__actions { display: flex; gap: 14px; margin-top: 1.7em; flex-wrap: wrap; }

.hero__proof { display: flex; gap: 28px; margin-top: 2.6em; flex-wrap: wrap; }
.hero__proof-item { display: flex; flex-direction: column; }
.hero__proof-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--pine); }
.hero__proof-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.hero__panel {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 30px 20px 24px; justify-self: center; width: 100%; max-width: 420px;
}
.hero__panel svg { width: 100%; height: auto; }
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: 7px;
  background: rgba(255,254,250,0.9); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius-full);
  padding: 8px 14px; font-family: var(--font-mono); font-size: .72rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.hero__chip--tl { top: -14px; left: -18px; }
.hero__chip--br { bottom: -14px; right: -14px; }
.hero__chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Tree draw-in animation */
.tree-draw path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s var(--ease) forwards; }
.tree-draw path:nth-of-type(1) { animation-delay: .05s; }
.tree-draw path:nth-of-type(2) { animation-delay: .25s; }
.tree-draw path:nth-of-type(3) { animation-delay: .45s; }
.tree-draw path:nth-of-type(4) { animation-delay: .5s; }
.tree-draw path:nth-of-type(5) { animation-delay: .25s; }
.tree-draw path:nth-of-type(6) { animation-delay: .5s; }
.tree-draw path:nth-of-type(7) { animation-delay: .55s; }
.tree-draw path:nth-of-type(8) { animation-delay: .25s; }
.tree-draw path:nth-of-type(9) { animation-delay: .5s; }
.tree-draw path:nth-of-type(10) { animation-delay: .55s; }
.tree-draw circle { opacity: 0; animation: pop .5s var(--ease) forwards; animation-delay: .75s; transform-origin: center; transform-box: fill-box; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

/* ---------------------------------------------------------------------
   Section rhythm
   ------------------------------------------------------------------- */
.section { padding: 68px 0; position: relative; }
.section--tight { padding: 34px 0; }
.section--alt { background: var(--paper-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; }
.section-head .eyebrow { margin-bottom: .3em; }

/* Dark contrast band */
.band-dark {
  position: relative; background: var(--grad-dark); color: #F3F1E8; overflow: hidden;
  border-radius: var(--radius-lg); padding: 64px 44px; text-align: center;
}
.band-dark::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,154,46,0.28), transparent 70%);
  top: -160px; right: -120px; filter: blur(10px); pointer-events: none;
}
.band-dark h2 { color: #fff; }
.band-dark p { color: rgba(243,241,232,0.75); max-width: 52ch; margin: 0 auto 1.6em; }
.band-dark__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Value / feature cards (bento)
   ------------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature-card__icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-pine); color: #fff; margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: .4em; font-size: 1.1rem; }
.feature-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------------------------------------------------------------------
   Category pills
   ------------------------------------------------------------------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .03em;
  padding: .6em 1.2em; border-radius: var(--radius-full); border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink);
  transition: all .2s var(--ease);
}
.pill:hover { border-color: var(--pine); color: var(--pine); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pill.is-active { background: var(--grad-pine); border-color: transparent; color: #fff; box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------------
   Featured post (editorial hero card)
   ------------------------------------------------------------------- */
.featured-post {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 26px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.featured-post:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.featured-post__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--grad-pine); }
.featured-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.featured-post:hover .featured-post__media img { transform: scale(1.05); }
.featured-post__body { padding: 40px 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.featured-post__tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .4em 1em; border-radius: var(--radius-full); background: var(--grad-gold); color: var(--ink); font-weight: 600;
}
.featured-post__body h2 { margin: 0; font-size: clamp(1.5rem, 1.4vw + 1.1rem, 2.1rem); }
.featured-post__body h2 a { color: var(--ink); }
.featured-post__body h2 a:hover { color: var(--pine); }
.featured-post__excerpt { color: var(--muted); font-size: 1rem; margin: 0; }
.featured-post__meta { font-size: .82rem; color: var(--muted); font-family: var(--font-mono); }

/* ---------------------------------------------------------------------
   Post cards / grid
   ------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.post-card__media { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--grad-pine); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.08); }
.post-card__media--empty { display: flex; align-items: center; justify-content: center; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__cat {
  align-self: flex-start; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--pine); font-weight: 600; background: rgba(27,67,50,0.08); padding: .3em .8em; border-radius: var(--radius-full);
}
.post-card__title { font-size: 1.15rem; margin: 0; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--pine); }
.post-card__excerpt { color: var(--muted); font-size: .92rem; flex: 1; }
.post-card__meta { font-size: .78rem; color: var(--muted); font-family: var(--font-mono); display: flex; gap: 10px; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--card); }

/* ---------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span {
  font-family: var(--font-mono); font-size: .85rem;
  min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-full); color: var(--ink);
  transition: all .2s var(--ease);
}
.pagination a:hover { border-color: var(--pine); color: var(--pine); transform: translateY(-2px); }
.pagination .is-current { background: var(--grad-pine); border-color: transparent; color: #fff; }

/* ---------------------------------------------------------------------
   Single post
   ------------------------------------------------------------------- */
.post-header { padding: 60px 0 20px; position: relative; }
.post-header .meta { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); }
.reading-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(27,67,50,0.08); color: var(--pine); padding: .3em .9em; border-radius: var(--radius-full); font-size: .78rem; }
.post-cover { aspect-ratio: 21/9; border-radius: var(--radius-lg); overflow: hidden; margin: 26px 0; background: var(--grad-pine); box-shadow: var(--shadow-md); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { font-size: 1.1rem; max-width: 74ch; margin: 0 auto; }
.post-body h2 { margin-top: 1.5em; }
.post-body p { margin-bottom: 1.35em; }
.post-body img { border-radius: var(--radius); margin: 1.6em 0; box-shadow: var(--shadow-sm); }
.post-body blockquote {
  border-left: 3px solid var(--gold); margin: 1.8em 0; padding: .3em 0 .3em 1.4em;
  color: var(--muted); font-style: italic; font-family: var(--font-display); font-size: 1.2rem;
}
.post-body a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin-bottom: 1.35em; }

/* ---------------------------------------------------------------------
   Page header
   ------------------------------------------------------------------- */
.page-header { position: relative; padding: 64px 0 30px; text-align: center; overflow: hidden; }
.page-header p { color: var(--muted); max-width: 56ch; margin: 0 auto; font-size: 1.08rem; }
.page-header::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,79,0.16), transparent 70%);
  top: -180px; left: 50%; transform: translateX(-50%); filter: blur(10px); pointer-events: none; z-index: 0;
}
.page-header .wrap { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------
   About page
   ------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.value-list li { padding-left: 34px; position: relative; }
.value-list li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%; background: var(--grad-gold);
  box-shadow: 0 0 0 4px rgba(201,154,46,0.15);
}

/* ---------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------- */
.form { max-width: 640px; }
.form-row { margin-bottom: 22px; display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-weight: 600; font-size: .92rem; }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-body); font-size: 1rem;
  padding: .9em 1.1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--pine); outline: none; box-shadow: 0 0 0 4px rgba(27,67,50,0.12);
}
.form-hint { font-size: .8rem; color: var(--muted); }
.form-error { color: #9C3B2C; font-size: .85rem; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: .95rem; }
.alert--success { background: #E4F0E7; color: #1B4332; border: 1px solid #BEDBC5; }
.alert--error { background: #F7E4E0; color: #7f2f22; border: 1px solid #EABDB3; }

/* ---------------------------------------------------------------------
   Contact info cards
   ------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 16px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-card__icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(27,67,50,0.08); color: var(--pine); display: flex; align-items: center; justify-content: center;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.site-footer { position: relative; background: var(--grad-dark); color: rgba(243,241,232,0.85); margin-top: 90px; padding: 64px 0 28px; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-gold);
}
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; padding-bottom: 42px; border-bottom: 1px solid rgba(243,241,232,0.14); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: #fff; margin-bottom: 12px; }
.footer-blurb { color: rgba(243,241,232,0.6); font-size: .92rem; max-width: 36ch; margin: 0; }
.footer-col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,241,232,0.5); margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; color: rgba(243,241,232,0.85); font-size: .93rem; margin-bottom: 12px; }
.footer-col a:hover { color: var(--gold-light); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: .82rem; color: rgba(243,241,232,0.5); }
.site-footer__bottom a { color: rgba(243,241,232,0.5); }
.site-footer__bottom a:hover { color: var(--gold-light); }

/* ---------------------------------------------------------------------
   Admin area (lighter modern touch-up)
   ------------------------------------------------------------------- */
.admin-body { background: var(--paper); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 232px; background: var(--grad-dark); color: #fff; padding: 26px 20px; flex-shrink: 0; }
.admin-sidebar .brand__name { color: #fff; }
.admin-sidebar nav { margin-top: 36px; display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar nav a { color: rgba(243,241,232,0.7); padding: 11px 14px; border-radius: var(--radius-sm); font-size: .92rem; transition: all .2s var(--ease); }
.admin-sidebar nav a:hover, .admin-sidebar nav a.is-active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { flex: 1; padding: 36px 42px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.admin-table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.status-badge { font-size: .72rem; font-family: var(--font-mono); padding: .3em .8em; border-radius: var(--radius-full); }
.status-badge--published { background: #E4F0E7; color: #1B4332; }
.status-badge--draft { background: #F1EEDC; color: #8a6d1b; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--grad-dark); }
.login-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 42px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); }
.login-card .brand { justify-content: center; margin-bottom: 26px; }

/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { order: -1; max-width: 320px; margin: 0 auto; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 24px; }
}

@media (max-width: 620px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0;
    max-height: 0; overflow: hidden; transition: max-height .25s var(--ease);
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav a { width: 100%; padding: 14px 24px; border-radius: 0; }
  .post-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 60px 0 40px; }
  .hero::before, .hero::after { display: none; }
  .band-dark { padding: 44px 24px; }
  .hero__proof { gap: 20px; }
}
