/*
  Brother Ansel's Meadery: meadery website (Screenery template)
  The page is a leaf of an illuminated manuscript: vellum ground, iron-gall ink, ultramarine and vermilion pigments,
  gold leaf drawn as layered gradients with a sheen, vine-scroll borders and bees and flowers in the margins.

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. Gilding, rubrics, drop caps
   4. Components: buttons, fields, stepper, checkbox, spinner
   5. Header
   6. Title page (hero) and miniature
   7. The meads catalogue
   8. Flight builder: shelf, board, taste map, notes
   9. Booking form, tally, error, success
  10. How mead is made
  11. Visit the cellar
  12. Questions, colophon
  13. Motion (signature: the gilding catches the light)
  14. Narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* Pigments */
  --vellum: #f1e6cf;
  --vellum-light: #f7efdc;
  --vellum-deep: #e4d4b2;
  --ink: #2b2118;            /* iron-gall brown-black */
  --ink-soft: #4a3b2c;       /* secondary text, 9:1 on vellum */
  --blue: #233f86;           /* ultramarine */
  --blue-bright: #2f55a8;
  --vermilion: #c2401f;      /* large rubrics and fills */
  --rubric: #a83218;         /* small red text, 5.4:1 on vellum */
  --rubric-deep: #8a2812;
  --verdigris: #4d6b3c;      /* vines */
  --gold: #c9a04a;
  --gold-flat: #e2c069;      /* gold ink on blue */
  --gold-edge: #6d4f16;

  /* Gold leaf: layered so it reads as beaten metal, not a flat yellow */
  --leaf: linear-gradient(135deg, #8a6420 0%, #e9c96a 22%, #b8892f 40%, #f5dc8a 55%, #a87a28 75%, #d9b45a 100%);
  --sheen: linear-gradient(105deg, transparent 38%, rgb(255 250 225 / .75) 50%, transparent 62%);

  /* Type */
  --f-display: "Pirata One", "Crimson Text", Georgia, serif;
  --f-body: "Crimson Text", Georgia, "Times New Roman", serif;
  --t-body: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --t-small: 1.0625rem;
  --t-h3: clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
  --t-h2: clamp(2.5rem, 2rem + 2.2vw, 3.75rem);
  --t-h1: clamp(3.25rem, 2.2rem + 4.4vw, 5.75rem);

  /* Space and shape */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --r-1: 3px; --r-2: 6px; --r-pill: 999px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --page: 76rem;
  --shadow: 0 1px 2px rgb(43 33 24 / .18), 0 6px 16px -6px rgb(43 33 24 / .28);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Vellum texture: fine fibre noise plus foxing at the edges */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .18 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23m)'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; scrollbar-color: var(--rubric) var(--vellum-deep); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 var(--t-body)/1.6 var(--f-body);
  color: var(--ink);
  background-color: var(--vellum);
  background-image: var(--grain), var(--mottle), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgb(150 110 50 / .16) 100%);
  background-attachment: scroll, scroll, fixed;
  caret-color: var(--rubric);
  accent-color: var(--rubric);
  overflow-x: clip;
}
::selection { background: var(--blue); color: var(--vellum-light); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--vellum-deep); }
::-webkit-scrollbar-thumb { background: var(--rubric); border: 3px solid var(--vellum-deep); border-radius: var(--r-pill); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: var(--r-1); }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--rubric); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0; }
p + p { margin-top: var(--s-3); }
button, input { font: inherit; color: inherit; }
.num, td.num, .tally td { font-variant-numeric: tabular-nums lining-nums; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 50; padding: var(--s-2) var(--s-4); background: var(--ink); color: var(--vellum); border-radius: var(--r-1); }
.skip:focus { top: var(--s-4); }
.skip:hover { color: var(--vellum-light); }
.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. Gilding, rubrics, drop caps ---------- */
/* .gilt is beaten gold: the gradient, a pressed edge, and a sheen layer that moves (section 13) */
.gilt {
  position: relative;
  background: var(--leaf);
  box-shadow: inset 0 0 0 1px rgb(109 79 22 / .7), inset 0 1px 0 rgb(255 245 205 / .6), 0 1px 2px rgb(60 40 10 / .3);
  overflow: hidden;
  isolation: isolate;
}
.gilt::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: var(--sheen) no-repeat;
  background-size: 300% 100%;
  background-position: 120% 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.rubric {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  line-height: 1.05;
  color: var(--vermilion);
  letter-spacing: .005em;
}
.rubric--small { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); }
.minor {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  line-height: 1.1;
  color: var(--blue);
  margin-bottom: var(--s-4);
}


