/* ==========================================================================
   symfonikamiasqc.com — stylesheet v2

   Design brief: an editorial property magazine for the Philippine diaspora.
   Deep tropical greens against warm brass, five section identity colours,
   generated architectural cover art, and typography with real hierarchy.
   Built light-first (ads read better on light grounds) with a full dark theme.

   Type: Source Serif 4 (display) + Public Sans (UI/body) + Public Sans caps
   ========================================================================== */

:root {
  /* --- brand ---------------------------------------------------------- */
  --brand:        #0C5240;
  --brand-deep:   #07352A;
  --brand-lift:   #14735A;
  --brand-tint:   #E4EFEA;
  --brand-wash:   #F1F7F4;

  --brass:        #96690F;
  --brass-tint:   #FAF0DA;

  /* --- section identity ----------------------------------------------- */
  --sec-ofw:      #0C5240;
  --sec-fin:      #8A6114;
  --sec-for:      #14506B;
  --sec-qc:       #7A3B2E;
  --sec-liv:      #4C6B33;

  /* --- neutrals (green-biased, deliberately not pure grey) ------------- */
  --ink:          #101A18;
  --ink-2:        #45534F;
  --ink-3:        #6F7D78;
  --ink-4:        #93A09B;

  --paper:        #FFFFFF;
  --paper-2:      #F4F7F5;
  --paper-3:      #E9EEEB;
  --ground:       #FBFCFB;

  --line:         #E0E6E2;
  --line-2:       #C7D0CB;

  --danger:       #8E2A20;
  --danger-tint:  #FBEDEB;
  --ok:           #256B45;

  --shadow-sm: 0 1px 2px rgba(16,26,24,.05), 0 2px 8px rgba(16,26,24,.04);
  --shadow-md: 0 2px 6px rgba(16,26,24,.06), 0 12px 28px rgba(16,26,24,.07);

  /* --- type ------------------------------------------------------------ */
  --f-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-body:    "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* --- metrics --------------------------------------------------------- */
  --wrap:   1240px;
  --read:   43rem;
  --r:      4px;
  --r-lg:   8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:      #4FBE9C;
    --brand-deep: #7BD5B7;
    --brand-lift: #63CBAA;
    --brand-tint: #10302A;
    --brand-wash: #0E241F;

    --brass:      #D9AE5A;
    --brass-tint: #2A2214;

    --sec-ofw:    #4FBE9C;
    --sec-fin:    #D5A85C;
    --sec-for:    #62B4DA;
    --sec-qc:     #DE9179;
    --sec-liv:    #A2C57A;

    --ink:        #E6ECE9;
    --ink-2:      #A3B1AC;
    --ink-3:      #7F8D88;
    --ink-4:      #64716C;

    --paper:      #131A18;
    --paper-2:    #1A2321;
    --paper-3:    #222D2A;
    --ground:     #0D1312;

    --line:       #26312E;
    --line-2:     #35423E;

    --danger:     #E0857A;
    --danger-tint:#2E1B18;
    --ok:         #6ECB9C;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 2px 6px rgba(0,0,0,.35), 0 12px 28px rgba(0,0,0,.3);
  }
}

:root[data-theme="dark"] {
  --brand:      #4FBE9C;
  --brand-deep: #7BD5B7;
  --brand-lift: #63CBAA;
  --brand-tint: #10302A;
  --brand-wash: #0E241F;

  --brass:      #D9AE5A;
  --brass-tint: #2A2214;

  --sec-ofw:    #4FBE9C;
  --sec-fin:    #D5A85C;
  --sec-for:    #62B4DA;
  --sec-qc:     #DE9179;
  --sec-liv:    #A2C57A;

  --ink:        #E6ECE9;
  --ink-2:      #A3B1AC;
  --ink-3:      #7F8D88;
  --ink-4:      #64716C;

  --paper:      #131A18;
  --paper-2:    #1A2321;
  --paper-3:    #222D2A;
  --ground:     #0D1312;

  --line:       #26312E;
  --line-2:     #35423E;

  --danger:     #E0857A;
  --danger-tint:#2E1B18;
  --ok:         #6ECB9C;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 2px 6px rgba(0,0,0,.35), 0 12px 28px rgba(0,0,0,.3);
}

