:root {
  --cream: #f7f3ec;
  --warm-white: #fdfaf5;
  --ink: #1c1712;
  --rust: #b85c38;
  --rust-light: #d4784f;
  --rust-pale: #f5e6df;
  --charcoal: #2e2a25;
  --muted: #7a7060;
  --rule: #ddd5c5;
  --gold: #c8a96e;
  --gold-pale: #f5edd8;
  --sage: #6b7c5e;
  --sage-pale: #eaf0e5;
  --navy: #2a3550;
  --navy-pale: #e8ecf5;
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  cursor: default;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .5;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247,243,236,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  cursor: pointer;
}

.nav-logo span { color: var(--rust); font-style: italic; }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links li a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.nav-links li a:hover { color: var(--ink); background: var(--rule); }

/* ── PAGES ── */
.page { display: none; min-height: 100vh; padding-top: 64px; }
.page.active { display: block; }

/* ── HOME HERO ── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 60px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--ink);
  margin-bottom: 32px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--rust);
  display: block;
}

.hero-sub {
  max-width: 520px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  animation: fadeUp 0.8s 0.2s ease both;
  margin-bottom: 48px;
}

.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}

.hero-tag:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.hero-cta {
  align-self: flex-start;
  margin-bottom: 40px;
  padding: 18px 36px;
  font-size: 12px;
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero-deco {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 220px;
  font-weight: 700;
  color: rgba(184,92,56,0.05);
  pointer-events: none;
  letter-spacing: -10px;
  line-height: 1;
  user-select: none;
}

/* ── POSTS GRID ── */
.posts-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.section-label {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2px;
}

.post-card {
  background: var(--warm-white);
  padding: 40px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.post-card:hover { background: white; border-color: var(--rule); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(28,23,18,0.08); }

.post-card.featured { grid-row: span 2; padding: 56px; }

.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.post-card:hover::before { transform: scaleX(1); }

.card-tag {
  display: inline-block;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
  padding: 4px 10px;
  margin-bottom: 20px;
}

.tag-crisis { background: var(--rust); }
.tag-money { background: var(--gold); color: var(--ink); }
.tag-options { background: var(--charcoal); }
.tag-college { background: var(--sage); }
.tag-shadow { background: var(--navy); }

.post-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--ink);
}

.post-card.featured h2 { font-size: clamp(28px, 4vw, 42px); }
.post-card:not(.featured) h2 { font-size: clamp(20px, 2.5vw, 26px); }

.post-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.post-card.featured p { font-size: 15px; }

.read-link {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.read-link::after { content: '→'; transition: transform 0.2s; }
.post-card:hover .read-link::after { transform: translateX(4px); }

/* ── FROM THE BLOG ── */
.blog-links-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.blog-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blog-link {
  display: block;
  padding: 24px;
  border: 1px solid var(--rule);
  background: var(--warm-white);
  text-decoration: none;
  transition: all 0.2s;
}

.blog-link:hover { background: white; border-color: var(--muted); }

.blog-link h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
}

.blog-link:hover .read-link::after { transform: translateX(4px); }

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 40px;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  color: var(--cream);
}

.about-quote span { color: var(--rust-light); }

.about-text { font-size: 15px; color: rgba(247,243,236,0.7); line-height: 1.8; }
.about-text p { margin-bottom: 16px; }
.about-text strong { color: var(--cream); font-weight: 600; }

/* ── BLOG POST LAYOUT ── */
.post-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 40px 120px;
}

.post-back {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  transition: color 0.2s;
}
.post-back:hover { color: var(--rust); }
.post-back::before { content: '←'; }

.post-header { margin-bottom: 56px; }

.post-header .card-tag { margin-bottom: 24px; }

.post-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--ink);
}

.post-header .lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--muted);
  line-height: 1.6;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

/* ── POST BODY ── */
.post-body p {
  margin-bottom: 24px;
  color: #1c1712;
  font-size: 17px;
  line-height: 1.85;
}

.post-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 52px 0 20px;
  color: var(--ink);
  line-height: 1.2;
}

.post-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 14px;
  color: var(--ink);
}

.post-body strong { font-weight: 600; }

