/* Strath Field Guide
   Direction: "The sentence is the layout" (taste-skill seed 793627745). Bodoni Moda over Jost, "Sheet and biro" palette with
   the accent taken from the Saltire. Each section is a short statement on the left with its proof on the right. */

:root {
  --bg: #e8e2d7;          /* bleached linen: muted, a step darker than the old grey haar */
  --surface: #ddd5c7;
  --paper: #f1ece3;
  --ink: #1d1b17;
  --muted: #5b5449;
  --field-2: #17312c;     /* deep loch green */
  --field-2-ink: #ece6db;
  --field-2-soft: #9fb5ad;
  --field-2-link: #a8cdf0;
  --accent: #00539c;
  --accent-strong: #003f78;
  --accent-ink: #ffffff;
  --field-1: #111111;
  --field-1-ink: #ffffff;

  --display-face: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text-face: "Jost", "Futura", "Century Gothic", "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 0.8rem + 1.1vw, 1.875rem);
  --step-head: clamp(2.25rem, 1.25rem + 3.6vw, 4.5rem);
  --step-display: clamp(4.25rem, 0.6rem + 10.4vw, 11.5rem);

  --m: clamp(16px, 2vw, 28px);
  --gutter: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 10.5vw, 160px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text-face); font-size: var(--step-body); line-height: 1.6; letter-spacing: 0.01em; font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-color: currentColor; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
html { scrollbar-color: #bdb4a5 var(--bg); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--display-face); font-weight: 500; font-optical-sizing: auto; letter-spacing: -0.02em; line-height: 0.98; text-wrap: balance; }
.h2 { font-size: var(--step-head); max-width: 14ch; }
.h2--strip { max-width: 18ch; }
.hstrip { display: inline-block; height: 0.72em; width: 2.6em; vertical-align: -0.02em; margin-inline: 0.06em; border-radius: 0.12em; overflow: clip; background: var(--surface); }
.hstrip img { width: 100%; height: 100%; object-fit: cover; }
.h3 { font-size: var(--step-lead); }
.soft { color: var(--muted); }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; }

/* Buttons */
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 0.85em 1.6em; border-radius: 0; font-weight: 500; font-size: var(--step-body); border: 0; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .button:hover { background: var(--accent-strong); } }
.button--quiet { background: var(--ink); }
.button--light { background: var(--field-1-ink); color: var(--field-1); }
@media (hover: hover) and (pointer: fine) { .button--quiet:hover { background: #333; } .button--light:hover { background: #dfe3e8; } }
.textbutton { background: none; border: 0; padding: 0.4em 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; transition: transform var(--t-press) var(--ease-out); }
.textbutton:active { transform: scale(0.97); }

/* Hero */
.hero { position: relative; min-height: 92svh; display: grid; grid-template-rows: auto 1fr; padding: 22px var(--m) 40px; overflow: clip; }
.topnav { display: flex; align-items: baseline; gap: 16px 28px; font-size: var(--step-small); }
.tabs { display: flex; gap: 20px; margin-right: auto; }
.tabs a { padding-bottom: 3px; border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .tabs a:hover { border-bottom-color: var(--accent); } }
.topnav a { color: var(--ink); text-decoration: none; }
.wordmark { font-weight: 500; }
.topnav__links { display: flex; gap: 22px; }
@media (hover: hover) and (pointer: fine) { .topnav__links a:hover { color: var(--accent); } }
.hero__body { display: grid; align-content: center; justify-items: start; gap: 0; padding-block: 6vh 0; }
.hero__title { width: 100%; font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.03em; }
.hero__line { display: flex; align-items: baseline; gap: 0.18em; width: 100%; }
.hero__word { white-space: nowrap; }
.stripwrap { position: relative; flex: 1; align-self: baseline; display: inline-block; height: 0.8em; min-width: 2em; }
.strip { position: absolute; inset: 0; display: block; border-radius: 14px; overflow: clip; background: var(--surface); }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms var(--ease-soft); }
.strip img.is-on { opacity: 1; }
.strip__caption--phone { display: none; }
.strip__caption { position: absolute; top: calc(100% + 10px); right: 0; font-family: var(--text-face); font-size: var(--step-small); letter-spacing: 0.01em; line-height: 1.3; color: var(--muted); text-align: right; white-space: nowrap; }
.hero__lead { margin-top: 48px; max-width: 44ch; text-align: left; font-size: var(--step-lead); line-height: 1.3; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
@media (max-width: 720px) {
  .hero { padding-top: 16px; min-height: 0; }
  .hero__body { padding-block: 32px 0; }
  .topnav__links { gap: 14px; }
  .hero__body { justify-items: start; }
  .hero__title { font-size: 17vw; }
  .hero__line:first-child { flex-wrap: wrap; }
  .stripwrap { flex: 0 0 100%; order: 2; height: auto; aspect-ratio: 3 / 1; margin-block: 0.12em 0.06em; }
  .stripwrap .strip__caption { display: none; }
  .strip__caption--phone { display: none; }
  .hero__lead { text-align: left; margin-top: 28px; font-size: var(--step-body); line-height: 1.5; }
  .hero__actions { margin-top: 24px; }
  .topnav__links { display: none; }
}

/* Intros */
.intro { padding: 96px var(--m) var(--section); }
.intro__lead { font-family: var(--display-face); font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; max-width: 26ch; }
.intro--roll { display: grid; gap: 40px; }
.intro__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.intro__row figure { margin: 0; display: grid; gap: 14px; }
.intro__row figure:nth-child(even) { margin-top: 72px; }
.intro__row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro__row figcaption { font-family: var(--display-face); font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.01em; }
.intro--who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px calc(var(--gutter) * 2); align-items: start; }
.intro__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter) calc(var(--gutter) * 1.5); }
.intro__cols p { max-width: 46ch; }
@media (max-width: 860px) {
  .intro { padding-block: 64px 96px; }
  .intro__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .intro__row figure:nth-child(even) { margin-top: 40px; }
  .intro__row figcaption { font-size: 1.25rem; }
  .intro--who, .intro__cols { grid-template-columns: minmax(0, 1fr); }
}