/* section accent, set per page/card via [data-sec] */
[data-sec="ofw-guides"]    { --accent: var(--sec-ofw); }
[data-sec="financing"]     { --accent: var(--sec-fin); }
[data-sec="foreign-buyers"]{ --accent: var(--sec-for); }
[data-sec="quezon-city"]   { --accent: var(--sec-qc);  }
[data-sec="condo-living"]  { --accent: var(--sec-liv); }
:root { --accent: var(--brand); }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
    text-underline-offset: 2px; transition: color .12s ease; }
a:hover { color: var(--brand-lift); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.15rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--brand);
        color: #fff; padding: .7rem 1rem; z-index: 300; }
.skip:focus { left: 0; }

/* ==========================================================================
   Reading progress
   ========================================================================== */

.progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brass));
  z-index: 200; transition: width .08s linear;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 150;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: .8rem; min-height: 62px; }

.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--ink); line-height: 1;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; flex: none; border-radius: 7px;
  background: linear-gradient(145deg, var(--brand-lift), var(--brand-deep));
  display: grid; place-items: center; color: #fff;
  font-family: var(--f-display); font-size: 1.15rem; box-shadow: var(--shadow-sm);
}
.logo-text { display: flex; flex-direction: column; gap: .12rem; }
.logo-name { font-family: var(--f-display); font-weight: 600; font-size: 1.09rem;
             letter-spacing: -.015em; }
.logo-sub { font-size: .6rem; font-weight: 600; letter-spacing: .16em;
            text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 430px) {
  .logo-sub { display: none; }
  .logo-name { font-size: 1rem; }
  .header-tools { gap: .3rem; }
}

.header-tools { margin-left: auto; display: flex; align-items: center; gap: .4rem; }

.icon-btn {
  background: none; border: 1px solid var(--line-2); border-radius: var(--r);
  width: 36px; height: 36px; display: grid; place-items: center;
  color: var(--ink-2); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 17px; height: 17px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 1px solid var(--line-2); border-radius: var(--r);
  padding: .45rem .7rem; font: inherit; font-size: .8rem; font-weight: 600;
  color: var(--ink-2); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brand); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .855rem; font-weight: 600;
  padding: .3rem 0; display: block; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent, var(--brand)); transform: scaleX(0);
  transform-origin: left; transition: transform .16s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav li:nth-child(1) a { --accent: var(--sec-ofw); }
.nav li:nth-child(2) a { --accent: var(--sec-fin); }
.nav li:nth-child(3) a { --accent: var(--sec-for); }
.nav li:nth-child(4) a { --accent: var(--sec-qc);  }
.nav li:nth-child(5) a { --accent: var(--sec-liv); }

@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: .5rem 1.15rem 1rem;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav a::after { display: none; }
  .nav li:last-child a { border-bottom: 0; }
}
@media (min-width: 901px) { .nav-toggle { display: none; } }

/* ==========================================================================
   Search
   ========================================================================== */

