/* Landers Landing — the cabin guestbook.
   A dark walnut table under lamplight; an open book of ruled paper; a forest-green
   bookcloth cover with a gold stamp; blue ballpoint for everything written by hand;
   red rubber-stamp ink for dates and the one action that matters. */

:root {
  --table: #2b2622;
  --table-2: #1d1916;
  --lamp: rgba(255, 196, 120, 0.16);
  --paper: #e9dcc3;
  --paper-2: #e0d0b2;
  --paper-edge: #cdbb97;
  --rule: rgba(31, 58, 147, 0.16);
  --margin: rgba(184, 56, 43, 0.42);
  --ink: #1f3a93;
  --ink-soft: #2c4aa8;
  --text: #2b2622;
  --text-soft: #5a4f45;
  --stamp: #b8382b;
  --stamp-dark: #8f2a20;
  --cloth: #2f5438;
  --cloth-2: #24432b;
  --cloth-3: #3b6646;
  --gold: #dcbb4f;
  --gold-2: #efd98a;
  --tape: rgba(236, 222, 180, 0.82);
  --photo-border: #f6f1e6;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6), 0 6px 14px -8px rgba(0, 0, 0, 0.45);
  --font-hand: "Homemade Apple", "Bradley Hand", cursive;
  --font-print: "Reenie Beanie", "Marker Felt", cursive;
  --font-body: "Literata", Georgia, "Times New Roman", serif;
  --font-stamp: "Castoro Titling", "Copperplate", Georgia, serif;
  --page-pad: clamp(1.25rem, 3.2vw, 3rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--table-2) url("../img/wood-grain-v2.jpg") 0 0 / 1280px repeat;
  background-attachment: fixed;
  min-height: 100vh;
  font-variant-numeric: oldstyle-nums;
}
body::before {
  /* the lamp */
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 12%, var(--lamp), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 60%);
}
::selection { background: rgba(31, 58, 147, 0.25); color: var(--text); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ----------------------------------------------------------- the book */
.book {
  position: relative; z-index: 1;
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 4vh, 3rem) clamp(0.75rem, 3vw, 2.5rem) 0;
}
.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  margin-bottom: clamp(2rem, 6vh, 4.5rem);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}
.spread::before {
  /* the spine: a dark gutter pressed between the pages */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 56px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.22) 38%, rgba(0, 0, 0, 0.38) 50%, rgba(0, 0, 0, 0.22) 62%, transparent);
  z-index: 3; pointer-events: none; border-radius: 0;
}
.page {
  position: relative;
  min-height: min(60vh, 640px);
  padding: var(--page-pad);
  overflow: hidden;
}
.page-paper {
  color: var(--text);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px),
    linear-gradient(90deg, transparent calc(var(--page-pad) - 14px), var(--margin) calc(var(--page-pad) - 14px), var(--margin) calc(var(--page-pad) - 13px), transparent calc(var(--page-pad) - 13px)),
    url("../img/paper-grain.png");
  background-size: auto 32px, 100% 100%, 256px 256px;
  background-blend-mode: normal, normal, multiply;
  background-position: 0 1.25rem, 0 0, 0 0;
}
.spread > .page:first-child { border-radius: 6px 2px 2px 6px; }
.spread > .page:last-child { border-radius: 2px 6px 6px 2px; }
.spread > .page:first-child.page-paper { box-shadow: inset -40px 0 50px -40px rgba(0, 0, 0, 0.35); }
.spread > .page:last-child.page-paper { box-shadow: inset 40px 0 50px -40px rgba(0, 0, 0, 0.35); }
/* stacked page edges on the outer sides */
.spread > .page:first-child::after, .spread > .page:last-child::after {
  content: ""; position: absolute; top: 6px; bottom: 6px; width: 10px; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(180deg, var(--paper-edge) 0 1px, transparent 1px 3px);
  opacity: .7;
}
.spread > .page:first-child::after { left: 0; }
.spread > .page:last-child::after { right: 0; }
.spread-wide { grid-template-columns: 1fr; }
.spread-wide::before { display: none; }
.page-full { border-radius: 6px !important; box-shadow: none !important; }
.page-full::after { display: none; }

