/* The Woman's Club of Dunnellon. One stylesheet, no build step.
   Warm paper, a slab-soft serif for headlines, the club's monogram red and its green.
   Framed cards, printed photographs and flyers, ribbons for the small labels. */

/* ---------- tokens ---------- */
:root {
  --bg: #f4ecdd;
  --bg-2: #eadcc2;
  --card: #fbf6ec;
  --print: #fffaf0;
  --ink: #2b221d;
  --ink-soft: #5e5047;
  --frame: #33402a;
  --line: rgba(43, 34, 29, 0.16);
  --red: #a8261f;
  --red-btn: #a8261f;
  --red-btn-hover: #8e1f19;
  --on-red: #fff8ef;
  --green: #23472f;
  --green-2: #2f5a3c;
  --on-green: #f4ecdd;
  --gold: #c58a26;
  --gold-light: #e9be6e;
  --shadow: 0 22px 44px -22px rgba(70, 45, 20, 0.45);
  --shadow-print: 0 14px 30px -14px rgba(70, 45, 20, 0.5);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.15rem);
  --step-lead: clamp(1.125rem, 1.02rem + 0.4vw, 1.3rem);
  --step-h3: clamp(1.35rem, 1.15rem + 0.7vw, 1.75rem);
  --step-h2: clamp(2.1rem, 1.5rem + 2.2vw, 3.4rem);
  --step-h1: clamp(2.7rem, 1.7rem + 3.6vw, 4.75rem);
  --step-pillar: clamp(2.6rem, 1.9rem + 3vw, 4.6rem);

  --max: 72rem;
  --pad: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1713;
    --bg-2: #261f19;
    --card: #2b241d;
    --print: #f3ebdd;
    --ink: #f1e6d3;
    --ink-soft: #cbbca6;
    --frame: #cdb98f;
    --line: rgba(241, 230, 211, 0.16);
    --red: #ec7a6d;
    --red-btn: #b42b22;
    --red-btn-hover: #c7362c;
    --green: #1c3826;
    --green-2: #2a5238;
    --gold: #e0a94a;
    --shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.7);
    --shadow-print: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  min-height: 100vh; background-color: var(--bg); color: var(--ink);
  font: 400 var(--step-body) / 1.6 var(--sans); -webkit-font-smoothing: antialiased;
  /* a faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; font-optical-sizing: auto; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 1rem; }

.wrap { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }
.band { padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.band--sand { background: var(--bg-2); }
.band--green { background: var(--green); color: var(--on-green); }
.accent { color: var(--red); }
em.accent { font-style: italic; font-weight: 600; }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.85rem 1.6rem; border: 2px solid var(--red-btn); border-radius: 8px;
  background: var(--red-btn); color: var(--on-red);
  font: 600 0.875rem / 1 var(--serif); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}
.button:hover { background: var(--red-btn-hover); border-color: var(--red-btn-hover); }
.button:active { transform: translateY(1px); }
.button--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--line:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.button--paper { background: var(--print); border-color: var(--print); color: #8e1f19; }
.button--paper:hover { background: #fff; border-color: #fff; }
.button--small { min-height: 2.6rem; padding: 0.6rem 1.1rem; font-size: 0.8125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.link { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; font-weight: 500; }
.link:hover { color: var(--red); }
.band--green .link:hover, .tile--red .link:hover, .tile--green .link:hover { color: var(--gold-light); }

.ribbon {
  display: inline-block; padding: 0.45rem 1.4rem; background: var(--green-2); color: var(--on-green);
  font: 600 0.8125rem / 1.2 var(--serif); letter-spacing: 0.14em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.7rem) 50%, 100% 100%, 0 100%, 0.7rem 50%);
}
.tag {
  display: inline-block; margin-right: 0.35rem; padding: 0.15rem 0.55rem; border-radius: 4px;
  background: var(--red-btn); color: var(--on-red); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}

/* A framed card: a dark outer border with a thin inner line, like a mounted print. */
.frame {
  position: relative; padding: 0.75rem; background: var(--card);
  border: 2.5px solid var(--frame); border-radius: var(--radius); box-shadow: var(--shadow);
}
.frame::before { content: ""; position: absolute; inset: 0.45rem; border: 1px solid var(--frame); border-radius: 10px; opacity: 0.45; pointer-events: none; }