/* A drop cap: gold-leaf square with an ultramarine letter, or (--blue) an ultramarine square in a gold frame with a gold letter */
.with-initial { max-width: 66ch; }
.with-initial::after { content: ""; display: table; clear: both; }
.dropcap {
  float: left;
  display: grid; place-items: center;
  width: 1.32em; height: 1.32em;
  margin: .12em .22em 0 0;
  font: 400 calc(var(--t-body) * 2.7)/1 var(--f-display);
  color: var(--blue);
  text-shadow: 0 1px 0 rgb(255 245 205 / .55);
  border-radius: 2px;
}
.dropcap--blue {
  color: var(--gold-flat);
  text-shadow: 0 1px 0 rgb(20 30 70 / .6);
  background: var(--blue);
  border: .09em solid transparent;
  background-image: radial-gradient(circle at 25% 25%, rgb(226 192 105 / .35) 0 1.5px, transparent 2px), radial-gradient(circle at 75% 75%, rgb(226 192 105 / .35) 0 1.5px, transparent 2px), linear-gradient(var(--blue), var(--blue)), var(--leaf);
  background-size: .3em .3em, .3em .3em, auto, auto;
  background-origin: padding-box, padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, padding-box, border-box;
}

/* ---------- 4. Components ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: .55rem 1.25rem;
  font: 600 1.0625rem/1.1 var(--f-body);
  letter-spacing: .01em;
  color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--bd); border-radius: var(--r-1);
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { color: var(--fg); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--vermilion { --bg: var(--rubric); --fg: #fff8ea; --bd: var(--rubric-deep); }
.btn--vermilion:hover { --bg: var(--rubric-deep); }
.btn--ink { --bg: var(--blue); --fg: #fff8ea; --bd: #18306a; }
.btn--ink:hover { --bg: #18306a; }
.btn--line { --bg: rgb(247 239 220 / .6); }
.btn--line:hover { --bg: var(--vellum-light); }
.btn--small { min-height: 44px; padding: .4rem .95rem; font-size: 1rem; }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .ic { width: 1em; height: 1em; }

.field { display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: var(--t-small); color: var(--ink); padding: 0; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; min-height: 48px; padding: .5rem .8rem;
  background: var(--vellum-light);
  border: 1.5px solid var(--ink-soft); border-radius: var(--r-1);
  font-size: 1.125rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #6b5a47; opacity: 1; }
.field input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(35 63 134 / .25); }
.field__hint { font-size: 1rem; color: var(--ink-soft); }
.field__msg { font-size: 1rem; color: var(--rubric); font-weight: 600; min-height: 0; }
.field__msg:empty { display: none; }
.field.is-invalid input { border-color: var(--rubric); background: #fbeee4; }
.field.is-valid input[type="text"], .field.is-valid input[type="email"] { border-color: var(--verdigris); }

.stepper { display: inline-flex; align-items: stretch; width: max-content; border: 1.5px solid var(--ink-soft); border-radius: var(--r-1); background: var(--vellum-light); }
.stepper__btn { width: 48px; min-height: 48px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--blue); }
.stepper__btn:hover { background: var(--vellum-deep); }
.stepper__btn[disabled] { color: #a89878; cursor: not-allowed; background: none; }
.stepper input { width: 3.2rem; border: 0; border-inline: 1px solid var(--vellum-deep); background: none; text-align: center; font: 700 1.25rem/1 var(--f-body); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

.check { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; font-weight: 400 !important; font-size: var(--t-body) !important; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: .05em; border: 1.5px solid var(--ink-soft); border-radius: var(--r-1); background: var(--vellum-light); color: transparent; transition: background-color .2s, color .2s; }
.check input:checked + .check__box { background: var(--blue); border-color: #18306a; color: var(--gold-flat); }
.check input:focus-visible + .check__box { outline: 3px solid var(--blue); outline-offset: 3px; }
.field.is-invalid .check__box { border-color: var(--rubric); background: #fbeee4; }

.spinner { display: none; width: 1.1em; height: 1.1em; border: 2px solid rgb(255 248 234 / .4); border-top-color: #fff8ea; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- 5. Header ---------- */
.head {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  max-width: var(--page); margin: 0 auto; padding: var(--s-4) var(--gutter);
}
.mark { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--rubric); text-decoration: none; font: 400 1.75rem/1 var(--f-display); min-height: 44px; }
.mark__bee { width: 40px; height: 30px; }
.mark:hover { color: var(--rubric-deep); }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; padding: .5rem 0; border-bottom: 1.5px solid transparent; }
.nav a:not(.btn):hover { color: var(--rubric); border-bottom-color: currentColor; }
.head__menu { display: none; }

