/* ==========================================================================
   Mt Michael Lodge — site styles
   One stylesheet for every page. Plain CSS, no build step.

   The look: light and bright. White pages, photographs kept bright (the page
   banners carry their title over the lower edge of the photo, on the lightest
   shade that keeps it readable), a classical serif (EB Garamond) for headings,
   a clean sans (Hanken Grotesk) for reading, softly rounded corners, and one
   sand-coloured action.

   Contents
   1. Tokens       5. Buttons        9. Plain lists        13. Gallery
   2. Base         6. Hero          10. Guest quotes       14. Tables, lists, accordion
   3. Layout       7. Intro         11. Closing photo      15. Compendium
   4. Header       8. Rooms, splits 12. Footer             16. Dialog, book bar  17. Motion
   (6. Hero and 11. Closing photo are both the .banner block)
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --surface: #f4f4f2;       /* the lightest warm grey: bands, footer, strips */
  --ink: #2a2623;           /* warm charcoal for text */
  --muted: #6b655e;         /* secondary notes only */
  --line: #dcd8d2;          /* table rules */
  --sand: #b19f8c;          /* Mt Michael sand, as in the logo */
  --accent: #a5917c;        /* the same sand a touch deeper, so white lettering reads on it */
  --accent-press: #927e69;
  --accent-ink: #fff;

  --font-display: "EB Garamond", Garamond, "Hoefler Text", "Times New Roman", serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step-small: 1rem;                                           /* 16px */
  --step-body: clamp(1.0625rem, 1.03rem + 0.14vw, 1.125rem);    /* 17–18px */
  --step-lead: clamp(1.4375rem, 1.3rem + 0.6vw, 1.8125rem);     /* 23–29px, serif */
  --step-title: clamp(2.125rem, 1.55rem + 2.4vw, 3.375rem);     /* 34–54px: section headings */
  --step-head: clamp(2.75rem, 1.8rem + 3.9vw, 4.75rem);         /* 44–76px: the page title */
  --step-label: 0.8125rem;                                      /* 13px capitals: menu and buttons */

  --margin: clamp(1.25rem, 2.6vw, 2.5rem);
  --pad: max(var(--margin), calc((100% - 90rem) / 2));          /* one pair of page margins */
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(5.5rem, 11vw, 11rem);
  --header-h: 5rem;
  --offer-h: 2.5rem;
  --radius: 6px;                                                /* photographs, buttons, panels */
  --adjust-text: 0.493;                                         /* x-height of Hanken Grotesk, as a share of the font size */
  --adjust-display: 0.405;                                      /* x-height of EB Garamond */
  color-scheme: light;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 200ms;
}

/* 2. Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

/* Fonts: EB Garamond and Hanken Grotesk (both SIL Open Font Licence), served from this site.
   Each family is one variable file per alphabet; the browser only fetches the ones a page uses. */
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/eb-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/eb-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text); font-size-adjust: var(--adjust-text);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
html { scroll-padding-top: calc(var(--header-h) + 1.5rem); }   /* nothing lands underneath the sticky header */
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display); font-size-adjust: var(--adjust-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: var(--step-head); letter-spacing: -0.015em; }
h2 { font-size: var(--step-title); letter-spacing: -0.01em; }
h3 { font-size: var(--step-lead); line-height: 1.2; }

/* small capitals for the menu, buttons and other controls */
.label, .site-nav > a, .button, .menu-toggle, .text-link, .jump a, .film__close {
  font-family: var(--font-text); font-size-adjust: var(--adjust-text);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

.lead { font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-size: var(--step-lead); line-height: 1.35; max-width: 38ch; }
.small { font-size: var(--step-small); line-height: 1.6; }
.muted { color: var(--muted); }

.text-link {
  position: relative;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
}
.text-link::after { content: ""; position: absolute; inset: -0.7rem -0.5rem; } /* a taller place to press than the words alone */

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--margin); top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--ink); color: #fff;
}
.skip:focus { top: 0.5rem; }

/* 3. Layout ---------------------------------------------------------------- */