/* Trips map */
.trips { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter) calc(var(--gutter) * 2); padding: 0 var(--m) var(--section); align-items: start; }
.verbs + .costs { padding-top: var(--section); }
.trips__text { display: grid; gap: 28px; align-content: start; min-width: 0; }
.trips__lead { max-width: 40ch; }
.trips__map { position: sticky; top: 24px; height: calc(100svh - 48px); min-height: 480px; background: #dbe5ea; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #dbe5ea; }
.mland path { fill: var(--paper); stroke: #b9c4c9; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mtown { fill: var(--muted); font-family: var(--text-face); pointer-events: none; }
.mroute { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mpin { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill var(--t-hover) ease; }
.mpin.is-past { fill: #a3a9b1; }
.mpin.is-now { fill: var(--accent); stroke-width: 2.5; }
.mhome { fill: var(--bg); stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.mlabel { font-family: var(--display-face); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-linejoin: round; pointer-events: none; }
.weeks { display: grid; gap: 10px; }
.weeks[hidden] { display: none; }
.weeks__label { font-size: var(--step-small); color: var(--muted); }
.weeks__label output { color: var(--ink); font-weight: 500; }
.weeks input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; }
.weeks__nav { display: flex; gap: 24px; }
.triplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.trip-card { display: grid; gap: 14px; }
.trip-card__pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trip-card__pics img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; cursor: zoom-in; }
.trip-card__name { font-family: var(--display-face); font-size: var(--step-lead); line-height: 1.05; letter-spacing: -0.01em; }
.trip-card__meta { color: var(--muted); font-size: var(--step-small); }
.js .trip .triplist > li { display: none; }
.js .trip .triplist > li.is-current { display: grid; }
.no-map .triplist > li { display: grid !important; }
@media (max-width: 860px) {
  .trips { grid-template-columns: minmax(0, 1fr); }
  .trips__map { position: relative; top: 0; height: max(380px, 62svh); order: 2; }
  .trips__text { display: contents; }
  .trips__text > .h2 { order: 0; }
  .trips__lead { order: 1; }
  .weeks { order: 3; }
  .trip { order: 4; }
}

/* Verb panels */
.verbs { position: relative; }
.panel { position: relative; height: 100svh; min-height: 560px; overflow: clip; color: #fff; background: #222; }
.panel > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__verb { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 12vh; text-align: center; font-family: var(--display-face); font-size: var(--step-display); line-height: 1; letter-spacing: -0.03em; margin: 0; z-index: 1; }
.panel__facts { position: absolute; left: var(--m); bottom: var(--m); z-index: 2; max-width: 46ch; background: rgba(17, 17, 17, 0.78); padding: 22px 24px; font-size: var(--step-body); line-height: 1.5; }
.panel__facts p + p, .panel__facts p + ul { margin-top: 10px; }
.panel__facts ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.panel__facts a { color: #fff; }
@media (max-width: 720px) {
  .panel { height: auto; min-height: 0; display: grid; background: var(--field-1); }
  .panel > picture { display: block; grid-area: 1 / 1; height: 62svh; position: relative; }
  .panel > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .panel__verb { grid-area: 1 / 1; position: relative; inset: auto; padding: 0 var(--m) 18px; font-size: 22vw; place-items: end start; text-align: left; }
  .panel__facts { font-size: var(--step-body); position: static; grid-area: 2 / 1; max-width: none; background: var(--field-1); padding: 22px var(--m) 72px; }
}

/* Costs ledger */
.costs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter) calc(var(--gutter) * 2); padding: var(--section) var(--m); align-items: center; background: var(--field-2); color: var(--field-2-ink); }
.costs .soft { color: var(--field-2-soft); }
.costs a { color: var(--field-2-link); }
.costs .conv input { background: rgba(255, 255, 255, 0.08); color: var(--field-2-ink); border-bottom-color: var(--field-2-ink); }
.costs .conv output { color: var(--field-2-link); }
.costs ::selection { background: var(--field-2-link); color: var(--field-2); }
.costs__head { display: grid; gap: 40px; align-content: center; }
.costs__title { max-width: 8ch; }
.conv { display: grid; gap: 10px; }
.conv label { font-size: var(--step-small); color: var(--muted); }
.conv__row { display: flex; align-items: baseline; gap: 12px; font-family: var(--display-face); font-size: var(--step-lead); }
.conv input { width: 4.2em; font: inherit; color: var(--ink); background: var(--paper); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 4px 10px; font-variant-numeric: tabular-nums; }
.conv output { color: var(--accent); font-variant-numeric: tabular-nums; }
.ledger { display: grid; gap: 20px; }
.ledger__row { display: grid; grid-template-columns: 3.1em 1.6em minmax(0, 1fr); align-items: baseline; column-gap: 0; font-family: var(--display-face); font-size: var(--step-head); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.ledger__int { text-align: right; }
.ledger__dec { text-align: left; }
.ledger__cap { font-family: var(--text-face); font-size: var(--step-body); letter-spacing: 0.01em; line-height: 1.4; padding-left: 0.9rem; max-width: 34ch; }
@media (max-width: 860px) {
  .costs { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ledger { gap: 28px; }
  .ledger__row { grid-template-columns: 3.1em 1.6em minmax(0, 1fr); font-size: 13vw; }
  .ledger__cap { grid-column: 1 / -1; padding-left: 0; margin-top: 8px; font-size: var(--step-body); }
}

/* Getting around: statement, tables pushed right */
.around { padding: var(--section) var(--m) 0; }
.around__title { max-width: 16ch; }
.around__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); margin-top: 96px; align-items: end; }
.around__pic { grid-column: 1 / span 4; margin: 0; }
.around__pic img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.around__tables { grid-column: 7 / span 6; display: grid; gap: 14px; }
.tablename { font-size: var(--step-small); color: var(--muted); margin-top: 30px; }
.tablename:first-child { margin-top: 0; }
table.rows { width: 100%; }
table.rows td { padding: 0 12px 16px 0; vertical-align: baseline; font-size: var(--step-body); line-height: 1.4; }
table.rows td:first-child { color: var(--muted); width: 26%; }
table.rows td:nth-child(2) { width: 38%; }
table.rows td:last-child { text-align: right; padding-right: 0; }
table.rows tr.gap td { padding-top: 26px; }
.around__note { margin-top: 18px; max-width: 46ch; }
@media (max-width: 860px) {
  .around__title { text-indent: 0; }
  .around__grid { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .around__pic, .around__tables { grid-column: auto; }
  .around__pic { width: 60%; justify-self: end; order: 2; }
  table.rows tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 16px; }
  table.rows td { padding: 0; }
  table.rows td:first-child { width: auto; grid-column: 1; }
  table.rows td:first-child { grid-column: 1 / -1; grid-row: 1; font-size: var(--step-small); }
  table.rows td:first-child:empty { display: none; }
  table.rows td:nth-child(2) { width: auto; grid-column: 1; grid-row: 2; font-weight: 500; }
  table.rows td:last-child { grid-column: 2; grid-row: 2; max-width: 16ch; }
  table.rows tr.gap td { padding-top: 0; }
  table.rows tr.gap { padding-top: 22px; }
}

/* Year */
.year { padding: var(--section) var(--m); margin-top: var(--section); display: grid; gap: 64px; background: var(--surface); }
.year .track { background: var(--paper); }
.year__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter) calc(var(--gutter) * 2); align-items: end; }
.year__lead { max-width: 46ch; }
.season { display: grid; gap: 12px; }
.srow { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 6px 24px; align-items: center; }
.srow .what { font-size: var(--step-body); line-height: 1.3; }
.srow .what small { display: block; font-size: var(--step-small); color: var(--muted); }
.months { display: grid; grid-template-columns: repeat(10, 1fr); font-size: var(--step-small); }
.track { position: relative; height: 26px; background: var(--surface); }
.track i { position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 1%); width: calc(var(--w) * 1%); }
.track .uni { background: var(--ink); }
.track .exam { background: var(--accent); }
.track .soft { background: #7d725f; }
.track .open { background: var(--field-2); }
.track .part { background: #4f7a6c; }
.track .pin { width: 14px; height: 14px; top: 6px; margin-left: -7px; border-radius: 50%; background: var(--accent); }
.season__key { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, auto)); align-items: center; gap: 8px 10px; font-size: var(--step-small); color: var(--muted); margin-top: 10px; }
.season__key .k { display: inline-block; width: 18px; height: 12px; margin-right: 8px; vertical-align: -1px; }
.k.uni { background: var(--ink); } .k.exam { background: var(--accent); } .k.soft { background: #7d725f; } .k.open { background: var(--field-2); } .k.part { background: #4f7a6c; }
@media (max-width: 860px) {
  .year__head { grid-template-columns: minmax(0, 1fr); }
  .srow { grid-template-columns: minmax(0, 1fr); }
  .srow--head > span:first-child { display: none; }
  .months { font-size: 0.8125rem; }
}

/* Places index with preview */
.places { padding: var(--section) var(--m) 0; }
.places__title { max-width: 16ch; }
.places__lead { margin: 24px 0 72px; max-width: 46ch; }
.index { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.index__aside { display: none; }
.index__group + .index__group { margin-top: 64px; }
.index__group > h3 { font-size: var(--step-lead); margin-bottom: 10px; }
.index__group > p { max-width: 52ch; margin-bottom: 18px; }
.index__list { list-style: none; margin: 0; padding: 0; }
.index__row { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr); gap: 4px var(--gutter); padding: 12px 0; outline-offset: 4px; transition: opacity var(--t-hover) ease; }
a.index__name { color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a.index__name:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 0.05em; } }
.index__name { font-family: var(--display-face); font-size: var(--step-lead); line-height: 1.05; letter-spacing: -0.01em; }
.index__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 18px; font-size: var(--step-body); line-height: 1.35; line-height: 1.4; align-items: baseline; }
.index__info span:first-child { color: var(--muted); }
.index__thumb { display: none; }
.index__note { grid-column: 2; font-size: var(--step-body); color: var(--ink); max-width: 60ch; margin-top: 2px; }
.food__lead { margin-top: 20px; max-width: 58ch; }
.index__frame { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1000px) {
}
@media (min-width: 1000px) {
  .index { grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr); gap: calc(var(--gutter) * 2); }
  .index__aside { display: block; }
  .index__aside .index__frame { display: block; }
  .index__frame { position: sticky; top: 32px; }
  .index__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); transition: opacity 260ms var(--ease-out); }
  .index__frame img.is-swapping { opacity: 0.25; }
  .index__framecap { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
}
@media (max-width: 999px) {
  .index__row { grid-template-columns: 84px minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; }
  .index__thumb { display: block; grid-row: span 2; width: 84px; height: 84px; object-fit: cover; }
  .index__row[data-nothumb] { grid-template-columns: minmax(0, 1fr); padding-left: 98px; }
  .index__note { grid-column: 2; }
  .index__row[data-nothumb] .index__note { grid-column: 1; }
  .index__info { grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: var(--step-small); }
  .index__name { font-family: var(--text-face); font-size: var(--step-body); font-weight: 500; letter-spacing: 0.01em; line-height: 1.3; }
  .index__row { padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) { .index__frame { transition: none; } }

/* Camera roll */
.roll { padding-top: var(--section); }
.roll__field { position: relative; min-height: 100svh; background: var(--field-2); display: grid; place-items: center; overflow: clip; padding: 48px var(--m); }
.roll__title { display: grid; justify-items: center; color: var(--field-2-ink); font-size: var(--step-display); line-height: 0.85; letter-spacing: -0.04em; }
.print { position: absolute; margin: 0; background: #fff; padding: 8px; width: 24vw; max-width: 380px; transform: rotate(var(--r)); transition: transform 200ms var(--ease-out); z-index: 2; cursor: zoom-in; }
.print img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.print figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 6px; }
.print--a { --r: -8deg; left: 6%; top: 12%; }
.print--b { --r: 6deg; right: 7%; top: 30%; z-index: 3; }
.print--c { --r: 3deg; width: 14vw; left: 38%; bottom: 4%; }
@media (hover: hover) and (pointer: fine) { .print:hover { transform: rotate(0deg); z-index: 5; } }
.roll__note { position: absolute; left: var(--m); bottom: 24px; font-size: var(--step-body); max-width: 40ch; color: var(--field-2-ink); }
@media (max-width: 720px) {
  .roll__field { min-height: 78svh; }
  .roll__title { font-size: 25vw; }
  .print { width: 52vw; }
  .roll__field { min-height: 0; padding-block: 64px 120px; }
  .roll__title { margin-bottom: 60vw; }
  .print { width: 44vw; }
  .print--a { --r: -6deg; left: 6%; top: auto; bottom: 7%; }
  .print--b { --r: 5deg; left: auto; right: 6%; top: auto; bottom: 3%; }
  .print--c { display: none; }
  .roll__note { font-size: var(--step-small); right: var(--m); }
}
.wall { content-visibility: auto; contain-intrinsic-size: auto 4400px; }
.wall { columns: 4 240px; column-gap: 12px; padding: 48px var(--m) 0; }
.wall figure { margin: 0 0 12px; break-inside: avoid; position: relative; cursor: zoom-in; }
.wall img { width: 100%; height: auto; background: var(--surface); }
.wall figcaption { font-size: var(--step-small); color: var(--muted); padding: 6px 0 4px; }
.wall figure[hidden] { display: none; }
.wall__more { display: flex; justify-content: center; padding: 40px var(--m) 0; }
.wall__more[hidden] { display: none; }

/* Food */
.food { padding: var(--section) var(--m) 0; }
.food__title { max-width: 14ch; }
.food__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); margin-top: 96px; align-items: start; }
.food__pics { grid-column: 1 / span 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.food__pics figure { margin: 0; cursor: zoom-in; }
.food__pics figure:first-child { grid-column: 1 / -1; }
.food__pics img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.food__pics figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 6px; }
.food__tables { grid-column: 6 / span 7; }
.food__also { margin-top: 28px; max-width: 58ch; }
@media (max-width: 860px) {
  .food__title { text-indent: 0; }
  .food__grid { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .food__pics, .food__tables { grid-column: auto; }
  .food__pics { order: 2; }
}

/* FAQ */
.faq { padding: var(--section) var(--m) 0; }
.faq__title { font-size: var(--step-head); max-width: 12ch; }
.faq__list { margin: 80px 0 0 calc(100% / 3); display: grid; gap: 8px; }
.faq details { padding: 14px 0; transition: background-color var(--t-ui) ease; }
.faq details[open] { background: var(--paper); padding: 14px 24px 24px; margin-left: -24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: var(--step-body); font-weight: 500; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform var(--t-ui) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details > div { padding-top: 12px; max-width: 58ch; font-size: var(--step-body); }
@media (max-width: 860px) {
  .faq__list { margin: 48px 0 0; }
  .faq details[open] { margin-inline: calc(var(--m) * -1); padding-inline: var(--m); }
}

/* Sources */
.sources { padding: var(--section) var(--m) 0; }
.sources__lead { margin: 14px 0 32px; max-width: 60ch; color: var(--muted); }
.sources__cols { columns: 3 260px; column-gap: 40px; font-size: var(--step-small); }
.sources__cols div { break-inside: avoid; margin-bottom: 22px; }
.sources__cols b { display: block; font-weight: 500; margin-bottom: 4px; }
.sources__cols a { display: block; padding: 2px 0; overflow-wrap: anywhere; }

/* Footer */
.foot { margin-top: var(--section); background: var(--field-1); color: var(--field-1-ink); min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; padding: var(--section) var(--m) 0; overflow: hidden; position: relative; }
.foot__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.foot__top > div { grid-column: 1 / span 7; display: grid; gap: 36px; justify-items: start; }
.foot__invite { font-family: var(--display-face); font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.02em; max-width: 10ch; }
.foot__links { grid-column: 10 / span 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.foot__links a { color: var(--field-1-ink); }
.foot__legal { grid-row: 3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: var(--step-small); color: #b8bcc2; padding-bottom: 10px; }
.foot__mark { grid-row: 4; font-family: var(--display-face); font-size: var(--step-display); line-height: 0.8; letter-spacing: -0.04em; white-space: nowrap; transform: translateY(18%); margin: 0; }
@media (max-width: 860px) {
  .foot { min-height: 0; grid-template-rows: auto auto auto; }
  .foot__legal { margin-top: 56px; }
  .foot__mark { font-size: 16.5vw; }
  .foot__top > div, .foot__links { grid-column: 1 / -1; }
  .foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; background: rgba(10, 10, 10, 0.94); color: #fff; }
.lightbox::backdrop { background: rgba(10, 10, 10, 0.94); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; padding: 56px 72px 40px; }
.lightbox img { max-height: calc(100dvh - 140px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { font-size: var(--step-small); color: #c9ccd1; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 14px 18px; font-size: 1rem; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
.lightbox__close { top: 6px; right: 6px; }
.lightbox__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 6px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) { .lightbox figure { padding: 56px 12px 72px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; transform: none; } }

/* Motion */
.hero__line, .hero__lead, .hero .button { will-change: auto; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__word { display: inline-block; animation: rise 900ms var(--ease-expo) both; animation-delay: 120ms; }
  .js .hero__line--2 .hero__word { animation-delay: 230ms; }
  .js .strip.shutter { clip-path: inset(0 0 0 100%); animation: shutter 1100ms var(--ease-in-out) 200ms forwards; }
  .js .strip.shutter img.is-on { transform: scale(1.12); animation: settle 1500ms var(--ease-soft) 150ms forwards; }
  .js .hero__lead { animation: up 600ms var(--ease-out) 480ms both; }
  .js .hero__actions { animation: up 600ms var(--ease-out) 560ms both; }
  .js .strip__caption { animation: fade 600ms var(--ease-out) 900ms both; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .trip-card__pics img { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo); transition-delay: var(--d, 0ms); }
  .js .trip-card__pics img.is-in { opacity: 1; transform: none; }
  .wall figure img { transition: transform 600ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) { .wall figure:hover img { transform: scale(1.02); } }
}
@keyframes rise { from { transform: translateY(0.35em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shutter { to { clip-path: inset(0); } }
@keyframes settle { to { transform: none; } }

/* Dates and weather */
.dates { padding: var(--section) var(--m); margin-top: var(--section); background: var(--surface); }
.dates + .costs { padding-top: var(--section); }
.dates__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter) calc(var(--gutter) * 3); margin-top: 72px; align-items: start; }
.dates__grid > div { display: grid; gap: 14px; min-width: 0; }
.dates__note { max-width: 50ch; }
.wx2 { width: 100%; }
.wx2 th { text-align: left; font-weight: 500; font-size: var(--step-small); color: var(--muted); padding: 0 10px 10px 0; }
.wx2 td { padding: 0 10px 12px 0; font-size: var(--step-body); }
.wx2 .n { text-align: right; font-variant-numeric: tabular-nums; }
.sunbar { display: inline-block; height: 10px; width: calc(var(--v) * 90px); background: var(--accent); margin-right: 8px; vertical-align: 0; }
@media (max-width: 860px) { .dates__grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; gap: 48px; } .wx2 td, .wx2 th { font-size: 0.9375rem; padding-right: 6px; } .sunbar { width: calc(var(--v) * 44px); } }

/* Text rhythm inside answers and intros */
.faq details > div { display: grid; gap: 0.75em; }
.faq details > div ul { margin: 0; padding-left: 1.15em; display: grid; gap: 0.45em; }
.faq details > div li::marker { color: var(--muted); }
.faq details > div b { font-weight: 500; }
.intro__cols p, .food__lead, .dates__note, .around__note { line-height: 1.6; }
.food__tables .tablename { margin-top: 40px; }
.food__tables .tablename:first-child { margin-top: 0; }

.travel-note { padding: 96px var(--m) 0; }
.travel-note p { max-width: 62ch; }

/* Tables whose last column is a comment: read it left-aligned */
table.rows--notes td:first-child { width: 17%; }
table.rows--notes td:nth-child(2) { width: 25%; }
table.rows--notes td:last-child { text-align: left; }
@media (max-width: 860px) {
  table.rows--notes tr { grid-template-columns: minmax(0, 1fr); }
  table.rows--notes td:first-child, table.rows--notes td:nth-child(2) { width: auto; }
  table.rows--notes td:last-child { grid-column: 1; grid-row: 3; max-width: none; margin-top: 2px; }
}

/* ---------- Round 5: critique fixes ---------- */
/* Bodoni hairlines: a smaller optical size keeps the thin strokes visible at display sizes */
h1, h2, .hero__title, .roll__title, .foot__mark, .ledger__row, .statement, .intro__lead, .intro__row figcaption, .index__name, .trip-card__name, .why, .foot__invite { font-optical-sizing: none; font-variation-settings: "opsz" 28; }

/* Hero v2: the strip is a word, the pitch fills the space beside line two */
.hero { min-height: 0; padding: 22px var(--m) 72px; }
.hero__body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.15fr); align-content: start; padding-block: clamp(56px, 9vh, 120px) 0; justify-items: stretch; }
.hero__body { --hero-size: clamp(4.25rem, 1rem + 8.4vw, 10.5rem); }
.hero__title { grid-area: 1 / 1 / 2 / -1; font-size: var(--hero-size); line-height: 0.94; }
.hero__line { justify-content: flex-start; }
.hero__line--2 { margin-top: 0.12em; }
.stripwrap { flex: 0 0 clamp(300px, 34vw, 660px); height: 0.74em; }
.strip { border-radius: 0.07em; }
.strip__caption { top: calc(100% + 8px); right: auto; left: 0; text-align: left; }
/* The pitch starts at the top of the headline's second line, so it never rises into the photo strip on line one */
.hero__pitch { grid-area: 1 / 2; align-self: start; margin-top: calc(var(--hero-size) * 1.1); z-index: 1; display: grid; gap: 22px; padding-bottom: 0.4rem; }
.hero__lead { margin: 0; max-width: 34ch; text-align: left; font-size: var(--step-body); line-height: 1.5; }
.hero__actions { margin: 0; }
@media (max-width: 1100px) {
  .hero__body { grid-template-columns: minmax(0, 1fr); }
  .hero__pitch { grid-area: auto; margin-top: 40px; }
}
@media (max-width: 720px) {
  .hero { padding: 16px var(--m) 40px; }
  .hero__body { padding-block: 32px 0; }
  .hero__title { font-size: 15vw; }
  .stripwrap { flex: 0 0 100%; height: auto; aspect-ratio: 3 / 1; margin-block: 0.12em 0.3em; }
  .stripwrap .strip__caption { display: none; }
  .hero__pitch { margin-top: 28px; gap: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero__word { animation: none; }
  .js .hero__pitch { animation: up 600ms var(--ease-out) 300ms both; }
  .js .hero__actions { animation: none; }
}

/* Step panels v2: portrait photo beside the text, on the loch-green field */
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "pic verb" "pic facts"; grid-template-rows: 1fr auto; height: auto; min-height: min(88svh, 960px); background: var(--field-2); color: var(--field-2-ink); }
.panel:nth-child(even) { grid-template-areas: "verb pic" "facts pic"; }
.panel__pic { grid-area: pic; position: relative; margin: 0; min-height: 520px; }
.panel__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__verb { grid-area: verb; position: static; inset: auto; display: block; align-self: end; padding: 64px clamp(24px, 5vw, 88px) 20px; text-align: left; font-size: var(--step-head); line-height: 1; }
.panel__facts { grid-area: facts; position: static; max-width: 60ch; background: none; padding: 0 clamp(24px, 5vw, 88px) 72px; }
.panel__facts a { color: var(--field-2-link); }
.panel + .panel { border-top: 0; }
@media (max-width: 720px) {
  .panel, .panel:nth-child(even) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pic" "verb" "facts"; grid-template-rows: auto; min-height: 0; background: var(--field-2); }
  .panel__pic { min-height: 0; aspect-ratio: 4 / 5; height: auto; }
  .panel__verb { padding: 28px var(--m) 12px; font-size: 13vw; place-items: initial; }
  .panel__facts { padding: 0 var(--m) 56px; }
}

/* Spacing and grids (Codex audit) */
.intro { padding-block: 96px clamp(96px, 9vw, 140px); }
@media (max-width: 860px) { .intro { padding: 48px var(--m) 80px; } }
.dates { margin-top: 0; padding-block: 104px; }
.dates__grid { margin-top: 48px; }
.around__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px calc(var(--gutter) * 2); margin-top: 48px; }
.around__pic { grid-column: 1; max-width: 520px; }
.around__tables { grid-column: 2; }
.food__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px calc(var(--gutter) * 2); margin-top: 48px; }
.food__pics { grid-column: 1; }
.food__tables { grid-column: 2; }
@media (max-width: 860px) {
  .around__grid, .food__grid { grid-template-columns: minmax(0, 1fr); }
  .around__pic, .around__tables, .food__pics, .food__tables { grid-column: auto; }
  .trips__map { height: min(56svh, 440px); min-height: 0; }
}
.year { margin-top: 0; padding-block: 104px; gap: 48px; }
.foot { min-height: 0; grid-template-rows: auto auto auto; row-gap: 64px; padding-top: 104px; }

.hero__photo { font-size: var(--step-small); color: var(--muted); }

/* Album: one group per trip, in date order */
.album { padding: 72px var(--m) 0; display: grid; gap: 64px; }
.album__group { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px calc(var(--gutter) * 2); align-items: start; }
.album__head { position: sticky; top: 24px; }
.album__title { font-size: var(--step-lead); line-height: 1.1; }
.album__when { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
.album__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.album__grid figure { margin: 0; cursor: zoom-in; }
.album__grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--surface); }
.album__grid figcaption { font-size: var(--step-small); color: var(--muted); padding-top: 6px; }
@media (hover: hover) and (pointer: fine) { .album__grid img { transition: opacity var(--t-hover) ease; } .album__grid figure:hover img { opacity: 0.88; } }
@media (max-width: 860px) {
  .album { gap: 48px; }
  .album__group { grid-template-columns: minmax(0, 1fr); }
  .album__head { position: static; }
  .album__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}


/* Table sections (MAE matches, food and shopping lists): title above, tables in the right two thirds */
.tsec { padding: var(--section) var(--m) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 var(--gutter); align-items: start; }
.tsec__title { grid-column: 1; }
.tsec__pic { grid-column: 1; margin: 40px 0 0; max-width: 26rem; cursor: zoom-in; }
.tsec__pic img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.tsec__pic figcaption { font-size: var(--step-small); color: var(--muted); padding-top: 6px; }
.tsec__body { grid-column: 2; grid-row: 1 / span 2; margin: 0; display: grid; gap: 14px; padding-top: 0.6em; }
.tsec__lead { max-width: 62ch; margin-bottom: 18px; line-height: 1.6; }
.tsec__note { max-width: 62ch; margin-top: 18px; color: var(--muted); line-height: 1.6; }
table.rows--wide td:first-child { width: 30%; }
table.rows--wide td:nth-child(2) { width: 30%; }

/* Short facts: the term in the muted column, the answer beside it */
.facts { margin: 0; display: grid; gap: 22px; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 6px var(--gutter); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; max-width: 58ch; line-height: 1.6; }

/* Scottish food: four photographed dishes, then the rest as text in the same columns */
.menu { padding: var(--section) var(--m) 0; }
.menu__title { max-width: 12ch; }
.menu__pics, .menu__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gutter); }
.menu__pics { margin: 64px 0 0; }
.menu__list { margin: 56px 0 0; }
.menu__pics figure { margin: 0 0 16px; cursor: zoom-in; }
.menu__pics img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.menu__dish { font-size: var(--step-lead); line-height: 1.15; margin: 0 0 8px; }
.menu li p { max-width: 36ch; line-height: 1.55; }