/* ---------- 6. Title page ---------- */
.title-page {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s-7); align-items: center;
  max-width: var(--page); margin: var(--s-3) auto var(--s-8);
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(4.5rem, 8vw, 7rem);
}
.frame { position: absolute; inset: 0; pointer-events: none; }
.frame svg { position: absolute; overflow: hidden; }
.frame__side { top: 28px; bottom: 28px; width: 56px; height: calc(100% - 56px); }
.frame__side--l { left: 0; }
.frame__side--r { right: 0; transform: scaleX(-1); }
.frame__top, .frame__foot { left: 28px; right: 28px; height: 56px; width: calc(100% - 56px); }
.frame__top { top: 0; }
.frame__foot { bottom: 0; transform: scaleY(-1); }
.boss { position: absolute; width: 44px; height: 44px; border-radius: 50%; }
.boss::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--rubric); box-shadow: inset 0 0 0 2px var(--gold-edge); z-index: 2; }
.boss--tl { left: 6px; top: 6px; } .boss--tr { right: 6px; top: 6px; } .boss--bl { left: 6px; bottom: 6px; } .boss--br { right: 6px; bottom: 6px; }

.title { font: 400 var(--t-h1)/.98 var(--f-display); color: var(--ink); letter-spacing: -.005em; }
.title::after { content: ""; display: table; clear: both; }
.big-initial {
  float: left; position: relative;
  display: grid; place-items: center;
  width: 1.6em; height: 1.6em;
  margin: .04em .14em 0 0;
  border-radius: 3px;
}
.big-initial__vine { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.big-initial__letter {
  position: relative; z-index: 2;
  font-size: 1.45em; line-height: 1;
  color: var(--rubric);
  text-shadow: 0 2px 0 rgb(255 240 200 / .6), 0 0 1px var(--ink);
  -webkit-text-stroke: 1px var(--rubric-deep);
}
.title__line { display: block; color: var(--blue); }
.rubric-line { margin-top: var(--s-5); font: italic 600 1.3rem/1.35 var(--f-body); color: var(--rubric); max-width: 40ch; }
.lede { margin-top: var(--s-4); max-width: 54ch; font-size: 1.25rem; }
.title-page__acts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.title-page__note { margin-top: var(--s-5); font-size: 1.0625rem; color: var(--ink-soft); font-style: italic; }

.miniature { margin: 0; }
.miniature__art { width: 100%; max-width: 380px; margin-inline: auto; filter: drop-shadow(0 8px 14px rgb(60 40 15 / .22)); }
.miniature figcaption { margin-top: var(--s-3); text-align: center; font-style: italic; font-size: 1.0625rem; color: var(--ink-soft); }

/* ---------- Sections and ornaments ---------- */
.sect { position: relative; max-width: var(--page); margin: 0 auto; padding: var(--s-8) var(--gutter) var(--s-8); }
.sect::before {
  /* the line-filler between sections: red rule, gold lozenge, blue dots */
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: min(34rem, 80%); height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 544 24'%3E%3Cpath d='M0 12h244M300 12h244' stroke='%23a83218' stroke-width='1.400'/%3E%3Cpath d='M272 1l11 11-11 11-11-11z' fill='%23d9b45a' stroke='%236d4f16'/%3E%3Ccircle cx='252' cy='12' r='3' fill='%23233f86'/%3E%3Ccircle cx='292' cy='12' r='3' fill='%23233f86'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sect__head { display: grid; gap: var(--s-5); margin-bottom: var(--s-6); }
.margin-art { position: absolute; pointer-events: none; }
.margin-art--meads { width: 64px; right: calc(var(--gutter) * .4); top: var(--s-8); rotate: 12deg; }
.margin-art--faq { width: 46px; right: var(--gutter); top: var(--s-8); rotate: -8deg; }

/* ---------- 7. The meads ---------- */
.filter { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filter button {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: .35rem 1rem;
  background: var(--vellum-light); border: 1.5px solid var(--ink-soft); border-radius: var(--r-pill);
  font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s;
}
.filter button:hover { background: var(--vellum-deep); }
.filter button[aria-checked="true"] { background: var(--blue); color: #fff8ea; border-color: #18306a; }
.filter__n { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .3rem; border-radius: var(--r-pill); background: rgb(43 33 24 / .1); font-size: .9rem; font-variant-numeric: tabular-nums; }
.filter button[aria-checked="true"] .filter__n { background: var(--gold-flat); color: var(--ink); }
.filter__status { margin: var(--s-3) 0 var(--s-5); font-size: 1rem; color: var(--ink-soft); font-style: italic; }

.meads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); }
.mead {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid rgb(168 50 24 / .45);
}
.mead[hidden] { display: none; }
.mead__bottle { width: 52px; height: auto; margin-top: .3rem; }
.mead__name { font: 400 var(--t-h3)/1.1 var(--f-display); color: var(--blue); }
.mead__honey { margin-top: var(--s-1); font-style: italic; color: var(--rubric); font-weight: 600; font-size: 1.0625rem; }
.mead__note { margin-top: var(--s-2); max-width: 52ch; }
.mead__facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-3) 0 0; font-size: 1rem; }
.mead__facts div { display: flex; gap: var(--s-2); align-items: center; }
.mead__facts dt { color: var(--ink-soft); }
.mead__facts dd { margin: 0; font-weight: 600; display: inline-flex; align-items: center; gap: var(--s-2); font-variant-numeric: tabular-nums; }
/* A ten-dot sweetness scale; the filled dots are honey gold */
.scale { --v: 0; display: inline-block; width: 60px; height: 8px; background: radial-gradient(circle, var(--ink-soft) 0 1.6px, transparent 2px) 0 0 / 6px 8px repeat-x; position: relative; }
.scale::after { content: ""; position: absolute; left: 0; top: -1px; height: 10px; width: calc(var(--v) * 6px); background: radial-gradient(circle, #b07d1e 0 2.8px, transparent 3.2px) 0 0 / 6px 10px repeat-x; }
.mead__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.mead__more > * { overflow: hidden; }
.mead.is-open .mead__more { grid-template-rows: 1fr; }
.mead__more { overflow: hidden; }
.mead__more p:first-child { margin-top: var(--s-3); }
.mead__pair strong { color: var(--rubric); }
.mead.is-open { background: linear-gradient(90deg, rgb(247 239 220 / .9), rgb(247 239 220 / 0)); }
.mead__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
[data-more] .ic { transition: rotate .3s var(--ease); }
[data-more][aria-expanded="true"] .ic { rotate: 180deg; }
[data-add].is-in { --bg: var(--vellum-light); --fg: var(--blue); --bd: var(--blue); }
.mead.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 30% { background-color: rgb(226 192 105 / .45); } 100% { background-color: transparent; } }
/* Without JS the folios are simply open */
.no-js .mead__more { grid-template-rows: 1fr; }

/* ---------- 8. Flight builder ---------- */
.sect--flight { padding-top: var(--s-8); }
.builder {
  display: grid; gap: var(--s-6) var(--s-7);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "shelf map" "board map" "board notes";
  align-items: start;
}
.shelf { grid-area: shelf; }
.board-wrap { grid-area: board; }
.map { grid-area: map; margin: 0; }
.notes { grid-area: notes; }
.shelf__plain { font-style: italic; color: var(--ink-soft); }
.shelf__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.shelf__list > li { display: flex; }
.token {
  width: 100%; height: 100%; min-height: 128px;
  display: grid; justify-items: center; align-content: start; gap: var(--s-1);
  padding: var(--s-3) var(--s-1) var(--s-2);
  background: var(--vellum-light);
  border: 1.5px solid rgb(74 59 44 / .45); border-radius: var(--r-2);
  cursor: grab; touch-action: none; user-select: none;
  text-align: center; line-height: 1.15;
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease), opacity .2s;
}
.token:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.token svg { width: 26px; height: 62px; }
.token__name { font-weight: 700; font-size: .98rem; }
.token__sw { font-size: .9rem; color: var(--ink-soft); font-style: italic; }
.token[aria-pressed="true"] { border-color: var(--gold-edge); background: #f3e3b8; }
.token[aria-pressed="true"] .token__sw { color: var(--ink); }
.token.is-dragging { opacity: .35; }
.is-dragging-any, .is-dragging-any * { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.ghost { position: fixed; z-index: 100; pointer-events: none; width: 92px; translate: -50% -60%; rotate: -4deg; filter: drop-shadow(0 10px 14px rgb(43 33 24 / .35)); }
.ghost .token { cursor: grabbing; }

.board__count { font-family: var(--f-body); font-size: 1rem; font-weight: 600; color: var(--ink-soft); margin-left: var(--s-2); font-variant-numeric: tabular-nums; }
.board {
  list-style: none; margin: 0; padding: var(--s-4);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3);
  border-radius: var(--r-2);
  background: linear-gradient(var(--vellum-light), var(--vellum-light)) padding-box, var(--leaf) border-box;
  border: 4px solid transparent;
  box-shadow: var(--shadow);
  transition: box-shadow .25s var(--ease);
}
.board.is-over { box-shadow: 0 0 0 4px rgb(35 63 134 / .35), var(--shadow); }
.glass-slot {
  position: relative;
  display: grid; justify-items: center; align-content: start; gap: var(--s-1);
  min-height: 150px; padding: var(--s-3) var(--s-1) var(--s-2);
  border: 1.5px dashed rgb(74 59 44 / .55); border-radius: var(--r-2);
  text-align: center; font-size: .95rem; line-height: 1.15;
  transition: background-color .2s, border-color .2s;
}
.glass-slot.is-target { background: rgb(35 63 134 / .08); border-color: var(--blue); }
.glass-slot__num { font: 400 1.4rem/1 var(--f-display); color: var(--rubric); }
.glass-slot__empty { color: var(--ink-soft); font-style: italic; }
.glass-slot.is-filled { border-style: solid; border-color: rgb(109 79 22 / .55); background: #fbf3df; }
.glass-slot svg.glass { width: 40px; height: 48px; }
.glass-slot svg.glass--empty { opacity: .4; margin-top: var(--s-2); }
.glass-slot__name { font-weight: 700; }
.glass-slot__x { width: 44px; height: 36px; display: grid; place-items: center; margin-top: auto; background: none; border: 0; border-radius: var(--r-1); color: var(--rubric); cursor: pointer; }
.glass-slot__x:hover { background: rgb(168 50 24 / .1); }
.glass-slot.is-new svg.glass { animation: pour .7s var(--ease); }
@keyframes pour { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.board__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); }
.board__price strong { font-size: 1.25rem; color: var(--blue); }

.map__svg { width: 100%; height: auto; }
.map__labels text { font-family: var(--f-body); font-style: italic; fill: var(--ink); font-weight: 600; }
.map__dot circle { fill: var(--vellum-light); stroke: var(--ink-soft); stroke-width: 1.2; }
.map__dot text { font: 600 12px var(--f-body); fill: var(--ink); }
.map__pick circle.ring { fill: url(#g-gold); stroke: var(--gold-edge); stroke-width: 1.4; }
.map__pick text.n { font: 400 15px var(--f-display); fill: var(--blue); }
.map__pick text.l { font: 700 14px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--vellum-light); stroke-width: 4px; stroke-linejoin: round; }
.map figcaption { margin-top: var(--s-2); font-size: 1rem; color: var(--ink-soft); font-style: italic; }

.notes__list { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-4); counter-reset: pour; }
.notes__list > li:not(.notes__empty) { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--s-3); counter-increment: pour; }
.notes__list > li:not(.notes__empty)::before { content: counter(pour, lower-roman) "."; font: 400 1.5rem/1.2 var(--f-display); color: var(--rubric); }
.notes__list h4 { margin: 0; font: 700 1.125rem/1.3 var(--f-body); color: var(--blue); }
.notes__list p { font-size: 1.0625rem; }
.notes__meta { color: var(--ink-soft); font-size: 1rem !important; font-variant-numeric: tabular-nums; }
.notes__empty { font-style: italic; color: var(--ink-soft); }