/* text and pictures share one pair of margins; very wide screens keep a 1440px measure */
.wrap { padding-inline: var(--pad); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.section { padding-block: calc(var(--section) / 2); }
.section--first { padding-top: clamp(2.5rem, 4.5vw, 4.5rem); }
.section--last { padding-bottom: var(--section); }
.section--tone { background: var(--surface); padding-block: var(--section); margin-block: calc(var(--section) / 2); }
.section--tone.section--end { margin-bottom: 0; }

/* 4. Header ---------------------------------------------------------------- */

.offer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--offer-h);
  max-width: none;
  padding: 0.5rem var(--margin);
  background: var(--surface);
  font-size: var(--step-small);
  line-height: 1.4;
  text-align: center;
}
.offer__short { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-inline: var(--pad);
  container: site-header / scroll-state;   /* lets the stylesheet know when the bar is stuck to the top */
}
/* The bar's surface is drawn on a layer of its own, so its bottom edge can appear once the bar is stuck */
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--bg);
  border-bottom: 1px solid transparent; /* taste-skill-ignore: the sticky header's edge, shown only once it is stuck */
  transition: border-color 300ms ease;
}
@container site-header scroll-state(stuck: top) {
  .site-header::before { border-bottom-color: var(--line); }
}
.is-scrolled .site-header::before { border-bottom-color: var(--line); }   /* set by script where the query above is not supported */

.brand { display: block; flex: none; }
.brand img { width: 7.75rem; background: none; }

.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }

.site-nav > a:not(.button) {
  padding-block: 0.5rem;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.6em;
}
.site-nav > a[aria-current="page"] { text-decoration-line: underline; }

.menu-toggle {
  display: none;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
}

.site-nav__extra { display: none; }

@media (min-width: 54em) {
  .site-nav > a:not(.button) { position: relative; }
  .site-nav > a:not(.button)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem;
    height: 1px; /* taste-skill-ignore: a link underline */
    background: currentColor;
    transform: scaleX(0); transform-origin: 0 50%;
    transition: transform 400ms var(--ease-out);
  }
  .site-nav > a[aria-current="page"] { text-decoration-line: none; }
  .site-nav > a[aria-current="page"]::after { transform: none; }
}
.text-link { transition: text-underline-offset 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .site-nav > a:not(.button):hover::after { transform: none; }
  .text-link:hover { text-underline-offset: 0.3em; }
}

@media (max-width: 53.99em) {
  .offer__long { display: none; }
  .offer__short { display: inline; }

  .js .menu-toggle { display: block; position: relative; z-index: 62; }

  /* the menu is a sheet that drops from the top and is only as tall as what it holds;
     the page shows, dimmed, beneath it */
  .js .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    max-height: 100dvh;
    padding: calc(var(--menu-top, var(--header-h)) + 0.75rem) var(--margin) 1.75rem;   /* --menu-top: where the header ends, set by the script */
    background: var(--bg);
    overflow: hidden auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 300ms ease, visibility 0s linear 300ms;
  }
  .js.menu-open .site-nav { visibility: visible; opacity: 1; transition-delay: 0s; }

  .js .site-nav > a:not(.button) {
    width: 100%;
    padding-block: 0.6rem;
    font-family: var(--font-display); font-size-adjust: var(--adjust-display);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
  }
  .js .site-nav .button { margin-top: 1rem; }
  .js .site-nav__extra { display: block; margin-top: 1.25rem; font-size: 0.9375rem; line-height: 1.9; color: var(--muted); }
  .js .site-nav__extra a { text-decoration: none; }
  /* the dimmed page behind the open menu; a tap on it closes the menu */
  .js.menu-open .site-header::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgb(42 38 35 / 0.3); /* taste-skill-ignore: scrim behind an open menu */ }

  /* the offer strip is a quiet line on a phone */
  :root { --offer-h: 2.125rem; }
  .offer { padding-block: 0.4rem; font-size: 0.8125rem; }

  .menu-open .brand { position: relative; z-index: 62; }
  .menu-open { overflow: hidden; }

  /* without JavaScript the links simply sit in the bar */
  html:not(.js) .site-header { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 1rem; }
}

/* 5. Buttons --------------------------------------------------------------- */

.button {
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.6rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.button:active { transform: translateY(1px); }
.button--paper { background: var(--bg); color: var(--ink); }
.button--small { min-height: 2.5rem; padding-inline: 1.25rem; }
.button svg { width: 0.7rem; height: 0.8rem; fill: currentColor; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-press); }
  .button--paper:hover { background: var(--surface); }
}

/* 6. Banner: a wide photograph with the page title over its lower edge -------
   Used at the top of every page and again for the closing invitation. It stops
   short of the full screen so the start of the page shows beneath it.        */

.banner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  margin-inline: var(--pad);
  min-height: clamp(24rem, calc((100svh - var(--offer-h) - var(--header-h)) * 0.74), 50rem);
  border-radius: var(--radius);
  overflow: clip;
  background: var(--accent);
  color: #fff;
}
.banner--page { min-height: clamp(22rem, calc((100svh - var(--header-h)) * 0.62), 40rem); }
.banner--closing { min-height: clamp(22rem, 58svh, 38rem); margin-block: calc(var(--section) / 2); }