/* bookcloth cover */
.page-cloth {
  color: var(--paper);
  background-color: var(--cloth);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.09) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 120% 90% at 30% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(160deg, var(--cloth-3), var(--cloth) 45%, var(--cloth-2));
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.page-cloth::after { display: none; }
.page-cloth .cover-note { margin-top: auto; color: var(--gold-2); }
.stamped { text-align: center; padding-top: .5rem; }
.stamped-title {
  font-family: var(--font-stamp);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: .98;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  margin: .35rem 0 .45rem;
}
.stamped-small {
  font-family: var(--font-stamp);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .92;
  line-height: 1.7;
}
.stamped-rule { width: 120px; height: 1px; margin: .9rem auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cover-note { text-align: center; color: var(--gold-2); font-size: 1.25rem; opacity: .95; }
.stamped-hand { font-family: var(--font-print); font-size: 1.5rem; color: var(--gold-2); text-transform: none; letter-spacing: 0; line-height: 1.3; margin-top: .35rem; }

/* ----------------------------------------------------------- handwriting */
.hand { font-family: var(--font-hand); font-size: 1.05rem; line-height: 2; color: var(--ink); letter-spacing: .005em; }
.hand-small { font-size: .9rem; }
.hand-print { font-family: var(--font-print); font-size: 1.45rem; line-height: 1.35; color: var(--ink); }
.prompt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 .5rem;
}
.prompt-small { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.entry-head { margin-bottom: .75rem; }
.entry-lede { margin: .25rem 0 1.25rem; max-width: 60ch; }

/* ----------------------------------------------------------- taped photos */
.taped {
  position: relative;
  margin: 1.25rem auto;
  padding: 10px 10px 12px;
  background: var(--photo-border);
  box-shadow: var(--shadow);
  width: min(100%, 560px);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .5s var(--ease);
}
.taped:hover { transform: rotate(0deg) translateY(-2px); }
.tilt-l { --tilt: -1.4deg; }
.tilt-r { --tilt: 1.2deg; }
.taped-hero { --tilt: -1.6deg; width: min(100%, 420px); align-self: center; margin: .25rem auto; }
.taped img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(1.02) contrast(1.02); }
.taped figcaption { padding: .6rem .25rem 0; text-align: center; line-height: 1.6; text-wrap: balance; }
.taped figcaption .hand-small { color: var(--text-soft); font-family: var(--font-print); font-size: 1.1rem; }
.page-cloth .taped figcaption { color: var(--ink); }
.tape {
  position: absolute; width: 96px; height: 26px; background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); z-index: 2;
  mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.tape::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 5px); opacity: .6; }
