:root {
  color-scheme: dark;
  --deep: #101822;
  --ink: #f2efe5;
  --muted: #afbdc3;
  --sea: #a4c5be;
  --gold: #e6ae74;
  --edge: #34444d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 88% 4%, #20363e 0, transparent 46rem), var(--deep);
  font: 1rem/1.65 var(--sans);
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 6rem, 1240px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: .75rem; left: .75rem; padding: .5rem 1rem; background: var(--ink); color: var(--deep); transform: translateY(-160%); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--edge); background: #10182288; }
.masthead { min-height: 78px; display: flex; align-items: center; justify-content: space-between; column-gap: clamp(1rem, 3.8vw, 2.5rem); }
.brand { display: inline-flex; align-items: center; gap: .72rem; font: 1.42rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
.brand strong { font-weight: 400; color: var(--sea); }
.beacon { width: 1.7rem; aspect-ratio: 1; position: relative; border: 1px solid var(--sea); border-radius: 50%; }
.beacon::before { content: ""; position: absolute; inset: .43rem; background: var(--gold); transform: rotate(45deg); border-radius: .06rem; }
.beacon::after { content: ""; position: absolute; inset: .14rem; border-top: 1px solid var(--sea); border-bottom: 1px solid var(--sea); transform: rotate(-37deg); border-radius: 50%; }
.primary, .languages { display: flex; align-items: center; }
.primary { flex-wrap: wrap; gap: .6rem clamp(1rem, 2.6vw, 2rem); margin-left: auto; }
.primary a { text-decoration: none; color: var(--muted); font-size: .88rem; }
.primary a[aria-current], .primary a:hover { color: var(--ink); }
.primary a[aria-current] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .6rem; }
.languages { padding: .25rem; gap: .1rem; border: 1px solid var(--edge); border-radius: 3rem; }
.languages a { border-radius: 3rem; text-decoration: none; font-size: .73rem; letter-spacing: .06em; font-weight: 650; padding: .19rem .57rem; color: var(--muted); }
.languages a[aria-current] { background: var(--sea); color: var(--deep); }
.languages a:hover:not([aria-current]) { color: var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.8rem, 4.6vw, 4.8rem); padding: clamp(3rem, 6.8vw, 6.25rem) 0 3.7rem; }
.hero-copy { padding-bottom: 1.9rem; }
.kicker { color: var(--sea); font-size: .72rem; letter-spacing: .19em; text-transform: uppercase; font-weight: 660; margin: 0; }
.spark { display: inline-block; width: .46rem; height: .46rem; border-radius: 50%; margin-right: .58rem; vertical-align: .07rem; background: var(--gold); box-shadow: 0 0 1rem #e6ae746b; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; margin: 0; }
h1 { font-size: clamp(2.8rem, 5.35vw, 5.2rem); line-height: 1.04; letter-spacing: -.069em; margin: 1.1rem 0 1.43rem; }
h1 em { color: var(--sea); font-weight: normal; }
.hero-harbors h1 { font-size: clamp(2.7rem, 4.85vw, 4.8rem); }
.lead { color: var(--muted); font-size: clamp(1rem, 1.27vw, 1.18rem); max-width: 30rem; margin: 0; }
.action { display: inline-flex; align-items: center; gap: 1.2rem; margin-top: 1.75rem; padding: .66rem .92rem .66rem 1.05rem; border: 1px solid #7e9a96; text-decoration: none; color: var(--ink); font-size: .88rem; transition: background-color .2s, color .2s; }
.action span { color: var(--gold); font-size: 1.15rem; line-height: 1; }
.action:hover { background: var(--sea); color: var(--deep); }
.action:hover span { color: var(--deep); }
.hero-image { margin: 0; }
.hero-image img { width: 100%; aspect-ratio: 3/2; height: auto; object-fit: cover; background: #273840; border: 1px solid #7d939755; box-shadow: 0 1.3rem 3rem -1.5rem #0009; }
figcaption { color: var(--muted); margin-top: .62rem; font-size: .76rem; font-style: italic; text-align: right; }
.notes { padding: 2.85rem 0 3.45rem; border-top: 1px solid var(--edge); }
.notes-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 2rem; margin-bottom: 1.6rem; }
h2 { font-size: clamp(2.1rem, 3.9vw, 3rem); line-height: 1.13; letter-spacing: -.045em; }
.notes-intro > p { margin: 0; color: var(--muted); max-width: 31rem; }
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.2rem); }
.note { padding: 1rem 0 0; border-top: 1px solid #5e797d; }
.note h3 { color: var(--sea); font-size: 1.68rem; line-height: 1.18; }
.note .kicker { color: var(--gold); margin-bottom: .56rem; letter-spacing: .14em; }
.note h3 + p { margin: .65rem 0 0; color: var(--muted); font-size: .95rem; }
.back { display: inline-block; margin-top: 1.9rem; color: var(--sea); text-underline-offset: .25rem; }
.back span { color: var(--gold); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--edge); padding: 1.25rem 0 1.8rem; }
.footer-brand { gap: .3rem; font-size: 1.08rem; }
.footer p { margin: 0; font-size: .82rem; color: var(--muted); }
.journal-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.feature-copy h2 { margin: .65rem 0 .8rem; }
.feature-copy > p:not(.kicker) { max-width: 36rem; margin: 0; color: var(--muted); }
.feature-photo, .entry-photo, .map-card figure { margin: 0; }
.feature-photo img, .entry-photo img { width: 100%; height: auto; border: 1px solid var(--edge); }
.entry { padding: clamp(2.5rem, 6vw, 5.25rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.entry-header { margin-bottom: 2rem; }
.entry-header .lead { max-width: 39rem; }
.entry-photo { max-width: 800px; margin-bottom: clamp(2rem, 5vw, 3.7rem); }
.entry-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: clamp(1.75rem, 5vw, 4.5rem); }
.entry-text { max-width: 64ch; }
.entry-text h2, .map-card h2 { font-size: clamp(1.65rem, 3.5vw, 2.38rem); }
.entry-text p { color: var(--muted); margin: .8rem 0 1.4rem; }
.entry-text p + h2 { margin-top: 1.9rem; }
.source-list { margin: .65rem 0 0; padding-inline-start: 1.15rem; }
.source-list li + li { margin-top: .3rem; }
.source-list a, figcaption a { color: var(--sea); text-underline-offset: .2em; }
.map-card { padding: clamp(1rem, 2.5vw, 1.45rem); border: 1px solid var(--edge); background: #20363e44; }
.map-card h2 { margin-bottom: .8rem; }
.map-card img { width: 100%; height: auto; }
.map-card figcaption { text-align: left; }
.map-card .action { margin-top: .95rem; }
@media (max-width: 860px) {
  .shell { width: calc(100% - 3rem); }
  .hero { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: 1.4rem; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 2rem); }
  .masthead { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: .9rem 1rem; padding: 1rem 0 .8rem; }
  .primary { grid-row: 2; grid-column: 1 / -1; margin: 0; gap: 1.45rem; }
  .languages { grid-column: 2; grid-row: 1; }
  .hero { grid-template-columns: 1fr; padding: 2.4rem 0 1.9rem; gap: 1.45rem; }
  .hero-copy { padding: 0; }
  h1 { margin: .8rem 0 1.05rem; }
  .notes { padding: 2rem 0 2.35rem; }
  .note-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer { flex-wrap: wrap; }
  .journal-feature, .entry-layout { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