.banner__photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}

/* only the lower part of the photograph is shaded, and only lightly, so the picture stays bright */
.banner::after {
  content: ""; position: absolute; inset: auto 0 0 0; z-index: -1; height: 52%;
  background: linear-gradient(to top, rgb(0 0 0 / 0.46), rgb(0 0 0 / 0)); /* taste-skill-ignore: neutral scrim under the title */
  pointer-events: none;
}

.banner__text {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  padding: clamp(1.25rem, 2.6vw, 2.5rem);
  text-shadow: 0 1px 1.25rem rgb(0 0 0 / 0.35); /* taste-skill-ignore: keeps white type readable without darkening the photo */
}
.banner__text h1, .banner__text h2 { font-size: var(--step-head); }
.banner--closing .banner__text h2 { font-size: var(--step-title); }

.banner__aside {
  display: grid;
  justify-items: end;
  gap: 1.25rem;
  max-width: 27rem;
  text-align: right;
}
.banner__aside p { font-size: 1.125rem; line-height: 1.5; text-shadow: 0 0 0.3rem rgb(0 0 0 / 0.5), 0 1px 1.25rem rgb(0 0 0 / 0.5); /* taste-skill-ignore: keeps the sentence readable over pale roofs and sky without darkening the photo */ }
.banner__aside .button { text-shadow: none; /* taste-skill-ignore: this removes a shadow */ }
.banner__aside .text-link { text-underline-offset: 0.45em; }

/* the home banner's title is the lettering from the logo, in white */
.banner__logo {
  display: block;
  width: clamp(10rem, 15vw, 13.5rem);
  height: auto;
  background: none;
  filter: brightness(0) invert(1) drop-shadow(0 1px 1rem rgb(0 0 0 / 0.35)); /* taste-skill-ignore: the sand logo shown in white, lifted off the photo */
}

/* the wine tour banner shows the Wine Tours emblem in the same place */
.banner__logo--emblem { width: clamp(10.5rem, 15vw, 13.5rem); }

@media (max-width: 47.99em) {
  /* on a phone the header's logo sits directly above the home banner, so the banner does not repeat it */
  .banner__logo:not(.banner__logo--emblem) { display: none; }
  .section--tone { padding-block: calc(var(--section) * 0.7); }
}
@media (max-width: 53.99em) {
  .banner { min-height: clamp(24rem, calc((100svh - var(--offer-h) - var(--header-h)) * 0.76), 50rem); }
  .banner--page { min-height: clamp(22rem, calc((100svh - var(--header-h)) * 0.66), 40rem); }
  .banner--closing { min-height: 30rem; }
  .banner::after { height: 68%; }
  .banner__text { flex-direction: column; align-items: flex-start; }
  .banner__aside { justify-items: start; text-align: left; }
  .banner__logo { width: min(10.5rem, 50%); }
  .banner__logo--emblem { width: min(9.5rem, 46%); }
  /* on narrow screens the wine tour photograph is drawn in closer, so the emblem sits on the vines and not the sky */
  .banner:has(.banner__logo--emblem) .banner__photo { transform: scale(1.4); transform-origin: 50% 100%; }
}

/* 7. Intro ----------------------------------------------------------------- */

.intro__head { grid-column: 1 / span 5; }
.intro__body { grid-column: 7 / -1; }
.intro__body .lead { margin-bottom: 1.5rem; }


@media (max-width: 53.99em) {
  .intro__head, .intro__body { grid-column: 1 / -1; }
  .intro__head { margin-bottom: 1.5rem; }
}

/* 8. Rooms row, and the photo-and-text sections --------------------------- */

.rooms-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.rooms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) var(--gutter); }

.room-card { display: block; text-decoration: none; }
.room-card__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.room-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.room-card h3 { margin-top: 1.1rem; }
.room-card p { margin-top: 0.3rem; font-size: var(--step-small); color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .room-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
}
@media (max-width: 53.99em) {
  .rooms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* the three rooms shown beneath the featured one: smaller, landscape pictures */
.rooms-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rooms-grid--three .room-card__photo { aspect-ratio: 4 / 3; }
@media (max-width: 39.99em) {
  /* on a phone they become a short list: a small picture with the name and rate beside it */
  .rooms-grid--three { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .rooms-grid--three .room-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); column-gap: 1.1rem; }
  .rooms-grid--three .room-card__photo { grid-row: 1 / span 2; }
  .rooms-grid--three .room-card h3 { align-self: end; margin-top: 0; }
  .rooms-grid--three .room-card p { align-self: start; }
}