.tape-t { top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.tape-tl { top: -10px; left: -22px; transform: rotate(-38deg); }
.tape-br { bottom: 14px; right: -26px; transform: rotate(-38deg); }

/* ----------------------------------------------------------- index tabs (nav) */
.tabs {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; z-index: 40;
}
.tab {
  display: block; text-decoration: none;
  background: var(--cloth); color: var(--paper);
  font-family: var(--font-body); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .55rem .7rem .55rem .85rem;
  border-radius: 6px 0 0 6px;
  box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.35);
  transform: translateX(8px);
  transition: transform .3s var(--ease), background .3s;
  min-width: 118px;
}
.tab:hover, .tab:focus-visible { transform: translateX(0); background: var(--cloth-3); color: var(--paper); }
.tab.is-current { transform: translateX(0); background: var(--paper); color: var(--cloth-2); }
/* a shade under --stamp: the paper-coloured label needs 4.5:1 on it (was 4.25) */
.tab-book { background: #ae3428; }
.tab-book:hover { background: var(--stamp-dark); }
.tab-book.is-current { background: var(--paper); color: var(--stamp); }

/* ----------------------------------------------------------- calendar */
.cal { margin-top: .5rem; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.cal-title { font-family: var(--font-print); font-size: 1.5rem; color: var(--ink); }
.cal-btn {
  appearance: none; border: 0; background: transparent; color: var(--ink);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.cal-btn svg { width: 22px; height: 22px; }
.cal-btn:hover { background: rgba(31, 58, 147, 0.08); transform: scale(1.06); }
.cal-btn:disabled { opacity: .3; cursor: default; transform: none; background: transparent; }
.cal-months { display: grid; grid-template-columns: 1fr; gap: 1rem 1.5rem; max-width: 420px; }
.month { min-width: 0; }
.month-name { font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin-bottom: .3rem; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dow { font-family: var(--font-print); font-size: 1rem; color: var(--text-soft); text-align: center; padding-bottom: 2px; }
.day {
  position: relative;
  appearance: none; border: 0; background: transparent; padding: 0;
  aspect-ratio: 1 / 0.92; min-height: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  font-family: var(--font-body); font-size: .95rem; line-height: 1; color: var(--text);
  cursor: pointer; border-radius: 4px;
  transition: background .15s;
}
.day .price { font-family: var(--font-print); font-size: .85rem; color: var(--text-soft); line-height: 1; margin-top: 3px; }
.day:hover:not(:disabled) { background: rgba(31, 58, 147, 0.08); }
.day:disabled { cursor: not-allowed; color: var(--text-soft); opacity: .55; }
.day.is-past { opacity: .35; }
.day.is-taken::after, .day.is-taken::before {
  content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 2px; background: var(--ink);
  transform: rotate(32deg); opacity: .75;
}
.day.is-taken::before { transform: rotate(-32deg); }
.day.is-taken .price { visibility: hidden; }
.day.in-range { background: rgba(31, 58, 147, 0.10); }
.day.in-range::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 6px; height: 2px; background: var(--ink); opacity: .5; transform: none; }
.day.is-start, .day.is-end { color: var(--ink); font-weight: 600; }
.day .ring { position: absolute; inset: -4px; pointer-events: none; }
.day .ring path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .day .ring path { animation: none; stroke-dashoffset: 0; } }
.day.is-checkout-only { color: var(--text-soft); }
.day.is-today .n { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--stamp); }
.cal-key { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .75rem; font-size: 1.2rem; color: var(--text-soft); }
.key { display: inline-flex; align-items: center; gap: .35rem; }
.key svg { width: 18px; height: 18px; color: var(--ink); }
.key svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sample-note { font-family: var(--font-print); font-size: 1.2rem; color: var(--stamp-dark); margin: -.5rem 0 .5rem; }
.cal-status { font-family: var(--font-print); font-size: 1.3rem; color: var(--stamp); min-height: 1.6rem; margin-top: .25rem; }

/* ----------------------------------------------------------- the ledger (quote) */
.quote { margin: .75rem 0 1rem; }
.ledger { margin: 0; display: grid; gap: 0; }
.ledger-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .25rem 0; border-bottom: 1px dotted rgba(43, 38, 34, 0.35); }
.ledger-row dt { font-family: var(--font-hand); font-size: .95rem; color: var(--ink); line-height: 1.6; }
.ledger-row dd { margin: 0; font-family: var(--font-body); font-size: 1.05rem; color: var(--ink); transition: opacity .25s; }
.ledger-row dd.is-changing { opacity: 0; }
.ledger-total { border-bottom: 2px solid var(--ink); border-top: 1px solid var(--ink); margin-top: .25rem; }
.ledger-total dt { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }
.ledger-total dd { font-weight: 700; font-size: 1.35rem; }
.quote-opts { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; margin-top: .75rem; }

/* ----------------------------------------------------------- fields */
.field { display: block; margin: .25rem 0 .9rem; }
.field > span { display: block; font-family: var(--font-hand); font-size: .9rem; color: var(--ink); line-height: 1.8; }
.field em { font-style: italic; font-family: var(--font-print); font-size: 1.05rem; color: var(--text-soft); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: .35rem .15rem;
  caret-color: var(--stamp); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-width: 2.5px; box-shadow: 0 1px 0 var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-soft); opacity: .75; font-family: var(--font-print); font-size: 1.15rem; }
