/* Napa Valley Railway Inn: the "keepsake card" layout (first built for the Blackbird Inn), re-cut as a railway keepsake.
   Written from scratch (the kit's base.css is not used); the kit's main.js hooks keep their class names:
   .reveal/.in, .lightbox, .chips, .num.
   Motifs: cards on a linen table, letterpress headings, mounted photo prints with album corners, a railway ticket for the
   opening card, the inn's slideshow seen through a railcar window, car plates for the rooms, a departures board for the
   restaurants and tasting rooms, the roster of cars, a "Greetings from Yountville" postcard, a dining-car menu card.
   The inn's marks: a length of track (labels, dividers) and a round railroad herald. Headings stay plain. Motion stays calm. */

:root {
  /* a length of track (two rails on ties), as alpha masks: any color via background: currentColor */
  --track: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cg%3E%3Crect y='7' width='120' height='2.2'/%3E%3Crect y='15' width='120' height='2.2'/%3E%3C/g%3E%3Cg opacity='.6'%3E%3Crect x='4' y='4' width='3.2' height='16' rx='.6'/%3E%3Crect x='18' y='4' width='3.2' height='16' rx='.6'/%3E%3Crect x='32' y='4' width='3.2' height='16' rx='.6'/%3E%3Crect x='46' y='4' width='3.2' height='16' rx='.6'/%3E%3Crect x='60' y='4' width='3.2' height='16' rx='.6'/%3E%3Crect x='74' y='4' width='3.2' height='16' rx='.6'/%3E%3Crect x='88' y='4' width='3.2' height='16' rx='.6'/%3E%3Crect x='102' y='4' width='3.2' height='16' rx='.6'/%3E%3Crect x='116' y='4' width='3.2' height='16' rx='.6'/%3E%3C/g%3E%3C/svg%3E");
  --track-sm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Crect y='2.6' width='40' height='1.4'/%3E%3Crect y='6' width='40' height='1.4'/%3E%3Cg opacity='.65'%3E%3Crect x='2' y='1' width='2' height='8'/%3E%3Crect x='11' y='1' width='2' height='8'/%3E%3Crect x='20' y='1' width='2' height='8'/%3E%3Crect x='29' y='1' width='2' height='8'/%3E%3Crect x='38' y='1' width='2' height='8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); background-color: var(--linen);
  /* linen: faint weave + paper grain */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .24 0 0 0 0 .15 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(90, 70, 40, .025) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(90, 70, 40, .02) 0 1px, transparent 1px 5px);
  font-family: var(--f-display); font-weight: 380; font-variation-settings: "SOFT" 50;
  font-size: clamp(1.02rem, .97rem + .2vw, 1.12rem); line-height: 1.66;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(var(--brass-rgb), .45); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-deep); }
a[href^="mailto:"] { overflow-wrap: anywhere; } /* the inn's email is one long word: let it break on phones */
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--cream); color: var(--ink); }
main { overflow-x: clip; display: block; }
p { margin: 0 0 1em; }
.num, .nw { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: .6em 1em; font: 600 .8rem var(--f-label); letter-spacing: .1em; text-transform: uppercase; }
.skip:focus { top: 12px; color: var(--paper); }

.wrap { width: min(var(--wrap), 100% - 2 * clamp(18px, 4vw, 40px)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * clamp(18px, 4vw, 40px)); margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: clamp(64px, 9vw, 118px); position: relative; }
.section.tight { padding-block: clamp(44px, 6vw, 72px); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; color: var(--ink);
  letter-spacing: -.012em; text-shadow: 0 1px 0 rgba(255, 255, 255, .65); font-variation-settings: "SOFT" 100; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); line-height: 1.18; }
h1 em, h2 em, h3 em { font-style: inherit; color: inherit; font-weight: inherit; } /* headings stay plain */
.lede { font-size: clamp(1.12rem, 1.02rem + .45vw, 1.34rem); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
/* The track label: a short length of track runs into a sentence-case label (in place of an uppercase eyebrow) */
.eyebrow { font: 600 1.02rem/1.3 var(--f-label); letter-spacing: .03em; color: var(--slate);
  display: flex; align-items: center; gap: .7em; margin: 0 0 1em; }
.eyebrow::before, .center .eyebrow::after, .eyebrow.center::after, .eyebrow.ruled::after {
  content: ""; flex: none; width: 36px; height: 9px; background: currentColor; opacity: .7;
  -webkit-mask: var(--track-sm) center / contain no-repeat; mask: var(--track-sm) center / contain no-repeat; }
.center .eyebrow, .eyebrow.center { justify-content: center; }
.script { font-family: var(--f-script); font-weight: 400; color: var(--brass-deep); line-height: 1; letter-spacing: 0; font-variation-settings: normal; text-shadow: none; }
.small { font-size: .88rem; }
.muted { color: var(--ink-soft); }
.fine { font-size: .84rem; color: var(--ink-faint); line-height: 1.55; }
.section-head { max-width: 780px; margin: 0 auto clamp(34px, 5vw, 58px); }
.section-head.center p:not(.eyebrow) { margin-inline: auto; max-width: 640px; }
.section-head h2 { margin-bottom: .35em; }

/* ---------- The inn's marks: a length of track (mask, any color) and a round railroad herald (inline SVG, tpl.js) ---------- */
.orn { display: block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.orn-track { --m: var(--track); width: 96px; aspect-ratio: 5 / 1; color: var(--slate); }
.center > .orn, .orn.mx, .center > .herald { margin-inline: auto; }
/* box-shadow on the round box, not filter: drop-shadow (a filter gets its own layer in Safari, see the ticket notes below) */
.herald { display: block; width: 104px; aspect-ratio: 1; flex: none; border-radius: 50%; box-shadow: 0 7px 14px -6px rgba(40, 30, 25, .45); }
.herald svg { display: block; width: 100%; height: 100%; overflow: visible; }
.herald-sm { width: 74px; }
.divider { display: flex; align-items: center; gap: 18px; color: var(--slate); margin: clamp(26px, 4vw, 40px) auto; max-width: 420px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.divider .orn-track { width: 72px; }

/* ---------- Buttons + links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 1.05em 1.7em .95em; border-radius: 2px;
  font: 600 .95rem/1 var(--f-label); letter-spacing: .17em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-boxcar { background: var(--boxcar); color: #fcf8f0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 0 rgba(0, 0, 0, .18); }
.btn-boxcar:hover { background: #283f31; color: #fff; }
.btn-line { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-soft); }
.btn-cream { background: var(--paper); color: var(--ink); }
.btn-cream:hover { background: #fff; color: var(--ink); }
.btn-small { padding: .85em 1.2em .78em; font-size: .7rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .actions, .actions.center { justify-content: center; }
.link-arrow { font: 600 .95rem/1.4 var(--f-label); letter-spacing: .17em; text-transform: uppercase; color: var(--boxcar); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px; display: inline-flex; gap: .5em; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover { color: var(--brass-deep); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Cards, prints, album corners ---------- */
.card { position: relative; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card.framed::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(var(--slate-rgb), .38); outline: 1px solid rgba(var(--slate-rgb), .2);
  outline-offset: 3px; pointer-events: none; border-radius: 1px; }
.pad { padding: clamp(26px, 4vw, 52px); }
.print { margin: 0; background: #fffdf8; padding: clamp(7px, 1vw, 12px); box-shadow: var(--shadow-print); position: relative; }
.print img { width: 100%; height: 100%; object-fit: cover; background: var(--paper-3); }
.print figcaption { font-style: italic; font-size: .9rem; color: var(--ink-soft); text-align: center; padding: .7em .4em .1em; line-height: 1.4; }
.tilt-l { rotate: -1.3deg; } .tilt-r { rotate: 1.1deg; } .tilt-s { rotate: -.5deg; }
.corners::before { /* black paper photo corners, as in an old album */
  --c: rgba(34, 30, 24, .88); content: ""; position: absolute; inset: 3px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(135deg, var(--c) 0 50%, transparent 50%) top left / 24px 24px no-repeat,
    linear-gradient(225deg, var(--c) 0 50%, transparent 50%) top right / 24px 24px no-repeat,
    linear-gradient(45deg, var(--c) 0 50%, transparent 50%) bottom left / 24px 24px no-repeat,
    linear-gradient(315deg, var(--c) 0 50%, transparent 50%) bottom right / 24px 24px no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.ratio-43 img, img.ratio-43 { aspect-ratio: 4 / 3; } .ratio-32 img, img.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-11 img, img.ratio-11 { aspect-ratio: 1; } .ratio-wide img, img.ratio-wide { aspect-ratio: 16 / 7; }
.plain-list { padding-left: 1.1em; margin: 0 0 1em; }
.plain-list li { margin-bottom: .55em; }
.plain-list li::marker { color: var(--slate); }

/* Brass room key tag */
.keytag { position: relative; display: inline-grid; place-items: end center; width: 44px; height: 66px; padding-bottom: 12px; flex: none;
  border-radius: 22px 22px 12px 12px / 22px 22px 26px 26px; color: #3a2a0f;
  background: radial-gradient(120% 60% at 30% 10%, rgba(255, 244, 214, .7), transparent 60%), linear-gradient(165deg, #dcb869, #b38c40 50%, #8d6a2b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 3px rgba(80, 50, 10, .35), 0 6px 12px -6px rgba(40, 25, 5, .6);
  font: 600 1.3rem/1 var(--f-display); text-shadow: 0 1px 0 rgba(255, 240, 200, .5); }
.keytag::before { content: ""; position: absolute; top: 8px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .5); }
.keytag small { position: absolute; top: 24px; font: 600 .53rem/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

/* ---------- Header: centered letterhead masthead + compact bar once it scrolls away ---------- */
.mast { position: relative; z-index: 40; background: rgba(252, 248, 240, .92); border-bottom: 1px solid var(--rule); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset; }
.mast::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--rule); } /* double rule */
.mast-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: 14px 6px; }
.mast-l, .mast-r { display: flex; align-items: center; gap: 18px; font: 600 .88rem/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.mast-r { justify-content: flex-end; }
.mast-l .status { white-space: nowrap; }
@media (max-width: 1239px) { .mast-l .status { display: none; } }
.mast-l a, .mast-r a:not(.btn) { text-decoration: none; }
.mast-l a:hover, .mast-r a:not(.btn):hover { color: var(--brass-deep); }
/* Typeset wordmark after the inn's own logo: NAPA VALLEY (small, between two lengths of track) over RAILWAY INN */
.mast-logo { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); padding-block: 6px 2px; }
.mast-logo:hover { color: var(--ink); }
.mw-1 { font: 500 2.05rem/1 var(--f-display); letter-spacing: .07em; text-transform: uppercase; font-variation-settings: "SOFT" 30, "opsz" 72;
  white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.mw-2 { display: flex; align-items: center; gap: .8em; font: 600 .88rem/1 var(--f-label); letter-spacing: .42em; text-transform: uppercase;
  color: var(--ink-soft); padding-left: .42em; white-space: nowrap; }
.mw-2::before, .mw-2::after { content: ""; width: 30px; height: 8px; background: var(--boxcar); opacity: .8;
  -webkit-mask: var(--track-sm) center / contain no-repeat; mask: var(--track-sm) center / contain no-repeat; }
.mast-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 0; padding: 4px 0 14px; }
/* nav type enlarged 2026-10-22 (the client found it too small); tracking eased a little so the longer list still fits */
.mast-nav a { font: 600 1.06rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding: .7em 1em .55em; position: relative; }
.mast-nav a + a::before { content: "·"; position: absolute; left: -.2em; color: var(--slate); opacity: .8; }
.mast-nav a:hover, .mast-nav a[aria-current="page"] { color: var(--brass-deep); }
.mast-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 1em; right: 1em; bottom: .15em; height: 1px; background: currentColor; }
@media (max-width: 1199px) { /* keep the seven links on one line down to 1080px */
  .mast > .mast-nav a { padding-inline: .66em; letter-spacing: .1em; }
  .mast > .mast-nav a[aria-current="page"]::after { left: .66em; right: .66em; } }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--ink);
  font: 600 .88rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; }
