﻿/* ============================================================
   Shared design system — tokenized theme
   Component rules reference CSS variables only; each site
   supplies its own palette via :root.
   ============================================================ */

:root{
  --text-primary:#26211D;
  --text-secondary:#6E645A;
  --border:#E3DCD2;
  --shadow:0 2px 8px rgba(0,0,0,.1);
  --shadow-hover:0 6px 18px rgba(0,0,0,.18);
  --pip-cream:#F7F3EE;
  --pip-espresso:#101010;
  --pip-sun:#F0E3D6;
  --pip-coral:#D42B2B;
  --pip-fern:#D42B2B;
  --pip-ink:#0C0C0C;
  --bg-soft:#F1EBE3;
  --link:#A81E28;
  --link-hover:#7F1720;
  --heading:#151212;
  --hero-bg:#141414;
  --hero-dot:rgba(212,43,43,.38);
  --hero-glow:rgba(212,43,43,.30);
  --hero-eyebrow:#E8A9A3;
  --hero-live:#D42B2B;
  --hero-live-glow:rgba(212,43,43,.38);
  --hero-title:#F7F3EE;
  --hero-sub:#B9ACA0;
  --stat-label:#8F8377;
  --accent:#D42B2B;
  --accent-dark:#A81E28;
  --on-accent:#FFFFFF;
  --on-dark:#F7F3EE;
  --on-dark-soft:#CFC6BB;
  --sun:#C9A24B;
  --sun-dark:#A9852F;
  --sun-text:#141414;
  --on-image-accent:#F0B9B3;
  --nav-text:#F2EEE9;
  --nav-hover:#F0B9B3;
  --nav-hover-bg:rgba(255,255,255,.12);
  --nav-active-bg:rgba(212,43,43,.32);
  --meta-muted:#9A8B78;
  --card-border:#EFE7DC;
  --crumb-sep:#C9C0B4;
  --body-text:#2E2924;
  --footer-heading:rgba(255,255,255,.94);
  --footer-muted:#B9B1A8;
  --footer-link-accent:#F0B9B3;
  --footer-dim:#8E867C;
  --footer-faint:#767067;
}

@font-face{
  font-family:"Fraunces";
  src:url("../fonts/fraunces.woff2") format("woff2");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"DM Sans";
  src:url("../fonts/dm-sans.woff2") format("woff2");
  font-weight:100 1000;
  font-style:normal;
  font-display:swap;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.6;
  color:var(--text-primary);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:var(--link)}
a:hover{color:var(--link-hover)}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.15;color:var(--heading);font-weight:600}
.container{max-width:1200px;margin:0 auto;padding:0 2rem}
.skip-link{
  position:absolute;left:-9999px;top:0;background:var(--pip-ink);color:var(--on-dark);
  padding:.6rem 1rem;border-radius:0 0 8px 0;z-index:2000;
}
.skip-link:focus{left:0}

/* ---------- Top navigation ---------- */
.main-nav{
  background:var(--pip-espresso);
  color:var(--nav-text);
  box-shadow:var(--shadow);
  position:sticky;top:0;z-index:1000;
}
.nav-container{
  max-width:1760px;margin:0 auto;padding:0 2rem;
  display:flex;justify-content:space-between;align-items:center;gap:1rem;height:70px;
}
.nav-brand{
  display:flex;align-items:center;gap:.6rem;
  color:var(--nav-text);text-decoration:none;font-family:var(--font-display);
  font-size:1.2rem;font-weight:700;letter-spacing:.01em;white-space:nowrap;
}
.nav-brand:hover{color:var(--nav-hover)}
.nav-brand-mark{width:32px;height:32px;flex-shrink:0;display:block}
.nav-links{display:flex;gap:.35rem;align-items:center}
.nav-link{
  display:inline-flex;align-items:center;gap:.4rem;
  color:var(--nav-text);opacity:.86;text-decoration:none;
  padding:.55rem .85rem;border-radius:8px;font-size:.92rem;font-weight:600;
}
.nav-link:hover{opacity:1;background:var(--nav-hover-bg)}
.nav-link.active{opacity:1;background:var(--nav-active-bg)}
.nav-toggle{
  display:none;background:none;border:0;color:var(--nav-text);cursor:pointer;padding:.4rem;
}
.nav-toggle svg{width:26px;height:26px;display:block}