.field textarea { resize: vertical; line-height: 1.5; }
.field select { cursor: pointer; width: auto; min-width: 5.5rem; padding-right: 1.25rem; appearance: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m6 9 6 6 6-6' fill='none' stroke='%231f3a93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right .1rem center / 16px; }
.field-inline { display: flex; align-items: baseline; gap: .6rem; margin: 0; }
.field-inline > span { display: inline; }
.check { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-hand); font-size: .9rem; color: var(--ink); cursor: pointer; line-height: 1.6; margin: .25rem 0 .75rem; }
.check input { appearance: none; width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 3px; background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.check input:checked::after { content: ""; width: 14px; height: 9px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-2px) rotate(-48deg); }
.form-error { color: var(--stamp); font-family: var(--font-print); font-size: 1.25rem; margin: .25rem 0 .5rem; }
.form-ok { margin: .25rem 0 .5rem; }
.fine { color: var(--text-soft); font-size: 1.05rem; margin-top: .75rem; }

/* ----------------------------------------------------------- stamps */
.stamp {
  display: inline-block; text-decoration: none; cursor: pointer; appearance: none; border: 0; background: transparent; padding: 0;
  transform: rotate(-2.5deg); transition: transform .25s var(--ease), filter .25s;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.08));
}
.stamp-face {
  display: inline-block;
  font-family: var(--font-stamp); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  color: var(--stamp); padding: .85rem 1.3rem;
  border: 3px double var(--stamp); border-radius: 6px;
  opacity: .9;
  box-shadow: inset 0 0 0 1px rgba(184, 56, 43, 0.25);
}
.stamp-primary .stamp-face { background: rgba(184, 56, 43, 0.07); }
.stamp:hover, .stamp:focus-visible { transform: rotate(-1deg) scale(1.03); filter: drop-shadow(0 3px 0 rgba(0,0,0,.1)); }
.stamp:hover .stamp-face { opacity: 1; }
.stamp:active { transform: rotate(-2.5deg) scale(.97); }
.stamp:disabled { cursor: default; opacity: .5; transform: rotate(-2.5deg); }
.stamp-btn { margin-top: .5rem; }
.page-dates .stamp { margin-top: .75rem; }
.corner {
  position: absolute; right: 0; bottom: 0; width: 64px; height: 64px; pointer-events: none;
  background: linear-gradient(135deg, transparent 50%, var(--paper-2) 50%, var(--paper-edge));
  box-shadow: -3px -3px 8px rgba(0,0,0,.12);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ----------------------------------------------------------- cabin facts */
.facts { list-style: none; margin: 0 0 .5rem; padding: 0; columns: 2; column-gap: 1.5rem; font-size: 1.3rem; line-height: 1.4; }
.facts li { break-inside: avoid; padding: .15rem 0 .15rem 1.2rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border: 1.5px solid var(--ink); border-radius: 50%; }
.facts strong { font-family: var(--font-body); font-weight: 600; font-variant-numeric: lining-nums; font-size: 1.05rem; }
.beds { border-collapse: collapse; width: 100%; font-size: .98rem; }
.beds th { text-align: left; font-weight: 600; padding: .4rem .75rem .4rem 0; white-space: nowrap; vertical-align: top; }
.beds td { padding: .4rem 0; color: var(--text-soft); }
.beds tr { border-bottom: 1px dotted rgba(43, 38, 34, 0.3); }
.page-photos { display: flex; flex-direction: column; }
.page-photos .taped { width: min(100%, 420px); }
.page-photos .taped:first-of-type { align-self: flex-start; margin-left: 0; }
.page-photos .taped:nth-of-type(2) { align-self: flex-end; margin-right: 0; margin-top: -1rem; }
.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem 1.5rem; }
.amenities h4 { font-family: var(--font-print); font-size: 1.35rem; color: var(--ink); font-weight: 400; }
.amenities p { font-size: .92rem; color: var(--text-soft); line-height: 1.5; }