/* Meal deals: a dot plot on one price scale. Black dot = standard price, blue ring = loyalty-card price */
.mealdeal__lead { max-width: 62ch; line-height: 1.6; }
.dots { list-style: none; padding: 0; margin-top: 32px; margin-bottom: 0; display: grid; }
.dots__row, .dots__axis { display: grid; grid-template-columns: 8rem minmax(0, 1fr) 16rem; align-items: center; gap: var(--gutter); min-height: 46px; }
.dots__text { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.dots__track { position: relative; height: 24px; }
.dots__row .dots__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--surface); }
.dots__row .dots__track { overflow: hidden; }
.dots__std, .dots__card { position: absolute; inset: 0 auto 0 0; width: 100%; transform: translateX(var(--x)); pointer-events: none; }
.dots__std::before, .dots__card::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); box-sizing: border-box; }
.dots__std::before { background: var(--ink); }
.dots__card::before { background: var(--bg); border: 3px solid var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .js .dots__row[data-reveal] i { transform: translateX(0); transition: transform 1100ms var(--ease-expo) calc(var(--d, 0ms) + 150ms); }
  .js .dots__row[data-reveal].is-in i { transform: translateX(var(--x)); }
}
.dots__axis b { position: absolute; top: 0; left: var(--x); transform: translateX(-50%); font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.dots__axis b:first-child { transform: none; }
.dots__axis b:last-child { transform: translateX(-100%); }
.mealdeal__notes { margin-top: 40px; margin-bottom: 0; max-width: 62ch; padding-left: 1.15em; display: grid; gap: 0.5em; line-height: 1.55; }
.mealdeal__notes b { font-weight: 500; }
.mealdeal__key { white-space: nowrap; }
.mealdeal__key i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: 0; margin: 0 4px 0 2px; }
.mealdeal__key .k-std { background: var(--ink); }
.mealdeal__key .k-card { border: 2px solid var(--accent); }