.burger { display: grid; gap: 5px; width: 22px; }
.burger i { display: block; height: 1.5px; background: currentColor; }
.status { display: inline-flex; align-items: center; gap: .55em; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); flex: none; }
.status.is-open .dot { background: #5d8a3a; box-shadow: 0 0 0 3px rgba(93, 138, 58, .18); }

.minibar { position: fixed; top: 0; left: 0; right: 0; z-index: 45; background: rgba(252, 248, 240, .98);
  border-bottom: 1px solid var(--rule); box-shadow: 0 8px 20px -14px rgba(60, 45, 25, .4);
  transform: translateY(-105%); transition: transform .35s ease; }
.minibar.show { transform: none; }
.minibar-row { display: flex; align-items: center; gap: 20px; height: 62px; }
.mini-mark { display: flex; align-items: baseline; gap: .35em; text-decoration: none; white-space: nowrap; margin-right: auto; }
.mini-mark { flex-direction: column; align-items: flex-start; gap: 3px; }
.mini-mark b { font-weight: 500; font-size: 1.12rem; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.mini-mark small { font: 600 .7rem/1 var(--f-label); letter-spacing: .38em; text-transform: uppercase; color: var(--ink-soft); }
.minibar .mast-nav { padding: 0; flex-wrap: nowrap; }
.minibar .mast-nav a { padding-inline: .75em; font-size: .84rem; letter-spacing: .1em; white-space: nowrap; }
/* 1080–1259px: the links stay (they used to hide here, leaving the bar with no way to navigate); spaced a little tighter */
@media (max-width: 1259px) { .minibar-row { gap: 14px; } .minibar .mast-nav a { padding-inline: .5em; } .minibar .mast-nav a[aria-current="page"]::after { left: .5em; right: .5em; } }
.minibar .mast-nav a + a::before { left: -.25em; }
.minibar .mast-nav a[aria-current="page"]::after { left: .75em; right: .75em; }

@media (max-width: 1079px) {
  .mast { position: sticky; top: 0; }
  .mast-row { grid-template-columns: 1fr auto 1fr; padding-block: 8px; }
  .mast-l > :not(.menu-btn), .mast-r > :not(.mast-book), .mast > .mast-nav, .mast-nav-wrap, .minibar { display: none; }
  .menu-btn { display: inline-flex; }
  .mast-logo { gap: 4px; padding-block: 2px 0; }
  .mw-1 { font-size: 1.32rem; letter-spacing: .05em; }
  .mw-2 { font-size: .56rem; letter-spacing: .34em; gap: .6em; }
  .mw-2::before, .mw-2::after { width: 20px; height: 6px; }
  .mast-book { padding: .8em 1em .72em; font-size: .66rem; letter-spacing: .12em; }
}
@media (max-width: 420px) { .menu-label { display: none; } .mast-book .long { display: none; } .mw-1 { font-size: 1.12rem; letter-spacing: .03em; } .mw-2 { font-size: .5rem; } }
@media (max-width: 350px) { .mw-1 { font-size: 1rem; } .mw-2::before, .mw-2::after { display: none; } }
@media (min-width: 421px) { .mast-book .short { display: none; } }

/* Menu overlay: an opened card */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(42, 43, 37, .55); display: grid; place-items: center; padding: 16px;
  opacity: 0; transition: opacity .3s ease; }
.overlay[hidden] { display: none; } /* display: grid above would otherwise override [hidden] and block every click */
.overlay.open { opacity: 1; }
.overlay-card { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 30px clamp(22px, 5vw, 44px) 34px;
  transform: translateY(14px); transition: transform .35s ease; }
.overlay.open .overlay-card { transform: none; }
.overlay-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; position: relative; z-index: 1; }
.overlay-close { background: none; border: 0; cursor: pointer; font: 600 .9rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding: 10px 4px; }
.overlay-links { list-style: none; margin: 0 0 22px; padding: 0; position: relative; z-index: 1; }
.overlay-links li { border-top: 1px solid var(--rule); }
.overlay-links a { display: block; text-decoration: none; padding: 12px 2px 11px; }
.overlay-links b { display: block; font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.overlay-links small { display: block; font-size: .86rem; color: var(--ink-soft); }
.overlay-links a[aria-current="page"] b { color: var(--brass-deep); }
.overlay-foot { display: grid; gap: 12px; position: relative; z-index: 1; font-size: .92rem; }
.overlay-foot .btn { width: 100%; }

/* ---------- Footer: the back of the card ---------- */
.foot { padding: clamp(50px, 7vw, 90px) 0 clamp(90px, 10vw, 60px); }
.foot-card { text-align: center; padding: clamp(40px, 6vw, 70px) clamp(22px, 5vw, 70px) 30px; }
.foot-card .herald { margin: 0 auto 12px; }
.foot-sign { font-size: 2.3rem; margin: 0; }
.foot-name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin: .15em 0 .3em; font-weight: 400; }
.foot-blurb { max-width: 520px; margin: 0 auto 30px; color: var(--ink-soft); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: left; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 28px 0; margin-bottom: 28px; position: relative; z-index: 1; }
.foot-cols h4 { font: 600 .85rem/1.3 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--slate); margin: 0 0 .9em; text-shadow: none; }
.foot-cols p, .foot-cols ul { margin: 0 0 .7em; font-size: .93rem; line-height: 1.55; }
.foot-cols ul { list-style: none; padding: 0; }
.foot-cols li { margin-bottom: .25em; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.foot-card > .actions { position: relative; z-index: 1; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 26px; font: 600 .8rem/1.5 var(--f-label); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint); position: relative; z-index: 1; }
.foot-base a { text-decoration: none; }
/* The site's maker: two quiet lines under the footer card, bottom right */
.foot-credit { margin: 18px 4px 0; text-align: right; font: 600 .76rem/1.55 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.foot-credit a { color: var(--ink-soft); text-decoration: none; } /* ink-soft: ≥4.5:1 on the linen (ink-faint was ~3.2:1) */
.foot-credit a:hover { color: var(--brass-deep); text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; text-align: center; } }