.search-panel {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  padding: 12vh 1.15rem 2rem;
}
.search-panel.open { display: block; }
.search-box {
  max-width: 620px; margin-inline: auto; background: var(--paper);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.search-box input {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 1rem 1.15rem;
  border: 0; border-bottom: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
}
.search-results { list-style: none; margin: 0; padding: 0; max-height: 55vh; overflow-y: auto; }
.search-results li { border-bottom: 1px solid var(--line); }
.search-results a { display: block; padding: .8rem 1.15rem; text-decoration: none; }
.search-results a:hover { background: var(--paper-2); }
.search-results .sr-t { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; }
.search-results .sr-s { display: block; font-size: .78rem; color: var(--ink-3); margin-top: .15rem; }
.search-empty { padding: 1.1rem 1.15rem; color: var(--ink-3); font-size: .9rem; }

/* ==========================================================================
   Ads
   ========================================================================== */

.ad-slot {
  margin: 2.2rem auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.ad-slot::before {
  content: "Advertisement"; font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4); font-weight: 600;
}
.ad-slot ins { width: 100%; display: block; }

/* Reserve roughly what a responsive display unit occupies, so the page does not
   jump when the ad arrives. Cumulative Layout Shift is a ranking signal and a
   shifting page costs viewable impressions. */
.ad-slot:not(.ad-anchor) { min-height: 108px; }
@media (min-width: 901px) { .ad-leaderboard { min-height: 120px; } }

/* Nothing to show: drop the label and the reserved space rather than leaving
   an "Advertisement" heading floating over a gap. */
.ad-slot.is-unfilled { min-height: 0; margin: 0; }
.ad-slot.is-unfilled::before { display: none; }
.ad-slot.is-unfilled ins { display: none; }
.ad-slot .ad-placeholder {
  width: 100%; max-width: 728px; min-height: 92px;
  border: 1px dashed var(--line-2); border-radius: var(--r);
  background: var(--paper-2); display: grid; place-items: center;
  color: var(--ink-3); font-size: .78rem; padding: .9rem; text-align: center;
}
.ad-leaderboard { margin-top: 1.2rem; margin-bottom: 1.6rem; }
.ad-sidebar { margin: 0 0 1.5rem; }
.ad-sidebar .ad-placeholder { min-height: 250px; max-width: 300px; }

.ad-anchor {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
  background: var(--paper); border-top: 1px solid var(--line);
  margin: 0; padding: .3rem .5rem calc(.3rem + env(safe-area-inset-bottom));
  overflow: visible; box-shadow: 0 -4px 18px rgba(16,26,24,.10);
}
.ad-anchor::before { display: none; }
.ad-anchor .ad-placeholder { min-height: 50px; max-width: 330px; font-size: .7rem; }
.ad-anchor .ad-close {
  position: absolute; right: .4rem; top: -1.45rem;
  background: var(--paper); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 4px 4px 0 0; font: inherit; font-size: .68rem; line-height: 1;
  padding: .32rem .5rem; color: var(--ink-2); cursor: pointer;
}
@media (min-width: 901px) { .ad-anchor { display: none; } }
@media (max-width: 900px) { body { padding-bottom: 100px; } }

/* ==========================================================================
   Layout
   ========================================================================== */

.layout { display: block; padding-block: 1.4rem 3rem; }
@media (min-width: 1060px) {
  .layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 3.4rem; align-items: start; }
}
.main { min-width: 0; }
.main > * { max-width: var(--read); }
.main > .full { max-width: none; }

.sidebar { min-width: 0; }
@media (min-width: 1060px) { .sidebar { position: sticky; top: 78px; } }
@media (max-width: 1059px) {
  .sidebar { border-top: 1px solid var(--line); padding-top: 1.8rem; margin-top: 2.6rem; }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600;
                 letter-spacing: -.016em; text-wrap: balance; }

h1 { font-size: clamp(2rem, 5.2vw, 2.85rem); line-height: 1.1; margin: .4rem 0 .85rem; }
h2 { font-size: clamp(1.4rem, 3.3vw, 1.78rem); line-height: 1.2; margin: 2.8rem 0 .75rem;
     scroll-margin-top: 5.5rem; }
h3 { font-size: 1.14rem; line-height: 1.3; margin: 2rem 0 .5rem; }

p { margin: 0 0 1.18rem; }
.lede { font-size: 1.16rem; color: var(--ink-2); line-height: 1.6; }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
li { margin-bottom: .52rem; }
li::marker { color: var(--accent, var(--brand)); }

strong { font-weight: 700; }
em { font-style: italic; }

blockquote { margin: 1.8rem 0; padding: .1rem 0 .1rem 1.2rem;
             border-left: 3px solid var(--accent, var(--brand));
             color: var(--ink-2); font-style: italic; }