.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--rust);
  border-left: 3px solid var(--rust);
  padding: 8px 0 8px 32px;
  margin: 44px 0;
}

.callout-box {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  margin: 36px 0;
  font-size: 15px;
  line-height: 1.75;
}

.callout-box.rust { background: var(--rust-pale); border-left-color: var(--rust); }
.callout-box.sage { background: var(--sage-pale); border-left-color: var(--sage); }
.callout-box.navy { background: var(--navy-pale); border-left-color: var(--navy); }

.callout-box strong { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-family: 'Courier Prime', monospace; }

.product-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 40px;
  margin: 56px 0 0;
  text-align: center;
}

.product-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
  margin-top: 0;
}

.product-cta p { font-size: 14px; color: rgba(247,243,236,0.65); margin-bottom: 24px; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-rust { background: var(--rust); color: white; }
.btn-rust:hover { background: var(--rust-light); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: white; }

/* ── RELATED POSTS ── */
.related {
  border-top: 1px solid var(--rule);
  margin-top: 80px;
  padding-top: 48px;
}

.related h4 {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-card {
  padding: 24px;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--warm-white);
}

.related-card:hover { background: white; border-color: var(--muted); }

.related-card .card-tag { font-size: 9px; padding: 3px 8px; margin-bottom: 10px; }

.related-card h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}

.related-card p { font-size: 13px; color: var(--muted); margin-bottom: 0; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 48px 24px 40px; }
  .hero-deco { display: none; }
  .posts-section { padding: 0 24px 80px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card.featured { padding: 36px 28px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-strip { padding: 60px 24px; }
  .blog-links-section { padding: 0 24px 80px; }
  .blog-links { grid-template-columns: 1fr; }
  .post-page { padding: 40px 24px 80px; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ── SHARED HEADER EXTRAS ── */
a.nav-logo { text-decoration: none; }

.nav-links li a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 10px 14px;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Standalone pages sit below the fixed nav */
.site-main { padding-top: 64px; min-height: 100vh; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--cream);
  padding: 48px 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
  justify-content: space-between;
}

.footer-tagline {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.footer-links li a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.footer-links li a:hover { color: var(--ink); background: var(--rule); }

/* ── BLOG LINKS ── */
.section-label a { color: inherit; text-decoration: none; transition: color 0.2s; }
.section-label a:hover { color: var(--rust); }

.see-all { display: inline-flex; margin-top: 32px; }
.see-all:hover::after { transform: translateX(4px); }

/* ── BLOG INDEX ── */
.blog-index-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 48px;
}

.blog-index-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--ink);
}

.blog-index-header .hero-eyebrow { margin-bottom: 24px; }

/* ── STANDALONE ARTICLES (/blog/*) ── */
.article .post-back { text-decoration: none; }

.article .brand {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 24px;
}
.article .brand a { color: inherit; text-decoration: none; }

.article h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--ink);
}

.article .byline {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}

.article > p {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.85;
}

.article > h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 52px 0 20px;
  color: var(--ink);
  line-height: 1.2;
}

.article > ul, .article > ol {
  margin: 0 0 24px;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article li { line-height: 1.75; }
.article li::marker { font-family: 'Courier Prime', monospace; color: var(--rust); }

.article .pull {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--rust);
  border-left: 3px solid var(--rust);
  padding: 8px 0 8px 32px;
  margin: 44px 0;
}

.article .note {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  margin: 36px 0;
  font-size: 15px;
  line-height: 1.75;
}

.article .cta {
  background: var(--warm-white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rust);
  padding: 40px;
  margin-top: 56px;
}

.article .cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}

.article .cta p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.article .cta .btn { margin-bottom: 24px; }
.article .cta .fine { font-size: 13px; margin-bottom: 0; }
.article .cta .fine a { color: var(--rust); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 8px 12px 16px;
  }
  nav.open .nav-links li a { display: block; padding: 14px 12px; font-size: 13px; }
  .site-footer { padding: 40px 24px; }
  .footer-links li a { display: inline-block; padding: 10px 12px; }
  .blog-index-header { padding: 48px 24px 32px; }
  .article .cta { padding: 32px 24px; }
  .article .pull { padding-left: 20px; }
}