.book-bar { display: none; }
@media (max-width: 1079px) {
  /* One button on phones: Check availability (the phone number stays in the header menu, footer and page copy) */
  .book-bar { display: grid; grid-template-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -10px 24px -18px rgba(60, 45, 25, .5); padding-bottom: env(safe-area-inset-bottom); }
  .book-bar a { display: grid; place-items: center; padding: 16px 8px 15px; font: 600 .93rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
  .book-bar a + a { border-left: 1px solid var(--rule); }
  .book-bar a:last-child { background: var(--boxcar); color: #fcf8f0; border-left: 0; }
}

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: clamp(46px, 7vw, 92px) 0 clamp(30px, 4vw, 50px); text-align: center; }
.page-head .orn { margin: 0 auto 18px; }
.page-head .herald { margin: 0 auto 22px; width: 88px; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lede { max-width: 680px; margin-inline: auto; }
.crumbs { font: 600 .85rem/1.4 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 20px; }
.crumbs a { text-decoration: none; color: var(--boxcar); }
.crumbs a:hover { color: var(--brass-deep); }
.subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.chip, .subnav a { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.1em .62em; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper);
  font: 600 .85rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover, .subnav a:hover { border-color: var(--slate); color: var(--boxcar); }
.chip.active, .chip[aria-pressed="true"], .subnav a.active { background: var(--boxcar); border-color: var(--boxcar); color: #fcf8f0; }

/* ---------- HOME: the greeting card that opens ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.greeting { position: relative; display: grid; grid-template-columns: 1fr 1fr; perspective: 2600px; }
.panel { position: relative; background: var(--paper); min-height: 560px; }
.panel-r { grid-column: 2; padding: clamp(34px, 5vw, 64px) clamp(28px, 4.5vw, 62px); display: flex; flex-direction: column; justify-content: center;
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: inset 12px 0 22px -16px rgba(60, 45, 25, .35), var(--shadow-card); }
.panel-r::after { content: ""; position: absolute; inset: 12px 12px 12px 0; border: 1px solid rgba(var(--slate-rgb), .35); border-left: 0; pointer-events: none; }
.salutation { font-size: clamp(2.4rem, 1.9rem + 1.6vw, 3.4rem); margin: 0 0 .15em; }
.panel-r { container-type: inline-size; }
/* Brand first: the inn's name is the biggest line inside the card, one line per half, each sized to the column */
.panel-r h1 { font-size: clamp(2rem, 12.4cqi, 4rem); line-height: 1.02; margin-bottom: .35em; }
.panel-r h1 span { display: block; white-space: nowrap; }
.hero-sub { font: 400 clamp(1.25rem, 1.05rem + .8vw, 1.6rem)/1.3 var(--f-display); color: var(--ink); margin: 0 0 .7em; text-wrap: balance; }
.panel-r .lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); margin-bottom: 1.2em; }
/* Desktop: the whole card has to be on screen while it's pinned under the bar and turning, so on shorter screens its
   padding and type tighten with the viewport height (tpl.js zooms it down if it's still too tall). */
@media (min-width: 900px) {
  .panel-r { padding-block: clamp(30px, 6.4vh - 8px, 64px); }
  .panel-r .salutation { font-size: min(clamp(2.4rem, 1.9rem + 1.6vw, 3.4rem), 5.4vh); }
  .panel-r h1 { font-size: clamp(2rem, min(12.4cqi, 7.2vh), 4rem); }
  .panel-r .hero-sub { font-size: min(clamp(1.25rem, 1.05rem + .8vw, 1.6rem), 3vh); }
  .panel-r .lede { font-size: min(clamp(1.05rem, 1rem + .3vw, 1.2rem), 2.5vh); }
}
.signature { display: flex; align-items: center; gap: 14px; margin: 0 0 1.6em; color: var(--ink-soft); font-style: italic; font-size: .95rem; }
.signature .script { font-size: 2rem; font-style: normal; }
.cover { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: left center; transform-style: preserve-3d;
  transform: rotateY(-180deg); transition: transform 1.6s cubic-bezier(.55, .08, .2, 1); z-index: 3; }
.cover > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); }
.cover-front { border-radius: 0 var(--radius) var(--radius) 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px;
  padding: 40px; box-shadow: inset 0 0 0 1px rgba(42, 43, 37, .06), var(--shadow-card); }
.cover-front::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(var(--slate-rgb), .45); outline: 1px solid rgba(var(--slate-rgb), .25); outline-offset: 4px; }
.cover-front { container-type: inline-size; }
/* The cover is a railway ticket: warm ticket stock with a fine printed pattern, a red double border, a punched hole,
   and perforations along the fold (the cover's left edge, where it tears from the stub). */
.cover > .cover-front { background:
    radial-gradient(circle at 0 50%, var(--linen) 0 3.5px, transparent 4px) left center / 9px 13px repeat-y,
    repeating-linear-gradient(45deg, rgba(var(--boxcar-rgb), .035) 0 1.5px, transparent 1.5px 6px),
    repeating-linear-gradient(-45deg, rgba(var(--boxcar-rgb), .03) 0 1.5px, transparent 1.5px 6px), var(--ticket); }
.cover-front::after { content: ""; position: absolute; inset: 18px; border: 2px solid rgba(var(--boxcar-rgb), .6); outline: 1px solid rgba(var(--boxcar-rgb), .35); outline-offset: 4px; }
.cover-front::before { content: ""; position: absolute; top: 34px; right: 34px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--linen); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .6); } /* the conductor's punch */
.cf-serial { position: absolute; top: 34px; left: 40px; font: 600 .95rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--boxcar); }
.cover-front .herald { width: clamp(104px, 26cqi, 140px); margin-bottom: 14px; }
/* The full name is the biggest line on the ticket: two even lines, each sized to the cover */
.cover-front .cf-name { display: grid; gap: .08em; font: 600 clamp(1.9rem, 11cqi, 3.4rem)/1 var(--f-display); letter-spacing: .05em; text-transform: uppercase;
  font-variation-settings: "SOFT" 20, "opsz" 96; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.cover-front .cf-name span:first-child { font-size: .52em; letter-spacing: .3em; color: var(--boxcar); padding-left: .3em; }
.cover-front .cf-name span { white-space: nowrap; }
.cover-front .eyebrow { margin: 20px 0 0; color: var(--boxcar); }
/* Safari draws some children of a turned face on their own (filters, stacking contexts, transformed slides), and they
   then show through mirrored on the other side. So every element inside both faces hides its back too, nothing inside
   the ticket front makes its own layer (no filter, no z-index), and once open the front is hidden outright. */
.cover > div, .cover > div *, .cover > div::before, .cover > div::after, .cover > div *::before, .cover > div *::after {
  -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.greeting.started .scroll-cue { visibility: hidden; } /* its animated line gets its own layer in Safari; it's only needed before the first scroll */
/* Desktop: don't rely on backface culling at all. Only the face toward the viewer is visible: the ticket until the cover
   passes 90°, the inside after. Scrolling: tpl.js sets .past-half at 90°. Timed opening (tap / 3 s idle): the 1.6 s turn
   (cubic-bezier .55,.08,.2,1) is edge-on at about 0.62 s, so the faces swap then, out of sight. */
@media (min-width: 900px) {
  .js .greeting:not(.is-open):not(.past-half) .cover-back { visibility: hidden; }
  .js .greeting.scrubbing.past-half .cover-front { visibility: hidden; }
  .greeting.is-open .cover-front { visibility: hidden; transition: visibility 0s linear .62s; }
  .greeting.is-open .cover-back { visibility: visible; transition: visibility 0s linear .62s; }
  .greeting.no-anim .cover-front, .greeting.no-anim .cover-back { transition: none; }
  html:not(.js) .cover-front { visibility: hidden; }
}
.cover-back { transform: rotateY(180deg); border-radius: var(--radius) 0 0 var(--radius); padding: clamp(24px, 3.4vw, 44px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px; box-shadow: inset -12px 0 22px -16px rgba(60, 45, 25, .35), var(--shadow-card); }
.cover-back::after { content: ""; position: absolute; inset: 12px 0 12px 12px; border: 1px solid rgba(var(--slate-rgb), .35); border-right: 0; pointer-events: none; }

/* The slideshow, seen through a railcar window: a red frame with brass rivets, glass with a faint reflection, and a stop-line
   (the dots are stations on a line) that shows which photo you're on and switches photos. Slow cross-fade + gentle zoom. */
.slides { display: grid; gap: 12px; position: relative; z-index: 1; }
.window { position: relative; padding: 14px; border-radius: 28px;
  background: linear-gradient(160deg, var(--boxcar-light), var(--boxcar) 55%, var(--oxblood));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 4px rgba(0, 0, 0, .35), 0 18px 30px -18px rgba(40, 20, 20, .65); }
.window::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  --r: radial-gradient(circle, var(--lamp) 0 2px, rgba(0, 0, 0, .3) 2.6px, transparent 3.2px);
  background: var(--r) 10px 10px / 8px 8px no-repeat, var(--r) calc(100% - 10px) 10px / 8px 8px no-repeat,
    var(--r) 10px calc(100% - 10px) / 8px 8px no-repeat, var(--r) calc(100% - 10px) calc(100% - 10px) / 8px 8px no-repeat,
    var(--r) 50% 3px / 8px 8px no-repeat, var(--r) 50% calc(100% - 3px) / 8px 8px no-repeat; }
.window-glass { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--iron); isolation: isolate; }
.window-glass::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 32%, transparent 72%, rgba(255, 255, 255, .06));
  box-shadow: inset 0 0 0 2px rgba(var(--brass-rgb), .85), inset 0 8px 18px rgba(0, 0, 0, .35); }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s cubic-bezier(.2, .6, .3, 1); }
