:root {
  --ink: #18302f;
  --ink-soft: #36504e;
  --sea: #116b6b;
  --sea-deep: #074b50;
  --verdigris: #68a99e;
  --copper: #b55435;
  --wine: #7c3541;
  --gold: #e1b25a;
  --cream: #f4ecdc;
  --shell: #fffaf0;
  --sky: #dcebea;
  --white: #fff;
  --line: rgba(24, 48, 47, .2);
  --muted: #637472;
  --max: 1200px;
  --read: 760px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(104,169,158,.1), transparent 25rem),
    var(--shell);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--sea-deep); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--copper); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .65rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--wine);
  font-weight: 800;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.reading { width: min(calc(100% - 2rem), var(--read)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-small { padding: clamp(2.7rem, 5vw, 4.5rem) 0; }
.sky { background: var(--sky); }
.cream { background: var(--cream); }
.deep { color: var(--white); background: var(--sea-deep); }

.masthead { position: relative; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255,250,240,.96); }
.masthead-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-seal { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 50%; color: var(--cream); background: var(--sea-deep); box-shadow: inset 0 0 0 5px var(--verdigris); font: 700 1.2rem/1 var(--serif); }
.logo-type { display: grid; font-family: var(--serif); font-size: 1.02rem; font-weight: 700; letter-spacing: .02em; line-height: 1.05; }
.logo-type small { margin-top: .23rem; color: var(--muted); font: 700 .58rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; }

.menu-button { width: 48px; height: 45px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--shell); cursor: pointer; }
.menu-lines, .menu-lines::before, .menu-lines::after { width: 21px; height: 2px; display: block; background: currentColor; content: ""; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.menu-lines::before { transform: translateY(-6px); }
.menu-lines::after { transform: translateY(4px); }
.menu-button[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-button[aria-expanded="true"] .menu-lines::before { transform: translateY(0) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-lines::after { transform: translateY(-2px) rotate(-45deg); }

.main-nav { position: absolute; inset: 82px 0 auto; padding: 1rem; border-bottom: 1px solid var(--line); background: var(--shell); }
.js .main-nav { display: none; }
.js .main-nav.open { display: block; }
.main-nav ul { margin: 0; padding: 0; display: grid; gap: .15rem; list-style: none; }
.main-nav a { display: block; padding: .72rem .8rem; border-radius: 999px; color: var(--ink-soft); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); background: var(--sea); }

h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 500; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 8.4vw, 7.8rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.25rem, 5vw, 4.55rem); letter-spacing: -.042em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -.025em; }
.deep h1, .deep h2, .deep h3 { color: var(--white); }
.kicker { margin: 0 0 1rem; color: var(--copper); font-size: .69rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.deep .kicker { color: var(--gold); }
.lead { max-width: 720px; margin: 1.3rem 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.12rem, 2vw, 1.38rem); line-height: 1.55; }
.deep .lead { color: #d9ece8; }

.button-row { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .72rem 1.15rem; border: 2px solid var(--sea-deep); border-radius: 999px; color: var(--white); background: var(--sea-deep); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: transform .2s var(--ease), background .2s var(--ease); }
.button:hover { color: var(--white); background: var(--copper); transform: translateY(-2px); }
.button-light { color: var(--sea-deep); background: transparent; }
.button-light:hover { color: var(--white); }
.deep .button { border-color: var(--white); color: var(--sea-deep); background: var(--white); }
.deep .button:hover { color: var(--white); background: var(--copper); }
.deep .button-light { color: var(--white); background: transparent; }

.home-hero { position: relative; min-height: calc(100svh - 82px); display: grid; align-items: center; padding: clamp(2.4rem, 5vw, 4.5rem) 0; overflow: hidden; }
.home-hero::before { position: absolute; right: -18rem; top: -14rem; width: 44rem; height: 44rem; border: 1px solid rgba(17,107,107,.19); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(104,169,158,.06), 0 0 0 10rem rgba(181,84,53,.035); content: ""; }
.hero-grid { position: relative; display: grid; align-items: center; gap: 2.5rem; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 span { color: var(--sea); font-style: italic; }
.hero-note { margin-top: 2rem; padding: 1rem 1.1rem; border-left: 4px solid var(--copper); color: var(--ink-soft); background: rgba(255,255,255,.55); font-size: .82rem; }
.hero-portrait { position: relative; margin: 0 auto; width: min(100%, 520px); }
.hero-portrait::before { position: absolute; inset: -14px 18px 18px -14px; z-index: -1; border-radius: 48% 48% 12px 12px / 26% 26% 12px 12px; background: var(--verdigris); content: ""; }
.hero-portrait picture, .hero-portrait img { width: 100%; }
.hero-portrait img { height: min(66vh, 680px); border-radius: 48% 48% 12px 12px / 26% 26% 12px 12px; object-fit: cover; object-position: center 35%; }
.portrait-caption { position: absolute; right: -5px; bottom: 18px; max-width: 210px; padding: .8rem 1rem; border-radius: 16px 0 0 16px; color: var(--white); background: var(--wine); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.route-ribbon { padding: .85rem 0; color: var(--white); background: var(--copper); overflow: hidden; }
.route-ribbon .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.route-ribbon span:not(:last-child)::after { margin-left: 1rem; content: "✦"; color: var(--gold); }

.section-heading { max-width: 800px; margin-bottom: 2.6rem; }
.section-heading p:last-child { max-width: 680px; margin: 1rem 0 0; color: var(--ink-soft); }
.card-grid { display: grid; gap: 1rem; }
.story-card { position: relative; min-height: 270px; display: flex; flex-direction: column; padding: clamp(1.4rem, 3vw, 2.1rem); border: 1px solid var(--line); border-radius: 25px 25px 8px 25px; background: rgba(255,255,255,.68); box-shadow: 0 18px 40px rgba(24,48,47,.06); overflow: hidden; }
.story-card::after { position: absolute; right: -1rem; top: -2.5rem; color: rgba(17,107,107,.08); content: attr(data-number); font: 700 8rem/1 var(--serif); }
.story-card .tag { position: relative; z-index: 1; color: var(--copper); font-size: .67rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.story-card h3 { position: relative; z-index: 1; margin-top: 2.2rem; }
.story-card p { position: relative; z-index: 1; color: var(--ink-soft); }
.card-link { position: relative; z-index: 2; margin-top: auto; padding-top: 1rem; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.card-link::after { position: absolute; inset: 0; content: ""; }

.feature { display: grid; align-items: center; gap: 2.5rem; }
.arch-photo { position: relative; margin: 0; padding: .65rem; border: 1px solid var(--line); border-radius: 999px 999px 24px 24px; background: var(--shell); box-shadow: 0 24px 55px rgba(7,75,80,.12); }
.arch-photo img { width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px 17px 17px; object-fit: cover; }
.arch-photo.landscape img { aspect-ratio: 4 / 3; border-radius: 220px 220px 17px 17px; }
.arch-photo figcaption { padding: .8rem .45rem .2rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .63rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.feature-copy p { color: var(--ink-soft); }

.journey-line { position: relative; display: grid; gap: 1.1rem; }
.journey-line::before { position: absolute; left: 1.1rem; top: 1.6rem; bottom: 1.6rem; border-left: 2px dotted var(--verdigris); content: ""; }
.journey-stop { position: relative; padding: 1.15rem 1.2rem 1.15rem 4rem; border-radius: 18px; background: rgba(255,255,255,.08); }
.journey-stop::before { position: absolute; left: .45rem; top: 1rem; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border: 7px solid var(--sea-deep); border-radius: 50%; background: var(--gold); content: ""; }
.journey-stop h3 { color: var(--white); font-size: 1.4rem; }
.journey-stop p { margin: .55rem 0 0; color: #cce1de; }

.fact-strip { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 1.4rem 0; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact strong { display: block; color: var(--sea-deep); font: 500 2.1rem/1 var(--serif); }
.fact span { display: block; margin-top: .45rem; color: var(--muted); font-size: .78rem; font-weight: 700; }

.journal-hero { position: relative; padding: clamp(3.5rem, 8vw, 7rem) 0; background: var(--cream); overflow: hidden; }
.journal-hero::after { position: absolute; right: -4rem; bottom: -8rem; width: 22rem; height: 22rem; border: 4rem solid rgba(104,169,158,.14); border-radius: 50%; content: ""; }
.journal-hero .wrap { position: relative; z-index: 1; }
.journal-hero h1 { max-width: 1050px; font-size: clamp(3rem, 7vw, 6.6rem); }
.crumbs { margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; color: var(--muted); font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.crumbs li:not(:last-child)::after { margin-left: .45rem; color: var(--copper); content: "•"; }
.crumbs a { color: inherit; }
.article-meta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1rem; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

.article-layout { display: grid; gap: 2.4rem; }
.article { min-width: 0; }
.article > p:first-of-type { color: var(--ink-soft); font-family: var(--serif); font-size: 1.25rem; line-height: 1.65; }
.article > p:first-of-type::first-letter { float: left; margin: .08em .1em 0 0; color: var(--copper); font: 500 4.25rem/.75 var(--serif); }
.article h2 { margin: 3.25rem 0 1rem; font-size: clamp(2rem, 4vw, 3.3rem); }
.article h3 { margin: 2.1rem 0 .7rem; }
.article p, .article ul, .article ol { max-width: var(--read); }
.article li + li { margin-top: .55rem; }
.article figure { margin: 2.6rem 0; }
.article figure img { width: 100%; max-height: 720px; border-radius: 22px 22px 6px 22px; object-fit: cover; }
.article figcaption { margin-top: .65rem; color: var(--muted); font-size: .72rem; }
.article blockquote { margin: 2.4rem 0; padding: 1.4rem 1.6rem; border-radius: 6px 26px 26px 26px; color: var(--sea-deep); background: var(--sky); font: italic 500 1.45rem/1.45 var(--serif); }
.article-rail { align-self: start; display: grid; gap: 1rem; }
.notebook { padding: 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); }
.notebook h2 { font: 900 .68rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.notebook ul { margin: .9rem 0 0; padding-left: 1.1rem; }
.notebook li + li { margin-top: .45rem; }

.tip { margin: 1.8rem 0; padding: 1.25rem 1.35rem; border: 1px solid rgba(17,107,107,.32); border-radius: 6px 22px 22px 22px; background: var(--sky); }
.caution { margin: 1.8rem 0; padding: 1.25rem 1.35rem; border: 1px solid rgba(181,84,53,.38); border-radius: 22px 6px 22px 22px; background: #f6e3d8; }
.check-list { margin: 1.5rem 0; padding: 0; display: grid; gap: .7rem; list-style: none; }
.check-list li { position: relative; padding: 1rem 1rem 1rem 3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.check-list li::before { position: absolute; left: 1rem; top: 1rem; color: var(--sea); content: "✓"; font-weight: 900; }

.table-wrap { max-width: 100%; margin: 2rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: .95rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--white); background: var(--sea-deep); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.source-stack { display: grid; gap: .8rem; }
.source-entry { padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px 18px 6px 18px; background: var(--white); }
.source-entry h2 { font-size: 1.45rem; }
.source-entry p { margin: .6rem 0 0; color: var(--ink-soft); }
.source-entry a { overflow-wrap: anywhere; }

.timeline { position: relative; margin: 2rem 0; display: grid; gap: 1rem; }
.timeline::before { position: absolute; left: 1.05rem; top: 1rem; bottom: 1rem; border-left: 2px solid var(--verdigris); content: ""; }
.timeline-item { position: relative; padding: 1rem 1rem 1rem 4rem; }
.timeline-item::before { position: absolute; left: .45rem; top: 1.15rem; width: 1.25rem; height: 1.25rem; border: 5px solid var(--shell); border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 1px var(--copper); content: ""; }
.timeline-item strong { display: block; color: var(--copper); font: 500 1.5rem/1 var(--serif); }
.timeline-item p { margin: .45rem 0 0; }

.closing-card { position: relative; padding: clamp(1.8rem, 5vw, 3.7rem); border-radius: 36px 36px 9px 36px; color: var(--white); background: var(--wine); overflow: hidden; }
.closing-card::after { position: absolute; right: -4rem; bottom: -6rem; width: 16rem; height: 16rem; border: 2.8rem solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.closing-card h2 { position: relative; z-index: 1; color: var(--white); }
.closing-card p, .closing-card .button-row { position: relative; z-index: 1; max-width: 720px; }

.legal h2 { margin-top: 2.7rem; font-size: 2rem; }
.legal h3 { margin-top: 1.8rem; font-size: 1.35rem; }
.legal p, .legal li { color: var(--ink-soft); }

.site-footer { position: relative; margin-top: 4rem; padding: 5rem 0 1.3rem; color: #c9dfda; background: var(--sea-deep); }
.site-footer::before { position: absolute; left: 0; right: 0; top: -29px; height: 30px; background: radial-gradient(32px 28px at 32px 0, transparent 29px, var(--sea-deep) 30px) 0 0/64px 30px repeat-x; content: ""; }
.footer-grid { display: grid; gap: 2.4rem; }
.footer-about p { max-width: 440px; color: #a9c8c3; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.footer-links h2 { color: var(--gold); font: 900 .68rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.footer-links ul { margin: .8rem 0 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: .42rem; }
.footer-links a { color: #c7ddd8; font-size: .87rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 2.7rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); color: #86aaa4; font-size: .66rem; line-height: 1.5; }
.site-footer .logo { color: var(--white); }
.site-footer .logo:hover { color: var(--white); }
.site-footer .logo-seal { color: var(--sea-deep); background: var(--gold); box-shadow: inset 0 0 0 5px #f0d28e; }
.site-footer .logo-type small { color: #91b6af; }

.error-hero { min-height: 70vh; display: grid; align-items: center; }
.error-mark { color: var(--verdigris); font: 500 clamp(5rem,18vw,13rem)/.8 var(--serif); letter-spacing: -.08em; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

@media (min-width: 620px) {
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fact-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .fact { padding: 1.4rem; }
  .fact + .fact { border-top: 0; border-left: 1px solid var(--line); }
}

@media (min-width: 880px) {
  .menu-button { display: none; }
  .main-nav, .js .main-nav { position: static; display: block; padding: 0; border: 0; background: transparent; }
  .main-nav ul { display: flex; align-items: center; gap: .1rem; }
  .main-nav a { padding: .65rem .58rem; font-size: .63rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: clamp(3rem,7vw,7rem); }
  .hero-copy h1 { font-size: clamp(4.4rem,7.7vw,7.5rem); }
  .feature { grid-template-columns: .88fr 1.12fr; gap: clamp(3.5rem,8vw,8rem); }
  .feature.reverse > :first-child { order: 2; }
  .card-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .article-layout { grid-template-columns: minmax(0,760px) minmax(220px,1fr); gap: clamp(3rem,7vw,7rem); }
  .article-rail { position: sticky; top: 1rem; }
  .footer-grid { grid-template-columns: 1.1fr .9fr; }
}

@media (max-width: 520px) {
  .logo-type small { display: none; }
  .route-ribbon span:nth-child(3) { display: none; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-portrait img { height: 58vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
