@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Karla:wght@400;500;600&display=swap');

:root {
  --ink: #232E27;
  --parchment: #EFE7D8;
  --parchment-light: #F7F2E7;
  --gold: #AD7D2C;
  --sage: #6B7F6A;
  --clay: #8C5A45;
  --line: #D9CEB4;
  --max: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle paper grain across the whole site — adds tactile depth without a "generated" flat wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-nav, main, header, section, footer { position: relative; z-index: 2; }

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

p { margin: 0 0 1em; }

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(239, 231, 216, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav-logo:hover { text-decoration: none; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--parchment-light);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 16px 28px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---- Layout helpers ---- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.prose { max-width: var(--max); }
section { padding: 88px 0; }
.hairline { border: none; height: 1px; margin: 0; background: linear-gradient(to right, transparent, var(--line) 15%, var(--line) 85%, transparent); }

/* ---- Hero ---- */
.hero {
  padding: 104px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(173,125,44,0.16) 0%, rgba(107,127,106,0.10) 45%, transparent 72%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.hero .eyebrow {
  color: var(--sage);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark { flex-shrink: 0; opacity: 0.85; }
.hero h1 { font-size: 54px; max-width: 780px; letter-spacing: -0.01em; }
.hero .lede { font-size: 19px; max-width: 560px; color: #3d493f; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .hero::before { width: 360px; height: 360px; top: -120px; right: -140px; }
  section { padding: 56px 0; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  font-family: 'Karla', sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--parchment-light); }
.btn-primary:hover { background: #142019; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--parchment-light); }

/* ---- Section headers with signature mark ---- */
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.section-head h2 { margin-bottom: 0; }

/* ---- Pillars / stacked list ---- */
.pillar {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  transition: padding-left 0.3s ease;
  position: relative;
}
.pillar::before {
  content: "";
  position: absolute;
  left: -28px; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.pillar:hover::before { transform: scaleY(1); }
.pillar:hover { padding-left: 8px; }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar h3 { font-size: 24px; margin-bottom: 10px; }
.pillar .tag { color: var(--gold); font-size: 14px; font-weight: 600; }
.pillar .desc { max-width: 540px; color: #3d493f; }
.pillar .cta { margin-top: 12px; display: inline-block; font-weight: 600; }

@media (max-width: 640px) {
  .pillar { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- Testimonial ---- */
.quote {
  position: relative;
  border-left: 2px solid var(--gold);
  padding-left: 32px;
  margin: 0 0 48px;
  max-width: var(--max);
}
.quote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: -18px;
  font-family: 'Fraunces', serif;
  font-size: 64px;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
}
.quote p { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 400; color: var(--ink); }
.quote cite { display: block; margin-top: 12px; font-style: normal; color: var(--sage); font-size: 15px; font-weight: 600; }
.placeholder-note {
  display: inline-block;
  margin-top: -32px;
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--clay);
  font-style: italic;
}

/* ---- Module list (certification) ---- */
.module-list { list-style: none; margin: 0; padding: 0; }
.module-list li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: baseline;
}
.module-list li:last-child { border-bottom: 1px solid var(--line); }
.module-list .num { font-family: 'Fraunces', serif; color: var(--sage); font-size: 15px; width: 24px; flex-shrink: 0; }
.module-list .num.wide { width: 44px; }
.module-list .name { font-weight: 600; }

/* ---- Price card (simple, no shadow) ---- */
.offer-box {
  border: 1px solid var(--line);
  background: var(--parchment-light);
  padding: 40px;
  margin-top: 32px;
  position: relative;
}
.offer-box::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 28px; height: 28px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.offer-box::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 28px; height: 28px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}
.offer-box .price { font-family: 'Fraunces', serif; font-size: 40px; color: var(--ink); margin-bottom: 6px; }
.offer-box .price-note { color: var(--sage); font-size: 14px; margin-bottom: 20px; }

/* ---- Coming soon ---- */
.coming-soon-box {
  border: 1px dashed var(--clay);
  padding: 48px;
  text-align: left;
  max-width: var(--max);
}

/* ---- Closing CTA band (the one bold moment per page) ---- */
.band-dark {
  background: var(--ink);
  color: var(--parchment-light);
  padding: 80px 0;
  text-align: center;
}
.band-dark h2 { color: var(--parchment-light); font-size: 32px; max-width: 560px; margin: 0 auto 14px; }
.band-dark p { color: #c9d1c8; max-width: 440px; margin: 0 auto 30px; }
.band-dark .btn-primary { background: var(--gold); color: var(--ink); }
.band-dark .btn-primary:hover { background: #c28f37; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 14px;
  color: #5c6b5e;
}
footer .foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
footer a { color: #5c6b5e; }
footer a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Homepage definition */
.definition { margin: 28px 0 22px; padding-left: 20px; border-left: 2px solid var(--gold); max-width: 640px; }
.definition p { margin: 0; }
.def-term { font-family: 'Fraunces', serif; color: var(--ink); line-height: 1.2; }
.def-word { font-size: 30px; font-weight: 500; letter-spacing: 0.02em; }
.def-pos { font-size: 18px; font-style: italic; color: var(--sage); margin-left: 6px; }
.def-meaning { margin-top: 6px !important; font-family: 'Fraunces', serif; font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink); }
