@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Baskervville';
  src: url('assets/fonts/baskervville.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Baskervville';
  src: url('assets/fonts/baskervville-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f4e9;
  --linen: #efe7d5;
  --ink: #192b3a;
  --blue: #233b50;
  --soft: #4d5354;
  --rust: #873f31;
  --rule: #cfc3af;
  --pale: #fff8e8;
  --white-muted: #eee2ca;
  --gold: #edbc8a;
  --serif: 'Baskervville', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --gutter: clamp(1.25rem, 4.8vw, 5.25rem);
  --rhythm: clamp(3.75rem, 7vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
[hidden] { display: none !important; }
p, h1, h2, h3, figure, ol { margin: 0; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
picture, img { display: block; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
main:focus, section[tabindex='-1']:focus { outline: 0; }
section[id] { scroll-margin-top: 1rem; }

.frame { width: min(88rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 5; top: 0.75rem; left: 0.75rem; opacity: 0; pointer-events: none; padding: 0.65rem 0.85rem; background: var(--ink); color: var(--pale); }
.skip-link:focus { opacity: 1; pointer-events: auto; }
.kicker { color: var(--rust); font-size: 0.77rem; line-height: 1.5; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; font-size: 0.9rem; font-weight: 650; text-underline-offset: 0.29em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0.6rem 1rem; background: var(--pale); color: var(--ink); border: 1px solid var(--pale); font-size: 0.9rem; font-weight: 700; text-decoration: none; text-align: center; }
.button:hover { background: transparent; color: var(--pale); }
.button:focus-visible { outline-color: var(--pale); }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; min-height: 5.1rem; justify-content: space-between; align-items: center; gap: 1rem; }
.signature { display: inline-flex; align-items: center; gap: 0.72rem; text-decoration: none; font: 400 1.38rem/1.1 var(--serif); }
.signature small { display: block; margin-top: 0.3rem; color: var(--soft); font: 600 0.65rem/1.2 var(--sans); letter-spacing: 0.105em; text-transform: uppercase; }
.monogram { width: 2.7rem; height: 2.7rem; border: 1px solid var(--rust); border-radius: 50%; display: grid; place-items: center; font: italic 1.04rem/1 var(--serif); letter-spacing: -0.13em; padding-right: 0.14em; color: var(--rust); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3.45rem); }
.site-nav a { padding-block: 0.65rem; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.site-nav a:nth-child(3) { color: var(--rust); }
.site-nav a[hreflang] { padding-inline-start: 1.1rem; border-left: 1px solid var(--rule); }
.menu-toggle { display: none; }

.cover { padding-block: clamp(2.25rem, 5.4vw, 4.95rem) var(--rhythm); }
.cover-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.29fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: clamp(1.3rem, 3.1vw, 2.75rem);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.042em; }
h1 { font-size: clamp(4rem, 7.65vw, 7.5rem); line-height: 0.97; margin-top: 0.85rem; }
h1 em, h2 em { color: var(--rust); }
.cover-intro { color: var(--soft); max-width: 32ch; }
.cover-intro .text-link { color: var(--ink); margin-top: 0.25rem; }
.cover-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.28fr); gap: clamp(0.75rem, 2.1vw, 2rem); }
.cover-photo img { width: 100%; aspect-ratio: 1.65; object-fit: cover; object-position: 55% 47%; background: var(--linen); }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.2rem 0.7rem; padding-top: 0.58rem; color: var(--soft); font-size: 0.77rem; }
.cover-photo figcaption em { font: italic 1.05rem/1.1 var(--serif); }
.cover-index {
  align-self: start;
  display: grid;
  align-content: center;
  min-height: min(29vw, 27rem);
  padding: clamp(1.05rem, 2.2vw, 2rem);
  margin-top: clamp(0.8rem, 3vw, 3rem);
  background: var(--blue);
  color: var(--pale);
  box-shadow: 0.55rem 0.55rem 0 var(--linen);
}
.cover-index .kicker { color: var(--gold); margin-bottom: 0.95rem; }
.cover-index ol { list-style: none; padding: 0; border-top: 1px solid #77818a; }
.cover-index li { border-bottom: 1px solid #77818a; }
.cover-index a { display: flex; align-items: center; gap: 0.75rem; min-height: 3.05rem; padding-block: 0.45rem; font-weight: 600; font-size: 0.9rem; line-height: 1.2; text-decoration: none; }
.cover-index a span { color: var(--gold); font-size: 0.73rem; font-variant-numeric: tabular-nums; }
.cover-index a:hover { text-decoration: underline; text-underline-offset: 0.24em; }
.cover-index a[aria-current] { color: var(--gold); }

.walk { padding-block: var(--rhythm); background: var(--linen); border-block: 1px solid var(--rule); }
.walk-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 1.7rem; margin-bottom: clamp(1.4rem, 3vw, 2.55rem); }
h2 { font-size: clamp(3.1rem, 5.95vw, 6.1rem); line-height: 0.95; margin-top: 0.5rem; }
.route-controls { flex: 0 0 auto; }
.route-status { margin-bottom: 0.42rem; color: var(--soft); text-align: right; font-size: 0.79rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.route-controls > div { display: flex; border: 1px solid #a69881; }
.route-controls button { min-height: 2.75rem; padding: 0.55rem 0.75rem; border: 0; background: var(--paper); font-size: 0.84rem; font-weight: 650; }
.route-controls button + button { border-left: 1px solid #a69881; }
.route-controls button[aria-disabled='true'] { color: var(--soft); background: transparent; cursor: default; }
.route-controls button:hover:not([aria-disabled='true']) { background: var(--ink); color: var(--pale); }
.route-track { display: grid; gap: clamp(1rem, 2vw, 1.8rem); }
.route-track[data-enhanced] {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #a06a53 #e4d8c0;
  scrollbar-width: thin;
  padding: 0.3rem 0.1rem 0.85rem 0;
}
.route-track[data-enhanced]:focus-visible { outline-offset: 4px; }
.stop {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  min-width: 0;
  background: var(--paper);
  border: 1px solid #cec0a7;
  scroll-snap-align: start;
}
.route-track[data-enhanced] .stop { flex: 0 0 min(88%, 64rem); }
.stop-photo { padding: clamp(0.65rem, 1.7vw, 1.45rem); }
.stop-photo img { width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; object-position: 50% 46%; background: #ded1ba; }
#halte-saint-henri img, #halte-shaughnessy-village img { object-position: 50% 19%; }
.stop-photo figcaption { padding-top: 0.4rem; }
.stop-copy { min-width: 0; padding: clamp(1rem, 4.5vw, 4.6rem) clamp(1.2rem, 4.3vw, 4rem); }
.stop h3 { font-size: clamp(2.65rem, 4vw, 4.15rem); line-height: 0.96; margin-block: 0.54rem 0.85rem; }
.stop-copy > p:not(.kicker) { color: var(--soft); max-width: 40ch; }
.stop-copy .text-link { margin-top: 0.65rem; }
.walk-links { display: flex; flex-wrap: wrap; gap: 0.15rem 1.45rem; margin-top: 0.85rem; }

.studio { display: grid; grid-template-columns: minmax(0, 0.57fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 8rem); padding-block: var(--rhythm); }
.studio-photo { max-width: 31rem; padding: clamp(0.7rem, 1.5vw, 1.1rem); border: 1px solid var(--rule); }
.studio-photo img { width: 100%; aspect-ratio: 1.05; object-fit: cover; object-position: 60% 31%; background: var(--linen); }
.studio-photo figcaption { padding-top: 0.4rem; }
.studio-copy > p:not(.kicker) { color: var(--soft); max-width: 52ch; margin-top: 0.85rem; }
.studio-copy > h2 { margin-bottom: 1.25rem; }
.studio-links { display: flex; flex-wrap: wrap; gap: 0.15rem 1.2rem; margin-top: 0.8rem; }

.prints { background: var(--blue); color: var(--pale); padding-block: var(--rhythm); }
.prints-inner { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: center; }
.print-copy .kicker, .print-copy h2 em { color: var(--gold); }
.print-copy h2 { font-size: clamp(3.1rem, 5.22vw, 5.6rem); }
.print-copy > p:not(.kicker) { color: var(--white-muted); max-width: 42ch; margin-top: 0.92rem; }
.print-copy .edition { border-top: 1px solid #a1a6a3; padding-top: 0.85rem; }
.print-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; margin-top: 1.15rem; }
.print-studies { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: clamp(0.6rem, 1.5vw, 1.35rem); align-items: center; }
.print-studies img { width: 100%; border: 1px solid #9d9080; }
.print-studies figcaption { color: var(--white-muted); }
.print-context img { aspect-ratio: 0.8; object-fit: cover; object-position: 50% 26%; }

.site-footer { padding-block: 1.75rem 1rem; }
.footer-main, .footer-notes { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.35rem 1rem; }
.footer-notes { border-top: 1px solid var(--rule); margin-top: 1.2rem; padding-top: 0.85rem; color: var(--soft); font-size: 0.78rem; }

@media (min-width: 1080px) {
  .cover-intro { padding-bottom: 0.22rem; }
}

@media (max-width: 890px) {
  .cover-heading { grid-template-columns: 1fr; gap: 0.85rem; }
  .cover-intro { max-width: 48ch; }
  .cover-index { margin-top: 0; }
  .studio-copy h2 br { display: none; }
}

@media (max-width: 680px) {
  .header-inner { position: relative; min-height: 4.25rem; flex-wrap: wrap; gap: 0; padding-block: 0.65rem; }
  .signature { font-size: 1.14rem; gap: 0.53rem; }
  .signature small { font-size: 0.59rem; }
  .monogram { width: 2.15rem; height: 2.15rem; font-size: 0.9rem; }
  .menu-toggle { display: inline-flex; min-height: 2.75rem; gap: 0.45rem; align-items: center; padding: 0.3rem 0; border: 0; background: transparent; font-size: 0.87rem; font-weight: 650; }
  .menu-toggle span { width: 1.05rem; height: 0.57rem; border-block: 1px solid; }
  .menu-toggle[aria-expanded='true'] span { height: 0; }
  .site-nav { flex: 0 0 100%; flex-wrap: wrap; gap: 0 1rem; }
  .site-nav a[hreflang] { border: 0; padding-inline-start: 0; }
  .site-header[data-menu] .site-nav { display: none; }
  .site-header[data-menu='open'] .site-nav { position: absolute; inset: 100% calc(-1 * var(--gutter)) auto; z-index: 4; display: grid; padding: 0.4rem var(--gutter); background: var(--paper); border-block: 1px solid var(--rule); }
  .site-header[data-menu='open'] .site-nav a + a { border-top: 1px solid var(--rule); }
  .cover { padding-top: 2rem; }
  .cover-heading { gap: 0.82rem; }
  .cover h1 { font-size: clamp(3.65rem, 12.8vw, 5.2rem); line-height: 0.95; }
  .cover h1 em { white-space: nowrap; }
  .cover-layout { grid-template-columns: 1fr; gap: 1.15rem; }
  .cover-photo img { aspect-ratio: 1.38; }
  .cover-index { min-height: 0; padding: 0.85rem 0.95rem 1rem; box-shadow: 0.28rem 0.28rem 0 var(--linen); }
  .cover-index .kicker { margin-bottom: 0.48rem; }
  .cover-index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.7rem; border-top: 0; }
  .cover-index li { border-top: 1px solid #77818a; border-bottom: 0; }
  .cover-index a { min-height: 2.75rem; gap: 0.35rem; font-size: 0.82rem; }
  h2 { font-size: clamp(3.05rem, 10.8vw, 4.75rem); }
  .walk-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .route-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem; width: 100%; }
  .route-status { text-align: left; margin: 0; }
  .route-track[data-enhanced] { gap: 0.75rem; }
  .route-track[data-enhanced] .stop { flex-basis: calc(100% - 2.75rem); }
  .stop { grid-template-columns: 1fr; align-content: start; }
  .stop-photo { padding: 0.66rem 0.66rem 0; }
  .stop-photo img { aspect-ratio: 1 / 1.02; }
  .stop h3 { font-size: clamp(2.2rem, 8vw, 3.25rem); }
  .studio { grid-template-columns: 1fr; gap: 1.5rem; }
  .studio-copy { grid-row: 1; }
  .studio-photo { max-width: 22rem; }
  .prints-inner { grid-template-columns: 1fr; gap: 1.7rem; }
  .print-copy { grid-row: 1; }
}

@media (max-width: 355px) {
  .cover-index ol { grid-template-columns: 1fr; }
  .route-track[data-enhanced] .stop { flex-basis: calc(100% - 2.1rem); }
  .route-controls button { padding-inline: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