.slide.on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .slide { transition: opacity .3s; transform: none; } }
.stops { position: relative; display: flex; justify-content: space-between; margin: 2px 6px 0; }
.stops::before { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 3px; translate: 0 -50%; border-radius: 2px; background: var(--boxcar); opacity: .8; }
.stop { position: relative; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.stop i { width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 3px solid var(--boxcar); transition: transform .3s, background-color .3s; }
.stop[aria-pressed="true"] i { background: var(--boxcar); transform: scale(1.3); box-shadow: 0 0 0 4px rgba(var(--boxcar-rgb), .16); }
.slide-cap { margin: 0; text-align: center; font-style: italic; color: var(--ink-soft); font-size: .95rem; min-height: 1.5em; }
/* A small timetable under the window: the facts guests ask first */
.timetable { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 0; position: relative; z-index: 1;
  border-top: 2px solid var(--boxcar); border-bottom: 1px solid rgba(var(--boxcar-rgb), .4); }
.timetable div { padding: 10px 6px 8px; text-align: center; }
.timetable div + div { border-left: 1px dotted var(--rule-strong); }
.timetable dt { font: 600 .82rem/1.1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.timetable dd { margin: 4px 0 0; font: 600 1.2rem/1 var(--f-label); letter-spacing: .04em; color: var(--ink); }
@media (max-width: 420px) { .timetable { grid-template-columns: repeat(2, 1fr); } .timetable div:nth-child(3) { border-left: 0; } .timetable div:nth-child(n+3) { border-top: 1px dotted var(--rule-strong); } }
/* closed until tpl.js opens it (once per visit); no-JS and reduced motion get the open card */
.js .greeting:not(.is-open) .cover { transform: none; }
.greeting.no-anim .cover { transition: none; }
@media (prefers-reduced-motion: reduce) { .cover, .js .greeting:not(.is-open) .cover { transform: rotateY(-180deg); transition: none; } }
/* Scroll-driven opening (tpl.js): the card pins under the header while one screen of scrolling (--scrub) turns the cover by --p */
.hero.scrub::after { content: ""; display: block; height: var(--scrub, 0px); } /* real content (not padding): sticky only travels inside the parent's content box */
.hero.scrub .hero-pin { position: sticky; top: var(--pin-top, 76px); }
@media (min-width: 900px) {
  .js .greeting.scrubbing:not(.is-open) .cover { transition: none; transform: rotateY(calc(var(--p, 0) * -180deg)); }
}
.greeting.scrubbing .cover-front { cursor: pointer; }
.scroll-cue { display: none; }
/* .cued (set by tpl.js for the whole intro) keeps the cue in the ticket's layout until the card is open: when the card opens
   by itself it only fades (.opening), so the ticket's centered lines never shift (2026-10-22: that read as a jump) */
.greeting.cued .scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; position: relative; z-index: 1;
  font: 600 .8rem/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint);
  opacity: calc(1 - var(--p, 0) * 8); transition: opacity .3s; }
.greeting.cued.opening .scroll-cue { opacity: 0; }
.scroll-cue i { width: 1px; height: 30px; background: linear-gradient(var(--slate), transparent); animation: cue 2.6s ease-in-out infinite; }
@keyframes cue { 0%, 100% { translate: 0 0; opacity: .35; } 50% { translate: 0 7px; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: none; } }
@keyframes cover-turn { /* smoothstep-like ease, matching the JS curve */
  from { transform: perspective(1500px) rotateY(0deg); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  to { transform: perspective(1500px) rotateY(-180deg); } }
/* Home intro (html.intro, set by tpl.js): the letterhead / phone header show as usual, but the fixed compact bar (desktop)
   and the fixed Call / Book bar (phones) wait until the card is fully open, then slide in. */
html.intro { overflow-anchor: none; } /* tpl.js corrects the scroll itself when the track goes; the browser's anchoring would add a second shift */
/* Desktop letterhead layout: the card sits 40px under the letterhead. During the intro tpl.js carries the letterhead in the
   pin above the card (.hero.mast-in), the same 40px apart, so the two stay on screen together while the cover turns. */
@media (min-width: 1080px) {
  .hero { padding-top: 40px; }
  .hero.mast-in { padding-top: 0; }
  .hero.mast-in .hero-pin > .wrap { padding-top: 40px; }
}
.intro .minibar { transform: translateY(-105%) !important; }
.intro .book-bar { transform: translateY(110%); }
.book-bar { transition: transform .45s ease; }
@media (max-width: 899px) {
  .greeting { grid-template-columns: 1fr; perspective: none; }
  .panel { min-height: 0; }
  .panel-r { grid-column: 1; border-radius: 0 0 var(--radius) var(--radius); box-shadow: inset 0 12px 22px -16px rgba(60, 45, 25, .35); }
  .panel-r::after { inset: 0 12px 12px; border-left: 1px solid rgba(var(--slate-rgb), .35); border-top: 0; }
  .cover, .js .greeting:not(.is-open) .cover { position: static; left: 0; width: auto; transform: none; transition: none; grid-row: 1; transform-style: flat; }
  /* Phones: the front cover lies over the top of the card and swings open from its left edge like a book cover,
     revealing the photo + letter stacked beneath. It's never taller than the screen under the header (svh: with the
     toolbars showing), so the whole ticket, top and bottom border, is in view while it's pinned.
     Open (hidden) by default so no-JS visitors see the inside. */
  .cover-front { position: absolute; top: 0; left: 0; right: 0; height: min(100%, calc(100svh - var(--pin-top, 88px) - 32px));
    z-index: 6; border-radius: var(--radius); place-content: center; padding: 40px 28px; transform-origin: left center;
    transform: perspective(1500px) rotateY(-180deg); opacity: 0; visibility: hidden; pointer-events: none;
    /* the cover vanishes once edge-on (backface hidden), so the curve spends longer on the first 90° than the desktop one */
    transition: transform 2.2s cubic-bezier(.42, .05, .38, 1), opacity .4s ease 1.3s, visibility 0s linear 2.2s; }
  .js .greeting:not(.is-open) .cover-front { transform: perspective(1500px) rotateY(0deg); opacity: 1; visibility: visible; pointer-events: auto; transition: none; }
  .greeting.no-anim .cover-front { transition: none; }
  .js .greeting.scrubbing:not(.is-open) .cover-front { transform: perspective(1500px) rotateY(calc(var(--p, 0) * -180deg)); transition: none;
    will-change: transform; box-shadow: none; } /* phones: lighter layer while it turns */
  /* Phones on browsers with scroll-driven animations (Safari 26+, Chrome): the browser turns the cover from the scroll itself,
     off the main thread, like the tap animation; tpl.js stops writing --p. --scrub-start / --scrub-end = the scroll positions where the turn starts (card at its pin)
     and ends. */
  @supports (animation-timeline: scroll()) {
    .js .greeting.scrubbing:not(.is-open) .cover-front {
      animation: cover-turn linear both; animation-timeline: scroll(root block); animation-range: var(--scrub-start, 0px) var(--scrub-end, 700px); }
  }
  .cover-front .herald { width: 116px; }
  .cover-front .cf-name { font-size: clamp(1.7rem, 11cqi, 2.8rem); }
  .cf-serial { top: 30px; left: 30px; }
  @media (max-width: 359px) { .cf-serial { font-size: .8rem; letter-spacing: .1em; } } /* clears the punch on 320px phones */
  .cover-front::before { top: 26px; right: 26px; }
  .cover-front .eyebrow { gap: .5em; white-space: nowrap; }
  .cover-front .eyebrow::before, .cover-front .eyebrow::after { width: 24px; }
  .cover-back { position: relative !important; transform: none; border-radius: var(--radius) var(--radius) 0 0; box-shadow: none; }
  .cover-back::after { inset: 12px 12px 0; border-right: 1px solid rgba(var(--slate-rgb), .35); border-bottom: 0; }
}

/* ---------- HOME: three notes (why an inn) ---------- */
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); }
@media (max-width: 1120px) { .notes { grid-template-columns: repeat(2, 1fr); } }
.note-card { padding: clamp(30px, 3.5vw, 44px) clamp(24px, 3vw, 36px) clamp(26px, 3vw, 34px); }
.note-card:nth-child(1) { rotate: -.7deg; } .note-card:nth-child(2) { rotate: .4deg; } .note-card:nth-child(3) { rotate: -.3deg; } .note-card:nth-child(4) { rotate: .6deg; }
.note-card .note-num { font: 600 .8rem/1 var(--f-label); letter-spacing: .14em; color: var(--slate); display: block; margin-bottom: 1em; }
.note-card h3 { margin-bottom: .55em; }
.note-card p { color: var(--ink-soft); margin: 0; font-size: 1rem; position: relative; z-index: 1; }
@media (max-width: 640px) { .notes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } .note-card:nth-child(n) { rotate: 0deg; } }