/* ---------- 9. Booking ---------- */
.book {
  margin-top: var(--s-8);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-5) var(--s-7);
  grid-template-areas: "head head" "summary summary" "dates tally" "row tally" "age tally" "error error";
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--vellum-light);
  border: 1.5px solid rgb(74 59 44 / .5);
  border-radius: var(--r-2);
  box-shadow: var(--shadow);
}
.book__head { grid-area: head; display: grid; gap: var(--s-2); }
.book__head p { max-width: 62ch; }
.book__summary { grid-area: summary; padding: var(--s-4); border: 1.5px solid var(--rubric); border-radius: var(--r-1); background: #fbeee4; color: var(--rubric-deep); }
.book__summary ul { margin: var(--s-2) 0 0; padding-left: 1.2rem; }
.book__summary a { color: var(--rubric-deep); }
.field--dates { grid-area: dates; border: 0; margin: 0; padding: 0; }
.book__row { grid-area: row; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.field--check { grid-area: age; }
.tally { grid-area: tally; align-self: start; position: sticky; top: var(--s-5); display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--vellum); border: 1.5px solid rgb(109 79 22 / .6); border-radius: var(--r-2); }
.book__error { grid-area: error; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4); border: 1.5px solid var(--rubric); border-radius: var(--r-1); background: #fbeee4; color: var(--rubric-deep); }
.book[hidden], .book__error[hidden], .book__summary[hidden] { display: none; }
.book__error p { max-width: 60ch; }

.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--s-2); margin-top: var(--s-2); }
.date {
  position: relative;
  display: grid; gap: 2px; text-align: left;
  min-height: 72px; padding: var(--s-2) var(--s-3);
  background: var(--vellum); border: 1.5px solid rgb(74 59 44 / .55); border-radius: var(--r-1);
  cursor: pointer; line-height: 1.2;
  transition: background-color .2s, border-color .2s, color .2s;
}
.date:hover { border-color: var(--blue); }
.date__day { font-weight: 700; }
.date__time { font-size: .98rem; font-variant-numeric: tabular-nums; }
.date__seats { font-size: .92rem; color: var(--ink-soft); font-style: italic; }
.date[aria-checked="true"] { background: var(--blue); border-color: #18306a; color: #fff8ea; }
.date[aria-checked="true"] .date__seats { color: #e6dcc4; }
.date.is-full { background: transparent; border-style: dashed; }
.date.is-full .date__day, .date.is-full .date__time { text-decoration: line-through; text-decoration-color: var(--rubric); text-decoration-thickness: 2px; }
.date.is-full .date__seats { color: var(--rubric); font-weight: 600; font-style: normal; }
.date.is-full[aria-checked="true"] { background: #fbeee4; color: var(--ink); border-color: var(--rubric); }
.date.is-full[aria-checked="true"] .date__seats { color: var(--rubric); }

.tally__table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.tally__table th { text-align: left; font-weight: 400; padding: .3rem 0; }
.tally__table td { text-align: right; padding: .3rem 0; font-weight: 600; }
.tally__sub th, .tally__sub td { border-top: 1px solid rgb(74 59 44 / .35); }
.tally__table tfoot th, .tally__table tfoot td { padding-top: var(--s-3); border-top: 2px solid var(--ink); font: 400 1.5rem/1.1 var(--f-display); color: var(--blue); }
.tally__table tfoot th { font-family: var(--f-body); font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.tally__fine { font-size: 1rem; color: var(--ink-soft); text-align: center; font-style: italic; }
.book.is-loading { cursor: progress; }
.book.is-loading .btn__label::after { content: "…"; }

.booked {
  margin-top: var(--s-8);
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-6); align-items: start;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--vellum-light);
  border: 1.5px solid rgb(109 79 22 / .6); border-radius: var(--r-2);
  box-shadow: var(--shadow);
}
.booked[hidden] { display: none; }
.booked:focus { outline: none; }
.booked__seal { width: 140px; filter: drop-shadow(0 4px 6px rgb(110 31 14 / .35)); }
.booked p { margin-top: var(--s-3); max-width: 60ch; }
.booked__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-1) var(--s-5); margin: var(--s-4) 0 var(--s-5); font-variant-numeric: tabular-nums; }
.booked__facts dt { color: var(--ink-soft); }
.booked__facts dd { margin: 0; font-weight: 600; }
.booked.is-new .booked__seal { animation: stamp .7s var(--ease); }
@keyframes stamp { from { scale: 1.6; opacity: 0; rotate: -18deg; } to { scale: 1; opacity: 1; rotate: 0deg; } }

