:root {
  --ink: #20281F;
  --ink-soft: #4A4438;
  --muted: #6E6656;
  --paper: #F7F3EA;
  --sand: #EFE7D4;
  --line: #E1D5BC;
  --teal: #14554A;
  --teal-deep: #0D3A32;
  --terracotta: #C05A2E;
  --terracotta-soft: #F0DCC9;
  --gold: #C99A3E;
}

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

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; font-size: 17px; line-height: 1.68; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
h1, h2, h3, .logo-text, .eyebrow-serif { font-family: 'Fraunces', Georgia, serif; }

/* ---------- Top navigation ---------- */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-deep); }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { font-size: 20px; line-height: 1.15; color: var(--teal-deep); font-weight: 600; }
.logo-text span { display: block; font-family: 'Inter', sans-serif; font-size: 12px; color: var(--terracotta); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 14.5px; padding: 9px 13px; border-radius: 6px; transition: all 0.15s ease; }
.nav-links a:hover { background: var(--sand); color: var(--teal-deep); }
.nav-cta { background: var(--terracotta) !important; color: #fff !important; margin-left: 6px; }
.nav-cta:hover { background: var(--teal-deep) !important; color: #fff !important; }

.nav-toggle { display: none; background: transparent; border: 0; padding: 10px; cursor: pointer; color: var(--teal-deep); border-radius: 6px; }
.nav-toggle:hover { background: var(--sand); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.mobile-menu { position: fixed; inset: 0; background: var(--paper); z-index: 200; display: none; flex-direction: column; padding: 18px 28px 32px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.mobile-menu-close { background: transparent; border: 0; padding: 10px; cursor: pointer; color: var(--teal-deep); border-radius: 6px; }
.mobile-menu-close svg { width: 26px; height: 26px; display: block; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-size: 24px; font-weight: 600; color: var(--teal-deep); text-decoration: none; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: 'Fraunces', serif; }
.mobile-menu .nav-cta { margin-top: 28px; text-align: center; font-size: 16px !important; padding: 16px 24px !important; background: var(--terracotta) !important; color: #fff !important; border-radius: 10px; border-bottom: none !important; font-family: 'Inter', sans-serif; }
@media (min-width: 881px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sand); padding: 76px 32px 88px; }
.hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.12; color: var(--teal-deep); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 22px; }
h1 .accent { color: var(--terracotta); }
.hero p { font-size: 18.5px; color: var(--ink-soft); margin-bottom: 30px; max-width: 540px; font-family: 'Inter', sans-serif; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; border: none; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(192,90,46,0.28); }
.btn-secondary { background: #fff; color: var(--teal-deep); border: 1.5px solid var(--teal-deep); }
.btn-secondary:hover { background: var(--teal-deep); color: #fff; }

.rainbow, .hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 440px; margin: 0 auto; }
.rainbow svg, .hero-art svg { width: 100%; height: 100%; display: block; }

/* ---------- Notice strip ---------- */
.notice { background: var(--teal-deep); color: #fff; padding: 22px 32px; }
.notice-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-family: 'Inter', sans-serif; }
.notice-tag { background: rgba(255,255,255,0.16); padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.notice p { font-size: 15px; flex: 1; min-width: 280px; }
.notice a { color: #fff; text-decoration: underline; font-weight: 600; white-space: nowrap; }

/* ---------- Cards / topic hubs ---------- */
.section { padding: 88px 32px; max-width: 1180px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 52px; }
h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--teal-deep); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.section-header p { font-size: 17px; color: var(--muted); max-width: 600px; margin: 0 auto; font-family: 'Inter', sans-serif; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,85,74,0.1); border-color: transparent; }
.card-icon { width: 40px; height: 40px; margin-bottom: 14px; color: var(--terracotta); }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 18px; color: var(--teal-deep); margin-bottom: 8px; font-weight: 600; font-family: 'Fraunces', serif; }
.card p { color: var(--muted); font-size: 14.5px; font-family: 'Inter', sans-serif; }
.card-arrow { margin-top: 14px; color: var(--terracotta); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; }
.card:hover .card-arrow { gap: 10px; }

/* ---------- Article / blog page hero (compact) ---------- */
.page-hero { background: var(--sand); padding: 56px 32px 44px; border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.page-hero p { font-size: 17px; color: var(--muted); max-width: 680px; font-family: 'Inter', sans-serif; }
.post-meta { font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.post-hero-art { max-width: 900px; margin: 0 auto; padding: 0 32px; margin-top: -20px; }
.post-hero-art svg { width: 100%; height: auto; max-height: 180px; display: block; border-radius: 12px; }

.page-hero { padding-bottom: 28px; }
.page-hero + .section { padding-top: 20px; }

/* ---------- Prose (long-form text blocks) ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: clamp(22px, 2.8vw, 28px); margin-top: 38px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18.5px; color: var(--teal-deep); font-weight: 600; margin-top: 26px; margin-bottom: 10px; font-family: 'Fraunces', serif; }
.prose p { margin-bottom: 16px; color: #2c2c26; font-family: 'Inter', sans-serif; }
.prose ul, .prose ol { margin: 0 0 18px 22px; font-family: 'Inter', sans-serif; }
.prose li { margin-bottom: 8px; color: #2c2c26; }
.prose a { color: var(--terracotta); text-decoration: underline; font-weight: 500; }
.prose a:hover { color: var(--teal-deep); }
.prose strong { color: var(--teal-deep); }
.prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0 20px; }

/* ---------- Related articles ---------- */
.related-articles { max-width: 900px; margin: 56px auto 0; padding: 32px 32px 0; border-top: 1px solid var(--line); }
.related-articles h3 { font-family: 'Fraunces', serif; font-size: 20px; color: var(--teal-deep); margin-bottom: 20px; font-weight: 600; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.related-grid a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 500; font-family: 'Inter', sans-serif; transition: border-color 0.15s ease, transform 0.15s ease; }
.related-grid a:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); }
.related-tag { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; font-weight: 600; }

/* ---------- Hub article index ---------- */
.hub-index { max-width: 900px; margin: 8px auto 0; }
.hub-index h3 { font-family: 'Fraunces', serif; font-size: 20px; color: var(--teal-deep); margin-bottom: 18px; font-weight: 600; }
.hub-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; list-style: none; }
.hub-list a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 500; font-family: 'Inter', sans-serif; font-size: 15px; transition: border-color 0.15s ease, transform 0.15s ease; }
.hub-list a:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; max-width: 1080px; margin: 0 auto; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; font-family: 'Inter', sans-serif; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--teal-deep); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 14px; font-size: 15px; font-family: inherit; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,85,74,0.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.contact-info { background: var(--sand); border-radius: 14px; padding: 26px; font-family: 'Inter', sans-serif; }
.contact-info h3 { font-size: 17px; color: var(--teal-deep); margin-bottom: 14px; font-weight: 600; font-family: 'Fraunces', serif; }
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.contact-info li:last-child { border-bottom: none; }
.contact-info strong { color: var(--teal-deep); display: block; margin-bottom: 2px; }
.contact-info a { color: var(--terracotta); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer { background: var(--teal-deep); color: rgba(255,255,255,0.85); padding: 52px 32px 30px; font-family: 'Inter', sans-serif; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; margin-bottom: 36px; }
footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 15px; font-weight: 600; font-family: 'Inter', sans-serif; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px; max-width: 1180px; margin: 0 auto; font-size: 13px; color: rgba(255,255,255,0.6); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 52px 24px 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .rainbow, .hero-art { max-width: 320px; }
  .section { padding: 60px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .page-hero { padding: 44px 24px 20px; }
  .page-hero + .section { padding-top: 14px; }
  .related-articles { padding: 28px 24px 0; }
  .post-hero-art { padding: 0 24px; }
}

/* ---------- Recommended (CMS-native related posts, if used) ---------- */
.section ~ .cms-related { margin-top: -64px; padding-top: 32px; padding-left: 24px; padding-right: 24px; border-top: 1px solid var(--line); }
.cms-related-grid .card { padding: 0; }
.cms-related-grid .card-body h3 { font-size: 18px; }