/* ---------- Postcard (location) ---------- */
.postcard { display: grid; grid-template-columns: 1.05fr 1fr; background: #fcf9f1; box-shadow: var(--shadow-card); border-radius: 4px; position: relative; rotate: -.6deg; }
.pc-front { position: relative; overflow: hidden; border-radius: 4px 0 0 4px; min-height: 420px; display: grid; place-content: center; text-align: center; padding: 34px 18px;
  background: linear-gradient(180deg, rgba(252, 248, 240, .1), rgba(252, 248, 240, .1)), var(--cream); }
.pc-front::before { content: ""; position: absolute; inset: 0; background: var(--pc-sky, none) center / cover; opacity: .28; filter: sepia(.4) saturate(.8); }
.pc-front > * { position: relative; }
.pc-greet { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); margin: 0 0 -.1em; color: var(--brass-deep); }
.pc-front { container-type: inline-size; }
.pc-big { font: 700 clamp(2.2rem, 12.2cqi, 6.4rem)/.9 var(--f-display); /* ten letters (YOUNTVILLE): sized to the card front */ letter-spacing: -.02em; margin: 0; text-transform: uppercase;
  font-variation-settings: "SOFT" 0, "opsz" 144; color: var(--boxcar);
  background: var(--pic) center 45% / cover; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 250, 238, .9);
  filter: drop-shadow(2px 2px 0 var(--boxcar)) drop-shadow(2px 2px 0 var(--boxcar)) drop-shadow(1px 1px 0 var(--oxblood)) drop-shadow(0 10px 14px rgba(60, 30, 10, .3)); }
.pc-sub { font: 600 .9rem/1.3 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--ink); margin: 18px 0 0; }
.pc-back { padding: clamp(24px, 3.5vw, 44px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 28px; position: relative; }
.pc-back::before { content: ""; position: absolute; top: 34px; bottom: 34px; left: calc(54.5% - 1px); width: 1px; background: var(--rule-strong); }
.pc-msg { font-size: 1rem; line-height: 1.6; padding-right: 8px; }
.pc-msg .script { font-size: 2rem; display: block; margin-bottom: .2em; }
.pc-msg p { margin-bottom: .8em; }
.pc-msg .pc-sign { font-size: 1.8rem; margin: .3em 0 0; }
.pc-right { display: flex; flex-direction: column; }
.pc-stamps { display: flex; justify-content: flex-end; align-items: flex-start; gap: 0; margin-bottom: auto; position: relative; min-height: 150px; }
.postmark { position: absolute; right: 88px; top: 36px; width: 120px; color: rgba(60, 50, 40, .55); rotate: -14deg; pointer-events: none; }
.stamp-wrap { filter: drop-shadow(0 2px 2px rgba(60, 45, 25, .3)); rotate: 3deg; }
.stamp { width: 106px; padding: 5px; background: #fffdf6;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4px, #0000 97%, #000) -5px -5px / 10px 10px round;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4px, #0000 97%, #000) -5px -5px / 10px 10px round; }
.stamp-in { background: #fffdf6; padding: 6px; border: 1px solid rgba(var(--brass-rgb), .25); }
.stamp-in img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.stamp-in span { display: block; font: 600 .63rem/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep); text-align: center; padding-top: 5px; }
.pc-addr { margin-top: 26px; font-size: 1.02rem; line-height: 1; }
.pc-addr span { display: block; border-bottom: 1px solid var(--rule-strong); padding: 16px 2px 6px; font-style: italic; }
@media (max-width: 960px) {
  .postcard { grid-template-columns: 1fr; rotate: 0deg; }
  .pc-front { border-radius: 4px 4px 0 0; min-height: 300px; }
}
@media (max-width: 600px) {
  .pc-back { grid-template-columns: 1fr; }
  .pc-back::before { display: none; }
  .pc-right { border-top: 1px solid var(--rule-strong); margin-top: 18px; padding-top: 18px; }
  .pc-stamps { min-height: 140px; }
}

/* Distances: "from our front porch" */
.porch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 46px); align-items: start; margin-top: clamp(34px, 5vw, 60px); }
.miles { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.miles li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0 8px; border-bottom: 1px dotted var(--rule-strong); }
.miles li::after { content: ""; order: 2; flex: 1; }
.miles b { font-weight: 420; order: 1; }
.miles span { order: 3; font: 600 .95rem/1 var(--f-label); letter-spacing: .12em; color: var(--brass-deep); white-space: nowrap; }
.miles b a { text-decoration-color: rgba(var(--brass-rgb), .4); }
.miles b a:hover { color: var(--brass-deep); }
@media (max-width: 860px) { .porch-grid { grid-template-columns: 1fr; } }

/* ---------- Houses ---------- */
.house-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 54px); }
.house-card { display: block; text-decoration: none; color: inherit; padding: clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px) clamp(26px, 3vw, 36px); transition: transform .35s ease, box-shadow .35s ease; }
.house-card:hover { color: inherit; transform: translateY(-4px); box-shadow: 0 1px 1px rgba(60, 45, 25, .06), 0 18px 34px -14px rgba(60, 45, 25, .35); }
.house-card .ph { overflow: hidden; margin-bottom: 24px; }
.house-card .ph img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: scale .8s ease; }
.house-card:hover .ph img { scale: 1.03; }
.house-card .hc-body { padding: 0 clamp(10px, 2vw, 22px); position: relative; z-index: 1; }
.house-card h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.house-card p:not(.eyebrow) { color: var(--ink-soft); }
.house-card .hc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 18px;
  font: 600 .88rem/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--boxcar); }
@media (max-width: 760px) { .house-pair { grid-template-columns: 1fr; } }

/* ---------- Rooms: cards with brass key tags ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(20px, 2.6vw, 34px); }
.room-grid.four { grid-template-columns: repeat(4, 1fr); }
.room-grid.three { grid-template-columns: repeat(3, 1fr); padding-top: 14px; }
@media (max-width: 900px) { .room-grid.three { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 34px; } }
.score-cards.two { grid-template-columns: repeat(2, 1fr); max-width: 580px; }
.score-cards.one { grid-template-columns: 1fr; max-width: 290px; }

/* ---------- Guest quotes (tpl.js renders GUEST_QUOTES): ticket stubs rolling past like a train ----------
   Each stub: warm ticket stock, a dashed tear line on the left, a conductor's punch, and the quote set off by a hairline
   rule with its opening mark hung in the gutter. The line rolls only while on screen (.rolling) and stops on hover/focus.
   Phones and reduced motion: a swipeable row (no roll). */
.quotes { overflow: hidden; padding: 6px 0 22px; margin-bottom: 8px; outline-offset: -4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.quote-track { display: flex; gap: 24px; width: max-content; padding-inline: 12px; animation: quotes-roll 110s linear infinite; animation-play-state: paused; }
.quotes.rolling .quote-track { animation-play-state: running; }
.quotes:hover .quote-track, .quotes:focus-within .quote-track, .quotes:focus .quote-track { animation-play-state: paused; }
@keyframes quotes-roll { to { transform: translateX(-50%); } } /* two identical halves (gap and padding included) loop seamlessly */
.stub { flex: none; width: 340px; margin: 0; position: relative; display: flex; flex-direction: column; padding: 30px 28px 22px 40px;
  border-radius: 6px; box-shadow: var(--shadow-card);
  background: repeating-linear-gradient(45deg, rgba(var(--boxcar-rgb), .03) 0 1.5px, transparent 1.5px 6px), var(--ticket); }
.stub::before { content: ""; position: absolute; left: 18px; top: 14px; bottom: 14px; border-left: 2px dashed rgba(var(--boxcar-rgb), .32); } /* tear line */
.stub::after { content: ""; position: absolute; top: 14px; right: 14px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--linen); box-shadow: inset 0 1.5px 2px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .6); } /* the punch */
.stub blockquote { margin: 0; /* the dashed tear line is the stub's only rule (a second, solid one read as redundant, 2026-10-23) */
  font: 400 1.04rem/1.55 var(--f-display); font-variation-settings: "SOFT" 50; color: var(--ink); text-indent: -.42em; }
