:root{
  --paper:#fffdf8;
  --ink:#111214;
  --muted:#4a4e53;
  --rule:rgba(17,18,20,.16);

  --max-wide:980px;
  --max-narrow:760px;

  --card:#ffffff;
  --radius-lg:20px;
  --radius-md:16px;
}
:root{
  --container: 960px;
  --gutter: 20px;
  --header-pad: 18px;
}

/* One container rule used everywhere */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* -------------------------------- */
/* TYPE SCALE + HIERARCHY */
/* -------------------------------- */

:root{
  /* Base scale */
  --text: 16px;
  --small: 13px;
  --h1: 44px;
  --h2: 22px;
  --h3: 18px;

  /* Leading (readability) */
  --lh: 1.72;

  /* Weights */
  --w-regular: 450;
  --w-medium: 600;
  --w-bold: 800;
  --w-black: 900;

  /* Spacing rhythm */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}

/* Base text */
body{
  font-size: var(--text);
  line-height: var(--lh);
  letter-spacing: 0;
}

/* Headings */
h1{
  font-size: var(--h1);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: var(--w-black);
  margin: 0 0 var(--space-3) 0;
}

h2{
  font-size: var(--h2);
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: var(--w-black);
  margin: 0 0 var(--space-2) 0;
}

h3{
  font-size: var(--h3);
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: var(--w-black);
  margin: var(--space-5) 0 var(--space-2) 0;
}

/* Paragraph rhythm */
p{
  margin: 0 0 var(--space-3) 0;
  max-width: 72ch;
}

/* Lede / subhead patterns you already use */
.lede,
.sub{
  font-size: 20px;
  line-height: 1.55;
  opacity: .92;
  max-width: 80ch;
  margin: 0 0 var(--space-4) 0;
}

/* Small meta text */
.meta,
.kicker,
.crumbs,
footer{
  font-size: var(--small);
  line-height: 1.5;
}

/* Links: keep your underline style but make it more consistent */
.entry h2 a,
.links a,
footer a,
.kicker a,
.crumbs a{
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.25);
}

/* Improve longform (articles/about) readability if you use .prose wrapper */
.prose{
  max-width: 860px;
}
.prose p{
  max-width: 72ch;
}
.prose p + p{
  margin-top: 0; /* keep consistent single-margin rhythm */
}

/* Responsive scale */
@media (max-width: 820px){
  :root{
    --h1: 34px;
    --h2: 20px;
    --h3: 17px;
  }
  .lede,
  .sub{
    font-size: 18px;
  }
}
/* Header spacing is identical everywhere */
.site-header{ background:#fffdf8; border-bottom:1px solid rgba(0,0,0,.12); }
.site-header .header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: var(--header-pad) 0;
}
.site-header .brand{ display:flex; align-items:center; gap:12px; }
.site-header .brand a{ display:inline-flex; align-items:center; }
.site-header .brand img{ width:56px; height:56px; display:block; object-fit:contain; }
.site-header nav{ display:flex; gap:16px; flex-wrap:wrap; }
.site-header nav a{ text-decoration:none; color:#111; font-weight:500; }
.site-header nav a[aria-current="page"]{
  font-weight:900;
  border-bottom:2px solid rgba(192,68,44,1);
  padding-bottom:2px;
}
*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.65;
  font-size:18px;
}

a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid var(--rule);
  padding:2px 0;
}
a:hover{ border-bottom-color:var(--ink); }
a:focus{ outline:2px solid var(--ink); outline-offset:3px; }

.container{
  margin:0 auto;
  padding:20px;
}
.container.wide{ max-width:var(--max-wide); }
.container.narrow{ max-width:var(--max-narrow); }

header, footer{
  margin:0 auto;
  padding:32px 20px;
}
header .container,
footer .container{
  padding:0;
}

.wordmark{
  font-family:"Cormorant Garamond", Georgia, serif;
  text-transform:uppercase;
  letter-spacing:.02em;
  line-height:1.05;
}
.wordmark .top{
  font-size:36px;
  font-weight:600;
}
.wordmark .sub{
  font-size:14px;
  font-weight:500;
  letter-spacing:.25em;
  color:var(--muted);
  margin-top:4px;
}

nav a{
  margin-right:18px;
  font-size:16px;
  color:var(--muted);
}

.rule{
  border-top:1px solid var(--rule);
  margin:36px 0;
}

.section-title{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:22px;
  margin:0 0 16px 0;
}

/* ---------- HOME ---------- */
.home .hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:32px;
  align-items:start;
}

.home h1.serif{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:48px;
  line-height:1.15;
  margin:0 0 16px 0;
}

.home .hero p{
  margin:0 0 20px 0;
  color:var(--muted);
  max-width:62ch;
}

.cta-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:12px;
}

.button{
  display:inline-block;
  padding:12px 18px;
  border:1px solid var(--rule);
  border-radius:999px;
  background:#fff;
  font-size:15px;
  min-width:44px;
  min-height:44px;
}

