/* Saintonge & Marais — one stylesheet, no frameworks */

:root {
  --paper: #f4efe4;
  --paper-2: #ebe3d3;
  --ink: #1b1f1d;
  --ink-soft: #4d524e;
  --rule: #d3c9b5;
  --marsh: #2f4a3c;
  --marsh-deep: #1f3329;
  --marsh-pale: #c9d3c3;
  --rust: #a5512b;
  --rust-deep: #86401f;
  --sand: #e6c88f;
  --measure: 40rem;
  --wide: 72rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.62 var(--serif);
  font-feature-settings: "onum" 1, "kern" 1;
}

a { color: var(--rust); text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; height: auto; display: block; }
::selection { background: var(--sand); }

/* ---------- masthead ---------- */

.masthead { position: relative; z-index: 5; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--ink); }
.masthead-inner {
  max-width: var(--wide); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 2rem;
}
.wordmark { display: flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.wordmark em { font-style: italic; color: var(--rust); }
.wordmark svg { width: 30px; height: 30px; flex: none; }

.nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.nav a {
  font: 600 0.76rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--ink-soft); text-decoration: none; padding: 0.35rem 0; border-bottom: 1.5px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--rust); }

/* overlay variant sits on top of a hero photo */
.masthead--overlay { position: absolute; top: 0; left: 0; right: 0; border-bottom: 1px solid rgba(255,255,255,0.28); }
.masthead--overlay .wordmark, .masthead--overlay .nav a { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.masthead--overlay .wordmark em { color: var(--sand); }
.masthead--overlay .nav a:hover, .masthead--overlay .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--sand); }

/* ---------- heroes ---------- */

.hero, .page-hero {
  position: relative; color: #fff; overflow: hidden; background: var(--marsh-deep);
  display: flex; align-items: flex-end;
}
.hero { min-height: min(92vh, 860px); }
.page-hero { min-height: 30rem; }
.hero > img, .page-hero > img, .band > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero > img { object-position: 78% 40%; }
@media (min-width: 900px) { .hero > img { width: 135%; right: auto; object-position: right 40%; } }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(15,24,19,0.6), rgba(15,24,19,0) 60%); }
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(15,24,19,0.55) 0%, rgba(15,24,19,0) 55%),
    linear-gradient(to top, rgba(15,24,19,0.86) 0%, rgba(15,24,19,0.35) 45%, rgba(15,24,19,0) 70%),
    linear-gradient(to bottom, rgba(15,24,19,0.45), rgba(15,24,19,0) 22%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wide); margin: 0 auto; padding: 8rem 1.5rem 4rem; }
.page-hero .hero-inner { padding-bottom: 3rem; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 14ch; line-height: 1.02; margin-bottom: 1.2rem; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 0.6rem; }
.hero .lede, .page-hero .lede { color: rgba(255,255,255,0.88); max-width: 36rem; }
.hero .kicker, .page-hero .kicker { color: var(--sand); }
.hero-credit {
  position: absolute; z-index: 2; right: 1rem; bottom: 0.8rem;
  font: 0.68rem/1 var(--sans); color: rgba(255,255,255,0.6); letter-spacing: 0.03em;
}