.eyebrow {
  font-size: .67rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent, var(--brand));
}

/* ==========================================================================
   Cover art (generated SVG)
   ========================================================================== */

.cover { display: block; width: 100%; aspect-ratio: 40 / 21; overflow: hidden;
         border-radius: var(--r); background: var(--paper-2);
         color: var(--accent, var(--brand)); }   /* SVGs paint with currentColor */
.postlist li > a, .pillar > a, .featured > a, .card > a { display: block; text-decoration: none; }
.cover svg { width: 100%; height: 100%; display: block; }
.cover-lg { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); aspect-ratio: 40 / 14; }
.hero .cover-lg { aspect-ratio: 40 / 22; }

/* ==========================================================================
   Badges, chips
   ========================================================================== */

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent, var(--brand));
  background: color-mix(in srgb, var(--accent, var(--brand)) 11%, transparent);
  padding: .28rem .55rem; border-radius: 100px;
}

.breadcrumb { font-size: .78rem; color: var(--ink-3); margin: 0 0 .5rem; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent, var(--brand)); text-decoration: underline; }

/* ==========================================================================
   Article furniture
   ========================================================================== */

.byline {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center;
  font-size: .8rem; color: var(--ink-3);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: .75rem 0; margin: 1.4rem 0 1.9rem;
}
.byline .who { color: var(--ink-2); font-weight: 700; }
.byline .updated { background: var(--brass-tint); color: var(--brass);
                   padding: .12rem .5rem; border-radius: 100px; font-weight: 700; }

.keyfacts {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent, var(--brand)) 8%, var(--paper)),
    var(--paper));
  border: 1px solid color-mix(in srgb, var(--accent, var(--brand)) 22%, var(--line));
  border-radius: var(--r-lg); padding: 1.25rem 1.35rem; margin: 1.9rem 0;
}
.keyfacts h2, .keyfacts h3 {
  margin: 0 0 .7rem; font-size: .7rem; font-family: var(--f-body); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent, var(--brand));
}
.keyfacts ul { margin: 0; padding-left: 1.15rem; }
.keyfacts li { margin-bottom: .42rem; font-size: .94rem; }
.keyfacts li:last-child { margin-bottom: 0; }

.toc { border: 1px solid var(--line); border-radius: var(--r-lg);
       padding: 1.1rem 1.25rem; margin: 1.9rem 0; background: var(--paper-2); }
.toc p { margin: 0 0 .55rem; font-size: .67rem; font-weight: 700; letter-spacing: .14em;
         text-transform: uppercase; color: var(--ink-3); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .32rem; font-size: .92rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.callout {
  border-left: 3px solid var(--accent, var(--brand)); background: var(--paper-2);
  padding: 1.05rem 1.2rem; margin: 1.8rem 0; border-radius: 0 var(--r) var(--r) 0;
}
.callout.warn   { border-left-color: var(--brass);  background: var(--brass-tint); }
.callout.danger { border-left-color: var(--danger); background: var(--danger-tint); }
.callout p:last-child { margin-bottom: 0; }
.callout .callout-label {
  display: block; font-size: .65rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem;
}

/* --- stat blocks ------------------------------------------------------- */
.stats { display: grid; gap: 1px; background: var(--line);
         border: 1px solid var(--line); border-radius: var(--r-lg);
         overflow: hidden; margin: 2rem 0; grid-template-columns: 1fr;
         list-style: none; padding: 0; }
@media (min-width: 560px) { .stats.three { grid-template-columns: repeat(3, 1fr); }
                            .stats.two { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--paper); padding: 1.1rem 1.15rem; margin: 0; }
.stat-n { font-family: var(--f-display); font-size: 1.85rem; font-weight: 600;
          line-height: 1.05; color: var(--accent, var(--brand));
          font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-l { font-size: .8rem; color: var(--ink-2); margin-top: .3rem; line-height: 1.4; }
.stat-src { font-size: .67rem; color: var(--ink-4); margin-top: .35rem; }

/* --- tables ------------------------------------------------------------ */
.table-scroll { overflow-x: auto; margin: 1.7rem 0; -webkit-overflow-scrolling: touch;
                border: 1px solid var(--line); border-radius: var(--r-lg); }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: .89rem; }
caption { caption-side: bottom; font-size: .75rem; color: var(--ink-3);
          text-align: left; padding: .65rem .9rem 0; }
th, td { text-align: left; vertical-align: top; padding: .66rem .9rem;
         border-bottom: 1px solid var(--line); }
thead th { font-size: .65rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
           color: var(--ink-3); background: var(--paper-2);
           border-bottom: 1px solid var(--line-2); white-space: nowrap; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper-2) 55%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- FAQ --------------------------------------------------------------- */
.faq { margin: 1.9rem 0; border: 1px solid var(--line); border-radius: var(--r-lg);
       overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); background: var(--paper); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: .95rem 1.15rem; font-weight: 700; font-size: .96rem;
               list-style: none; display: flex; gap: .75rem; align-items: flex-start; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent, var(--brand)); font-weight: 700;
                       flex: none; width: .9rem; font-size: 1.1rem; line-height: 1.35; }