/* one picture, one block of text; every section uses the same proportions */
.split { align-items: center; }
.split__media { position: relative; grid-column: 1 / span 7; }
.split__text { grid-column: 9 / -1; }
.split--flip .split__media { grid-column: 6 / -1; order: 2; }
.split--flip .split__text { grid-column: 1 / span 4; order: 1; }
.split--top { align-items: start; }

.split__media > img { width: 100%; aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; object-position: var(--focus, 50% 50%); border-radius: var(--radius); }
.split__media:has(> img) { overflow: hidden; border-radius: var(--radius); }
.split__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.split__play:active { transform: translate(-50%, calc(-50% + 1px)); }

.split__text h2 + p, .split__text h1 + p { margin-top: 1.5rem; }
.split__text .button, .split__text .text-link { margin-top: 1.75rem; }
.split__text .text-link { display: inline-block; }
.split__text .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 1.75rem; }
.split__text .actions > * { margin-top: 0; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem var(--gutter); margin-top: 2rem; }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { line-height: 1.45; }

@media (max-width: 53.99em) {
  .split__media, .split--flip .split__media, .split__text, .split--flip .split__text { grid-column: 1 / -1; order: 0; }
  .split__text { padding-top: 1.75rem; }
}

/* 9. Plain lists ----------------------------------------------------------- */

/* The map is drawn in the page (no map service to load): lakes, highways and towns
   from OpenStreetMap, in the site's own colours. Sizes are in the drawing's units. */