.button.primary{ border-color:var(--ink); }

.manifesto{
  margin:40px 0 20px 0;
  max-width:740px;
}

.manifesto-core{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:24px;
  line-height:1.35;
  margin:0 0 14px 0;
}

.manifesto-list{
  color:var(--muted);
  font-size:18px;
  line-height:1.65;
  margin:0;
}

.cardgrid{
  display:grid;
  gap:20px;
}

.home .cardgrid{
  grid-template-columns:repeat(4, 1fr);
}

.card{
  border:1px solid var(--rule);
  border-radius:var(--radius-lg);
  padding:18px;
  background:var(--card);
}

.card h3{
  margin:0 0 10px 0;
  font-size:20px;
  font-weight:600;
}

.card p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
}

.aside{
  justify-self:end;
  width:100%;
  max-width:340px;
  border-radius:var(--radius-lg);
  border:1px solid var(--rule);
  background:#fff;
  padding:16px;
}

.seal{
  width:100%;
  height:auto;
  border-radius:var(--radius-md);
  border:1px solid var(--rule);
  display:block;
}

footer{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:15px;
  margin-top:48px;
}

/* ---------- ARTICLES (INDEX + POSTS) ---------- */
.article header, .article footer,
.articles-index header, .articles-index footer{
  padding:24px 20px;
}

.breadcrumb{
  font-size:15px;
  color:var(--muted);
  margin-bottom:30px;
}

.article h1{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:46px;
  line-height:1.15;
  margin:0 0 16px 0;
}

.article h2{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:28px;
  margin:40px 0 8px 0;
}

.article h3{
  font-size:22px;
  margin:28px 0 8px 0;
}

.article p{ margin:0 0 22px 0; }
.article ul{
  margin:0 0 22px 0;
  padding-left:20px;
}

.footer-text{
  font-size:14px;
  color:var(--muted);
}

.articles-index h1{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:40px;
  margin:0 0 18px 0;
}

.article-list a{
  display:block;
  margin-bottom:14px;
  font-size:20px;
  border-bottom:1px solid var(--rule);
  padding-bottom:4px;
}

/* ---------- SHOPPE ---------- */
.shoppe h1{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:46px;
  line-height:1.15;
  margin:0 0 12px 0;
}

.shoppe .lede{
  margin:0 0 22px 0;
  color:var(--muted);
  max-width:70ch;
}

.shoppe .note{
  border:1px solid var(--rule);
  border-radius:18px;
  padding:16px;
  background:#fff;
  color:var(--muted);
  font-size:16px;
  max-width:80ch;
}

.shoppe .grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.shoppe .tag{
  display:inline-block;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}

.shoppe .meta{
  margin-top:auto;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  color:var(--muted);
  font-size:14px;
}

.pill{
  display:inline-block;
  padding:8px 12px;
  border:1px solid var(--rule);
  border-radius:999px;
  background:#fff;
  font-size:14px;
  min-width:44px;
  min-height:44px;
  line-height:26px;
}

.pill.primary{
  border-color:var(--ink);
  color:var(--ink);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
  .home .hero{ grid-template-columns:1fr; }
  .aside{ justify-self:start; max-width:520px; margin-top:24px; }
  .home h1.serif{ font-size:40px; }
  .home .cardgrid{ grid-template-columns:1fr; }
  .shoppe .grid{ grid-template-columns:1fr; }
}

@media (max-width:600px){
  .article h1{ font-size:38px; }
  .shoppe h1{ font-size:38px; }
  body{ font-size:17px; }
}
/* --- WAP MOP Visual System (diagrams + figure blocks) --- */

.figure {
  margin: 22px 0 26px 0;
  padding: 14px 14px 8px 14px;
  border: 1px solid #1112141f;
  border-radius: 16px;
  background: #fffdf8;
}

.figure img {
  width: 100%;
  height: auto;
  display: block;
}

.figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.78;
  line-height: 1.35;
}
/* --- WAP MOP Accent System (Option 1) --- */
:root{
  --accent:#C04832; /* wax-seal red */
  --accent-soft: rgba(192,72,50,.12);
  --accent-line: rgba(192,72,50,.32);
}

/* Links */
a{
  text-decoration-thickness: .08em;
  text-underline-offset: .14em;
}
a:hover, a:focus{
  color: var(--accent);
}

/* Rules/dividers (subtle) */
.rule{
  border-top-color: var(--accent-line);
}

/* Notes get a whisper of brand */
.note{
  border-color: var(--accent-line);
  background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft));
}

/* Buttons/CTAs if present */
a.button, .cta-row a.primary{
  border-color: var(--accent-line);
}
a.button:hover, .cta-row a.primary:hover{
  border-color: var(--accent);
}