.faq details[open] summary::before { content: "\2212"; }
.faq details[open] summary { padding-bottom: .35rem; }
.faq details > div { padding: 0 1.15rem 1rem 2.8rem; color: var(--ink-2); font-size: .94rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* --- author + sources -------------------------------------------------- */
.authorbox { display: flex; gap: 1.1rem; align-items: flex-start;
             border: 1px solid var(--line); border-radius: var(--r-lg);
             padding: 1.2rem 1.3rem; margin: 2.6rem 0 0; background: var(--paper-2); }
.authorbox .avatar { flex: none; width: 54px; height: 54px; border-radius: 50%;
                     background: linear-gradient(145deg, var(--brand-lift), var(--brand-deep));
                     color: #fff; display: grid; place-items: center;
                     font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; }
.authorbox h3 { margin: 0 0 .28rem; font-size: .97rem; font-family: var(--f-body);
                letter-spacing: 0; }
.authorbox p { margin: 0; font-size: .87rem; color: var(--ink-2); }

.sources { margin-top: 2.4rem; font-size: .84rem; color: var(--ink-2);
           border-top: 1px solid var(--line); padding-top: 1.3rem; }
.sources h2 { font-size: .68rem; font-family: var(--f-body); font-weight: 700;
              letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
              margin: 0 0 .65rem; }
.sources ul { padding-left: 1.15rem; }
.sources li { margin-bottom: .32rem; }

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr;
             list-style: none; padding: 0; margin: 0; }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid.three { grid-template-columns: repeat(3, 1fr); } }

.card { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.card .cover { margin-bottom: .2rem; }
.card h3 { margin: 0; font-size: 1.05rem; line-height: 1.28; }
.card h3 a { text-decoration: none; color: var(--ink);
             background-image: linear-gradient(var(--accent), var(--accent));
             background-size: 0% 1px; background-position: 0 100%;
             background-repeat: no-repeat; transition: background-size .2s ease; }
.card h3 a:hover { color: var(--accent); background-size: 100% 1px; }
.card p { margin: 0; font-size: .87rem; color: var(--ink-2); }
.card .meta { font-size: .73rem; color: var(--ink-4); margin-top: auto; padding-top: .2rem; }

.pillar-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr;
               list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--paper); display: flex; flex-direction: column;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pillar:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
                box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar .cover { border-radius: 0; aspect-ratio: 40/15; }
.pillar-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column;
               gap: .45rem; flex: 1; }