/* A printed photograph or flyer, tilted and taped down. */
.print { position: relative; padding: 0.6rem 0.6rem 0.9rem; background: var(--print); box-shadow: var(--shadow-print); transform: rotate(var(--r, 0deg)); transition: transform 400ms var(--ease); }
.print img { width: 100%; }
.print::before {
  content: ""; position: absolute; top: -0.8rem; left: 50%; width: 5.5rem; height: 1.6rem; transform: translateX(-50%) rotate(-3deg);
  background: rgba(222, 205, 168, 0.85); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar__inner { display: flex; align-items: center; gap: 2rem; width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; min-height: 4.5rem; }
.bar__mark { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; text-decoration: none; font: 700 1.0625rem / 1.1 var(--serif); }
.bar__mark img { width: 4.25rem; }
.bar__nav { display: flex; gap: 1.75rem; font: 500 1rem var(--serif); }
.bar__nav a { padding-block: 0.5rem; text-decoration: underline 2px transparent; text-underline-offset: 0.4em; transition: text-decoration-color 200ms ease, color 200ms ease; }
.bar__nav a:hover { color: var(--red); text-decoration-color: currentColor; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.hero__frame img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 35%; border-radius: 8px; }
.hero__frame figcaption { padding: 0.7rem 0.4rem 0.1rem; font-size: var(--step-small); color: var(--ink-soft); }
.hero__copy { display: grid; justify-items: start; gap: 1.5rem; }
.hero__title { font-size: var(--step-h1); }
.hero__title .accent { display: block; }
.hero__lead { max-width: 34rem; font-size: var(--step-lead); color: var(--ink-soft); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem clamp(2rem, 1rem + 5vw, 6rem); align-items: start; padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.about__text { display: grid; gap: 1.25rem; max-width: 38rem; }
.about__title { margin-bottom: 0.5rem; }
.about__text p { color: var(--ink-soft); }
.about__text strong { color: var(--ink); }
.about__card { padding: 2rem 2rem 1.75rem; margin-top: 0.5rem; }
.about__card h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.dots { display: grid; gap: 0.75rem; }
.dots li { display: grid; grid-template-columns: 0.75rem 1fr; gap: 0.85rem; align-items: baseline; font-weight: 600; }
.dots li::before { content: ""; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--dot); transform: translateY(0.1rem); }
.dot--green { --dot: var(--green-2); }
.dot--red { --dot: var(--red); }
.dot--gold { --dot: var(--gold); }
.pillars { grid-column: 1 / -1; margin-top: 3rem; border-top: 2px solid var(--ink); }
.pillars > div { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem 4rem; align-items: center; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.pillars dt { font: 700 var(--step-pillar) / 1 var(--serif); letter-spacing: -0.015em; }
.pillars dd { max-width: 26rem; color: var(--ink-soft); }
.pillar--green { color: var(--green-2); }
.pillar--red { color: var(--red); }
@media (prefers-color-scheme: dark) { .pillar--green { color: #8fc39f; } }

/* ---------- next event ---------- */
.next__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; }
.next__flyer { --r: -2.5deg; max-width: 27rem; justify-self: center; }
.next__flyer a { display: block; }
.next__copy { display: grid; justify-items: start; gap: 1.25rem; }
.next__lead { font-size: var(--step-lead); color: var(--ink-soft); max-width: 34rem; }
.facts { width: 100%; max-width: 36rem; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); font-size: var(--step-small); padding-top: 0.1rem; }
.facts dd { font-weight: 600; }
.next__note { font-size: var(--step-small); color: var(--ink-soft); }

/* ---------- the club year ---------- */
.events__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.events__head p { margin-top: 0.75rem; max-width: 32rem; opacity: 0.85; }
.events__nav { display: flex; gap: 0.6rem; }
.events__nav[hidden] { display: none; }
.round { display: grid; place-items: center; width: 3rem; height: 3rem; border: 2px solid currentColor; border-radius: 50%; transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease; }
.round:hover { background: var(--on-green); color: var(--green); }
.round:disabled { opacity: 0.35; cursor: default; background: none; color: inherit; }
.track {
  --edge: max(var(--pad), (100% - var(--max)) / 2);
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(16.5rem, 24vw, 20rem); gap: 1.25rem;
  padding: 0.5rem var(--edge) 1.5rem; scroll-padding-inline: var(--edge);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--gold-light) transparent;
}
.track:focus-visible { outline-offset: -3px; }
.event { position: relative; display: grid; grid-template-rows: auto 1fr; scroll-snap-align: start; background: var(--card); color: var(--ink); border-radius: 14px; overflow: hidden; }
.event__img { display: block; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--bg-2); }
.event__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 500ms var(--ease); }
.event:hover .event__img img { transform: scale(1.03); }
.event.is-held .event__img img { filter: saturate(0.55); }
.event__body { display: grid; align-content: start; gap: 0.5rem; padding: 1.25rem 1.25rem 1.4rem; }
.event__when { font-size: var(--step-small); font-weight: 600; color: var(--red); }
.event.is-held .event__when { color: var(--ink-soft); }
.event h3 { font-size: 1.375rem; }
.event__where, .event__price { font-size: var(--step-small); color: var(--ink-soft); }
.event__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 0.5rem; font-size: var(--step-small); }