/* ---------- 10. How mead is made ---------- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--s-6); }
.steps::before {
  /* the vine the steps hang from */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 56px; translate: -50% 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='120'%3E%3Cpath d='M28 0c16 15 16 45 0 60s-16 45 0 60' fill='none' stroke='%234d6b3c' stroke-width='2.200'/%3E%3Cpath d='M34 24c8-6 18-4 20 4-6 6-15 4-20-4z' fill='%235e7f47' stroke='%23344b28' stroke-width='.9'/%3E%3Cpath d='M22 84c-8-6-18-4-20 4 6 6 15 4 20-4z' fill='%235e7f47' stroke='%23344b28' stroke-width='.9'/%3E%3Ccircle cx='43' cy='54' r='3.200' fill='%23c9a04a'/%3E%3Ccircle cx='13' cy='114' r='3.200' fill='%23c9a04a'/%3E%3C/svg%3E") center top / 56px 120px repeat-y;
}
.step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; gap: var(--s-5); }
.step__art { grid-column: 1; justify-self: end; width: min(100%, 300px); filter: drop-shadow(0 6px 10px rgb(60 40 15 / .2)); }
.step__text { grid-column: 3; max-width: 46ch; }
.step:nth-child(even) .step__art { grid-column: 3; grid-row: 1; justify-self: start; }
.step:nth-child(even) .step__text { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }
.step__h { font: 400 var(--t-h3)/1.1 var(--f-display); color: var(--blue); margin-bottom: var(--s-2); }
.step__n { color: var(--rubric); }