.stub blockquote::before { content: "\201C"; }
.stub blockquote::after { content: "\201D"; }
.stub figcaption { margin-top: auto; padding-top: 16px; font: 600 .8rem/1.35 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--boxcar); }
.stub figcaption span { color: var(--slate); white-space: nowrap; }
.swipe-hint { display: none; }
.quotes-source { text-align: center; font-size: .9rem; color: var(--ink-faint); margin: 0 auto 30px; padding-inline: 20px; }
.quotes-source a { color: var(--ink-soft); }
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .quotes { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote-track { animation: none; gap: 14px; padding-inline: 20px; }
  .quote-track [aria-hidden="true"] { display: none; }
  .stub { width: min(82vw, 330px); scroll-snap-align: center; }
  .swipe-hint { display: block; text-align: center; margin: 0 0 10px; font: 600 .78rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
}
.copy .menu-card { margin-top: 22px; rotate: -.5deg; max-width: 460px; }
@media (max-width: 1080px) { .room-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .room-grid.four { grid-template-columns: 1fr; } }
.room-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper); box-shadow: var(--shadow-card); border-radius: var(--radius);
  padding: 10px 10px 20px; position: relative; transition: transform .35s ease, box-shadow .35s ease; }
.room-card:hover { color: inherit; transform: translateY(-4px); box-shadow: 0 1px 1px rgba(60, 45, 25, .06), 0 18px 34px -14px rgba(60, 45, 25, .38); }
.room-card[hidden] { display: none; }
.room-card .rc-photo { overflow: hidden; border-radius: 1px; }
.room-card .rc-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: scale .8s ease; }
.room-card:hover .rc-photo img { scale: 1.035; }
.room-card .keytag { position: absolute; top: -12px; right: 18px; rotate: 7deg; transition: rotate .4s ease; }
.room-card:hover .keytag { rotate: -3deg; }
/* Car plate: a brass plate with the car's silhouette (railcar, caboose, station house) and its kind */
.plate { display: inline-grid; justify-items: center; gap: 3px; padding: 9px 12px 7px; border-radius: 9px; color: #3a2a0f; flex: none;
  background: radial-gradient(120% 70% at 30% 10%, rgba(255, 244, 214, .75), transparent 60%), linear-gradient(165deg, #dcb869, #b38c40 50%, #8d6a2b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 3px rgba(80, 50, 10, .35), 0 6px 12px -6px rgba(40, 25, 5, .6); --car-cut: #f4dfa6; }
.plate .car-svg { width: 58px; height: auto; display: block; }
.plate small { font: 700 .9rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; padding-left: .2em; }
.room-card .plate { position: absolute; top: -14px; right: 16px; rotate: 4deg; transition: rotate .4s ease; z-index: 1; }
.room-card:hover .plate { rotate: -2deg; }
.ri-head .plate { rotate: -4deg; margin-top: 6px; }
.roster-card { padding-inline: clamp(12px, 3vw, 40px); }
.roster-card > * { position: relative; z-index: 1; }
.rc-body { padding: 16px 10px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rc-house { font: 600 .83rem/1.3 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.rc-name { font-size: 1.36rem; line-height: 1.2; }
.rc-facts { font-size: .9rem; color: var(--ink-soft); }
.rc-more { margin-top: auto; padding-top: 12px; font: 600 .85rem/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--boxcar); }
.rc-more::after { content: " →"; }
.room-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 34px; }
.room-count { text-align: center; color: var(--ink-soft); font-style: italic; margin: -18px 0 30px; }
.no-rooms { text-align: center; font-style: italic; color: var(--ink-soft); }

/* Room detail */
.room-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
.room-gallery .rg-main { cursor: zoom-in; display: block; width: 100%; border: 0; padding: 0; background: none; }
.room-gallery .rg-main img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.rg-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.rg-thumbs button { padding: 0; border: 0; background: none; cursor: pointer; opacity: .72; transition: opacity .2s; outline-offset: 2px; }
.rg-thumbs button:hover, .rg-thumbs button[aria-current="true"] { opacity: 1; }
.rg-thumbs button[aria-current="true"] img { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--slate); }
.rg-thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 1px; }
.rg-full { display: none; } /* lightbox sources only; the main photo clicks them */
.room-info { position: sticky; top: 90px; }
.room-info .ri-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.room-info .keytag { rotate: -6deg; margin-top: 4px; }
.room-info h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin: 0 0 .1em; }
.room-info .lede { font-size: 1.08rem; }
.room-specs { padding: 22px clamp(20px, 3vw, 30px) 18px; margin: 22px 0 24px; }
.room-specs dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 18px; position: relative; z-index: 1; }
.room-specs dt, .room-specs dd { padding: 9px 0 8px; border-bottom: 1px dotted var(--rule-strong); margin: 0; }
.room-specs dt { font: 600 .83rem/1.8 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--boxcar); white-space: nowrap; }
.room-specs dd { font-size: .96rem; line-height: 1.45; }
.room-specs dl > :nth-last-child(-n+2) { border-bottom: 0; }
.room-note { font-size: .92rem; color: var(--ink-soft); margin-top: 14px; font-style: italic; }
.room-pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 10px; }
.room-pager a { text-decoration: none; display: flex; flex-direction: column; gap: 2px; max-width: 48%; }
.room-pager a:last-child { text-align: right; margin-left: auto; }
.room-pager small { font: 600 .8rem/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
@media (max-width: 900px) { .room-top { grid-template-columns: minmax(0, 1fr); } .room-info { position: static; } }
@media (max-width: 520px) { .rg-thumbs { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Included list (amenities) ---------- */
.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 40px); list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.included li { padding: 16px 0 15px 30px; border-bottom: 1px dotted var(--rule-strong); position: relative; }
.included li::before { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 6px; background: var(--slate);
  -webkit-mask: var(--track-sm) left center / contain no-repeat; mask: var(--track-sm) left center / contain no-repeat; }
.included b { display: block; font-weight: 450; font-size: 1.04rem; line-height: 1.3; }
.included span { display: block; font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 900px) { .included { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .included { grid-template-columns: 1fr; } }

/* ---------- Recipe cards (food & wine) ---------- */
.recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); align-items: start; }
.recipe { background: #fffdf7; box-shadow: var(--shadow-card); border-radius: 2px; padding: 0 0 22px; position: relative; }
.recipe:nth-child(1) { rotate: -.8deg; } .recipe:nth-child(2) { rotate: .5deg; margin-top: 18px; } .recipe:nth-child(3) { rotate: -.3deg; }
.recipe-head { padding: 22px 24px 12px; border-bottom: 2px solid rgba(var(--awning-rgb), .5); position: relative; }
.recipe-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: rgba(var(--awning-rgb), .35); }
.recipe-head .when { font: 600 .83rem/1.3 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 4px; }
.recipe-head h3 { margin: 0; }
.recipe-body { padding: 10px 24px 0; line-height: 32px; font-size: 1rem;
  /* ruled lines sit just under each text line's descenders */
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(var(--deck-rgb), .3) 31px 32px); background-position: 0 3px; }
.recipe-body p { margin: 0; } /* gaps must stay whole 32px lines, so none */
.recipe-body ul { margin: 0; padding: 0; list-style: none; }
.recipe-body li::before { content: "~ "; color: var(--brass-deep); }
@media (max-width: 960px) { .recipes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } .recipe:nth-child(n) { rotate: 0deg; margin-top: 0; } }

/* ---------- Split (photo + words) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split > * { min-width: 0; }
.split .copy p:not(.eyebrow) { color: var(--ink-soft); }
.split .copy h2 { margin-bottom: .45em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.print-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 30px); margin-top: clamp(34px, 5vw, 60px); }
.print-row .print:nth-child(1) { rotate: -.6deg; } .print-row .print:nth-child(3) { rotate: .5deg; }
@media (max-width: 760px) { .print-row { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .print-row .print { rotate: 0deg !important; } }
.photo-pair { position: relative; padding: 0 0 48px 0; }
.photo-pair .print:first-child { width: 82%; }
.photo-pair .print + .print { position: absolute; right: 0; bottom: 0; width: 46%; }

/* ---------- Review scores (tpl.js renders RATINGS) ---------- */
.ratings { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; align-items: baseline; }
.ratings.left { justify-content: flex-start; }
.rating { display: inline-flex; align-items: baseline; gap: 5px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.rating b { font-weight: 450; font-size: 1.35rem; color: var(--brass-deep); }
.rating small { font-size: .8rem; color: var(--ink-faint); margin-right: 3px; }
.rating span { font: 600 .83rem/1 var(--f-label); letter-spacing: .15em; text-transform: uppercase; }
.rating em { font-size: .8rem; color: var(--ink-faint); font-style: normal; }
.rating:hover span { color: var(--brass-deep); text-decoration: underline; text-underline-offset: .3em; }
.ratings-asof { flex-basis: 100%; text-align: center; font-size: .82rem; color: var(--ink-faint); margin: 4px 0 0; line-height: 1.6; }
.hero-ratings { margin-top: 20px; padding-top: 16px; border-top: 1px dotted var(--rule-strong); gap: 8px 20px; }
.hero-ratings .rating b { font-size: 1.15rem; }
.hero-ratings .rating em { display: none; } /* counts show with the full score row */
/* Score cards: each source on its own small card, linked to the reviews */
.score-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 26px); max-width: 860px; margin: 0 auto; }
.score-cards .rating { flex-direction: column; align-items: center; gap: 6px; padding: 24px 12px 20px; background: var(--paper); box-shadow: var(--shadow-card);
  border-radius: var(--radius); position: relative; transition: transform .3s ease; }