/* Stamp utility */
.stamp{
  width: 92px;
  height: auto;
  display: block;
}
.stamp.small{ width: 72px; }
.stamp-row{
  display:flex;
  align-items:center;
  gap:14px;
  margin: 18px 0 10px 0;
}
.stamp-row .muted{
  opacity:.78;
}
/* optional: gentle page texture */
body {
  background-image: radial-gradient(#11121410 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: 0 0;
}
/* === WAP MOP SHOPPE: visual accents === */
:root{
  --paper: #fffdf8;
  --ink: #111111;
  --muted: rgba(0,0,0,.72);
  --border: rgba(0,0,0,.12);
  --accent: #C0442C;          /* warm red-brown (fits stamp) */
  --accent-soft: rgba(192,68,44,.12);
}

/* subtle accent rule */
.accent-rule{
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border: 0;
  margin: 22px 0 28px;
}

/* tag pills */
.tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 0;
  padding: 0;
  list-style:none;
}
.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: var(--ink);
}
.tag::before{
  content:"";
  width:8px; height:8px;
  border-radius:999px;
  background: var(--accent);
  opacity:.85;
}
/* -------------------------------- */
/* TYPOGRAPHY REFINEMENT */
/* -------------------------------- */

body{
  line-height: 1.72;            /* Slightly airier */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1{
  letter-spacing: -0.02em;      /* More intentional weight */
}

h2{
  letter-spacing: -0.01em;
}

p{
  line-height: 1.72;
}

/* Improve reading rhythm */
.prose p + p{
  margin-top: 20px;
}

/* -------------------------------- */
/* NAV POLISH */
/* -------------------------------- */

.site-header nav a{
  position: relative;
  transition: opacity .18s ease, transform .18s ease;
}

.site-header nav a:hover{
  opacity: .65;
  transform: translateY(-1px);
}

.site-header nav a[aria-current="page"]{
  border-bottom: 2px solid rgba(192,68,44,1);
}

/* -------------------------------- */
/* LINK POLISH */
/* -------------------------------- */

a{
  transition: opacity .18s ease;
}

a:hover{
  opacity: .7;
}

/* -------------------------------- */
/* CARD ELEVATION (very subtle) */
/* -------------------------------- */

.entry,
.card,
.block{
  transition: transform .15s ease, box-shadow .15s ease;
}

.entry:hover,
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

/* -------------------------------- */
/* VERTICAL RHYTHM CONSISTENCY */
/* -------------------------------- */

main{
  padding-top: 72px;
  padding-bottom: 72px;
}

.accent-rule{
  margin: 24px 0 28px;
}

/* -------------------------------- */
/* QUIET PAGE FADE */
/* -------------------------------- */

body{
  animation: fadeIn .25s ease-out;
}

@keyframes fadeIn{
  from{ opacity:0; }
  to{ opacity:1; }
}
/* diagram / figure card */
.figure-card{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  margin: 20px 0 26px;
}
.figure-card .figure-title{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* small “accent corner” for cards */
.accent-corner{
  position: relative;
  overflow: hidden;
}
.accent-corner::after{
  content:"";
  position:absolute;
  top:-40px; right:-40px;
  width:120px; height:120px;
  background: var(--accent-soft);
  transform: rotate(35deg);
}
/* === Layout widths (unify site) === */
.container{
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Use inside pages when you want a narrower reading column */
.content{
  max-width: 780px;
  margin: 0 auto;
}

/* Shared site header: keep the homepage menu and sizing on every page. */
.site-header {
  background: #fffdf8;
  border-bottom: 1px solid rgba(0,0,0,.12);
  padding: 16px 20px;
}
.site-header .container { max-width: 960px; margin: 0 auto; padding: 0; }
.site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 20px; padding: 0;
}
.site-header .brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: #111; font-size: 16px; font-weight: 900;
  letter-spacing: .07em; text-decoration: none; white-space: nowrap;
}
.site-header .brand img { width: 42px; height: 42px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.site-header nav a {
  margin: 0; padding: 4px 0; color: #111;
  font-size: 14px; font-weight: 800; text-decoration: none;
}
@media (max-width: 720px) {
  .site-header nav { width: 100%; }
}

/* Header geometry on every page, including pages with their own container rules. */
.site-header.site-header{width:100%;max-width:none;margin:0;padding:16px 20px;background:#fffdf8;border-bottom:1px solid rgba(0,0,0,.12)}
.site-header.site-header .container{width:100%;max-width:960px;min-width:0;margin:0 auto;padding:0}
.site-header.site-header .header-inner{display:flex;width:100%;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;padding:0}
.site-header.site-header .brand{display:inline-flex;align-items:center;gap:12px;padding:0;color:#111;font-size:16px;font-weight:900;letter-spacing:.07em;text-decoration:none;white-space:nowrap}
.site-header.site-header .brand img{display:block;width:42px;height:42px;object-fit:contain}
.site-header.site-header nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}
.site-header.site-header nav a{margin:0;padding:4px 0;color:#111;font-size:14px;font-weight:800;text-decoration:none}
.site-header.site-header nav a[aria-current="page"]{font-weight:900}
@media(max-width:720px){.site-header.site-header nav{width:100%}}