.map { position: relative; display: block; margin: 0; background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.map__link { display: block; }
.map__drawing { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.map__water { fill: #dbe6e8; }
.map__river { fill: none; stroke: #dbe6e8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map__road { fill: none; stroke: var(--sand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.map__road--minor { stroke-width: 1.1; stroke-dasharray: 1 4; }
.map__drawing text { paint-order: stroke; stroke: var(--bg); stroke-width: 3.5px; stroke-linejoin: round; }
.map__town circle { fill: var(--ink); }
.map__town text { font: 600 13px var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; fill: var(--ink); }
.map__village circle { fill: var(--bg); stroke: var(--ink); stroke-width: 1.2; }
.map__village text { font: 400 12.5px var(--font-text); fill: var(--muted); }
.map__lake { font: italic 400 15px var(--font-display); fill: #6f8a94; }
.map__range { font: 500 10.5px var(--font-text); letter-spacing: 0.3em; text-transform: uppercase; fill: #a8a29a; }
.map__scale path { fill: none; stroke: var(--muted); stroke-width: 1; }
.map__scale text { font: 500 10.5px var(--font-text); letter-spacing: 0.1em; fill: var(--muted); }
.map__pin { fill: var(--accent); stroke: var(--bg); stroke-width: 3; }
.map__pulse { fill: var(--accent); opacity: 0.25; transform-box: fill-box; transform-origin: center; scale: 1.9; }
.map__lodge text { font: 500 21px var(--font-display); fill: var(--ink); stroke-width: 5px; }
.map__credit { position: absolute; right: 0.75rem; bottom: 0.5rem; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 47.99em) {
  /* on a phone the drawing is cropped closer and only the main names are kept, set larger */
  .map__drawing { aspect-ratio: 1; }
  .map__village, .map__range, .map__scale, .map__lake--edge { display: none; }
  .map__flip text { text-anchor: end; transform: translate(-26px, 0); }
  .map__credit { right: auto; left: 0.75rem; }
  .map__credit span { display: none; }
  .map__town text { font-size: 21px; }
  .map__town circle { r: 5px; }
  .map__lake { font-size: 23px; }
  .map__lodge text { font-size: 30px; }
  .map__pin { r: 11px; }
  .map__road { stroke-width: 2.4; }
}

.plain-list { display: grid; gap: 0.4rem; }
.plain-list--two { grid-template-columns: 1fr; margin-top: 1.5rem; font-size: var(--step-small); }
.plain-list--two + p { margin-top: 1.5rem; font-size: var(--step-small); }

/* 10. Guest quotes --------------------------------------------------------- */

.quotes__head { grid-column: 1 / span 4; }
.quotes__list { grid-column: 6 / -1; display: grid; gap: clamp(3rem, 6vw, 5rem); }
.quotes__list blockquote p:first-child {
  font-family: var(--font-display); font-size-adjust: var(--adjust-display);
  font-size: clamp(1.5rem, 1.17rem + 1.25vw, 2.25rem);
  letter-spacing: -0.005em;
  line-height: 1.25;
  max-width: 44ch;
}
.quotes__list blockquote p + p { margin-top: 1.25rem; max-width: 52ch; }
.quotes__list .quotes__by { margin-top: 1.25rem; font-size: var(--step-small); color: var(--muted); }
/* the rating: five small stars in the lodge's sand colour, sitting quietly above the guest's name */
.quotes__list .quotes__by { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.stars { flex: none; width: 4.25rem; height: 0.75rem; fill: var(--accent); }

@media (max-width: 53.99em) {
  .quotes__head, .quotes__list { grid-column: 1 / -1; }
  .quotes__head { margin-bottom: 2rem; }
}

/* 11. Closing photograph: see .banner--closing in section 6 ---------------- */

/* 12. Footer --------------------------------------------------------------- */

.site-footer { background: var(--accent); color: var(--accent-ink); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; font-size: 1.0625rem; font-weight: 500; line-height: 1.75; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem var(--gutter); }
.footer-brand img { width: 9rem; background: none; filter: brightness(0) invert(1); /* the sand logo, shown in white */ }
.footer-brand p { margin-top: 1.5rem; max-width: 26ch; }
.site-footer h2 { font-size: var(--step-lead); margin-bottom: 0.9rem; }
.site-footer address { font-style: normal; }
.site-footer a { text-decoration: none; }
.footer-links { display: grid; gap: 0.2rem; justify-items: start; }
.footer-imprint { grid-column: 1 / -1; margin-top: clamp(2rem, 5vw, 4rem); max-width: none; }

@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
}
@media (max-width: 53.99em) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 39.99em) {
  /* phones: a short, orderly footer. One line about the lodge; then Visit and Explore side by side
     with every line on the same 32px pitch so the two columns read across; then Contact on the
     same two columns; then the small print. (The owner found a 44px pitch too airy here.) */
  .site-footer { padding-block: 2.5rem 1.25rem; font-size: 1rem; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr; gap: 1.5rem 1.25rem; }
  .footer-brand img { display: none; }   /* the header already carries the logo on a phone */
  .footer-brand p { margin-top: 0; max-width: none; line-height: 1.5; }
  .site-footer h2 { margin-bottom: 0.3rem; }
  .site-footer address { line-height: 2rem; }
  .site-footer .footer-links { gap: 0; }
  .site-footer .footer-links a, .site-footer .footer-visit address + a { display: block; min-height: 2rem; padding-block: 0; line-height: 2rem; }
  .footer-contact { grid-column: 1 / -1; }
  .site-footer .footer-contact .footer-links { display: grid; grid-template-columns: 1.2fr 0.8fr; column-gap: 1.25rem; }
  .footer-contact .footer-links a:last-child { grid-column: 1 / -1; }
  .footer-imprint { margin-top: 0; font-size: 0.8125rem; }
}
}

/* 13. Gallery: one photograph at a time; swipe, arrow keys or the buttons -- */

.split__text p.room__rate { margin-top: 0.6rem; font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-size: var(--step-lead); line-height: 1.3; color: var(--muted); }
.split__text p.room__rate + p { margin-top: 1.5rem; }
.room__facts { margin-top: 1.5rem; display: grid; gap: 0.3rem; font-size: var(--step-small); color: var(--muted); }

.gallery { position: relative; }
.gallery__frame { position: relative; }
.gallery__track {
  position: relative;            /* photographs are measured from the row itself */
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: manipulation;    /* a quick tap never zooms the page */
  border-radius: var(--radius);
  background: var(--surface);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 5 / 4; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }

/* An endless row. The script keeps --current (the photo showing, counted from 0) on the row; the
   first photo then parks after the last, or the last before the first, so there is always a
   neighbour on both sides. Nothing is copied or moved in the page. Without the script, or where a
   browser cannot count siblings in CSS, nothing is parked and the row simply has two ends. */
@supports (order: sibling-count()) {
  .gallery__track > :first-child { order: clamp(0, var(--current) - (sibling-count() - 3), 1); }
  .gallery__track > :last-child { order: calc(-1 * clamp(0, 2 - var(--current), 1)); }
  /* with exactly three photos there is no room to park a step early, so they park on arrival */
  .gallery__track:has(> :last-child:nth-child(3)) > :first-child { order: clamp(0, var(--current) - 1, 1); }
  .gallery__track:has(> :last-child:nth-child(3)) > :last-child { order: calc(-1 * clamp(0, 1 - var(--current), 1)); }
}

.gallery__controls {
  position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 1;
  display: flex; align-items: stretch;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: var(--bg);
}
.gallery__button {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  touch-action: manipulation;
  transition: background-color var(--t-hover) ease, opacity var(--t-hover) ease;
}
.gallery__button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.25; }
.gallery__button[disabled] { opacity: 0.3; cursor: default; }

/* a dot for each photograph: a ring for the ones not showing, filled for the one that is */
.gallery__markers { display: flex; justify-content: center; margin-top: 0.4rem; min-height: 1.5rem; }
.gallery__markers button { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; touch-action: manipulation; }
.gallery__markers button::before {
  content: "";
  width: 0.4375rem; height: 0.4375rem;
  border: 1px solid var(--muted); /* taste-skill-ignore: the ring of a dot */
  border-radius: 50%;
  transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.gallery__markers button[aria-current="true"]::before { background: var(--ink); border-color: var(--ink); }
html:not(.js) .gallery__controls, html:not(.js) .gallery__markers { display: none; }

@media (hover: hover) and (pointer: fine) {
  .gallery__button:not([disabled]):hover { background: var(--surface); }
  .gallery__markers button:not([aria-current="true"]):hover::before { background: var(--line); }
}
@media (max-width: 47.99em) {
  .gallery__slide { aspect-ratio: 1; }
}

/* 14. Tables, lists and the winery accordion ------------------------------- */

.aside-head { grid-column: 1 / span 4; }
.aside-head p { margin-top: 1.25rem; max-width: 32ch; }
.aside-head .text-link { display: inline-block; margin-top: 1.5rem; }
.aside-body { grid-column: 6 / -1; }

.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { padding: 1.15rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.rates tr:first-child th, .rates tr:first-child td { border-top: 1px solid var(--line); }
.rates th { width: 28%; padding-right: 1.5rem; font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-size: var(--step-lead); line-height: 1.2; }
.rates th a { text-decoration: none; }
.rates td { font-size: var(--step-small); color: var(--muted); padding-right: 1.5rem; }
.rates td:last-child { padding-right: 0; text-align: right; white-space: nowrap; color: var(--ink); font-size: var(--step-body); font-variant-numeric: tabular-nums; }

.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); font-size: var(--step-small); }
.two-lists h3 { margin-bottom: 0.9rem; }

/* each winery opens on its own, so the page stays short until someone asks for more */
.accordion details + details { margin-top: 0.35rem; }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
  font-family: var(--font-display); font-size-adjust: var(--adjust-display);
  font-size: var(--step-lead);
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: none;
  width: 0.6rem; height: 0.6rem;
  margin: 0 0.4rem 0.3rem 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 400ms var(--ease-out);
}
.accordion details[open] summary::after { transform: translateY(0.3rem) rotate(-135deg); }
.accordion details p { padding: 0.25rem 3rem 1.5rem 0; font-size: var(--step-small); line-height: 1.7; max-width: 64ch; }

/* opening and closing slide rather than jump, where the browser can animate to a natural height */
.accordion details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.accordion details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .accordion details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 450ms;
    transition-timing-function: var(--ease-out);
    transition-behavior: allow-discrete;
  }
}