.score-cards .rating:hover { transform: translateY(-3px); }
.score-cards .rating b { font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); line-height: 1; }
.score-cards .rating small { margin: -4px 0 4px; }
.score-cards .ratings-asof { grid-column: 1 / -1; }
@media (max-width: 520px) { .score-cards { grid-template-columns: 1fr; max-width: 320px; } }

/* ---------- Testimonial: the guest review the inn publishes itself, with a hairline rule left of the quote ---------- */
.testimonial { margin: 0 auto; max-width: 720px; position: relative; z-index: 1; }
.testimonial blockquote { margin: 0; border-left: 1px solid var(--brass-deep); padding: .2em 0 .2em clamp(18px, 3vw, 30px); }
.testimonial blockquote p { margin: 0; text-indent: -.42em; font-size: clamp(1.2rem, 1.02rem + .8vw, 1.6rem); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.testimonial figcaption { padding: 14px 0 0 clamp(19px, 3vw, 31px); font: 600 .88rem/1.5 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.review-quote { padding: clamp(30px, 5vw, 54px) clamp(22px, 5vw, 60px); max-width: 900px; margin-inline: auto; }

/* ---------- Closing card ---------- */
.closing { text-align: center; padding: clamp(44px, 6vw, 80px) clamp(22px, 5vw, 70px); max-width: 860px; margin-inline: auto; }
.closing > * { position: relative; z-index: 1; }
.closing .herald { margin: 0 auto 14px; }
.closing .script { font-size: clamp(2.8rem, 2rem + 3vw, 4.4rem); margin: 0 0 .1em; display: block; }
.closing .lede { max-width: 560px; margin: 0 auto 1.4em; }
.closing .meta { font: 600 .88rem/1.6 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 22px; }

/* ---------- Letter (why an inn) ---------- */
.letter { padding: clamp(36px, 6vw, 76px) clamp(24px, 7vw, 96px); max-width: 900px; margin-inline: auto; font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); }
.letter > * { position: relative; z-index: 1; }
.letter .dateline { text-align: right; font-style: italic; color: var(--ink-soft); font-size: .95rem; }
.letter .salutation { margin-bottom: .4em; }
.letter .sign { margin-top: 1.4em; }
.letter .sign .script { font-size: 2.6rem; display: block; }
.compare { width: 100%; border-collapse: collapse; position: relative; z-index: 1; font-size: .98rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 16px 15px; border-bottom: 1px solid var(--rule); }
.compare thead th { font: 600 .85rem/1.4 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--rule-strong); text-shadow: none; }
.compare tbody th { font: 600 .85rem/1.6 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--boxcar); width: 16%; text-shadow: none; }
.compare td { color: var(--ink-soft); width: 28%; }
.compare .us { background: rgba(var(--cream-rgb), .38); color: var(--ink); }
.compare thead .us { color: var(--brass-deep); background: rgba(var(--cream-rgb), .6); }
.compare tr:last-child > * { border-bottom: 0; }
.compare-note { font-size: .84rem; color: var(--ink-faint); margin-top: 16px; position: relative; z-index: 1; }
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule-strong); }
  .compare th, .compare td { display: block; width: auto; border: 0; padding: 4px 12px; }
  .compare td::before { content: attr(data-label); display: block; font: 600 .78rem/1.6 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
  .compare .us { border-radius: 2px; padding-block: 8px; }
  .compare .us::before { color: var(--brass-deep); }
}

/* ---------- Prose (FAQ, accessibility) ---------- */
.prose { padding: clamp(28px, 5vw, 60px) clamp(22px, 5vw, 64px); }
.prose > * { position: relative; z-index: 1; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--slate); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 30px; }
/* Policies: the four rules up front, each card jumps to its details in the prose below */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin: 0 0 clamp(26px, 4vw, 40px); }
/* hover lifts with transform, so the .reveal fade (opacity + translate) keeps its own timing */
.rules .card { display: block; padding: 24px 24px 20px; color: var(--ink); text-decoration: none; transition: opacity .9s ease, translate .9s ease, transform .25s ease; }
.rules .card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .rules .card { transition: none; } .rules .card:hover { transform: none; } }
.rules .card > * { position: relative; z-index: 1; }
.rules small { display: block; font: 600 .8rem/1.5 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.rules strong { display: block; font: 500 clamp(1.7rem, 1.4rem + 1vw, 2.2rem)/1.1 var(--f-display); color: var(--boxcar); margin: 6px 0 8px; }
.rules p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.rules .card:focus-visible { outline-color: var(--boxcar); outline-offset: 4px; } /* lamp brass is too faint on linen */
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }

/* ---------- Things to do ---------- */
/* The innkeepers' list: four groups (wine tours, by bike, Tuesday nights, on foot) side by side on desktop */
.todo { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 1080px) { .todo { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .todo { grid-template-columns: 1fr; } }
.todo-card { padding: 26px 26px 22px; display: flex; flex-direction: column; }
.todo-card > * { position: relative; z-index: 1; }
.todo-card .td-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.todo-card .td-mi { font: 600 .9rem/1 var(--f-label); letter-spacing: .12em; color: var(--brass-deep); white-space: nowrap; }
.todo-card h3 { font-size: 1.3rem; margin: 0; }
.todo-card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: .8em; }
.todo-card .td-meta { margin-top: auto; font-size: .86rem; color: var(--ink-soft); border-top: 1px dotted var(--rule-strong); padding-top: 10px; }
.todo-card .td-meta a { color: var(--boxcar); }
.td-list { list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px dotted var(--rule-strong); }
.td-list li { padding: 7px 0 6px; border-bottom: 1px dotted var(--rule); font-size: 1.02rem; }
.td-list li:last-child { border-bottom: 0; }
.td-list a { color: var(--ink); text-decoration-color: rgba(var(--brass-rgb), .45); }
.td-list a:hover { color: var(--brass-deep); }
.td-list a::after { content: " ↗"; font-size: .8em; color: var(--ink-faint); }