/* ---------- where the money went ---------- */
.giving { padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.giving__head { max-width: 36rem; margin-bottom: 4rem; }
.giving__head p { margin-top: 0.75rem; color: var(--ink-soft); }
.prints { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem clamp(2rem, 1rem + 6vw, 8rem); }
.prints__item { max-width: 25rem; }
.prints__item:nth-child(even) { margin-top: 7rem; justify-self: end; }
.prints__item h3 { margin-top: 1.6rem; font-size: 1.375rem; }
.prints__item p { margin-top: 0.4rem; color: var(--ink-soft); }
.print--left { --r: -2deg; }
.print--right { --r: 2.2deg; }
.prints .print img { aspect-ratio: 4 / 4.6; object-fit: cover; }
.giving__more { margin-top: 3.5rem; text-align: center; }

/* ---------- visit ---------- */
.visit__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; }
.stack { position: relative; height: clamp(22rem, 16rem + 18vw, 31rem); }
.stack .print { position: absolute; width: 52%; }
.stack .print img { aspect-ratio: 3 / 3.6; object-fit: cover; }
.stack .print::before { display: none; }
.stack .print:nth-child(1) { --r: -6deg; left: 2%; top: 4%; }
.stack .print:nth-child(2) { --r: 4deg; left: 42%; top: 0; width: 56%; }
.stack .print:nth-child(2) img { aspect-ratio: 4 / 3; }
.stack .print:nth-child(3) { --r: -1.5deg; left: 30%; top: 38%; }
.visit__copy { display: grid; justify-items: start; gap: 1.25rem; }
.visit__copy > p { color: var(--ink-soft); max-width: 32rem; }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; margin-block: 0.5rem; }
.visit__grid dt { font-size: var(--step-small); color: var(--ink-soft); }
.visit__grid dd { font-weight: 600; overflow-wrap: anywhere; }
.visit__grid .visit__email { grid-column: 1 / -1; }

/* ---------- more ways to help ---------- */
.help { padding-block: clamp(4rem, 3rem + 4vw, 7rem) 2rem; }
.help > h2 { margin-bottom: 2.5rem; }
.help__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; }
.tile { display: grid; align-content: start; justify-items: start; gap: 1rem; padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); border-radius: var(--radius); }
.tile p { max-width: 30rem; }
.tile--red { grid-row: span 2; align-content: center; background: var(--red-btn); color: var(--on-red); box-shadow: var(--shadow); }
.tile--red h3 { font-size: var(--step-h2); }
.tile--paper p { color: var(--ink-soft); }
.tile--green { background: var(--green); color: var(--on-green); }