/* ---------- Hero ---------- */
.hero{
  background:var(--hero-bg);
  position:relative;overflow:hidden;
  padding:4.5rem 0 4rem;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(circle, var(--hero-dot) 1.5px, transparent 1.5px);
  background-size:26px 26px;
  opacity:.5;pointer-events:none;
}
.hero::after{
  content:"";position:absolute;right:-140px;top:-140px;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle, var(--hero-glow), transparent 65%);
  pointer-events:none;
}
.hero__inner{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:0 2rem}
.hero__eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.82rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--hero-eyebrow);
}
.hero__live-dot{
  width:9px;height:9px;border-radius:50%;background:var(--hero-live);
  box-shadow:0 0 0 3px var(--hero-live-glow);
}
.hero__title{
  margin:1.1rem 0 .6rem;
  font-size:clamp(2.3rem,4.6vw,3.6rem);
  font-weight:600;line-height:1.05;color:var(--hero-title);
}
.hero__title span{display:block}
.hero__title .hero__accent{color:var(--accent)}
.hero__subtitle{
  max-width:640px;color:var(--hero-sub);font-size:1.08rem;line-height:1.6;
}
.hero__stats{
  display:flex;flex-wrap:wrap;gap:1.75rem;margin:1.7rem 0 0;
}
.hero__stat{display:flex;flex-direction:column}
.hero__stat dt{font-size:.8rem;text-transform:uppercase;letter-spacing:.07em;color:var(--stat-label)}
.hero__stat dd{font-family:var(--font-display);font-size:1.6rem;font-weight:700;color:var(--hero-title)}
.hero__ctas{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.7rem}
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.7rem 1.25rem;border-radius:10px;font-weight:700;font-size:.95rem;
  text-decoration:none;min-height:44px;border:2px solid transparent;cursor:pointer;
}
.btn--primary{background:var(--accent);color:var(--on-accent)}
.btn--primary:hover{background:var(--accent-dark);color:var(--on-accent)}
.btn--ghost{background:transparent;color:var(--heading);border-color:var(--heading)}
.btn--ghost:hover{background:var(--heading);color:var(--on-dark)}
.btn--sun{background:var(--sun);color:var(--sun-text)}
.btn--sun:hover{background:var(--sun-dark);color:var(--sun-text)}

/* ---------- Sections ---------- */
.section{padding:3.5rem 0}
.section--soft{background:var(--bg-soft)}
.section--cream{background:var(--pip-cream)}
.section--ink{background:var(--pip-ink);color:var(--on-dark-soft)}
.section__head{max-width:760px;margin-bottom:2rem}
.section__kicker{
  font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--accent);margin-bottom:.6rem;
}
.section__title{font-size:clamp(1.7rem,3vw,2.4rem);margin-bottom:.5rem}
.section__sub{color:var(--text-secondary)}
.section--ink .section__title{color:var(--on-dark)}
.section--ink .section__sub{color:var(--on-dark-soft)}
.section__more{margin-top:1.6rem}

/* ---------- Cards ---------- */
.card-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:1.5rem;
}
.card-grid--3{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}