/* Apps: three columns in the order you need them */
.apps { padding: var(--section) var(--m) 0; }
.apps__title { max-width: 12ch; }
.apps__lead { margin-top: 24px; max-width: 58ch; }
.apps__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gutter); margin-top: 64px; }
.apps__when { font-size: var(--step-lead); line-height: 1.15; margin: 0 0 20px; }
.apps__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.apps__list a { font-weight: 500; }
.apps__list span { display: block; margin-top: 2px; color: var(--muted); max-width: 40ch; line-height: 1.45; }

@media (max-width: 860px) {
  .tsec { grid-template-columns: minmax(0, 1fr); }
  .tsec__body { grid-column: 1; grid-row: auto; margin-top: 40px; padding-top: 0; }
  .tsec__pic { max-width: 14rem; margin-top: 28px; }
  table.rows--wide td:first-child, table.rows--wide td:nth-child(2) { width: auto; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
  .menu__pics, .menu__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .dots__row, .dots__axis { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; }
  .dots__row .dots__text { grid-column: 2; margin: -8px 0 8px; }
  .dots__axis > span:last-child { display: none; }
  .apps__cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 480px) { .menu__list { grid-template-columns: minmax(0, 1fr); } }

/* Places index as a table: column labels, and every other place on a tone band */
.index__head { display: none; }
.index__list > .index__row { padding-inline: 16px; margin-inline: -16px; }
.index__list > .index__row:nth-child(even) { background: var(--surface); }
@media (min-width: 861px) {
  .index__head { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr); gap: 4px var(--gutter); padding: 0 0 8px; }
  .index__head .index__info span { color: var(--muted); font-size: var(--step-small); }
  .index__head .index__info span:first-child { color: var(--muted); }
  .index__list > .index__row { padding-block: 16px; }
}