/* ---------- questions ---------- */
.questions { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem 4rem; padding-block: clamp(4rem, 3rem + 4vw, 6rem); }
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; cursor: pointer; list-style: none; font: 600 var(--step-lead) / 1.3 var(--serif); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; color: var(--red); transition: transform 250ms var(--ease); }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--red); }
.faq__item p { padding: 0 3rem 1.5rem 0; color: var(--ink-soft); max-width: 44rem; }

/* ---------- start here ---------- */
.start__inner { display: grid; justify-items: center; gap: 1.25rem; text-align: center; }
.start__heart { color: var(--red); }
.start__inner p { max-width: 32rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.foot { padding-block: 4rem 2rem; background: var(--bg-2); border-top: 1px solid var(--line); font-size: var(--step-small); }
.foot__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 0.8fr; gap: 2rem; width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }
.foot__brand img { width: 5.5rem; margin-bottom: 0.75rem; }
.foot__name { font: 700 1.25rem / 1.2 var(--serif); margin-bottom: 0.25rem; }
.foot__brand p:last-child { color: var(--ink-soft); }
.foot__col { font-style: normal; line-height: 1.9; }
.foot__links { display: grid; align-content: start; }
.foot__base { width: min(var(--max), 100% - 2 * var(--pad)); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- forms: dialog and standalone page ---------- */
.modal { margin: auto; width: min(36rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: 0; border: 2.5px solid var(--frame); border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.modal::backdrop { background: rgba(28, 23, 19, 0.6); }
.modal__panel { position: relative; padding: 2.5rem 2rem 2rem; }
.modal__close { position: absolute; top: 0.75rem; right: 0.75rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.modal__close:hover { background: var(--bg-2); }
.form__title, .form__done h1, .form__done h2 { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem); margin-bottom: 0.75rem; padding-right: 2.5rem; }
.form__intro { margin-bottom: 1.5rem; color: var(--ink-soft); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__row { display: grid; gap: 0.35rem; grid-column: 1 / -1; }
.form__row--half { grid-column: auto; }
.form__row label { font-weight: 600; }
.form__opt, .form__hint { font-size: var(--step-small); color: var(--ink-soft); font-weight: 400; }
.form__row input { width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; background: var(--bg); color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 8px; font: inherit; font-size: max(1rem, var(--step-body)); }
.form__row input:focus-visible { border-color: var(--ink); outline-offset: 1px; }
.form__row input[aria-invalid="true"] { border-color: var(--red); }
.form__err { color: var(--red); font-size: var(--step-small); font-weight: 600; }
.form__alert { margin-bottom: 1rem; padding: 0.75rem 1rem; background: var(--red-btn); color: var(--on-red); border-radius: 8px; }
.form__notice { margin-top: 1rem; }
.form__row textarea { width: 100%; padding: 0.7rem 0.9rem; background: var(--bg); color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 8px; font: inherit; font-size: max(1rem, var(--step-body)); resize: vertical; }
.form__row textarea[aria-invalid="true"] { border-color: var(--red); }
.rentals { margin-top: 1.5rem; padding: 0; border: 0; }
.rentals legend { padding: 0 0 0.25rem; font-weight: 600; }
.rentals__rules { margin-bottom: 0.25rem; font-size: var(--step-small); color: var(--ink-soft); }
.rental { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
.rental label { font-weight: 500; }
.rental .form__opt { display: block; }
.rental select { min-width: 4.5rem; min-height: 2.75rem; padding: 0.4rem 0.6rem; background: var(--bg); color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 8px; font: inherit; }
.rentals .form__err { display: block; margin-top: 0.5rem; }
.form__row select { width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; background: var(--bg); color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 8px; font: inherit; font-size: max(1rem, var(--step-body)); }
.slots { margin-top: 1.25rem; padding: 0; border: 0; }
.page--wide { width: min(46rem, 100% - 2 * var(--pad)); }
.group { margin-top: 1.75rem; padding: 1.5rem 0 0; border: 0; border-top: 1px solid var(--line); }
.group legend { float: left; width: 100%; margin-bottom: 0.5rem; padding: 0; font: 700 1.25rem / 1.2 var(--serif); }
.group legend + * { clear: both; }
.group > .form__note:first-of-type { margin: 0 0 0.75rem; }
.form__pair { display: flex; gap: 0.5rem; }
.form__pair select { flex: 1; }
.slots__grid.slots__grid--two { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.slot.slot--tall span { display: grid; gap: 0.25rem; height: 100%; padding: 1rem 1.1rem; text-align: left; }
.slot--tall small { font-size: var(--step-small); font-weight: 400; opacity: 0.85; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.4rem 1rem; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; padding-block: 0.35rem; cursor: pointer; }
.check input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--green-2); }
.check small { display: block; font-size: var(--step-small); color: var(--ink-soft); }
.check--agree { margin-top: 0.75rem; font-weight: 500; }
.slots legend { margin-bottom: 0.5rem; padding: 0; font-weight: 600; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.5rem; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot span { display: block; padding: 0.7rem 0.75rem; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 8px; background: var(--bg); text-align: center; font-weight: 500; transition: background-color 150ms ease, border-color 150ms ease; }
.slot:hover span { border-color: var(--ink); }
.slot input:checked + span { background: var(--green-2); border-color: var(--green-2); color: var(--on-green); }
.slot input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.form__actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form__note { margin-top: 1rem; font-size: var(--step-small); color: var(--ink-soft); }
.form__hp { position: absolute; left: -9999px; }
.form__done { outline: none; }

.page { width: min(40rem, 100% - 2 * var(--pad)); margin-inline: auto; min-height: 60vh; padding-block: 4rem 5rem; }
.page h1 { font-size: var(--step-h2); max-width: 20ch; }
.page__lead { margin-top: 1.5rem; }
.page__form { padding: 2rem; }
.page__back { margin-top: 2rem; }

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  .bar__nav { display: none; }
  .hero, .next__inner, .visit__inner { grid-template-columns: 1fr; }
  .hero__frame { max-width: 30rem; }
  .about { grid-template-columns: 1fr; }
  .pillars > div { grid-template-columns: 1fr; gap: 0.5rem; }
  .questions { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .bar__inner { gap: 1rem; min-height: 4rem; }
  .bar__mark img { width: 3.5rem; }
  .bar__mark span { font-size: 0.9375rem; }
  .hero { padding-top: 1.5rem; }
  .actions { width: 100%; }
  .actions .button { flex: 1 1 12rem; }
  .about__card { padding: 1.75rem 1.5rem; }
  .next__flyer { max-width: 20rem; }
  .facts div { grid-template-columns: 4.5rem 1fr; }
  .events__head { flex-direction: column; align-items: start; }
  .events__nav { display: none; }
  .prints { grid-template-columns: 1fr; gap: 3.5rem; }
  .prints__item, .prints__item:nth-child(even) { max-width: 22rem; margin: 0 auto; justify-self: center; }
  .stack { height: 19rem; }
  .visit__grid { grid-template-columns: 1fr; }
  .help__grid { grid-template-columns: 1fr; }
  .tile--red { grid-row: auto; }
  .faq__item p { padding-right: 0; }
  .foot__inner { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .modal__panel { padding: 2.5rem 1.25rem 1.5rem; }
  .page__form { padding: 1.5rem 1.25rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 800ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .print[data-reveal].is-in, .js .next__flyer.is-in { transform: rotate(var(--r, 0deg)); }
  @media (hover: hover) {
    .print:hover, .next__flyer:hover { transform: rotate(0deg) scale(1.015); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { scroll-behavior: auto; }
}