.feature-card{
  position:relative;border-radius:var(--radius);overflow:hidden;
  text-decoration:none;color:#fff;aspect-ratio:16/9;display:block;
  box-shadow:var(--shadow);
}
.feature-card img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.feature-card:hover img{transform:scale(1.05)}
.feature-card::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72));
}
.feature-card__info{
  position:absolute;left:0;right:0;bottom:0;padding:1.1rem;z-index:1;
}
.feature-card__cat{
  font-size:.72rem;text-transform:uppercase;letter-spacing:.07em;opacity:.92;color:var(--on-image-accent);
}
.feature-card__title{font-size:1.02rem;font-weight:600;margin:.3rem 0 0;color:#fff;line-height:1.3}
.feature-card__meta{font-size:.78rem;opacity:.85;margin-top:.25rem;color:#fff}

.article-card{
  background:#fff;border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);display:flex;flex-direction:column;
  text-decoration:none;color:inherit;border:1px solid var(--card-border);
  transition:box-shadow .25s, transform .25s;
}
.article-card:hover{box-shadow:var(--shadow-hover);transform:translateY(-3px);color:inherit}
.article-card__img{aspect-ratio:16/9;width:100%;object-fit:cover}
.article-card__body{padding:1.1rem 1.2rem 1.3rem;display:flex;flex-direction:column;gap:.45rem;flex:1}
.article-card__cat{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.article-card__title{font-family:var(--font-display);font-size:1.12rem;font-weight:600;color:var(--heading);line-height:1.3}
.article-card__excerpt{font-size:.9rem;color:var(--text-secondary)}
.article-card__meta{font-size:.78rem;color:var(--meta-muted);margin-top:auto}

.list-card{
  background:#fff;border:1px solid var(--card-border);border-radius:var(--radius);
  padding:1.1rem 1.2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  text-decoration:none;color:inherit;box-shadow:var(--shadow);
  transition:box-shadow .25s, transform .25s, border-color .25s;
}
.list-card:hover{box-shadow:var(--shadow-hover);transform:translateY(-2px);border-color:var(--accent);color:inherit}
.list-card__info h3{font-family:var(--font-display);font-size:1.05rem;font-weight:600;color:var(--heading)}
.list-card__meta{font-size:.82rem;color:var(--text-secondary);margin-top:.2rem}
.list-card__arrow{color:var(--accent);flex-shrink:0}
.list-card:hover .list-card__arrow{transform:translateX(3px)}
.list-card__arrow{transition:transform .2s}

/* ---------- Breadcrumb ---------- */
.breadcrumb{font-size:.85rem;color:var(--text-secondary);margin:1.2rem 0}
.breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.breadcrumb a{color:var(--text-secondary);text-decoration:none}
.breadcrumb a:hover{color:var(--accent)}
.breadcrumb li+li::before{content:"/";margin-right:.4rem;color:var(--crumb-sep)}
.breadcrumb [aria-current="page"]{color:var(--heading);font-weight:600}

/* ---------- Page head ---------- */
.page-head{padding:3rem 0 1rem}
.page-head .page-head__kicker{font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:.6rem}
.page-head h1{font-size:clamp(2rem,4vw,3rem);max-width:800px}
.page-head .page-head__deck{max-width:700px;color:var(--text-secondary);margin-top:.8rem;font-size:1.05rem}

/* ---------- Article page ---------- */
.article-head{padding:2.5rem 0 0}
.article-head h1{font-size:clamp(1.9rem,3.6vw,2.9rem);max-width:820px}
.article-head .article-deck{max-width:700px;color:var(--text-secondary);font-size:1.08rem;margin-top:.8rem}
.article-meta{
  display:flex;flex-wrap:wrap;gap:1rem;align-items:center;
  margin-top:1.1rem;font-size:.85rem;color:var(--meta-muted);
}
.article-meta .meta-cat{color:var(--accent);font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:.75rem}
.article-hero-img{
  width:100%;aspect-ratio:16/7;object-fit:cover;border-radius:var(--radius);
  margin:1.8rem 0;box-shadow:var(--shadow);
}
.article-body{max-width:820px;margin:0 auto;padding-bottom:3rem}
.article-body h2{
  font-size:clamp(1.4rem,2.4vw,1.8rem);margin:2.2rem 0 .8rem;color:var(--heading);
  padding-top:.4rem;scroll-margin-top:90px;
}
.article-body h3{font-size:1.25rem;margin:1.8rem 0 .6rem;color:var(--heading)}
.article-body p{margin:0 0 1.1rem;color:var(--body-text)}
.article-body ul,.article-body ol{margin:0 0 1.2rem 1.3rem;color:var(--body-text)}
.article-body li{margin-bottom:.4rem}
.article-body blockquote{
  margin:1.6rem 0;padding:1rem 1.4rem;border-left:4px solid var(--accent);
  background:var(--pip-cream);border-radius:0 10px 10px 0;color:var(--body-text);
}
.article-body blockquote p{margin:0;font-family:var(--font-display);font-size:1.08rem;font-style:italic}
.article-body img{border-radius:var(--radius);margin:1.4rem 0;box-shadow:var(--shadow)}
.article-body figure{margin:1.4rem 0}
.article-body figcaption{font-size:.8rem;color:var(--text-secondary);text-align:center;margin-top:.5rem}
.article-body table{width:100%;border-collapse:collapse;margin:1.4rem 0;font-size:.92rem}
.article-body th,.article-body td{border:1px solid var(--border);padding:.6rem .8rem;text-align:left}
.article-body th{background:var(--bg-soft);font-weight:700}
.toc{
  background:var(--bg-soft);border:1px solid var(--card-border);border-radius:var(--radius);
  padding:1.2rem 1.4rem;margin:1.6rem 0;
}
.toc h2{font-size:1rem;margin:0 0 .6rem;color:var(--heading)}
.toc ol{margin:0 0 0 1.1rem;color:var(--text-secondary);font-size:.92rem}
.toc a{color:var(--link);text-decoration:none}
.toc a:hover{color:var(--link-hover)}

.author-block{
  display:flex;gap:1rem;align-items:center;
  background:var(--pip-cream);border-radius:var(--radius);padding:1.2rem 1.4rem;margin:2rem 0;
}
.author-block .author-avatar{
  width:52px;height:52px;border-radius:50%;background:var(--pip-ink);color:var(--on-dark);
  display:flex;align-items:center;justify-content:center;font-family:var(--font-display);
  font-weight:700;font-size:1.2rem;flex-shrink:0;
}
.author-block h3{font-size:1rem;margin-bottom:.15rem}
.author-block p{font-size:.85rem;color:var(--text-secondary);margin:0}

/* ---------- FAQ ---------- */
.faq-list{max-width:820px}
.faq-item{
  border:1px solid var(--card-border);border-radius:var(--radius);margin-bottom:.9rem;
  background:#fff;overflow:hidden;
}
.faq-item summary{
  cursor:pointer;padding:1rem 1.3rem;font-weight:700;font-family:var(--font-display);
  font-size:1.02rem;color:var(--heading);list-style:none;display:flex;justify-content:space-between;gap:1rem;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";color:var(--accent);font-weight:700;font-size:1.2rem}
.faq-item[open] summary::after{content:"–"}
.faq-item .faq-item__body{padding:0 1.3rem 1.1rem;color:var(--body-text);font-size:.95rem}

/* ---------- Contact / prose ---------- */
.prose{max-width:820px;color:var(--body-text)}
.prose h2{font-size:1.45rem;margin:2rem 0 .7rem;color:var(--heading)}
.prose h3{font-size:1.15rem;margin:1.6rem 0 .5rem;color:var(--heading)}
.prose p{margin-bottom:1rem}
.prose ul,.prose ol{margin:0 0 1.1rem 1.3rem}
.prose li{margin-bottom:.4rem}
.prose a{color:var(--accent)}
.contact-list{list-style:none;margin:1.4rem 0 0}
.contact-list li{display:flex;gap:.8rem;align-items:flex-start;margin-bottom:1rem}
.contact-list .contact-label{font-weight:700;color:var(--heading);min-width:120px}

/* ---------- Footer ---------- */
.app-footer{background:var(--pip-ink);color:var(--footer-muted);padding:3rem 2rem;margin-top:auto}
.footer-container{max-width:1200px;margin:0 auto}
.footer-top{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,430px);
  gap:2rem 3rem;align-items:start;margin-bottom:2.5rem;
}
.footer-brand{display:flex;align-items:center;gap:.75rem;font-size:clamp(1.6rem,2vw,2.1rem);font-weight:700;font-family:var(--font-display);margin-bottom:.4rem;color:var(--nav-text)}
.footer-brand-mark{width:32px;height:32px;flex-shrink:0;display:block}
.footer-tagline{color:var(--footer-muted);max-width:420px;font-size:.92rem}
.footer-contact{margin-top:1.1rem;font-size:.9rem;color:var(--footer-dim)}
.footer-contact a{color:var(--footer-link-accent);text-decoration:none}
.footer-contact a:hover{color:var(--nav-text)}
.footer-links{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:2rem;border-top:1px solid rgba(255,255,255,.15);padding-top:2rem;
}
.footer-section h4{font-size:1rem;font-weight:600;margin-bottom:1rem;color:var(--footer-heading)}
.footer-section a{display:block;color:var(--footer-muted);text-decoration:none;padding:.28rem 0;font-size:.92rem}
.footer-section a:hover{color:var(--footer-link-accent)}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15);margin-top:2rem;padding-top:1.4rem;
  color:var(--footer-dim);font-size:.82rem;line-height:1.7;
}
.footer-bottom p{margin-bottom:.4rem}
.footer-disclaimer{color:var(--footer-faint);font-size:.78rem;margin-top:.6rem}
.footer-disclaimer strong{color:var(--footer-dim)}

/* ---------- Wide section image ---------- */
.wide-img{
  width:100%;aspect-ratio:16/7;object-fit:cover;border-radius:var(--radius);
  box-shadow:var(--shadow);margin-top:1.8rem;
}

/* ---------- Reveal animation ---------- */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
.reveal.in-view{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .feature-card:hover img,.article-card,.list-card{transition:none}
}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .footer-top{grid-template-columns:1fr}
  .card-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
}
@media (max-width:768px){
  .nav-toggle{display:block}
  .nav-links{
    display:none;position:absolute;top:70px;left:0;right:0;
    background:var(--pip-espresso);flex-direction:column;align-items:stretch;
    padding:.8rem 1.2rem 1.2rem;gap:.25rem;box-shadow:var(--shadow);
  }
  .nav-links.open{display:flex}
  .nav-link{padding:.85rem .8rem;border-radius:8px}
  .hero{padding:3rem 0}
  .hero__stats{gap:1.1rem}
  .hero__stat dd{font-size:1.3rem}
  .section{padding:2.6rem 0}
  .footer-links{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:480px){
  .container,.hero__inner{padding:0 1.1rem}
  .nav-container{padding:0 1.1rem}
  .footer-links{grid-template-columns:1fr}
  .app-footer{padding:2.2rem 1.1rem}
}

/* Hero-scoped ghost button follows the hero title color (visible on dark heroes) */
.hero .btn--ghost{color:var(--hero-title);border-color:var(--hero-title)}
.hero .btn--ghost:hover{background:var(--hero-title);color:var(--hero-bg)}