.btns { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn {
  display: inline-block; font: 600 0.8rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.1em;
  padding: 1rem 1.4rem; border-radius: var(--radius); text-decoration: none; transition: background .2s, color .2s;
}
.btn-solid { background: var(--rust); color: #fff; }
.btn-solid:hover { background: var(--rust-deep); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- facts strip under hero ---------- */

.strip { background: var(--marsh); color: var(--paper); }
.strip ul {
  max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.strip li { padding: 1.4rem 1rem 1.4rem 0; border-right: 1px solid rgba(255,255,255,0.14); }
.strip li:last-child { border-right: 0; }
.strip b { display: block; font: normal 2rem/1.1 var(--serif); color: var(--sand); }
.strip span { font: 0.78rem/1.4 var(--sans); letter-spacing: 0.04em; color: var(--marsh-pale); }

/* ---------- layout ---------- */

main { display: block; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.measure { max-width: var(--measure); }
section { padding: 5rem 0; }
.rule-top { border-top: 1px solid var(--rule); }

.kicker {
  display: flex; align-items: center; gap: 0.7rem;
  font: 600 0.74rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.14em; color: var(--rust); margin: 0 0 1rem;
}
.kicker::before { content: ""; width: 1.8rem; height: 1px; background: currentColor; }

h1, h2, h3 { font-weight: normal; line-height: 1.12; margin: 0 0 1rem; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-soft); max-width: 36rem; }
.small { font-size: 0.92rem; color: var(--ink-soft); }
.meta { font: 0.8rem/1.4 var(--sans); color: var(--ink-soft); letter-spacing: 0.02em; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 2.5rem; }
.section-head h2 { max-width: 20ch; margin: 0; }
.section-head p { max-width: 28rem; margin: 0; color: var(--ink-soft); }

.dropcap::first-letter {
  float: left; font-size: 4.3em; line-height: 0.8; padding: 0.08em 0.1em 0 0; color: var(--rust);
}

/* ---------- intro + map ---------- */

.intro { display: grid; gap: 3rem; }
@media (min-width: 900px) { .intro { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.intro > *, .two-col > * { min-width: 0; }
figure { margin: 0; }
.map { background: var(--paper-2); border: 1px solid var(--rule); padding: 0.8rem; box-shadow: 0 1px 0 #fff inset, 0 18px 40px -24px rgba(40,30,10,0.35); transform: rotate(0.6deg); }
.map svg { width: 100%; }
figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.7rem; font-style: italic; }

/* ---------- photo cards ---------- */

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 15rem; }
  .cards .card { grid-column: span 2; }
  .cards .card:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .cards .card:nth-child(2), .cards .card:nth-child(3) { grid-column: span 2; }
  .cards .card { min-height: 0; }
}
.card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  min-height: 18rem; color: #fff; text-decoration: none; background: var(--marsh-deep);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,20,16,0.85), rgba(12,20,16,0) 60%); }
.card:hover { color: #fff; }
.card:hover img { transform: scale(1.04); }
.card-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem; }
.card .num { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em; color: var(--sand); }
.card h3 { margin: 0.4rem 0 0.25rem; font-size: 1.45rem; }
.card:nth-child(1) h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.card p { margin: 0; font-size: 0.95rem; line-height: 1.45; color: rgba(255,255,255,0.85); max-width: 32rem; }

/* ---------- full-bleed photo band with quote ---------- */

.band { position: relative; min-height: 30rem; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--marsh-deep); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,24,19,0.85) 0%, rgba(15,24,19,0.5) 45%, rgba(15,24,19,0.05) 80%); }
.band .wrap { position: relative; z-index: 2; width: 100%; }
.pull { margin: 0; padding: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; font-style: italic; max-width: 26ch; }
.pull::before { content: "“"; display: block; font-size: 4.5rem; line-height: 0.6; color: var(--sand); font-style: normal; margin-bottom: 0.6rem; }
.pull footer { font: normal 0.82rem/1.4 var(--sans); color: rgba(255,255,255,0.75); margin-top: 1.2rem; letter-spacing: 0.04em; }

/* ---------- dark section + months ---------- */

.dark { background: var(--marsh-deep); color: var(--paper); }
.dark .kicker { color: var(--sand); }
.dark .section-head p { color: var(--marsh-pale); }
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.12); }
.months div { background: var(--marsh-deep); padding: 1.3rem 1.2rem 1.4rem; }
.months b { display: block; font: 600 0.74rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--sand); margin-bottom: 0.5rem; }
.months span { font-size: 0.98rem; color: #e8e3d6; }
.months .best { background: var(--marsh); }
.months .best b::after { content: " · best"; color: #fff; }

/* ---------- itinerary teasers ---------- */

.teasers { display: grid; gap: 2rem; }
@media (min-width: 800px) { .teasers { grid-template-columns: repeat(3, 1fr); } }
.teaser { text-decoration: none; color: var(--ink); display: block; }
.teaser .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 1rem; background: var(--paper-2); }
.teaser img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.teaser:hover img { transform: scale(1.04); }
.teaser:hover h3 { color: var(--rust); }
.teaser .meta { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 600; color: var(--rust); }
.teaser p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- gazetteer ---------- */

.az-bar { position: sticky; top: 0; z-index: 4; background: rgba(244,239,228,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.az { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.8rem 0; margin: 0; list-style: none; scrollbar-width: none; }
.az a {
  display: block; white-space: nowrap; font: 600 0.74rem/1 var(--sans); letter-spacing: 0.06em; text-decoration: none;
  color: var(--ink-soft); padding: 0.55rem 0.8rem; border: 1px solid var(--rule); border-radius: 99px;
}
.az a:hover { background: var(--marsh); border-color: var(--marsh); color: #fff; }

.entry { padding: 4rem 0; border-top: 1px solid var(--rule); scroll-margin-top: 4rem; display: grid; gap: 2rem 3.5rem; }
.entry:first-child { border-top: 0; }
@media (min-width: 900px) {
  .entry.has-img { grid-template-columns: 1fr 1fr; align-items: start; }
  .entry.has-img:nth-child(even) .entry-img { order: 2; }
  .entry:not(.has-img) { grid-template-columns: 1fr 1fr; align-items: start; }
}
.entry-img { position: relative; }
.entry-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.entry-img .tag {
  position: absolute; top: 1rem; left: 1rem; background: var(--paper); color: var(--ink);
  font: 600 0.68rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.5rem 0.7rem; border-radius: 2px;
}
.entry h2 { margin: 0 0 0.3rem; font-size: clamp(2rem, 3.2vw, 2.6rem); }
.entry .meta { display: block; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 600; color: var(--rust); margin-bottom: 1.2rem; }
.facts {
  margin: 1.6rem 0 0; padding: 1.2rem 1.3rem; background: var(--paper-2); border-left: 3px solid var(--marsh);
  display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.2rem; font-size: 0.95rem;
}
.facts dt { font: 600 0.7rem/1.9 var(--sans); text-transform: uppercase; letter-spacing: 0.09em; color: var(--marsh); }
.facts dd { margin: 0; }

/* ---------- itineraries ---------- */

@media (min-width: 900px) {
  .two-col { display: grid; grid-template-columns: 19rem 1fr; gap: 4rem; }
  .two-col > :first-child { position: sticky; top: 1.5rem; align-self: start; }
}
.side-img { margin-top: 1.5rem; }
.side-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.route { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; margin: 0.6rem 0 0; padding: 0; list-style: none; font: 0.82rem/1.4 var(--sans); color: var(--ink-soft); }
.route li + li::before { content: "→ "; color: var(--rust); }

.days { border-left: 1px solid var(--rule); margin-left: 0.5rem; }
.day { position: relative; padding: 0 0 2rem 2rem; }
.day::before { content: ""; position: absolute; left: -0.45rem; top: 0.35rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--rust); }
.day h3 { margin: 0 0 0.5rem; font: 600 0.76rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--rust); }
.day p { margin: 0 0 0.6rem; max-width: var(--measure); }
.day:last-child { padding-bottom: 0.5rem; }

.aside {
  background: var(--paper-2); border-radius: var(--radius); padding: 1.1rem 1.3rem 1.1rem 3.2rem; margin: 2rem 0 0; position: relative;
  max-width: var(--measure); font-size: 0.98rem; color: var(--ink-soft);
}
.aside::before { content: "i"; position: absolute; left: 1.1rem; top: 1.05rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--marsh); color: #fff; font: italic 0.95rem/1.4rem var(--serif); text-align: center; }
.aside.warn::before { content: "!"; background: var(--rust); font-style: normal; font-weight: 600; font-family: var(--sans); font-size: 0.8rem; }

/* ---------- tables, toc ---------- */

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1.2rem 0 1.5rem; }
th, td { text-align: left; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 600 0.7rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.09em; color: var(--marsh); border-bottom: 2px solid var(--marsh); }
tbody tr:hover { background: rgba(255,255,255,0.4); }
td.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; font-family: var(--sans); font-size: 0.9rem; }
.table-scroll { overflow-x: auto; }

