@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.woff2') format('woff2');
  font-weight: 400 750;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('assets/playfair.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('assets/playfair-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #202823;
  --muted: #526057;
  --pine: #20362c;
  --red: #a43627;
  --line: #d8dbd0;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #c15c3e; outline-offset: 4px; }
[id] { scroll-margin-top: 2rem; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.4rem, 4.5vw, 4.15rem); line-height: 1.03; letter-spacing: -.055em; }
h3 { font-size: 1.7rem; line-height: 1.15; letter-spacing: -.035em; }

.wrap { width: min(1260px, calc(100% - 6rem)); margin-inline: auto; }
.skip-link { position: fixed; top: .65rem; left: .65rem; z-index: 2; padding: .55rem 1rem; transform: translateY(-160%); background: var(--paper); }
.skip-link:focus { transform: translateY(0); }
.masthead { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font: 1.5rem/1 var(--serif); letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.brand i { font-weight: 400; }
.seal { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--red); font: 700 .73rem/1 var(--sans); letter-spacing: -.06em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
nav a { font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--red); }
.nav-button { padding: .45rem .9rem; border: 1px solid #a9afa2; }
.nav-button:hover { border-color: var(--red); }

.hero { min-height: clamp(495px, 44vw, 610px); isolation: isolate; position: relative; display: grid; align-items: center; overflow: hidden; background: #3b4840; color: #fffaf0; }
.hero-image, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 50% 55%; z-index: -2; }
.hero::before { content: ''; z-index: -1; background: linear-gradient(90deg, #151d18ed 0%, #151d18ad 35%, #151d1830 75%, #151d1814), linear-gradient(0deg, #1118119c, transparent 30%); }
.hero-content { padding: 3.2rem clamp(2.25rem, 6.4vw, 6rem) 4.2rem; }
.eyebrow { font-size: .82rem; font-weight: 750; letter-spacing: .13em; line-height: 1.35; }
.hero-eyebrow { display: flex; align-items: center; gap: .7rem; color: #f2e7ce; margin-bottom: 1.4rem; }
.hero-eyebrow span { display: inline-block; width: 1.75rem; height: 1px; background: #df9b7b; }
.hero h1 { font-size: clamp(4rem, 7.35vw, 7.15rem); line-height: .91; letter-spacing: -.073em; text-wrap: balance; }
.hero h1 em { color: #f5dfbb; font-weight: 400; }
.hero-deck { max-width: 25rem; margin-top: 1.5rem; font-size: clamp(1rem, 1.45vw, 1.15rem); color: #f4eee1; }
.button { display: inline-block; margin-top: 1.6rem; padding: .72rem 1.25rem; background: #f5eddc; color: #232b23; font-weight: 700; font-size: .93rem; text-decoration: none; }
.button:hover { background: #f4d6aa; }
.photo-location { display: flex; align-items: center; gap: .56rem; position: absolute; right: 1.2rem; bottom: 1rem; color: #fffaf0; font-size: .82rem; font-weight: 600; text-shadow: 0 1px 4px #1b211a; }
.photo-location span { width: .5rem; height: .5rem; border: 1px solid #fffaf0; border-radius: 50%; }

.section { padding-block: 4.8rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem 3rem; margin-bottom: 2.1rem; }
.section-heading > p { max-width: 19rem; margin-bottom: .12rem; color: var(--muted); }
.section-label { color: var(--red); margin-bottom: .65rem; }
.walk-grid, .essentials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem; }
.walk-card { display: flex; flex-direction: column; align-items: start; }
.card-image { width: 100%; display: block; overflow: hidden; background: #dad9c9; }
.card-image img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; transition: transform .25s ease; }
.card-image:hover img { transform: scale(1.035); }
.market-image img { object-position: 50% 58%; }
.river-image img { object-position: 50% 54%; }
.card-meta { display: flex; align-items: center; gap: .55rem; color: var(--red); margin-top: 1rem; margin-bottom: .45rem; font-size: .82rem; font-weight: 750; letter-spacing: .085em; }
.card-meta span { display: block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.walk-card h3 a { text-decoration: none; }
.walk-card h3 a:hover { text-decoration: underline; }
.walk-card > p:not(.card-meta) { color: var(--muted); margin-top: .65rem; margin-bottom: .9rem; }
.text-link { color: var(--red); font-size: .91rem; font-weight: 700; }
.text-link:hover, .route-links a:hover { color: #6d2118; }
.walk-card .text-link { margin-top: auto; }

.route-list { margin-top: 2.3rem; border-top: 1px solid var(--line); }
.route { border-bottom: 1px solid var(--line); }
.route summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 0; cursor: pointer; font-weight: 650; list-style: none; }
.route summary::-webkit-details-marker { display: none; }
.route summary:hover { color: var(--red); }
.route-toggle { width: 1rem; height: 1rem; position: relative; color: var(--red); }
.route-toggle::before, .route-toggle::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: currentColor; }
.route-toggle::after { transform: rotate(90deg); }
.route[open] .route-toggle::after { display: none; }
.route-content { max-width: 55rem; padding: .3rem 1.15rem 1.4rem 0; }
.route-start strong { margin-right: .45rem; color: var(--red); }
.route ol { margin: .85rem 0; padding-left: 1.4rem; color: var(--muted); }
.route li { padding-left: .3rem; }
.route li + li { margin-top: .65rem; }
.route li strong { color: var(--ink); }
.route li span { white-space: nowrap; }
.route-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--red); font-size: .9rem; font-weight: 650; }

.itinerary { background: var(--pine); color: #f8f3e6; }
.itinerary-inner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 9vw, 9rem); padding-block: 4.5rem; }
.itinerary .eyebrow { color: #e9aa8d; margin-bottom: .8rem; }
.itinerary-intro > p:not(.eyebrow) { color: #dce4d8; max-width: 20rem; margin-top: .9rem; }
.choices { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .24rem; border: 1px solid #829486; margin-top: 1.35rem; }
.choices button { background: transparent; color: #fbf5e9; border: 0; padding: .44rem .75rem; font-size: .9rem; font-weight: 650; cursor: pointer; }
.choices button:hover { background: #365044; }
.choices button[aria-pressed='true'] { background: #f5eddb; color: var(--ink); }
.plan + .plan { margin-top: 1.6rem; }
.plan[hidden] + .plan { margin-top: 0; }
.no-script-title { padding-bottom: .65rem; }
.plan-row { min-height: 5.6rem; display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid #607566; }
.plan-row:first-of-type { padding-top: .85rem; }
.plan-row:last-child { border-bottom: 1px solid #607566; }
.plan-row > p { color: #f2b99c; font-size: .88rem; font-weight: 700; }
.plan-row h3 { font-size: 1.38rem; }
.plan-row div p { margin-top: .4rem; color: #dce4d8; }

.essentials-grid { margin-top: 1.8rem; }
.essentials article { border-top: 1px solid #a8b0a3; padding-top: 1rem; }
.essentials article p { color: var(--muted); margin-top: .65rem; margin-bottom: .75rem; }
.footer { border-top: 1px solid var(--line); padding-block: 1.6rem; }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: start; }
.footer .brand { font-size: 1.25rem; }
.footer .seal { width: 30px; height: 30px; }
.credits, .top-link { margin-top: .2rem; color: var(--muted); font-size: .88rem; }
.credits summary { cursor: pointer; width: fit-content; }
.credits ul { margin-block: .5rem; padding-left: 1.2rem; }

.walk-guide { padding-top: 1.35rem; }
.walk-guide .walks-back { display: inline-block; margin-bottom: 1.2rem; }
.guide-hero { display: grid; grid-template-columns: 1fr .93fr; align-items: center; gap: 2rem clamp(2rem, 5.5vw, 5.5rem); padding-bottom: 2.6rem; }
.guide-hero h1 { max-width: 11ch; font-size: clamp(3.45rem, 6.5vw, 6.2rem); line-height: .98; letter-spacing: -.065em; overflow-wrap: anywhere; }
.guide-hero-long h1 { max-width: none; font-size: clamp(2.3rem, 5.7vw, 5.15rem); }
.guide-hero h1 em { color: var(--red); font-weight: 400; }
.guide-lead { max-width: 37rem; margin-top: 1.3rem; font-size: clamp(1.04rem, 1.48vw, 1.22rem); color: var(--muted); }
.guide-hero figure { margin: 0; }
.guide-hero img { width: 100%; height: auto; aspect-ratio: 1.3; object-fit: cover; }
.guide-hero-palace img { object-position: 38% center; }
.guide-hero figcaption { font-size: .88rem; color: var(--muted); padding-top: .5rem; }
.guide-index { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.85rem; padding-block: .85rem; border-block: 1px solid var(--line); }
.guide-index a { display: inline-block; padding-block: .18rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem); align-items: start; gap: 2.5rem clamp(2.5rem, 7vw, 7rem); padding-block: 3.5rem 4.5rem; }
.guide-section + .guide-section { margin-top: 3rem; }
.guide-section h2 { font-size: clamp(2.2rem, 4vw, 3.25rem); margin-bottom: 1.1rem; }
.guide-section h3 { margin-bottom: .35rem; }
.guide-section p, .guide-section li, .guide-aside dd { color: var(--muted); }
.guide-steps { margin: 0; padding-left: 1.55rem; }
.guide-steps li { padding: .9rem 0 1.1rem .35rem; border-top: 1px solid var(--line); }
.guide-steps li::marker { color: var(--red); font-weight: 700; }
.guide-steps h3, .guide-questions h3 { color: var(--ink); }
.guide-steps p + p, .guide-questions div + div { margin-top: .75rem; }
.guide-questions div { border-top: 1px solid var(--line); padding-top: .8rem; }
.guide-sources { margin: .65rem 0 0; padding-left: 1.3rem; }
.guide-sources li + li { margin-top: .35rem; }
.guide-aside { background: #e8ece3; border-top: 3px solid var(--pine); padding: 1.35rem 1.45rem; }
.guide-aside h2 { font-size: 1.8rem; letter-spacing: -.04em; }
.guide-aside dl { margin: 1rem 0 0; }
.guide-aside dt { font-weight: 700; }
.guide-aside dd { margin: 0; }
.guide-aside dd + dt { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid #c4cec0; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 3rem); }
  .walk-grid, .essentials-grid { gap: 1.15rem; }
  .section { padding-block: 3.6rem; }
  .itinerary-inner { gap: 2.5rem; padding-block: 3.5rem; }
  .guide-hero, .guide-layout { gap: 2rem; }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { min-height: 0; flex-wrap: wrap; gap: .7rem; padding-block: .85rem; }
  .masthead nav { width: 100%; justify-content: space-between; gap: .3rem .7rem; }
  .masthead .brand { font-size: 1.37rem; }
  .seal { width: 32px; height: 32px; }
  .hero { min-height: 480px; }
  .hero-content { padding: 2.5rem 1.3rem 3.1rem; }
  .hero h1 { font-size: clamp(3rem, 10.3vw, 4.5rem); }
  .hero-image { object-position: 61% 50%; }
  .hero::before { background: linear-gradient(90deg, #151d18de, #151d187d 68%, #151d1866), linear-gradient(0deg, #151d1888, transparent 25%); }
  .photo-location { right: .9rem; bottom: .7rem; }
  .section-heading { flex-direction: column; align-items: start; margin-bottom: 1.55rem; }
  .walk-grid, .essentials-grid, .itinerary-inner { grid-template-columns: 1fr; gap: 1.65rem; }
  .walk-card + .walk-card { margin-top: .6rem; }
  .itinerary-intro br { display: none; }
  .plan-row { grid-template-columns: 4.65rem minmax(0, 1fr); gap: .7rem; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .credits { order: 1; grid-column: 1 / -1; }
  .walk-guide { padding-top: .85rem; }
  .guide-hero, .guide-layout { grid-template-columns: 1fr; }
  .guide-hero { padding-bottom: 1.5rem; }
  .guide-hero h1 { font-size: clamp(3rem, 11vw, 4.5rem); }
  .guide-hero-long h1 { font-size: clamp(2.25rem, 9vw, 3.95rem); }
  .guide-hero img { aspect-ratio: 1.55; }
  .guide-layout { padding-block: 2.35rem 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-image img { transition: none; }
}