/* Extra: Chester and North Wales, an album section of its own after the main album */
.extra { padding: var(--section) var(--m) 0; }
.extra__title { max-width: 14ch; }
.extra__lead { margin-top: 24px; max-width: 58ch; line-height: 1.6; }
.extra .album { padding: 56px 0 0; }

/* Hero v3: each photo whole, in a portrait frame beside the headline (the photos are 2:3) */
.hero__body { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title frame" "pitch frame"; column-gap: clamp(32px, 5vw, 96px); row-gap: 36px; align-items: start; --hero-size: clamp(3.5rem, 0.5rem + 10vw, 12.5rem); --frame-h: min(74svh, 800px); }
.hero__title { grid-area: title; align-self: start; }
.hero__title { container-type: inline-size; }
.hero__line { display: block; font-size: min(var(--hero-size), 19cqi); } /* the longest line is about 5.1em, so it always fits its column */
.hero__line--2 { margin-top: 0.04em; }
.hero__pitch { grid-area: pitch; margin-top: 0; align-self: start; }
.hero__frame { grid-area: frame; margin: 0; display: grid; gap: 10px; align-self: start; }
.hero__lead { max-width: 40ch; }
.hero__frame .strip { position: relative; inset: auto; height: var(--frame-h); width: calc(var(--frame-h) * 2 / 3); border-radius: 6px; }
.hero__frame .hero__photo { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 900px) {
  .hero__body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "frame" "pitch"; row-gap: 24px; }
  .hero__frame .strip { width: min(100%, 30rem); height: auto; aspect-ratio: 4 / 5; }
}