.booking__form { background: var(--bg); padding: clamp(1rem, 2.5vw, 2rem); min-height: 20rem; border-radius: var(--radius); }
.booking__form iframe { display: block; width: 100%; border: 0; }

@media (max-width: 53.99em) {
  .aside-head, .aside-body { grid-column: 1 / -1; }
  .aside-body { margin-top: 2.25rem; }
  .rates th { width: auto; }
  .rates td:nth-child(2) { display: none; }
  .two-lists { grid-template-columns: 1fr; }
  .booking__form { margin-inline: calc(var(--margin) * -0.5); }
  .accordion details p { padding-right: 1.5rem; }
}

/* 15. Compendium ----------------------------------------------------------- */

/* the bar of section links: as wide as the banner above it. It stays where it is and scrolls away with the page */
.jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 2.5rem;
  margin: 1rem var(--pad) 0;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  background: #e9e8e4; /* a step deeper than the grey bands, so the bar still shows when it passes over them */
  color: var(--ink);
}
.jump a { padding-block: 0.5rem; text-decoration: none; white-space: nowrap; }

.guide__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem var(--gutter); align-content: start; }
.guide__list dt { font-family: var(--font-display); font-size-adjust: var(--adjust-display); font-size: var(--step-lead); line-height: 1.2; }
.guide__list dd { margin-top: 0.5rem; max-width: 68ch; font-size: var(--step-small); line-height: 1.7; }
.guide__list dd a { font-weight: 500; }
.guide__urgent { margin-bottom: 3rem; padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--bg); border-radius: var(--radius); }
.guide__urgent p { max-width: 58ch; }
.guide__urgent strong { font-weight: 600; }
.guide__photo { margin-top: 2.5rem; }
.guide__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.guide__photo figcaption { margin-top: 0.5rem; font-size: var(--step-small); color: var(--muted); }
.guide__prose h3:not(:first-child) { margin-top: 3rem; }
.guide__prose h3 + p { margin-top: 1rem; }
.guide__prose .button { margin: 1.75rem 0.75rem 0 0; }