/* ---------- 11. Visit the cellar ---------- */
.cellar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.plan { margin: 0; }
.plan svg { width: 100%; height: auto; box-shadow: var(--shadow); }
.plan__label { font: italic 600 15px var(--f-body); fill: var(--ink); }
.plan__label--red { fill: var(--rubric); font-style: normal; font-weight: 700; }
.plan figcaption { margin-top: var(--s-2); font-size: 1rem; color: var(--ink-soft); font-style: italic; }
.visit { display: grid; gap: var(--s-5); }
.visit__addr { font-style: normal; display: grid; gap: var(--s-2); }
.visit__addr p { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; }
.visit__addr .ic { margin-top: .3em; color: var(--rubric); }
.visit__addr a { min-height: 44px; display: inline-flex; align-items: center; margin-top: -.6rem; margin-bottom: -.6rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.hours caption { text-align: left; font: 400 var(--t-h3)/1.1 var(--f-display); color: var(--blue); margin-bottom: var(--s-3); }
.hours th, .hours td { text-align: left; padding: .5rem .5rem .5rem 0; border-top: 1px solid rgb(168 50 24 / .35); vertical-align: top; }
.hours th { font-weight: 700; }
.hours td.num { text-align: right; white-space: nowrap; padding-right: 0; }
.hours tr.is-today th::after { content: " (today)"; font-weight: 600; color: var(--rubric); font-style: italic; }
.hours tr.is-today { background: rgb(226 192 105 / .25); }
.visit__how { color: var(--ink-soft); }

/* ---------- 12. Questions and colophon ---------- */
.faq { max-width: 52rem; display: grid; }
.faq details { border-top: 1px solid rgb(168 50 24 / .45); }
.faq details:last-child { border-bottom: 1px solid rgb(168 50 24 / .45); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding: var(--s-3) 0;
  font: 600 1.25rem/1.3 var(--f-body); color: var(--blue);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rubric); }