/* Pinned top bar on every page; on phones the tabs and sections fold into a three-line menu */
:root { --nav-h: 56px; }
html { scroll-padding-top: calc(var(--nav-h) + 12px); }
.topnav { position: sticky; top: 0; z-index: 40; min-height: var(--nav-h); align-items: center; padding: 10px var(--m); background: var(--bg); transition: background-color var(--t-ui) ease; }
.topnav.is-scrolled { background: var(--surface); }
.hero { padding-top: 0; }
.index__frame { top: calc(var(--nav-h) + 16px); }
.album__head { top: calc(var(--nav-h) + 16px); }
.menu-btn, .menu { display: none; }
@media (max-width: 720px) {
  .js .topnav .tabs, .js .topnav .topnav__links { display: none; }
  .js .topnav { justify-content: space-between; }
  .js .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .menu-btn__bars { position: relative; display: block; width: 24px; height: 16px; }
  .menu-btn__bars i { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform 240ms var(--ease-out), opacity 160ms ease; }
  .menu-btn__bars i:nth-child(1) { top: 0; }
  .menu-btn__bars i:nth-child(2) { top: 7px; }
  .menu-btn__bars i:nth-child(3) { top: 14px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js .menu { display: grid; align-content: start; position: absolute; top: 100%; left: 0; right: 0; height: calc(100svh - 100%); overflow-y: auto; overscroll-behavior: contain; gap: 10px; padding: 8px var(--m) 40px; background: var(--surface);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 180ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms; }
  .js .menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .menu__label { margin: 14px 0 0; font-size: var(--step-small); color: var(--muted); }
  .menu__tabs, .menu__links { display: grid; gap: 2px; }
  .menu__tabs a { font-family: var(--display-face); font-size: 2rem; line-height: 1.25; color: var(--ink); text-decoration: none; padding: 4px 0; }
  .menu__tabs a[aria-current="page"] { color: var(--accent); }
  .menu__links a { font-size: var(--step-body); color: var(--ink); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 720px) { html.menu-open { overflow: hidden; } }
@media (prefers-reduced-motion: reduce) { .menu, .menu-btn__bars i { transition: none; } }

/* Stacked hero: say what this is and offer the button before the photo */
@media (max-width: 900px) { .hero__body { grid-template-areas: "title" "pitch" "frame"; } }

/* Photos tab: trip list, and place sub-groups inside each trip */
.tripjump { padding: 72px var(--m) 0; }
.tripjump__list { list-style: none; margin: 0; padding: 0; columns: 3 16rem; column-gap: calc(var(--gutter) * 2); }
.tripjump__list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.tripjump__list a { color: var(--ink); text-decoration: none; font-size: var(--step-body); }
@media (hover: hover) and (pointer: fine) { .tripjump__list a:hover { color: var(--accent); text-decoration: underline; } }
.tripjump__list span { color: var(--muted); font-size: var(--step-small); white-space: nowrap; }
.album__secs { display: grid; gap: 36px; }
.album__place { margin: 0 0 12px; font-family: var(--text-face); font-size: var(--step-body); font-weight: 500; letter-spacing: 0.01em; }
.album__group { scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (max-width: 720px) { .tripjump__list span, .album__when, .roll__note { font-size: var(--step-body); } .tripjump__list { columns: 1; } }

/* ---------- Design panel fixes (2026-10-25) ---------- */
:root { --rule: #cbc2b2; }
.sr { position: absolute !important; clip-path: inset(50%); white-space: nowrap; overflow: hidden; }
/* tables: real headings for groups, column labels, row separators, left-aligned notes */
h3.tablename { font-family: var(--display-face); font-size: 1.5rem; line-height: 1.2; color: var(--ink); margin: 3rem 0 6px; }
h3.tablename:first-child { margin-top: 0; }
h3.tablename a { color: inherit; }
table.rows { border-collapse: collapse; }
table.rows tbody tr + tr td { border-top: 1px solid var(--rule); padding-top: 12px; }
table.rows td:last-child { text-align: left; }
table.rows thead th { text-align: left; font-weight: 400; font-size: var(--step-small); color: var(--muted); padding: 0 12px 10px 0; }
table.rows--wide td:first-child { color: var(--ink); }
.tsec__title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.05; }
.intro__lead, .menu__dish, .apps__when { line-height: 1.25; }
/* steps are a sequence: number them */
.verbs { counter-reset: step; }
.panel { counter-increment: step; }
.panel__verb::before { content: "Step " counter(step); display: block; margin-bottom: 0.35em; font-family: var(--text-face); font-size: var(--step-small); letter-spacing: 0.02em; color: var(--field-2-link); }
/* overlaps */
.trips { padding-top: var(--section); }
/* hero pause control */
.hero__photo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hero__pause { border: 0; background: none; padding: 10px 0 10px 12px; margin: -10px 0; font: inherit; font-size: var(--step-small); color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
/* where am I: section in view, and the current tab in the phone sheet */
.topnav__links a[aria-current="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px; }
/* Photos tab: one grid per trip with place tiles; a way back to the trip list */
.album__tile { display: flex; align-items: flex-end; aspect-ratio: 2 / 3; padding: 14px; background: var(--surface); font-weight: 500; font-size: var(--step-body); line-height: 1.3; }
.album__back { display: inline-block; margin-top: 10px; font-size: var(--step-small); }
@media (max-width: 720px) {
  :root { --section: 64px; }
  table.rows thead { display: none; }
  table.rows tbody tr + tr { border-top: 1px solid var(--rule); padding-top: 14px; }
  table.rows tbody tr + tr td { border-top: 0; padding-top: 0; }
  .panel, .panel:nth-child(even) { grid-template-areas: "verb" "facts" "pic"; }
  .panel__pic { aspect-ratio: 16 / 9; max-height: 30svh; }
  .tsec__pic, .food__pics { display: none; }
  .album__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .album__tile { font-size: 0.875rem; padding: 8px; }
  .roll__field { padding-block: 56px 48px; }
  .roll__title { margin-bottom: 28px; }
  .print, .print--a, .print--b, .print--c { position: relative; display: block; left: auto; right: auto; top: auto; bottom: auto; width: 72%; margin: 0 auto 28px; }
  .print--b { margin-left: auto; margin-right: 6%; }
  .roll__note { position: static; margin-top: 8px; }
  .js .menu-btn { width: auto; gap: 8px; margin: 0 4px 0 -8px; padding: 0 8px; }
  .menu-btn__label { font-size: var(--step-small); font-weight: 500; }
  .js .topnav { justify-content: flex-start; gap: 6px; }
  .menu__tabs a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
  .menu__links a[aria-current="true"] { color: var(--accent); }
}

/* Camera roll band: title, then the three prints in a row, then the note. Normal flow, so nothing can cover the title */
.roll__field { min-height: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: center; align-items: start; column-gap: clamp(20px, 4vw, 72px); row-gap: 56px; padding: var(--section) var(--m); }
.roll__title { grid-column: 1 / -1; margin: 0; }
.print, .print--a, .print--b, .print--c { position: relative; left: auto; right: auto; top: auto; bottom: auto; display: block; width: clamp(180px, 22vw, 340px); margin: 0; }
.print--b { margin-top: 48px; }
.print--c { width: clamp(160px, 18vw, 280px); margin-top: 16px; }
.roll__note { grid-column: 1 / -1; justify-self: center; position: static; text-align: center; margin: 0; }
/* Album: one block per place */
.album__secs { display: grid; gap: 32px; }
.album__place { margin: 0 0 10px; }
@media (max-width: 720px) {
  .roll__field { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 32px; padding-block: 56px; }
  .print, .print--a, .print--b, .print--c { width: 100%; margin: 0; }
  .print--b { margin-top: 28px; }
  .print--c { grid-column: 1 / -1; justify-self: center; width: 64%; }
}