@media (hover: hover) and (pointer: fine) {
  .jump a:hover { text-decoration: underline; text-underline-offset: 0.5em; }
}
@media (max-width: 53.99em) {
  .guide__list { grid-template-columns: 1fr; gap: 2rem; }
  .guide__urgent { margin-bottom: 2.25rem; }
  /* on narrow screens the bar is one row that slides sideways, not three stacked rows */
  .jump {
    flex-wrap: nowrap;
    justify-content: flex-start; justify-content: safe center;
    gap: 0 1.5rem;
    padding-inline: 1rem;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .jump::-webkit-scrollbar { display: none; }
}

/* 16. Dialog, book bar, not-found, motion ---------------------------------- */

.film { width: min(64rem, calc(100vw - 2 * var(--margin))); padding: 0; border: 0; border-radius: var(--radius); background: #000; color: #fff; overflow: visible; }
.film__frame { border-radius: var(--radius); overflow: hidden; }
.film::backdrop { background: rgb(20 18 16 / 0.86); }
.film__frame { aspect-ratio: 940 / 394; }
.film__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.film__close { position: absolute; right: 0; bottom: 100%; min-height: 2.75rem; padding-inline: 0.25rem; }

.book-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem var(--margin) calc(0.625rem + env(safe-area-inset-bottom));
  background: var(--surface);
  font-size: var(--step-small);
  line-height: 1.3;
  white-space: nowrap;
  transform: translateY(101%);
  transition: transform 500ms var(--ease-out);
}
.book-bar.is-up { transform: none; }
.book-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.book-bar .button { flex: none; }

@media (max-width: 53.99em) {
  .js .book-bar { display: flex; }
}

.lost { min-height: 62svh; align-items: center; }
.lost .split__text .text-link { margin-left: 1.25rem; }

/* Pressing: every link answers the moment it is touched, before the page changes */
.text-link:active, .site-nav > a:not(.button):active, .jump a:active, .rates th a:active, .accordion summary:active { color: var(--muted); }
.banner .text-link:active { color: inherit; text-decoration-color: transparent; }
.room-card:active .room-card__photo, .site-footer a:active, .map__link:active { opacity: 0.75; }
.gallery__button:not([disabled]):active { background: var(--surface); }

/* Touch screens: every control is at least 44px tall. The look is unchanged; only the
   place you can press grows. */
@media (pointer: coarse) {
  .button--small { min-height: 2.75rem; }
  .jump a { padding-block: 0.7rem; }
  .footer-links { gap: 0; }
  .footer-links a, .site-footer address + a { display: inline-block; min-width: 2.75rem; min-height: 2.75rem; padding-block: 0.5rem; }
  main a[href^="tel:"] { display: inline-block; padding-block: 0.7rem; margin-block: -0.7rem; }
  .rates th a { display: inline-block; padding-block: 0.55rem; margin-block: -0.55rem; }
  .guide__list dd a { display: inline-block; padding-block: 0.7rem; margin-block: -0.7rem; }
  .map__credit a { position: relative; }
  .map__credit a::after { content: ""; position: absolute; inset: -0.9rem -0.5rem; }
  .gallery__markers button { width: 1.75rem; height: 2.75rem; }
}
@media (pointer: coarse) and (min-width: 54em) {
  .site-nav > a:not(.button) { padding-block: 0.75rem; }
}

/* People who ask their device for more contrast get a deeper accent, firmer greys
   and a stronger shade under banner titles */
@media (prefers-contrast: more) {
  :root { --accent: #6b5a48; --accent-press: #584a3b; --muted: #4d4741; --line: #8d877f; }
  .banner::after { height: 75%; background: linear-gradient(to top, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0)); /* taste-skill-ignore: neutral scrim, stronger on request */ }
}

/* 17. Motion: slow and quiet -------------------------------------------------
   Nothing here is needed to read or use the site. Each piece has one job:
   - pages fade into one another instead of flashing white
   - the opening photograph settles and its title rises, once, as the page arrives
   - sections fade up, and their photographs settle, the first time they are seen
   - the roads on the map draw themselves, then the lodge appears
   - banner photographs drift a little slower than the page (where supported)
   People who ask their device for less motion get none of the movement.       */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 450ms; animation-timing-function: var(--ease-soft); }