/* ----------------------------------------------------------- snapshots */
.entry-head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.rooms { display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
.room {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-print); font-size: 1.3rem; color: var(--ink); padding: .2rem .5rem; border-radius: 4px;
  position: relative;
}
.room::after { content: ""; position: absolute; left: .4rem; right: .4rem; bottom: .1rem; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.room:hover::after, .room.is-current::after { transform: scaleX(1); }
.room.is-current { color: var(--stamp); }
.room.is-current::after { background: var(--stamp); }
.snaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2rem 1.5rem; padding: 1rem .5rem .5rem; }
.snap {
  appearance: none; border: 0; cursor: pointer; text-align: left;
  background: var(--photo-border); padding: 8px 8px 10px; box-shadow: var(--shadow);
  transform: rotate(var(--tilt)); transition: transform .4s var(--ease);
  position: relative; animation: settle .5s var(--ease) both;
}
.snap:hover, .snap:focus-visible { transform: rotate(0) scale(1.04); z-index: 2; }
.snap img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.snap .cap { display: block; font-family: var(--font-print); font-size: 1.05rem; color: var(--ink); line-height: 1.25; padding: .45rem .15rem 0; }
.snap .tape { width: 70px; height: 20px; }
@keyframes settle { from { opacity: 0; transform: rotate(var(--tilt)) translateY(10px); } to { opacity: 1; transform: rotate(var(--tilt)); } }
@media (prefers-reduced-motion: reduce) { .snap { animation: none; } }
.snaps-note { margin-top: 1rem; max-width: 62ch; }