.faq summary .ic { transition: rotate .3s var(--ease); color: var(--rubric); }
.faq details[open] summary .ic { rotate: 180deg; }
.faq details p { padding: 0 0 var(--s-5); max-width: 66ch; }

.colophon { max-width: var(--page); margin: 0 auto; padding: var(--s-6) var(--gutter) var(--s-8); }
.colophon__rule { width: min(600px, 100%); height: 24px; margin: 0 auto var(--s-6); }
.colophon__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-6); font-size: 1.0625rem; }
.colophon__name { font: 400 2rem/1 var(--f-display); color: var(--rubric); margin-bottom: var(--s-3); }
.colophon nav { display: grid; gap: 0; align-content: start; }
.colophon nav a { color: var(--ink); min-height: 40px; display: inline-flex; align-items: center; }
.colophon nav a:hover { color: var(--rubric); }
.colophon__fine { color: var(--ink-soft); font-style: italic; }

/* ---------- 13. Motion ---------- */
/* Signature: the gilding catches the light. On load a sheen crosses the hero's gold leaf (initial, bosses),
   the bees drift along their flight line, and each later gold initial catches the light as it scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  .title-page .gilt::after { animation: sheen 2.4s var(--ease) .5s both; }
  .big-initial:hover::after, .dropcap:hover::after { animation: sheen 1.6s var(--ease) both; }
  .bee { animation: hover-bee 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .bee--b { animation-duration: 6.2s; animation-delay: -2s; }
  .bee--c { animation-duration: 4.4s; animation-delay: -1s; }
  .flight-line { animation: march 18s linear infinite; }
  @supports (animation-timeline: view()) {
    .sect .gilt::after { animation: sheen linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
    .step__art { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }
}
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes hover-bee { from { translate: 0 0; } 50% { translate: 6px -5px; } to { translate: 12px 2px; } }
@keyframes march { to { stroke-dashoffset: -180; } }
@keyframes settle { from { translate: 0 18px; filter: drop-shadow(0 2px 4px rgb(60 40 15 / .1)); } to { translate: 0 0; } }

/* ---------- 14. Narrow screens ---------- */
@media (max-width: 1100px) {
  .builder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "shelf shelf" "board map" "notes map"; }
  .shelf__list { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .book { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "summary" "dates" "row" "age" "tally" "error"; }
  .tally { position: static; }
}
@media (max-width: 900px) {
  .title-page { grid-template-columns: minmax(0, 1fr); padding: 4.25rem 4.25rem 4.5rem; }
  .miniature__art { max-width: 300px; }
  .meads { grid-template-columns: minmax(0, 1fr); }
  .shelf__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .builder { grid-template-columns: minmax(0, 1fr); grid-template-areas: "shelf" "board" "map" "notes"; }
  .cellar { grid-template-columns: minmax(0, 1fr); }
  .colophon__grid { grid-template-columns: 1fr 1fr; }
  .colophon__grid > :first-child { grid-column: 1 / -1; }
  .book__row { grid-template-columns: auto minmax(0, 1fr); }
  .book__row .field[data-field="email"] { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .head { flex-wrap: wrap; }
  .head__menu { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: .3rem .9rem; background: var(--vellum-light); border: 1.5px solid var(--ink-soft); border-radius: var(--r-1); font-weight: 600; cursor: pointer; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-2) 0; border-top: 1px solid rgb(168 50 24 / .45); }
  .nav.is-open { display: flex; }
  .no-js .nav { display: flex; }
  .nav a:not(.btn) { padding: .7rem 0; border-bottom: 1px solid rgb(74 59 44 / .2); }
  .nav .btn { margin-top: var(--s-3); }
  .steps::before { left: 28px; }
  .step, .step:nth-child(even) { grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-3); align-items: start; }
  .step .step__art, .step:nth-child(even) .step__art { grid-column: 2; grid-row: 1; justify-self: start; width: min(100%, 260px); }
  .step .step__text, .step:nth-child(even) .step__text { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; }
}
@media (max-width: 560px) {
  :root { --gutter: 1rem; }
  .title-page { padding: 3.25rem 2.6rem 3.5rem; margin-bottom: var(--s-6); gap: var(--s-6); }
  .frame__side { width: 34px; top: 20px; bottom: 20px; height: calc(100% - 40px); }
  .frame__top, .frame__foot { height: 34px; left: 20px; right: 20px; width: calc(100% - 40px); }
  .boss { width: 32px; height: 32px; left: auto; }
  .boss::before { inset: 7px; }
  .boss--tl, .boss--bl { left: 2px; } .boss--tr, .boss--br { right: 2px; }
  .boss--tl, .boss--tr { top: 2px; } .boss--bl, .boss--br { bottom: 2px; }
  .title { font-size: 3rem; }
  .title-page__acts .btn { width: 100%; }
  .margin-art--meads { width: 44px; top: var(--s-7); }
  .margin-art--faq { display: none; }
  .mead { grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-3); }
  .mead__bottle { width: 36px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s-3); }
  .glass-slot { min-height: 140px; }
  .token { min-height: 120px; }
  .token__name { font-size: .92rem; }
  .book { padding: var(--s-4); }
  .book__row { grid-template-columns: minmax(0, 1fr); }
  .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booked { grid-template-columns: minmax(0, 1fr); }
  .booked__seal { width: 96px; }
  .colophon__grid { grid-template-columns: minmax(0, 1fr); }
}