.site-header { view-transition-name: site-header; }

@media (prefers-reduced-motion: no-preference) {
  /* sections arrive */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 1100ms var(--ease-soft), transform 1300ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 110ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* their photographs ease back into the frame */
  .split__media > img, .room-card__photo img { transition: scale 1600ms var(--ease-out); }
  .js .split__media[data-reveal]:not(.is-in) > img,
  .js .room-card[data-reveal]:not(.is-in) .room-card__photo img { scale: 1.06; }

  /* the top banner, once, on arrival */
  .banner__photo { animation: banner-settle 2800ms var(--ease-out) both; }
  .banner:not(.banner--closing) h1:not(.sr-only) { animation: rise 1400ms var(--ease-out) 150ms both; }
  .banner:not(.banner--closing) .banner__aside > * { animation: rise 1400ms var(--ease-out) 320ms both; }
  .banner:not(.banner--closing) .banner__aside > * + * { animation-delay: 460ms; }
  .banner--closing .banner__photo { animation: none; }

  /* banner photographs move a touch slower than the page */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .banner__photo {
      inset: -6% 0; height: 112%;
      animation: banner-settle 2800ms var(--ease-out) both, banner-drift linear both;
      animation-timeline: auto, view();
      animation-range: normal, cover;
    }
    .banner--closing .banner__photo { animation: banner-drift linear both; animation-timeline: view(); animation-range: cover; }

    /* The home banner has real depth: while the banner scrolls away, its photograph travels down
       inside the frame, so it leaves the screen more slowly than the page around it. The banner's
       own progress across the screen is the clock, counted from the moment its top edge slips under
       the header, so the frame never shows an empty strip above the photograph. */
    .banner--home { view-timeline: --home-banner block; view-timeline-inset: var(--header-h) 0px; }
    .banner--home .banner__photo {
      inset: 0; height: 100%;
      animation: banner-settle 2800ms var(--ease-out) both, banner-depth linear both;
      animation-timeline: auto, --home-banner;
      animation-range: normal, exit 0% exit 100%;
    }
  }

  /* the map: roads draw in, then the lodge */
  .js .map[data-reveal] .map__roads .map__road { stroke-dasharray: 1 1.5; stroke-dashoffset: 1.01; transition: stroke-dashoffset 2600ms cubic-bezier(0.65, 0, 0.35, 1) 350ms; }
  .js .map[data-reveal].is-in .map__roads .map__road { stroke-dashoffset: 0; }
  .js .map[data-reveal] .map__lodge { opacity: 0; transition: opacity 900ms var(--ease-soft) 2300ms; }
  .js .map[data-reveal].is-in .map__lodge { opacity: 1; }
  .map__pulse { animation: map-pulse 3600ms var(--ease-out) infinite; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .room-card:hover .room-card__photo img { scale: 1.035; }
  .map__pin { transform-box: fill-box; transform-origin: center; transition: scale 500ms var(--ease-out); }
  .map__link:hover .map__pin { scale: 1.15; }
}

@keyframes banner-settle { from { scale: 1.07; } }
@keyframes banner-drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
@keyframes banner-depth { to { translate: 0 28%; } }
@keyframes rise { from { opacity: 0; translate: 0 1rem; } }
@keyframes map-pulse { from { scale: 1; opacity: 0.4; } 70%, to { scale: 2.8; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .map__pulse { animation: none; }
}

/* Phones: with the booking bar at the bottom, focused controls stop above it */
@media (max-width: 53.99em) {
  html:has(body.has-book-bar) { scroll-padding-bottom: 4.5rem; }
}

/* Windows high-contrast and similar modes repaint backgrounds, so shapes that were only a
   fill get an outline to stay visible as buttons */
@media (forced-colors: active) {
  .button, .gallery__controls, .jump, .book-bar { border: 1px solid ButtonText; }
  .site-header::before { border-bottom-color: CanvasText; }
}

@media print {
  .offer, .site-header, .book-bar, .jump { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