.toc { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.toc a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; background: rgba(255,255,255,0.35);
}
.toc a::after { content: "↓"; color: var(--rust); font-family: var(--sans); }
.toc a:hover { border-color: var(--marsh); background: #fff; }
.page-hero .toc a { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: #fff; backdrop-filter: blur(4px); }
.page-hero .toc a::after { color: var(--sand); }
.page-hero .toc a:hover { background: rgba(255,255,255,0.22); }

.glossary { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.5rem; }
.glossary div { background: #fff; background: rgba(255,255,255,0.5); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.glossary b { display: block; font-weight: normal; font-size: 1.25rem; margin-bottom: 0.3rem; }
.glossary span { font-size: 0.95rem; color: var(--ink-soft); }

.split-img { display: grid; gap: 1rem; grid-template-columns: 2fr 1fr; margin: 2rem 0 0; }
.split-img img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: var(--radius); min-height: 14rem; }

/* ---------- credits ---------- */

.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.credits li { display: grid; grid-template-columns: 5rem 1fr; gap: 0.9rem; align-items: center; font-size: 0.9rem; }
.credits img { width: 5rem; height: 3.6rem; object-fit: cover; border-radius: 2px; }

/* ---------- footer ---------- */

.colophon { background: var(--ink); color: #bdb8ac; padding: 4rem 0 2.5rem; font-size: 0.9rem; }
.colophon .wrap { display: grid; gap: 2rem; }
@media (min-width: 760px) { .colophon .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.colophon .wordmark { color: var(--paper); margin-bottom: 1rem; }
.colophon p { margin: 0 0 0.6rem; max-width: 30rem; }
.colophon h4 { margin: 0 0 0.8rem; font: 600 0.72rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--sand); }
.colophon ul { list-style: none; padding: 0; margin: 0; }
.colophon li { margin-bottom: 0.45rem; }
.colophon a { color: #e6e1d4; text-decoration: none; }
.colophon a:hover { color: var(--sand); }
.colophon .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; font: 0.76rem/1.5 var(--sans); color: #8d897f; }

@media print {
  .nav, .colophon, .hero > img, .page-hero > img { display: none; }
  body { background: #fff; }
}

/* itinerary on dark ground */
.dark .route { color: var(--marsh-pale); }
.dark .days { border-color: rgba(255,255,255,0.18); }
.dark .day::before { background: var(--marsh-deep); border-color: var(--sand); }
.dark .day h3 { color: var(--sand); }
.dark .aside { background: rgba(255,255,255,0.07); color: #e8e3d6; }
.dark a { color: var(--sand); }
.dark th { color: var(--sand); border-bottom-color: var(--sand); }
.dark td { border-bottom-color: rgba(255,255,255,0.14); color: #e8e3d6; }
.dark tbody tr:hover { background: rgba(255,255,255,0.05); }

/* panel used in place of a photo */
.entry-fact {
  background: var(--marsh); color: var(--paper); border-radius: var(--radius); padding: 2.4rem 2.2rem;
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden;
}
.entry-fact::before {
  content: ""; position: absolute; inset: 0; opacity: 0.12;
  background: repeating-linear-gradient(35deg, var(--paper) 0 1px, transparent 1px 9px);
}
.entry-fact b { position: relative; font: normal clamp(3.5rem, 7vw, 5.5rem)/1 var(--serif); color: var(--sand); }
.entry-fact span { position: relative; margin-top: 0.8rem; font-size: 1.05rem; max-width: 24rem; color: #e8e3d6; }
.entry-fact.rust { background: var(--rust-deep); }
.entry-fact.ink { background: var(--ink); }
@media (max-width: 899px) { .entry-fact { aspect-ratio: auto; } }
