:root {
  --ink: #122b42;
  --ink-soft: #486073;
  --paper: #f7f3eb;
  --paper-deep: #ebe4d6;
  --card: #fffdf8;
  --line: #d9d5cc;
  --sage: #879887;
  --sage-pale: #dce5d9;
  --gold: #c49654;
  --terracotta: #b86d58;
  --shadow: 0 18px 50px rgba(18, 43, 66, .08);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 850px; }
.narrow-prose { max-width: 760px; }
.skip-link { position: absolute; left: -999px; top: 10px; background: var(--gold); padding: 8px 12px; z-index: 5; }
.skip-link:focus { left: 10px; }

.site-header { position: sticky; top: 0; z-index: 4; background: rgba(247, 243, 235, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.04em; font-size: 1.13rem; }
.brand em { font-family: var(--serif); font-weight: 400; font-style: italic; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: .9rem; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: .84rem; font-weight: 700; }
.nav-link { color: var(--ink-soft); padding: 28px 0; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); border-color: var(--gold); }
.nav-cta { padding: 11px 15px; color: var(--paper); background: var(--ink); border-radius: 999px; }
.nav-cta:hover { background: var(--terracotta); }
.menu-button { display: none; color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }

.hero-section { padding: 88px 0 70px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.eyebrow { color: var(--sage); font-size: .7rem; letter-spacing: .17em; font-weight: 800; text-transform: uppercase; }
.eyebrow-gold { color: var(--gold); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.055em; line-height: 1.04; }
h1 { font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 6.8rem); max-width: 760px; }
h2 { font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 4.2rem); }
h3 { font-size: 1.34rem; }
.hero-copy h1 { margin-top: 18px; }
.hero-lede { max-width: 620px; margin: 26px 0 0; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 7px; font-size: .88rem; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--paper); background: var(--ink); }
.button-primary:hover { background: var(--terracotta); }
.button-light { color: var(--ink); background: var(--sage-pale); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 800; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.text-link:hover { color: var(--terracotta); }
.hero-proof { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: .75rem; margin-top: 46px; }
.proof-dot { width: 8px; height: 8px; background: var(--sage); border-radius: 50%; }

.hero-visual { padding: 18px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero-visual-top, .hero-visual-bottom { display: flex; justify-content: space-between; font-size: .65rem; letter-spacing: .16em; color: var(--sage-pale); }
.hero-map-field { min-height: 395px; margin: 15px 0; position: relative; overflow: hidden; background-color: #23425e; background-image: repeating-linear-gradient(0deg, transparent, transparent 34px, rgba(220, 229, 217, .13) 35px), repeating-linear-gradient(90deg, transparent, transparent 34px, rgba(220, 229, 217, .13) 35px); }
.hero-map-field::before, .hero-map-field::after { content: ''; position: absolute; border: 1px solid rgba(220, 229, 217, .25); border-radius: 44% 56% 51% 49%; transform: rotate(-17deg); }
.hero-map-field::before { width: 70%; height: 57%; left: 12%; top: 18%; }
.hero-map-field::after { width: 45%; height: 32%; right: 10%; bottom: 10%; border-color: rgba(196, 150, 84, .5); }
.contour { position: absolute; border: 1px solid rgba(220, 229, 217, .36); border-radius: 50%; transform: rotate(-19deg); }
.contour-one { inset: 12% 20% 25% 7%; }
.contour-two { inset: 20% 10% 16% 20%; }
.contour-three { inset: 32% 25% 6% 12%; }
.map-index-list { position: absolute; left: 9%; bottom: 12%; display: grid; grid-template-columns: repeat(2, 65px); gap: 6px; }
.map-index-list span { padding: 11px 8px; text-align: center; border: 1px solid rgba(247, 243, 235, .52); font-family: var(--serif); font-size: 1.1rem; }
.compass-mark { position: absolute; top: 10%; right: 12%; width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: var(--serif); }
.compass-mark::after { content: '✦'; position: absolute; color: var(--paper); transform: rotate(45deg); font-size: .65rem; }

.intro-strip { background: var(--sage-pale); }
.intro-grid { display: grid; grid-template-columns: .5fr 1.6fr .7fr; align-items: center; gap: 28px; padding: 27px 0; }
.intro-grid p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.intro-grid .text-link { justify-self: end; }
.section { padding: 98px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading h2 { margin-top: 12px; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.filter-button { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); border-radius: 999px; padding: 8px 12px; font-size: .76rem; }
.filter-button:hover, .filter-button.is-active { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 8px; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card:nth-child(4n) .map-thumb { background-color: #7f9180; }
.post-card:nth-child(3n) .map-thumb { background-color: #b97562; }
.post-card-body { padding: 22px 20px 18px; }
.post-card h3 { margin-top: 12px; }
.post-card h3 a:hover { color: var(--terracotta); }
.post-card p { min-height: 76px; margin: 13px 0 21px; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .72rem; }
.post-card-meta a { color: var(--ink); font-weight: 800; }
.post-card-meta a:hover { color: var(--terracotta); }
.map-thumb { min-height: 180px; position: relative; overflow: hidden; background-color: #2c5473; color: var(--paper); background-image: repeating-linear-gradient(0deg, transparent, transparent 25px, rgba(247, 243, 235, .12) 26px), repeating-linear-gradient(90deg, transparent, transparent 25px, rgba(247, 243, 235, .12) 26px); }
.map-thumb-grid { position: absolute; inset: 15% 13%; border: 1px solid rgba(247, 243, 235, .52); transform: skewY(-8deg) rotate(-5deg); }
.map-thumb-grid::before, .map-thumb-grid::after { content: ''; position: absolute; border: 1px solid rgba(247, 243, 235, .48); border-radius: 50%; }
.map-thumb-grid::before { inset: 12% 10% 38% 22%; }
.map-thumb-grid::after { inset: 40% 19% 7% 8%; }
.map-thumb-label, .map-thumb-coords, .map-thumb-stamp { position: absolute; font-size: .63rem; letter-spacing: .15em; }
.map-thumb-label { left: 20px; top: 18px; }
.map-thumb-coords { right: 20px; bottom: 18px; }
.map-thumb-stamp { left: 20px; bottom: 18px; color: var(--gold); }
.map-thumb-large { min-height: 290px; margin: 0 0 54px; }
.map-thumb-large .map-thumb-label { font-size: .8rem; }

.atlas-callout { color: var(--paper); background: var(--ink); }
.atlas-callout-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
.atlas-callout h2 { margin-top: 14px; }
.atlas-callout p { max-width: 520px; margin: 23px 0 29px; color: var(--sage-pale); }
.atlas-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 2px; }
.atlas-stats div { border-top: 1px solid rgba(247, 243, 235, .3); padding-top: 16px; }
.atlas-stats strong { display: block; color: var(--gold); font-family: var(--serif); font-size: 2.8rem; font-weight: 400; }
.atlas-stats span { display: block; color: var(--sage-pale); font-size: .72rem; }
.newsletter-panel { background: var(--paper-deep); }
.newsletter-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end; }
.newsletter-grid h2 { margin-top: 14px; max-width: 700px; }
.newsletter-grid p { margin: 0 0 24px; color: var(--ink-soft); }

.page-hero { padding: 94px 0 78px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 15px; font-size: clamp(3rem, 8vw, 6.3rem); }
.page-hero .hero-lede { max-width: 720px; }
.section-intro { max-width: 700px; margin-bottom: 33px; color: var(--ink-soft); }
.article-container { max-width: 930px; padding: 44px 0 100px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; color: var(--ink-soft); font-size: .72rem; margin-bottom: 50px; }
.breadcrumbs a { color: var(--ink); font-weight: 800; }
.article-header { max-width: 800px; }
.article-header h1 { margin-top: 16px; font-size: clamp(3rem, 7vw, 6rem); }
.article-dek { color: var(--ink-soft); font-size: 1.18rem; line-height: 1.7; margin: 24px 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-soft); font-size: .76rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 65px; align-items: start; }
.article-body { font-family: var(--serif); font-size: 1.12rem; line-height: 1.82; }
.article-body h2 { margin: 45px 0 15px; font-size: 2.3rem; }
.article-body h3 { margin: 35px 0 12px; font-family: var(--sans); font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; }
.article-body p { margin: 0 0 23px; }
.article-body a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.article-body ul { padding-left: 25px; }
.article-body blockquote { margin: 28px 0; padding: 5px 0 5px 20px; border-left: 3px solid var(--gold); color: var(--ink-soft); }
.article-aside { display: grid; gap: 18px; position: sticky; top: 110px; }
.aside-card { padding: 20px; border: 1px solid var(--line); background: var(--card); }
.dark-card { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.aside-card p { margin: 12px 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.6; }
.dark-card p { color: var(--sage-pale); font-family: var(--serif); font-size: 1.15rem; }
.aside-link { display: flex; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 800; }
.aside-link:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-link:hover { color: var(--terracotta); }
.prose-section { padding-top: 72px; }
.prose { font-family: var(--serif); font-size: 1.16rem; line-height: 1.8; }
.prose h2 { margin: 45px 0 15px; font-size: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 24px; }
.prose li { margin-bottom: 10px; }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 80px; }
.aside-stack { display: grid; align-content: start; gap: 18px; }
.callout { padding: 18px 20px; border-left: 3px solid var(--gold); color: var(--ink) !important; background: var(--sage-pale); }
.search-label { display: block; margin-top: 32px; font-size: .78rem; font-weight: 800; }
.search-input { width: min(100%, 670px); margin-top: 8px; border: 1px solid var(--ink); border-radius: 5px; padding: 14px 16px; color: var(--ink); background: var(--card); outline: none; }
.search-input:focus { box-shadow: 0 0 0 3px rgba(196, 150, 84, .35); }
[hidden] { display: none !important; }

.site-footer { padding: 44px 0 22px; border-top: 1px solid var(--line); background: var(--card); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.brand-footer { font-size: 1.35rem; }
.footer-note { color: var(--ink-soft); font-size: .82rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 25px; align-content: start; justify-content: end; font-size: .8rem; font-weight: 800; }
.footer-links a:hover { color: var(--terracotta); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .7rem; }

@media (max-width: 900px) {
  .hero-grid, .atlas-callout-inner, .newsletter-grid, .prose-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-section { padding-top: 62px; }
  .hero-visual { max-width: 680px; width: 100%; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: .5fr 1.5fr; }
  .intro-grid .text-link { grid-column: 2; justify-self: start; }
  .article-layout { grid-template-columns: 1fr; gap: 35px; }
  .article-aside { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, 560px); }
  .header-inner { min-height: 68px; }
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; padding: 12px; flex-direction: column; align-items: stretch; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 10px; border: 0; }
  .nav-cta { text-align: center; }
  h1 { font-size: clamp(2.9rem, 14vw, 4.4rem); }
  h2 { font-size: 2.75rem; }
  .hero-section { padding: 55px 0; }
  .hero-visual { transform: none; }
  .hero-map-field { min-height: 280px; }
  .intro-grid, .section-heading, .footer-grid { display: block; }
  .intro-grid p { margin: 13px 0 17px; }
  .intro-grid .text-link { display: inline-flex; }
  .filter-row { justify-content: flex-start; margin-top: 20px; }
  .section { padding: 67px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card p { min-height: 0; }
  .atlas-stats { margin-top: 24px; }
  .article-container { padding-top: 30px; }
  .breadcrumbs { margin-bottom: 36px; }
  .article-header h1 { font-size: clamp(2.85rem, 14vw, 4.5rem); }
  .article-aside { grid-template-columns: 1fr; }
  .footer-links { margin-top: 34px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
}