/* ----------------------------------------------------------- entries (reviews) */
.score-stamp { display: inline-block; margin: .75rem 0 .5rem; padding: .55rem .9rem .5rem; border: 3px double var(--stamp); border-radius: 8px; transform: rotate(-3deg); color: var(--stamp); font-family: var(--font-stamp); letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; line-height: 1.2; opacity: .9; }
.score-stamp .num { font-size: 2.3rem; display: block; letter-spacing: .02em; line-height: 1; margin-bottom: .2rem; }
.score-stamp .narrow { display: none; }
@media (max-width: 480px) { .score-stamp .wide { display: none; } .score-stamp .narrow { display: inline; } .score-stamp { font-size: .85rem; } }
.score-line { margin: .25rem 0 1rem; font-size: 1.25rem; line-height: 1.5; }
.score-line .num { font-family: var(--font-body); font-weight: 600; font-size: .95rem; }
.flip-nav { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.flip-nav p { min-width: 6ch; text-align: center; }
.page-flip { perspective: 1800px; transform-style: preserve-3d; }
.entry { position: relative; display: flex; flex-direction: column; min-height: 100%; }
.entry-under { position: absolute; inset: var(--page-pad); pointer-events: none; opacity: 0; }
.page-flip.is-turning .entry { transform-origin: left center; animation: turn .6s var(--ease) both; }
.page-flip.is-turning-back .entry { transform-origin: left center; animation: turnback .6s var(--ease) both; }
@keyframes turn { 0% { transform: rotateY(0); opacity: 1; } 49% { transform: rotateY(-70deg); opacity: 0; } 50% { transform: rotateY(60deg); opacity: 0; } 100% { transform: rotateY(0); opacity: 1; } }
@keyframes turnback { 0% { transform: rotateY(0); opacity: 1; } 49% { transform: rotateY(60deg); opacity: 0; } 50% { transform: rotateY(-70deg); opacity: 0; } 100% { transform: rotateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .page-flip.is-turning .entry, .page-flip.is-turning-back .entry { animation: fade .3s both; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.entry-date { font-family: var(--font-stamp); color: var(--stamp); letter-spacing: .14em; font-size: .85rem; text-transform: uppercase; transform: rotate(-3deg); display: inline-block; border: 2px solid var(--stamp); padding: .3rem .5rem; border-radius: 4px; opacity: .85; align-self: flex-start; margin-bottom: .75rem; }
.entry-title { font-family: var(--font-hand); font-size: 1.25rem; color: var(--ink); line-height: 1.8; margin-bottom: .25rem; }
.entry-body { font-family: var(--font-hand); font-size: 1rem; line-height: 2.05; color: var(--ink); }
.entry-sig { margin-top: 1rem; font-family: var(--font-print); font-size: 1.35rem; color: var(--ink); }
.entry-sig span { color: var(--text-soft); font-size: 1.1rem; }
.entry-reply { margin-top: 1.25rem; padding: .75rem 1rem .9rem; border: 1.5px dashed var(--stamp); border-radius: 6px; transform: rotate(.6deg); background: rgba(184, 56, 43, 0.04); }
.entry-reply .who { font-family: var(--font-stamp); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stamp); margin-bottom: .3rem; }
.entry-reply p { font-family: var(--font-print); font-size: 1.3rem; line-height: 1.35; color: var(--stamp-dark); }
.entry-score { margin-top: auto; padding-top: 1rem; font-family: var(--font-print); font-size: 1.15rem; color: var(--text-soft); }

/* ----------------------------------------------------------- the lake / around */
.around { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .5rem 1.5rem; margin-top: .5rem; }
.around h3 { font-family: var(--font-print); font-size: 1.4rem; color: var(--ink); font-weight: 400; margin-top: .5rem; }
.around ul { list-style: none; margin: .2rem 0 .5rem; padding: 0; }
.around li { display: flex; justify-content: space-between; gap: .75rem; font-size: .92rem; padding: .2rem 0; border-bottom: 1px dotted rgba(43, 38, 34, 0.3); }
.around li .num { color: var(--text-soft); flex: none; }
.map-note { margin-top: 1rem; }

/* ----------------------------------------------------------- rules + notes */
.rules { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.rules li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; padding: .45rem 0; border-bottom: 1px dotted rgba(43, 38, 34, 0.35); }
.rule-k { font-family: var(--font-print); font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.rule-v { font-size: .98rem; }
.license { color: var(--text-soft); font-size: 1.1rem; }
.notes { list-style: none; margin: .5rem 0 0; padding: 0; }
.notes li { padding: .25rem 0 .5rem 1.4rem; position: relative; font-size: .98rem; line-height: 1.95; }
.notes li::before { content: "~"; position: absolute; left: 0; top: .15rem; font-family: var(--font-print); font-size: 1.6rem; color: var(--stamp); }

/* ----------------------------------------------------------- booking form */
.chosen { margin: .5rem 0 1.25rem; padding: .75rem 1rem; border: 1.5px dashed var(--ink); border-radius: 6px; transform: rotate(-.4deg); }
.chosen-line { font-size: 1.05rem; }
.chosen-change { font-size: 1.15rem; }
.chosen-empty a { white-space: nowrap; }
.also { margin-top: 1.5rem; font-size: 1.15rem; color: var(--text-soft); }
.also a { color: var(--ink); }

/* ----------------------------------------------------------- back cover */
.back-cover {
  text-align: center; padding: 2.5rem 1rem 3rem; color: var(--gold);
  background: var(--cloth); border-radius: 6px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 3px), repeating-linear-gradient(0deg, rgba(0,0,0,.09) 0 1px, transparent 1px 3px), linear-gradient(160deg, var(--cloth-3), var(--cloth) 45%, var(--cloth-2));
  margin-bottom: 3rem; box-shadow: 0 30px 40px rgba(0,0,0,.5);
}
.back-cover a { color: var(--gold-2); }
.back-links { font-family: var(--font-body); font-size: .95rem; color: var(--gold-2); margin-top: .5rem; }
.credit { opacity: .7; margin-top: .75rem; }

/* ----------------------------------------------------------- lightbox */
.cta-dock { display: none; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(20, 16, 13, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lb-fig { margin: 0; background: var(--photo-border); padding: 12px 12px 14px; box-shadow: 0 30px 60px rgba(0,0,0,.6); max-width: min(92vw, 1400px); transform: rotate(-.6deg); }
.lb-fig img { max-width: calc(92vw - 24px); max-height: 78vh; width: auto; height: auto; object-fit: contain; }
.lb-fig figcaption { text-align: center; padding-top: .5rem; font-size: 1rem; }
.lb-close, .lb-arrow { position: fixed; appearance: none; border: 0; background: rgba(233, 220, 195, 0.12); color: var(--paper); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-arrow:hover { background: rgba(233, 220, 195, 0.28); }
.lb-close svg, .lb-arrow svg { width: 26px; height: 26px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-arrow { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }

/* ----------------------------------------------------------- mobile: one page at a time */
@media (max-width: 899px) {
  .book { padding: 4.5rem .75rem 0; width: 100%; }
  .spread { grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 1.5rem; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
  .spread::before { display: none; }
  .spread > .page:first-child, .spread > .page:last-child { border-radius: 6px; box-shadow: none; }
  .spread > .page::after { display: none; }
  .page { min-height: 0; }
  .page-cloth { gap: 1rem; }
  .taped-hero { width: 100%; }
  .tabs {
    top: 0; right: 0; left: 0; transform: none;
    flex-direction: row; gap: 0; overflow-x: auto; scrollbar-width: none;
    background: var(--table-2); box-shadow: 0 6px 16px rgba(0,0,0,.4);
    padding: .5rem .5rem 0;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { transform: none; border-radius: 6px 6px 0 0; min-width: 0; flex: none; padding: .55rem .8rem; box-shadow: none; font-size: .74rem; }
  .tab-book { position: sticky; right: 0; box-shadow: -6px 0 8px rgba(29, 25, 22, 0.55); }
  .cta-dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 39; display: flex; justify-content: center; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(29,25,22,0), rgba(29,25,22,.92) 40%); transform: translateY(110%); transition: transform .35s var(--ease); pointer-events: none; }
  .cta-dock .stamp { pointer-events: auto; background: var(--paper); border-radius: 8px; padding: 2px; }
  /* small label on the tinted paper: the full-strength dark stamp red reads at 5.6:1 (the 90% --stamp was 3.44) */
  .cta-dock .stamp-face { color: var(--stamp-dark); border-color: var(--stamp-dark); opacity: 1; }
  body.show-dock .cta-dock { transform: none; }
  .facts { columns: 1; }
  .page-photos .taped, .page-photos .taped:nth-of-type(2) { width: 100%; align-self: center; margin-top: 1.25rem; }
  .rules li { grid-template-columns: 6rem 1fr; }
  .flip-nav { margin-top: 1rem; }
  .cal-months { grid-template-columns: 1fr; }
  .lb-fig img { max-width: calc(92vw - 24px); max-height: 70vh; }
  .lb-arrow { top: auto; bottom: 1rem; transform: none; }
}
@media (max-width: 480px) {
  :root { --page-pad: 1.1rem; }
  .book { padding-left: .5rem; padding-right: .5rem; }
  .stamped-title { font-size: 2.6rem; }
  .day { min-height: 44px; font-size: .9rem; }
  .day .price { font-size: .78rem; }
  .score-big { font-size: 3.4rem; }
  .snaps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem .9rem; padding: .75rem 0; }
  .snap .cap { font-size: .95rem; }
}
@media (min-width: 900px) {
  .spread-cover { min-height: min(calc(100vh - 6rem), 900px); }
  .spread-cover .page { min-height: min(calc(100vh - 6rem), 900px); }
  .page-dates { display: flex; flex-direction: column; }
  .page-dates .stamp { align-self: flex-end; margin-right: 2.5rem; margin-top: auto; padding-top: 1rem; }
  .spread-entries .page-score { display: flex; flex-direction: column; }
}
@media (min-width: 900px) and (max-width: 1559px) {
  .book { padding-right: 168px; }
}
@media (min-width: 1560px) {
  .tabs { right: calc((100vw - 1380px) / 2 - 158px); }
}
