:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --panel: #fffdf8;
  --ink: #1c2b32;
  --muted: #5d6b70;
  --line: #d7cbb7;
  --sea: #245c6b;
  --deep-sea: #193f4a;
  --terracotta: #9a4d32;
  --soft-sea: #e3eef0;
  --warning: #fff1d8;
  --content-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.68 Georgia, "Times New Roman", serif;
}
a { color: var(--sea); text-underline-offset: .18em; }
a:hover { color: var(--terracotta); }
button, input, select { font: inherit; }
button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--sea);
  border-radius: 4px;
  padding: .55rem .9rem;
  background: var(--sea);
  color: white;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button-link:hover { background: var(--deep-sea); color: white; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #d89446; outline-offset: 2px; }
.skip-link { position: absolute; left: -10000px; top: 0; background: white; padding: .5rem; z-index: 10; }
.skip-link:focus { left: .5rem; }
.preview-notice { padding: .4rem 1rem; text-align: center; background: var(--warning); color: #623f12; font: 600 .82rem/1.4 system-ui, sans-serif; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem max(1.25rem, calc((100vw - var(--content-width)) / 2)); color: white; background: linear-gradient(115deg, var(--deep-sea), #386875); }
.brand { color: white; font-size: 1.55rem; font-weight: 700; text-decoration: none; letter-spacing: .015em; }
.brand span { font-weight: 400; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.site-header nav a { color: white; text-decoration-thickness: 1px; }
.site-main { width: min(var(--content-width), calc(100% - 2rem)); margin: 0 auto; padding: 1.25rem 0 4rem; }
.site-footer { padding: 1.5rem max(1rem, calc((100vw - var(--content-width)) / 2)); border-top: 1px solid var(--line); background: #eee6d8; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: .25rem 0; }
h1, h2, h3, h4 { color: var(--deep-sea); line-height: 1.16; }
h1 { max-width: 900px; margin: .25rem 0 .6rem; font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { margin: 0 0 .8rem; font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3 { margin: .25rem 0 .5rem; font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--terracotta); font: 700 .76rem/1.4 system-ui, sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.breadcrumbs { margin: .3rem 0 1.6rem; color: var(--muted); font: .9rem/1.5 system-ui, sans-serif; }
.breadcrumbs a { color: var(--muted); }
.article-header { max-width: 850px; margin: 0 auto 1.75rem; }
.article-header .deck { color: var(--terracotta); font-size: 1.35rem; }
.article-header .lead { color: #394950; font-size: 1.12rem; }
.home-hero { padding: 1.2rem 0 2rem; }
.home-hero > img { display: block; width: 100%; height: auto; margin: 0 0 1.5rem; border-radius: 12px; box-shadow: 0 14px 34px #172e3522; }
.home-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.home-hero p { max-width: 660px; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.text-link { font-weight: 700; }
.home-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; margin: 1rem 0 2.5rem; }
.feature-card { padding: 1.35rem; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--sea); }
.feature-card p:last-child { margin-bottom: 0; }
.expedition-feature { background: #e7eff0; }
.story-section { margin: 2.5rem 0; }
.story-section > p, .story-section > ul, .story-section > ol { max-width: 850px; }
.story-section h3 { margin-top: 1.35rem; }
.expedition-overview { padding: 1.4rem; background: #e9f0ef; border-left: 4px solid var(--sea); }
.article-header + .hero-figure { margin-top: 1.4rem; }
.hero-figure { margin: 1rem 0 2rem; }
.hero-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 75vh; margin-inline: auto; object-fit: contain; }
figure { margin: 0; }
figcaption { padding: .45rem .65rem; color: var(--muted); background: #fffdf8; font-size: .86rem; line-height: 1.45; }
figcaption small { display: block; margin-top: .15rem; font: .76rem/1.4 system-ui, sans-serif; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: start; }
.article-body { min-width: 0; }
.monument-article { max-width: 850px; margin-inline: auto; }
.facts-panel { padding: 1rem; background: var(--panel); border: 1px solid var(--line); }
.facts-panel dl { margin: 0; }
.facts-panel dl div { padding: .55rem 0; border-top: 1px solid var(--line); }
.facts-panel dt { color: var(--terracotta); font: 700 .74rem/1.4 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.facts-panel dd { margin: .15rem 0 0; }
.place-metadata { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: .8rem 0 0; font: .84rem/1.45 system-ui, sans-serif; }
.place-metadata div { display: grid; }
.place-metadata dt { color: var(--terracotta); font-weight: 700; }
.place-metadata dd { margin: 0; }
.image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.gallery-figure { background: var(--panel); border: 1px solid var(--line); }
.gallery-figure img { display: block; width: 100%; height: 210px; object-fit: cover; }
.timeline { padding-left: 1.3rem; border-left: 2px solid var(--line); list-style: none; }
.timeline li { position: relative; margin: 0 0 1rem; padding-left: .5rem; }
.timeline li::before { position: absolute; left: -1.72rem; top: .45rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--terracotta); content: ""; }
.timeline strong { display: block; color: var(--terracotta); }
.references { padding-left: 1.2rem; }
.references li { margin: .4rem 0; }
.link-list { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.highlights-list { padding-left: 1.2rem; }
.highlights-list li { margin: .65rem 0; }
.highlights-list p { margin: .2rem 0; }
.decision-notes { margin: .75rem 0; }
.place-grid, .expedition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.place-card { display: grid; grid-template-rows: 170px 1fr; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.place-card > img { width: 100%; height: 170px; object-fit: cover; }
.place-card > div { padding: .9rem 1rem 1rem; }
.place-card p { margin-bottom: .55rem; }
.place-card h2 { font-size: 1.35rem; }
.place-card h3 { font-size: 1.2rem; }
.card-placeholder { display: grid; place-items: center; background: var(--soft-sea); color: var(--sea); font-size: 2rem; }
.status-pill { display: inline-block; padding: .2rem .55rem; border-radius: 99px; background: var(--warning); color: #684519; font: 700 .72rem/1.5 system-ui, sans-serif; }
.editorial-hold { max-width: 900px; margin: 0 auto 1.4rem; padding: .85rem 1rem; background: var(--warning); border-left: 4px solid #c18432; }
.planner-section { margin: 3rem 0; padding: clamp(1rem, 3vw, 2rem); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 8px 24px #1c2b3210; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading-row h2 { margin-bottom: 0; }
.planner-intro { max-width: 850px; color: var(--muted); }
.planner-status { margin: .75rem 0; color: var(--muted); font: .86rem/1.5 system-ui, sans-serif; }
.nautical-caveat, .notice { padding: .8rem 1rem; background: var(--warning); border-left: 3px solid #c18432; font-size: .9rem; }
.table-scroll { overflow-x: auto; }
.itinerary-table, .planner-table { width: 100%; min-width: 760px; border-collapse: collapse; font: .9rem/1.5 system-ui, sans-serif; }
.itinerary-table th, .itinerary-table td, .planner-table th, .planner-table td { padding: .65rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.itinerary-table thead, .planner-table thead { background: #e5eeef; }
.itinerary-table th, .planner-table th { color: var(--deep-sea); }
.role-label { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.itinerary-table details, .planner-table details { margin-top: .45rem; font-size: .82rem; }
details summary { color: var(--sea); cursor: pointer; font-weight: 700; }
.planner-summary { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; align-items: center; margin: 1rem 0; padding: .8rem; background: var(--soft-sea); font: .9rem/1.4 system-ui, sans-serif; }
.planner-summary strong { color: var(--deep-sea); font-size: 1.1rem; }
.missing-notice { color: #8b3d24; font-weight: 700; }
.planner-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.planner-tools p { margin: 0; color: var(--muted); font: .84rem/1.4 system-ui, sans-serif; }
.reset-route { min-height: 38px; padding: .35rem .7rem; font: .83rem/1.2 system-ui, sans-serif; }
.route-toggle, .stay-control, .variant-control { display: flex; align-items: center; gap: .4rem; }
.route-toggle, .variant-control { position: relative; }
.route-toggle { font-size: .78rem; }
.route-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--sea); }
.stay-control { flex-wrap: wrap; }
.stay-control input { width: 4rem; padding: .3rem; border: 1px solid var(--line); border-radius: 3px; }
.variant-control select { max-width: 9rem; margin-top: .25rem; padding: .3rem; border: 1px solid var(--line); background: white; }
.planner-table .destination-name { display: block; font: 700 .95rem/1.4 Georgia, serif; }
.stop-catalog-list { display: grid; gap: .8rem; }
.stop-catalog-item { padding: 1rem; border: 1px solid var(--line); background: var(--paper); }
.stop-catalog-item h2 { margin: .2rem 0; font: 700 1.25rem/1.25 Georgia, serif; }
.stop-catalog-item > p { margin: .35rem 0; }
.planner-table details { max-width: 400px; }
.planner-table details p { margin: .4rem 0; }
.site-options { padding-left: 1rem; }
.route-row.is-skipped { color: #718087; background: #f3f2ed; }
.route-row.is-missing { background: #fff3e8; }
.required-stop { color: var(--deep-sea); font-weight: 700; }
.muted { color: var(--muted); }
.empty-state { margin: 4rem auto; max-width: 650px; text-align: center; padding: 2rem; background: var(--panel); border: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .site-header nav { gap: .85rem; }
  .home-columns, .article-layout { grid-template-columns: 1fr; }
  .facts-panel { order: -1; }
  .place-grid, .expedition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-main { width: min(100% - 1.1rem, var(--content-width)); }
  .site-header { padding: .9rem; }
  .site-header nav { gap: .6rem .9rem; font-size: .9rem; }
  .place-grid, .expedition-grid, .image-grid { grid-template-columns: 1fr; }
  .place-card { grid-template-rows: 190px 1fr; }
  .place-card > img { height: 190px; }
  .section-heading-row, .planner-tools { align-items: flex-start; flex-direction: column; }
  .planner-section { padding: .8rem; }
}