.pillar h3 { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.pillar h3 a { text-decoration: none; color: var(--ink); }
.pillar h3 a:hover { color: var(--accent); }
.pillar p { margin: 0; font-size: .86rem; color: var(--ink-2); }
.pillar .meta { font-size: .72rem; color: var(--ink-4); margin-top: auto; padding-top: .5rem; }

/* --- post list --------------------------------------------------------- */
.postlist { list-style: none; margin: 0; padding: 0; }
.postlist li { padding: 1.25rem 0; border-bottom: 1px solid var(--line);
               display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .postlist li { grid-template-columns: 190px 1fr; align-items: start; }
}
.postlist li:first-child { padding-top: 0; }
.postlist .pl-body { min-width: 0; }
.postlist h3 { margin: 0 0 .32rem; font-size: 1.16rem; line-height: 1.28; }
.postlist h3 a { text-decoration: none; color: var(--ink); }
.postlist h3 a:hover { color: var(--accent); }
.postlist p { margin: 0 0 .4rem; font-size: .91rem; color: var(--ink-2); }
.postlist .meta { font-size: .73rem; color: var(--ink-4); }

/* --- featured ---------------------------------------------------------- */
.featured {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); overflow: hidden; box-shadow: var(--shadow-sm);
}
@media (min-width: 800px) { .featured { grid-template-columns: 1.05fr 1fr; gap: 0; } }
.featured .cover { border-radius: 0; height: 100%; aspect-ratio: 40/25; }
.featured-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column;
                 gap: .6rem; justify-content: center; }
.featured h3 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.2; }
.featured h3 a { text-decoration: none; color: var(--ink); }
.featured h3 a:hover { color: var(--accent); }
.featured p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.featured .meta { font-size: .74rem; color: var(--ink-4); }

/* ==========================================================================
   Hero / sections
   ========================================================================== */

.hero {
  position: relative; padding: 3rem 0 2.4rem; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto;
  width: 46rem; height: 46rem; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 60% 40%,
              color-mix(in srgb, var(--accent, var(--brand)) 13%, transparent) 0%,
              transparent 62%);
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { display: block; margin-bottom: .9rem; }
.hero h1 { max-width: 19ch; margin-top: 0; }
.hero .lede { max-width: 54ch; margin-bottom: 0; }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }

.section { padding: 2.8rem 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between;
                gap: 1rem; border-bottom: 1px solid var(--line-2);
                padding-bottom: .6rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; font-size: 1.32rem; }
.section-head a { font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */

.widget { border: 1px solid var(--line); border-radius: var(--r-lg);
          padding: 1.1rem 1.2rem; margin-bottom: 1.5rem; background: var(--paper); }
.widget h2 { font-size: .68rem; font-family: var(--f-body); font-weight: 700;
             letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
             margin: 0 0 .8rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--line);
             font-size: .89rem; line-height: 1.4; display: flex; gap: .7rem; }
.widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget li .n { font-family: var(--f-display); font-size: .95rem; color: var(--ink-4);
                flex: none; width: 1.1rem; font-weight: 600; }
.widget a { text-decoration: none; color: var(--ink); font-weight: 600; }
.widget a:hover { color: var(--brand); }

.widget.accent { background: var(--brand-wash); border-color: color-mix(in srgb, var(--brand) 20%, var(--line)); }
.widget.accent h2 { color: var(--brand); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line-2); background: var(--paper-2);
               padding: 2.8rem 0 3rem; margin-top: 3.4rem;
               font-size: .88rem; color: var(--ink-2); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h2 { font-size: .67rem; font-family: var(--f-body); font-weight: 700;
                  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
                  margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }

.disclosure { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-2);
              font-size: .79rem; color: var(--ink-3); line-height: 1.6; }
.disclosure strong { color: var(--ink-2); }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-field { margin-bottom: 1.15rem; max-width: 32rem; }
.form-field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: .38rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; font: inherit; font-size: .95rem; padding: .65rem .75rem;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--paper); color: var(--ink);
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0;
       border-radius: var(--r); padding: .72rem 1.35rem; font: inherit;
       font-size: .92rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-lift); color: #fff; }
:root[data-theme="dark"] .btn { color: var(--ground); }

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header, .sidebar, .ad-slot, .site-footer,
  .nav-toggle, .progress, .search-panel { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
  .main > * { max-width: none; }
}