/* Directions */
.drive { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 30px); }
.drive .card { padding: 26px 26px 20px; }
.drive .card > * { position: relative; z-index: 1; }
.drive h3 { font-size: 1.25rem; }
.drive h3 small { display: block; font: 600 .8rem/1.5 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-top: 4px; }
.drive ol { padding-left: 1.2em; margin: 0; font-size: .95rem; }
.drive li { margin-bottom: .35em; }
.drive li::marker { color: var(--slate); font-family: var(--f-label); font-size: .8em; }
@media (max-width: 960px) { .drive { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }
.map-frame { border: 0; }
/* Nearby map (tpl.js, Leaflet): the inn's herald plus one dot per place on the departures board, colored by type.
   Its own stacking context, so Leaflet's panes (z-index 400+) stay under the fixed compact bar and phone bar. */
.map-frame:has(.nearby-map) { display: flex; flex-direction: column; }
.nearby-map { position: relative; z-index: 0; isolation: isolate; flex: 1; width: 100%; min-height: 380px; background: var(--paper-3); }
.nearby-map.leaflet-container { font: 400 .95rem/1.4 var(--f-display); background: var(--paper-3); } /* leaflet.css loads later */
.nearby-map .leaflet-tile-pane { filter: sepia(.2) saturate(.85); }
.pin { box-sizing: border-box; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2.5px solid #fffdf8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.pin-dine { background: var(--boxcar); }
.pin-taste { background: var(--brass-deep); }
.pin-bakery { background: var(--slate); }
.pin-inn { width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 0; box-shadow: 0 5px 12px rgba(0, 0, 0, .45); }
.pin-inn svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pin-inn-key { background: var(--boxcar); box-shadow: 0 0 0 2px var(--brass); border-color: var(--paper); }
.leaflet-popup-content b { display: block; font: 500 1.05rem/1.25 var(--f-display); color: var(--ink); }
.leaflet-popup-content span { display: block; margin-top: 2px; font-size: .86rem; color: var(--ink-soft); }
.map-legend { display: grid; gap: 5px; padding: 8px 11px; border-radius: 3px; background: rgba(255, 253, 248, .94); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  font: 600 .74rem/1.2 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.map-legend span { display: flex; align-items: center; gap: 8px; }
.map-legend .pin { margin: 0; width: 12px; height: 12px; border-width: 2px; }
.map-fallback { display: grid; place-items: center; height: 100%; min-height: inherit; font: 600 .95rem/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--boxcar); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: sepia(.25) saturate(.85); }
.notice { background: rgba(var(--cream-rgb), .5); border-left: 3px solid var(--lamp); padding: 14px 18px; font-size: .95rem; margin: 0 0 1.2em; }

/* ---------- Photo album (tpl.js renders; full size opens in the kit lightbox via .item-img) ---------- */
.gallery-album { columns: 3 300px; column-gap: 22px; }
.gallery-album figure { break-inside: avoid; margin: 0 0 22px; background: #fffdf8; padding: 9px 9px 4px; box-shadow: var(--shadow-print); }
.gallery-album figure[hidden] { display: none; }
.gallery-album button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-album img { width: 100%; }
.gallery-album figcaption { font-style: italic; font-size: .9rem; color: var(--ink-soft); text-align: center; padding: 8px 4px 6px; }
.gallery-album figcaption small { display: block; font: 600 .75rem/1.4 var(--f-label); letter-spacing: .16em; text-transform: uppercase; font-style: normal; color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(28, 26, 20, .92); display: none; place-items: center; padding: 60px 70px; }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: min(92vw, 1500px); max-height: 78vh; width: auto; height: auto; background: #fffdf8; padding: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #efe6d2; font-style: italic; margin-top: 14px; text-align: center; max-width: 720px; font-size: .98rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(252, 248, 240, .1); color: #fcf8f0; border: 1px solid rgba(252, 248, 240, .25); cursor: pointer;
  font: 600 .88rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; padding: 12px 14px; border-radius: 2px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(252, 248, 240, .2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; font-size: 1.3rem; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; font-size: 1.3rem; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 640px) { .lightbox { padding: 60px 8px; } .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; } }

/* ---------- Ticket-style date picker (home letter, rooms): arrive / depart → Cloudbeds with the dates ---------- */
.ticket-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; min-width: 0; margin: 0 0 14px; padding: 14px 16px 12px; position: relative; z-index: 1;
  border: 1.5px dashed rgba(var(--boxcar-rgb), .45); border-radius: 6px; background: rgba(var(--cream-rgb), .5); }
.ticket-form label { display: grid; gap: 5px; min-width: 0; font: 600 .86rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.ticket-form input { display: block; width: 100%; min-width: 0; min-height: 46px; padding: .5em .6em; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--paper);
  font: 450 1.06rem/1.2 var(--f-display); color: var(--ink); text-align: left; -webkit-appearance: none; appearance: none; }
.ticket-form input:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; }
.ticket-form .btn { grid-column: 1 / -1; }
.ticket-form .fine { grid-column: 1 / -1; margin: 0; }
@media (max-width: 360px) { .ticket-form { grid-template-columns: 1fr; } }

/* ---------- Full-width photo bands (the inn's own photos), each with one line in the inn's own words ---------- */
.band { position: relative; min-height: clamp(320px, 58vh, 640px); display: grid; align-items: end; color: #fff;
  background: var(--pic, none) var(--pos, center) / cover no-repeat, var(--iron); }
@media (max-width: 800px) { .band { background-image: var(--pic-sm, var(--pic)); } .pc-big { background-image: var(--pic-sm, var(--pic)); } }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 11, 12, .66), rgba(14, 11, 12, .1) 55%, transparent); }
.band-line { position: relative; z-index: 1; width: min(var(--wrap), 100% - 2 * clamp(18px, 4vw, 40px)); margin: 0 auto; padding-bottom: clamp(26px, 4.5vw, 52px);
  font: 400 clamp(1.45rem, 1rem + 1.7vw, 2.4rem)/1.25 var(--f-display); text-shadow: 0 2px 14px rgba(0, 0, 0, .45); text-wrap: balance; }
.band-line p { margin: 0; max-width: 30ch; }
.band-line small { display: block; margin-bottom: 8px; font: 600 1rem/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--lamp); }

/* ---------- The departures board (Wine & Dine): walking minutes from the inn, in a station-board style ---------- */
.board { background: var(--iron); color: var(--lamp); border-radius: 6px; padding: clamp(18px, 3vw, 32px); position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 0 0 7px #2b2a2e, 0 0 0 8px rgba(0, 0, 0, .35), var(--shadow-card); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(222, 179, 117, .25); }
.board-title { font: 700 clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem)/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: #f6dcae; }
.board-sub { font: 500 1.05rem/1.2 var(--f-label); letter-spacing: .06em; color: rgba(246, 220, 174, .72); }
.board-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.board-chip { font: 600 .92rem/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; padding: .6em .9em .52em; border-radius: 3px; cursor: pointer;
  border: 1px solid rgba(222, 179, 117, .35); background: transparent; color: var(--lamp); }
.board-chip:hover { border-color: var(--lamp); }
.board-chip[aria-pressed="true"] { background: var(--lamp); color: var(--iron); border-color: var(--lamp); }
.board-table { width: 100%; border-collapse: collapse; font: 600 1.14rem/1.2 var(--f-label); }
.board-table th { text-align: left; padding: 6px 8px; font: 600 .82rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 220, 174, .55); }
.board-table th:last-child, .dep-min { text-align: right; }
.board-table td { padding: 10px 8px 9px; border-top: 1px solid rgba(255, 255, 255, .08); vertical-align: baseline; }
.board-table tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.dep-name .flap { display: inline-block; color: #fcebcc; letter-spacing: .05em; text-transform: uppercase; }
.dep-name small { display: block; margin-top: 2px; font: 500 .82rem/1.2 var(--f-label); letter-spacing: .06em; color: rgba(246, 220, 174, .62); }
.dep-type, .dep-dir { color: rgba(246, 220, 174, .76); font-weight: 500; }
.dep-min { white-space: nowrap; }
.dep-min b { font-size: 1.4em; color: #ffd27a; margin-right: .1em; }
.board-note { margin: 14px 0 0; font: 500 .92rem/1.45 var(--f-label); letter-spacing: .03em; color: rgba(246, 220, 174, .58); }
@media (max-width: 640px) { .dep-type, .board-table th:nth-child(2) { display: none; } .board-table { font-size: 1.02rem; } .board-table td, .board-table th { padding-inline: 5px; } }

/* ---------- The roster: the cars in a row (history page), coupled on one track ---------- */
.consist { list-style: none; margin: 0; padding: 8px 2px 18px; display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.consist-car { flex: 1 0 112px; min-width: 112px; text-align: center; color: var(--boxcar); scroll-snap-align: start; --car-cut: var(--paper); }
.consist-car .car-svg { width: 100%; height: auto; display: block; }
.consist-car b { display: block; margin-top: 8px; font: 700 1.2rem/1 var(--f-label); letter-spacing: .08em; color: var(--ink); }
.consist-car span { display: block; margin-top: 3px; font: 600 .9rem/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.consist-car small { display: block; margin: 6px auto 0; max-width: 16ch; font-size: .82rem; line-height: 1.35; color: var(--ink-soft); }

/* ---------- History timeline: stations along a track ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 780px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 104px; top: 8px; bottom: 8px; width: 16px; opacity: .55;
  background: repeating-linear-gradient(to bottom, var(--slate) 0 3px, transparent 3px 14px) center / 16px 100% no-repeat,
    linear-gradient(to right, transparent 3px, var(--slate) 3px 5px, transparent 5px 11px, var(--slate) 11px 13px, transparent 13px); }
.tl-stop { display: grid; grid-template-columns: 84px 1fr; gap: 0 52px; padding: 0 0 34px; position: relative; }
.tl-stop::before { content: ""; position: absolute; left: 104px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--boxcar); box-shadow: 0 0 0 4px var(--linen), 0 0 0 5px rgba(var(--boxcar-rgb), .35); }
.tl-year { font: 700 1.55rem/1 var(--f-label); letter-spacing: .06em; color: var(--boxcar); text-align: right; padding-top: 3px; }
.tl-stop p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 520px) {
  .timeline::before { left: 4px; } .tl-stop { grid-template-columns: 1fr; padding-left: 44px; gap: 6px; } .tl-stop::before { left: 4px; } .tl-year { text-align: left; }
}

/* ---------- Group request form (contact page) ---------- */
.group-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; position: relative; z-index: 1; }
.group-form label { display: grid; gap: 6px; font: 600 .9rem/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.group-form .wide { grid-column: 1 / -1; }
.group-form input, .group-form textarea { width: 100%; padding: .65em .7em; border: 1px solid var(--rule-strong); border-radius: 3px; background: var(--paper);
  font: 400 1.02rem/1.4 var(--f-display); color: var(--ink); }
.group-form textarea { min-height: 110px; resize: vertical; }
@media (max-width: 560px) { .group-form { grid-template-columns: 1fr; } }

/* ---------- Reveal (kit adds .in) ---------- */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .9s ease, translate .9s ease; }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: none; transition: none; } }
