/* Vanaase — page layout on top of the Modernist tokens (assets/styles.css).
   Look: "Seto vöö" (Viktor's choice B, 2026-10-20) — linen ground, madder red, a woven band across the top of
   every page, under the hero, over the raised boxes and above the footer; a black zigzag under page headings;
   stitched lines between events. Handwriting (Caveat, class .hand and friends) only in the places he reviewed.
   Literals here are the sketch's site-specific values (shades, frames, wood), the rest comes from the tokens. */

html { scroll-behavior: smooth; }
[hidden] { display: none !important; } /* also over .btn's display */
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--color-text); }
a:hover { color: var(--color-accent-700); }
img { height: auto; }

/* Russian pages: Archivo has no Cyrillic, so they use Wix Madefor (Display for headings, Text for
   body; loaded per language via i18n/languages.json). The brand and the language switcher keep
   Archivo (--font-latin) on every page, so the header looks the same in all languages. */
:root { --font-latin: "Archivo", system-ui, sans-serif; }
html[lang="ru"] {
  --font-heading: "Wix Madefor Display", system-ui, sans-serif;
  --font-body: "Wix Madefor Text", system-ui, sans-serif;
}

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--space-6); padding-right: var(--space-6); }

/* — the Seto trims — */
.weave { height: 16px; background: var(--weave) repeat-x left center; }
.zig { height: 10px; background: var(--zig) repeat-x left center; }
.zig-linen { background-image: var(--zig-linen); opacity: 0.9; }
.hem { background: var(--color-bg); padding: 8px 0; }

/* handwriting */
.hand { font-family: var(--font-hand); font-weight: 600; letter-spacing: 0; text-transform: none; }
.hand-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px;
  font-family: var(--font-hand); font-weight: 600; font-size: 28px; line-height: 1;
  letter-spacing: 0; text-transform: none; color: var(--color-accent); text-decoration: none;
  background: var(--squiggle) left calc(50% + 0.62em) / 100% 9px no-repeat;
}
.hand-link:hover { color: var(--color-accent-700); }

/* buttons, as in the sketch: madder with linen text, or a 2px ink outline */
.btn { min-height: 48px; padding: 0 20px; font-family: var(--font-body); font-weight: 700; font-size: 16px; }
.btn-primary { color: var(--color-bg); }
.btn-secondary { border: 0; box-shadow: inset 0 0 0 2px var(--color-text); }
html[lang="ru"] .btn { font-family: var(--font-heading); }

/* — header — */
.header { position: relative; z-index: 40; background: var(--color-bg); }
/* on the home page the menu stays at the top while the page scrolls (the woven band above it scrolls away) */
.page-home .header { position: sticky; top: 0; box-shadow: 0 8px 14px -12px rgba(40,25,10,0.45); }
/* brand · nav · language switcher · hamburger — the nav (or, on phones, the switcher) takes the free space */
.header-row {
  max-width: 1280px; margin: 0 auto; min-height: 74px;
  padding: var(--space-2) clamp(12px, 3vw, 24px);
  display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(8px, 2vw, 24px);
}
.brand {
  display: flex; align-items: center; gap: clamp(6px, 1.5vw, 12px);
  font-family: var(--font-latin); font-weight: 800;
  font-size: clamp(18px, 4.8vw, 24px); letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
.brand-mark { width: clamp(28px, 7vw, 36px); height: clamp(28px, 7vw, 36px); flex: none; display: block; }

.nav-desktop {
  margin-left: auto;
  display: flex; align-items: center; gap: 26px;
  font-size: 16px; font-weight: 600;
}
.nav-desktop a { text-decoration: none; white-space: nowrap; }
.nav-desktop .btn { min-height: 42px; padding: 0 16px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--color-text); }

.nav-mobile {
  display: none; flex-direction: column;
  background: var(--color-bg) var(--zig) repeat-x left top;
  padding-top: 10px;
  font-family: var(--font-heading); font-weight: 800; font-size: 20px; letter-spacing: -0.01em;
}
.header.open .nav-mobile { display: flex; }
.nav-mobile a {
  text-decoration: none; padding: var(--space-4) clamp(12px, 3vw, 24px);
  min-height: 56px; display: flex; align-items: center;
  border-bottom: 2px dashed color-mix(in srgb, var(--color-text) 25%, transparent);
}
.nav-mobile a.ext { color: var(--color-accent); border-bottom: 0; }

/* language switcher: codes after a 2px rule, the current one underlined in the accent */
.lang {
  display: flex; align-items: center; flex: none;
  padding-left: 14px; border-left: 2px solid var(--color-text);
}
.lang a {
  display: flex; align-items: center; justify-content: center;
  min-width: 34px; min-height: 44px; padding: 0 5px;
  font-family: var(--font-latin);
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; color: var(--color-text-2);
}
.lang a:hover { color: var(--color-accent-700); }
.lang a[aria-current] {
  color: var(--color-text);
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 7px; text-decoration-color: var(--color-accent);
}

/* the disc golf button that stays in the bar when the menu folds into the hamburger */
.dg-phone { display: none; }
/* 1020px: with the language switcher (and Kostipäiv) the desktop nav needs ~980px in English */
@media (max-width: 1020px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .lang { margin-left: auto; padding-left: 0; border-left: 0; }
  .dg-phone { display: inline-flex; margin-left: auto; min-height: 38px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .dg-phone + .lang { margin-left: 0; }
}
/* narrow phones: brand, Discgolf (Диск-гольф in Russian), the three language codes and the hamburger in 360px */
@media (max-width: 400px) {
  .header-row { gap: 5px; padding-left: 10px; padding-right: 8px; }
  .dg-phone { padding: 0 8px; font-size: 13px; }
  .lang a { min-width: 28px; padding: 0 2px; font-size: 13px; }
  .nav-toggle { width: 40px; }
}
/* the smallest phones (320px): the logo alone, without the name */
@media (max-width: 340px) { .brand { font-size: 0; gap: 0; } }
@media (min-width: 1021px) {
  .nav-mobile { display: none !important; }
}
/* Russian menu labels are longer, so there the phone menu takes over below 1120px */
@media (min-width: 1021px) and (max-width: 1120px) {
  html[lang="ru"] .nav-desktop { display: none; }
  html[lang="ru"] .nav-toggle { display: flex; }
  html[lang="ru"] .lang { margin-left: auto; padding-left: 0; border-left: 0; }
  html[lang="ru"] .dg-phone { display: inline-flex; margin-left: auto; min-height: 38px; padding: 0 12px; font-size: 14px; }
  html[lang="ru"] .dg-phone + .lang { margin-left: 0; }
  html[lang="ru"] .header.open .nav-mobile { display: flex !important; }
}

/* — hero: full-bleed photo, a warm brown shade (not black), the woven band as its lower hem — */
.hero { position: relative; }
.hero-media { height: min(72vh, 640px); min-height: 400px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(52,26,12,0.8), rgba(52,26,12,0.35) 45%, rgba(52,26,12,0) 75%); }
.hero-content { position: absolute; left: 0; right: 0; bottom: clamp(28px, 4vw, 48px); }
.hero-content > div {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6);
  color: var(--color-bg); text-shadow: 0 1px 14px rgba(40,18,8,0.45);
}
.hero h1 {
  margin: 0; font-weight: 800; font-size: clamp(40px, 7vw, 96px);
  line-height: 0.98; letter-spacing: -0.035em; max-width: 12ch; text-wrap: balance;
}
/* below 360px "Meditatsioonitalu" is wider than the screen at the 40px minimum */
@media (max-width: 359px) { .hero h1 { font-size: 9.6vw; } }
/* phones only: a map link in the photo's top right corner, for people finding their way here */
.hero-map { display: none; }
@media (max-width: 700px) {
  .hero-map {
    position: absolute; top: 14px; right: max(14px, env(safe-area-inset-right, 0px)); z-index: 1;
    display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 11px;
    box-shadow: 0 4px 12px -4px rgba(40,25,10,0.45);
    background: var(--color-bg); color: var(--color-text); text-decoration: none; text-shadow: none;
    font-size: 15px; font-weight: 700; border-radius: 2px;
  }
  .hero-map svg { color: var(--color-accent); }
}
.hero-right .hero-media img { object-position: 50% 70%; } /* the barn and sauna in hero.jpg sit above the title */
.hero.hero-sm .hero-media { height: min(56vh, 460px); min-height: 300px; }
.hero.hero-sm .hero-content > div { max-width: 1280px; }
.hero.hero-sm h1 { font-size: clamp(36px, 6vw, 76px); max-width: 16ch; }

.kicker {
  margin: 0 0 12px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent);
}
.hero .kicker { color: #f5c9a8; }
/* handwritten: home (one of Viktor's three lines, picked at random on every load) and Kostipäiv */
.hero .kicker.hand {
  display: inline-block; text-transform: none; letter-spacing: 0; font-size: 32px; line-height: 1.1; color: #f8dcc4; margin-bottom: 8px;
  transform: rotate(-2deg); transform-origin: left bottom;
}

/* — event list: rows stitched apart — */
.events { max-width: 1280px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--space-6) clamp(40px, 6vw, 80px); }
.events-head h2 {
  margin: 0 0 14px; font-weight: 800; font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.05; letter-spacing: -0.03em;
}
.event {
  position: relative;
  padding: 30px 0 32px;
  display: flex; flex-wrap: wrap; gap: 6px var(--space-8);
  background: var(--stitch) left top / 100% 2px no-repeat;
}
.events-head + .event { background: none; }
.event-date {
  margin: 4px 0 0; flex: 0 0 230px; max-width: 100%;
  font-family: var(--font-heading); font-weight: 800; font-size: 20px;
  letter-spacing: -0.01em; color: var(--color-accent);
}
.event-main { flex: 1 1 460px; min-width: 0; }
.event-main h3 {
  margin: 0 0 10px; font-weight: 700; font-size: clamp(25px, 3vw, 36px);
  line-height: 1.08; letter-spacing: -0.025em;
}
.event-main p { margin: 0 0 12px; max-width: 62ch; text-wrap: pretty; }
.event-main .meta { font-weight: 600; }
/* "vabu kohti 12/12" beside the price: handwritten, red, a slight tilt */
.event-main .meta .note {
  display: inline-block; margin-left: 10px; white-space: nowrap;
  font-family: var(--font-hand); font-weight: 600; font-size: 25px; line-height: 1;
  color: var(--color-accent); transform: rotate(-2.5deg);
}
.event-img { margin: 4px 0 20px; max-width: 720px; aspect-ratio: 16 / 9; overflow: hidden; }
.event-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the long summer retreat: a raw-linen box with the band on top */
.event.event-big {
  background: var(--weave) repeat-x left top, var(--color-surface);
  margin: 20px 0 18px; padding: 44px clamp(18px, 3vw, 36px) 34px;
}
/* the box replaces its own stitched line, so it draws the line that closes the event above it */
.event.event-big::after {
  content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 2px; background: var(--stitch);
}
.event-big + .event { background: none; }

/* — reservations: event list buttons, live places — */
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.places { white-space: nowrap; }
.places.is-full { color: var(--color-accent-700); font-weight: 600; }
.btn[aria-disabled="true"] { pointer-events: none; }

/* — discgolf: a red section finished like the end of a Seto towel — */
.towel { background: var(--color-accent); color: var(--color-bg); padding: 14px 0; }
.towel-row {
  max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 84px) var(--space-6);
  display: grid; gap: 28px clamp(32px, 5vw, 72px); align-items: center;
}
@media (min-width: 860px) { .towel-row { grid-template-columns: 1.1fr 1fr; } }
.towel .kicker { color: #ffd3c2; }
.towel h2 {
  margin: 0 0 14px; font-weight: 800; font-size: clamp(32px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.03em;
}
.towel-text p:not(.kicker) { margin: 0 0 24px; max-width: 52ch; font-size: 19px; text-wrap: pretty; }
.towel-img { border: 6px solid var(--color-bg); aspect-ratio: 4 / 3; overflow: hidden; min-width: 0; }
.towel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn.btn-linen { background: var(--color-bg); color: var(--color-accent); }
.btn.btn-linen:hover { background: var(--color-field); color: var(--color-accent-700); }

/* — about teaser: the hosts in Seto dress, in a frame — */
.teaser { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 84px) var(--space-6); }
.teaser-row { display: grid; gap: 28px clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 860px) { .teaser-row { grid-template-columns: 1fr 1fr; } }
.teaser-text { min-width: 0; }
.teaser-text h2 {
  margin: 0 0 14px; font-weight: 800; font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05; letter-spacing: -0.03em;
}
.teaser-text p { margin: 0 0 22px; max-width: 56ch; text-wrap: pretty; }
.framed { margin: 0; padding: 10px; background: var(--color-bg); box-shadow: 0 0 0 2px var(--color-text); min-width: 0; }
.framed img { width: 100%; display: block; }

/* — retreat page — */
.prose { max-width: 1280px; margin: 0 auto; padding: clamp(32px, 5vw, 60px) var(--space-6) clamp(40px, 6vw, 80px); }
.prose > * { max-width: 760px; }
.prose > p:first-child {
  margin: 0 0 22px; font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(21px, 2.4vw, 27px); line-height: 1.35; letter-spacing: -0.01em; text-wrap: pretty;
}
.prose p { margin: 0 0 16px; text-wrap: pretty; }
.prose h2 {
  margin: 34px 0 10px; font-weight: 800; line-height: 1.1;
  font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.025em;
}
.prose-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 28px; }

/* the price box: band on top, handwritten lowercase labels */
.facts {
  display: flex; flex-wrap: wrap; gap: 18px 40px;
  margin: 28px 0; padding: 44px clamp(18px, 3vw, 32px) 24px;
  background: var(--weave) repeat-x left top, var(--color-surface);
}
.fact { flex: 1 1 180px; }
.fact .fact-label {
  margin: 0 0 4px; font-family: var(--font-hand); font-weight: 600; font-size: 27px; line-height: 1.1;
  letter-spacing: 0; text-transform: lowercase; color: var(--color-accent);
}
.fact p { margin: 0; }

/* — pages with a plain heading (Meist, Kontakt, booking, terms): the heading, then the zigzag — */
.page { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--space-6) var(--space-8); }
.page h1 {
  margin: 0 0 14px; font-weight: 800; font-size: clamp(38px, 6vw, 76px);
  line-height: 1; letter-spacing: -0.035em;
}
.page > .zig, .page-head > .zig { margin-bottom: 30px; }

/* Meist */
.cols { display: grid; gap: 32px clamp(28px, 4vw, 64px); padding-bottom: 52px; }
@media (min-width: 860px) { .cols { grid-template-columns: 1fr 1fr; } }
.col { min-width: 0; }
.col-img { aspect-ratio: 4 / 3; overflow: hidden; }
.col-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col h2 { margin: 20px 0 8px; font-weight: 800; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.02em; }
.col p { margin: 0 0 12px; max-width: 62ch; text-wrap: pretty; }
.sign { margin: 16px 0 0 !important; font-family: var(--font-hand); font-weight: 600; font-size: 32px; line-height: 1.1; }

.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.gallery > div { aspect-ratio: 4 / 3; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page.after-strip { padding-top: 44px; }

/* — contact — */
.contact-cols { display: grid; gap: 36px clamp(28px, 5vw, 72px); }
@media (min-width: 880px) { .contact-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.contact-info { min-width: 0; }
.contact-info .intro { margin: 0 0 24px; font-size: clamp(18px, 1.8vw, 21px); max-width: 44ch; text-wrap: pretty; }
.kv { display: grid; gap: 18px; }
.kv-label {
  margin: 0 0 2px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent);
}
.kv a { text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--color-accent) 35%, transparent); }
.kv a:hover { border-bottom-color: var(--color-accent); }
.kv p { margin: 0; }
.kv p + p { margin-top: var(--space-1); }
/* the phone hangs at the top right, beside the short e-mail and phone lines, so the longer ones below keep the
   whole width */
.info-row { position: relative; }
.map { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 10px; justify-items: start; }
.map iframe { display: block; width: 100%; height: clamp(280px, 42vw, 440px); border: 2px solid var(--color-text); background: var(--color-surface); }
.wall-phone {
  position: absolute; top: 4px; right: 6px; width: 190px; height: auto;
  transform: rotate(1.5deg); filter: drop-shadow(0 6px 6px rgba(40,25,10,0.35)); pointer-events: none;
}
@media (max-width: 600px) { .wall-phone { display: none; } }

.contact-form {
  min-width: 0; display: grid; gap: var(--space-4); align-self: start; align-content: start;
  padding: 40px clamp(18px, 3vw, 32px) 28px;
  background: var(--weave) repeat-x left top, var(--color-surface);
}
.contact-form .btn { justify-self: start; }
.field > label { font-size: 15px; font-weight: 600; color: var(--color-text); margin-bottom: 6px; }
.input {
  min-height: 48px; padding: 10px 12px; font-size: 17px;
  background: var(--color-field); border: 2px solid var(--color-text); border-radius: 2px;
}
.input:hover { border-color: var(--color-text); }
.input:focus-visible { border-color: var(--color-accent); outline: 2px solid var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 120px; }
.field-error { display: none; margin: 5px 0 0; font-size: 14px; font-weight: 600; color: var(--color-accent-700); }
.field.invalid .field-error { display: block; }
.field.invalid .input { border-color: var(--color-accent); }
.form-note { margin: 0; font-size: 15px; line-height: 1.5; }
.form-note.error { color: var(--color-accent-700); }
/* after sending: "Aitäh, saatsime teele" handwritten */
.form-success h2 {
  margin: 0 0 8px; font-family: var(--font-hand); font-weight: 600; font-size: 40px;
  line-height: 1.05; letter-spacing: 0; color: var(--color-accent);
}
.form-success p { margin: 0; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* — footer: black, the band above it, the place name handwritten — */
.footer { background: var(--color-text); color: var(--color-bg); }
.footer-weave { margin-top: var(--space-8); }
.footer a { color: var(--color-bg); }
.footer a:hover { color: #f5c9a8; }
.footer-row {
  max-width: 1280px; margin: 0 auto; padding: 36px var(--space-6) 112px; /* keeps the floating contact button off the last line */
  display: flex; flex-wrap: wrap; gap: 20px 48px;
  justify-content: space-between; align-items: flex-end;
}
.footer-name { margin: 0; font-family: var(--font-latin); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.footer-sub { margin: 4px 0 0; font-family: var(--font-hand); font-weight: 600; font-size: 25px; line-height: 1.1; opacity: 0.92; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 20px; max-width: 700px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.footer-links a { text-decoration: none; }

/* — floating contact button — */
.fab {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 50;
  min-height: 52px; padding: 0 22px; font-size: 16px;
  box-shadow: 0 0 0 3px var(--color-bg), 0 12px 30px -6px rgba(60,20,10,0.5);
}

/* — reservation page (/broneeri/) — */
/* Long single words ("ЗАБРОНИРОВАТЬ", "BRONEERIMISTINGIMUSED") must fit a 320–360px phone, so the floor follows the width. */
.page.booking h1, .page.terms h1 { font-size: clamp(min(38px, 8.6vw), 6vw, 76px); overflow-wrap: break-word; }
/* after paying: "Aitäh! Koht on broneeritud" handwritten (broneeri.js adds .is-thanks) */
.page.booking h1.is-thanks {
  font-family: var(--font-hand); font-weight: 600; letter-spacing: 0; line-height: 1.05;
  font-size: clamp(44px, 7vw, 80px); color: var(--color-accent);
}
.booking-intro { margin: 0 0 var(--space-8); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; max-width: 62ch; text-wrap: pretty; }
.booking-cols { display: grid; gap: 36px clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .booking-cols { grid-template-columns: minmax(0, 1fr) 300px; } }
.booking-main { min-width: 0; max-width: 760px; }
.booking-side { min-width: 0; display: grid; gap: 18px; align-content: start; }
.booking-side p { margin: 0; font-size: 17px; line-height: 1.5; }
.booking-side p + p { margin-top: var(--space-1); }
.booking-side a { text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--color-accent) 35%, transparent); }
.booking-side .find-pic { display: flex; justify-content: center; padding-top: 30px; }
@media (max-width: 899px) { .booking-side .find-pic { display: none; } }
.booking-none { margin: 0; font-size: 19px; line-height: 1.5; }

.booking-form, .booking-status {
  padding: 44px clamp(18px, 3vw, 32px) 28px;
  background: var(--weave) repeat-x left top, var(--color-surface);
}
.step { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.step:last-child { margin-bottom: 0; }
.step legend {
  display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 14px;
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em;
}
.step-no {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-bg); font-size: 17px;
}
.step .hint { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--color-text-2); }
.step .field + .field { margin-top: var(--space-4); }
.step .opt { font-weight: 400; color: var(--color-text-2); }
.step .input { background: var(--color-field); }
.step textarea.input { min-height: 88px; resize: vertical; line-height: 1.45; }
.step > .field-error { margin-top: var(--space-2); }
.step.invalid > .field-error { display: block; }

/* 1 — which event: the whole row is the choice */
.pick-events { display: grid; gap: 8px; }
.pick-event {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 14px 16px; background: var(--color-field); border: 2px solid var(--color-text); border-radius: 2px;
}
.pick-event:hover { border-color: var(--color-accent-700); }
.pick-event:has(input:checked) { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.pick-event input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--color-accent); }
.pick-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.pick-title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.2; }
.pick-meta { font-size: 15px; color: var(--color-text-2); }
.pick-free { flex: none; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--color-text-2); }
.pick-event.is-off { cursor: not-allowed; border-color: var(--color-neutral-400); }
.pick-event.is-off .pick-text { opacity: 0.5; }
.pick-meta > span { white-space: nowrap; }
/* phones: the free places go under the name, the radio stays beside it */
@media (max-width: 560px) {
  .pick-event { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 14px; row-gap: var(--space-1); align-items: start; }
  .pick-event input { margin-top: 2px; }
  .pick-free { grid-column: 2; }
}

/* 2 — how many places: four square buttons */
.pick-count { display: flex; gap: 8px; }
.pick-n { position: relative; }
.pick-n input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick-n span {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  background: var(--color-field); border: 2px solid var(--color-text); border-radius: 2px;
  font-family: var(--font-heading); font-weight: 800; font-size: 18px;
}
.pick-n input:checked + span { background: var(--color-text); color: var(--color-bg); }
.pick-n input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.pick-n input:disabled { cursor: not-allowed; }
.pick-n input:disabled + span { opacity: 0.3; }

/* 4 — what is paid now and what on site */
.booking-sum { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.booking-sum th, .booking-sum td { padding: 10px 0; vertical-align: baseline; border-top: 2px dashed color-mix(in srgb, var(--color-text) 30%, transparent); }
.booking-sum th { text-align: left; font-weight: 600; font-size: 16px; }
.booking-sum td { text-align: right; white-space: nowrap; padding-left: var(--space-3); font-size: 16px; }
.booking-sum .sum-calc { color: var(--color-text-2); font-size: 15px; }
.booking-sum .sum-amt { font-weight: 800; }
.booking-sum .sum-fee .sum-amt { font-family: var(--font-heading); font-size: 24px; letter-spacing: -0.02em; }

.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 16px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-accent); }
.check a { text-decoration: none; border-bottom: 2px solid var(--color-accent); }

/* "Soovin arvet ettevõttele": the company fields open under the box (no script needed) */
.invoice { margin-top: var(--space-6); }
.invoice-fields { display: none; margin-top: var(--space-4); padding: var(--space-4) 0 0 var(--space-4); border-left: 2px dashed color-mix(in srgb, var(--color-text) 35%, transparent); }
.invoice:has(input[name="invoice"]:checked) .invoice-fields { display: block; }
.invoice-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-4); }
.invoice-row .field + .field { margin-top: 0; }
@media (max-width: 560px) { .invoice-row { grid-template-columns: 1fr; } }

.pay { display: grid; gap: 10px; margin-top: var(--space-6); }
.pay-btn {
  width: 100%; min-height: 64px; justify-content: space-between; gap: var(--space-4); text-align: left;
  padding: 10px 18px; font-size: 17px;
}
.pay-label { display: grid; gap: 3px; }
.pay-label small { font-family: var(--font-body); font-weight: 400; font-size: 13px; line-height: 1.35; opacity: 0.85; }
.pay-go { font-size: 22px; }
.pay-soon {
  flex: none; padding: 3px 8px; border: 1px solid currentColor;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
}
.btn-secondary.pay-btn:disabled { opacity: 0.5; }
.pay-dev { justify-self: start; font-size: 12px; min-height: 36px; } /* local development only (the fake bank) */
.pay-btn:not(:disabled) .pay-soon { display: none; }
.pay-btn:disabled .pay-go { display: none; }
.booking-form .form-note { margin-top: var(--space-4); font-size: 15px; font-weight: 600; }

/* a club member link from zyq.ee: what the member gets, name and email locked */
.member-box {
  margin: 0 0 var(--space-4); padding: var(--space-4) var(--space-6);
  background: var(--color-accent-100); border-left: 3px solid var(--color-accent);
}
.member-box p { margin: 0; font-size: 16px; line-height: 1.5; }
.member-box p + p { margin-top: var(--space-2); }
.member-box .member-line { font-weight: 600; }
.member-box a { text-decoration: none; border-bottom: 2px solid var(--color-accent); }
.step .input[readonly] { background: var(--color-surface); color: var(--color-text-2); cursor: default; }

/* after the payment: the same page shows where the reservation stands */
.booking-status h2 { margin: 0 0 var(--space-3); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1; letter-spacing: -0.03em; }
.booking-status .status-meta { margin: 0 0 var(--space-4); font-size: 15px; color: var(--color-text-2); }
.booking-status .status-text { margin: 0 0 var(--space-6); line-height: 1.6; max-width: 52ch; }
.booking-status .status-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; }

/* — terms page — */
.page.terms .prose { margin: 0; padding: 0; max-width: 760px; }
.page.terms .prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 34px 0 8px; }
.page.terms .prose h2:first-child { margin-top: 0; }
.page.terms .prose p { margin: 0 0 12px; font-size: 17px; }

/* ══ Finds: wall pictures in mixed frames and old radios (assets/finds.js). Real photos come from
   content/images/seinapildid/ and content/images/raadiod/; until then drawn stand-ins. No captions. ══ */
canvas[data-art], canvas[data-radio] { display: block; width: 100%; height: auto; min-width: 0; }
.piece { width: var(--pw); flex: none; }
.pic { position: relative; display: block; margin: 0; }
.pic .in { display: block; }
.pic img { display: block; width: 100%; height: auto; }
/* frames — every one different, as on the walls of the house (stand-ins only; a photo shows its own frame) */
.fr-gilt { padding: 9px; background: linear-gradient(135deg, #9c7224, #f0d68c 28%, #a87a24 52%, #e9c977 78%, #8e641c); box-shadow: inset 0 0 0 1px rgba(70,45,10,0.6), 0 8px 16px -6px rgba(40,25,10,0.5); }
.fr-gilt .in { box-shadow: 0 0 0 2px rgba(70,45,10,0.45); }
.fr-wood { padding: 11px; background: linear-gradient(90deg, #3f2615, #6b4329 45%, #4a2e1d); box-shadow: inset 0 0 0 1px #24160c, 0 8px 16px -6px rgba(40,25,10,0.5); }
.fr-white { padding: 9px; background: #f8f5ef; box-shadow: inset 0 0 0 1px #d6cebf, 0 6px 14px -6px rgba(40,25,10,0.4); }
.fr-mat { padding: 3px; background: #1d1a18; box-shadow: 0 6px 14px -6px rgba(40,25,10,0.45); }
.fr-mat .in { padding: 13px; background: #faf7f0; }
.fr-red { padding: 7px; background: #a3221b; box-shadow: inset 0 0 0 1px #6e130e, 0 6px 14px -6px rgba(40,25,10,0.45); }
.fr-oval { padding: 8px; border-radius: 50%; background: linear-gradient(135deg, #9c7224, #f0d68c 28%, #a87a24 52%, #e9c977 78%, #8e641c); box-shadow: 0 8px 16px -6px rgba(40,25,10,0.5); }
.fr-oval .in, .fr-oval canvas { border-radius: 50%; }
.fr-thin { padding: 2px; background: #6b4329; box-shadow: 0 6px 12px -6px rgba(40,25,10,0.4); }
.fr-thin .in { padding: 6px; background: #efe6d6; }
.pic-photo { filter: drop-shadow(0 6px 8px rgba(40,25,10,0.35)); }

/* hung on a nail */
.hang { margin-top: 34px; }
.hang::before {
  content: ""; position: absolute; left: 50%; top: -30px; width: 56%; height: 31px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'%3E%3Cpath d='M2 30 50 1 98 30' fill='none' stroke='%236b5a48' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hang::after { content: ""; position: absolute; left: 50%; top: -34px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #3b2a20; box-shadow: 0 1px 0 rgba(255,255,255,0.3); }

.radio { display: block; flex: none; min-width: 0; filter: drop-shadow(0 4px 3px rgba(30,15,5,0.35)); }
img.radio { height: auto; }
.find-radio .radio { width: 100%; }
.board { height: 9px; background: linear-gradient(#7a4a2a, #4a2e1d); border-radius: 1px; box-shadow: 0 6px 8px -5px rgba(40,25,10,0.5); }

/* beside an event: desktop — hanging in the empty right-hand column; phones — small, between events */
.event .find { flex: 0 0 auto; margin-left: auto; display: flex; flex-direction: column; align-items: center; padding: 2px 10px 0 0; }
.event .find .piece { width: min(var(--pw), 40vw); }
.event .find .find-radio { width: min(var(--pw), 44vw); }
@media (max-width: 760px) {
  .event .find { flex-basis: 100%; flex-direction: row-reverse; justify-content: flex-start; align-items: center; padding: 10px 8px 0 0; }
}

/* the two-row strip: pictures on strings from a picture rail, radios on a shelf.
   Moved only by the page scroll (finds.js) and by dragging a row sideways. */
.drift { position: relative; overflow: hidden; background: var(--color-surface); padding-block: 0 30px; --z: 1; }
@media (max-width: 600px) { .drift { --z: 0.72; } }
.drift-row { position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.drift-row.grabbing { cursor: grabbing; }
.drift-track { display: flex; width: max-content; will-change: transform; }
.drift-set { display: flex; flex: none; gap: calc(48px * var(--z)); padding-right: calc(48px * var(--z)); }
.drift .pics { padding: 12px 0 26px; background: linear-gradient(#7a4a2a, #4a2e1d) left 0 / 100% 10px no-repeat; }
.drift .pics .drift-set { align-items: flex-start; }
.drift .pics .piece { width: calc(var(--pw) * var(--z)); }
.drift .on-rail { position: relative; margin-top: calc(var(--drop) * var(--z)); }
.drift .on-rail .pic::before { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--drop) * var(--z) - 2px); height: calc(var(--drop) * var(--z) + 2px); border-left: 1.5px solid #6b5a48; }
.drift .radios { padding: 12px 0 10px; } /* the radios' feet sink 4px behind the shelf's front edge */
.drift .radios .drift-set { align-items: flex-end; padding-left: calc(10px * var(--z)); }
.drift .radios .radio { width: calc(var(--rw) * var(--z)); }
.drift .radios::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(#7a4a2a, #4a2e1d); box-shadow: 0 10px 14px -8px rgba(40,25,10,0.55); }
.drift canvas, .drift img { pointer-events: none; -webkit-user-drag: none; }

/* — Seto Kostipäiv: a photo album per year. Justified rows: every photo keeps its shape, a row fills the width
     (flex-grow by the photo's aspect ratio); the last row keeps the row height. — */
.kosti-intro { padding-bottom: 0; }
.album-jump { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 20px 0 0; }
.album-jump a {
  font-family: var(--font-hand); font-weight: 600; font-size: 32px; line-height: 1.1;
  color: var(--color-accent); text-decoration: none;
}
.album-jump a:hover { color: var(--color-accent-700); text-decoration: underline; text-underline-offset: 5px; }
.albums { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6) clamp(40px, 6vw, 80px); }
.album { padding-top: clamp(32px, 5vw, 56px); scroll-margin-top: 72px; }
.album-year {
  margin: 0 0 16px; font-weight: 800; font-size: clamp(36px, 5vw, 60px);
  line-height: 1; letter-spacing: -0.035em;
}
.album > p { max-width: 62ch; margin: 0 0 16px; text-wrap: pretty; }
.album > .album-credit { margin-top: -6px; font-size: 15px; color: var(--color-text-2); }
.ph-grid { --row: clamp(100px, 21vw, 250px); display: flex; flex-wrap: wrap; gap: 8px; }
.ph-grid::after { content: ""; flex: 1e4 1 0; }
.ph {
  display: block; flex: var(--ar) 1 calc(var(--ar) * var(--row)); aspect-ratio: var(--ar);
  overflow: hidden; background: var(--color-surface);
}
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ph:hover img { transform: scale(1.035); }
.ph:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.album-more { margin-top: 14px; }
.album-more > summary { list-style: none; cursor: pointer; }
.album-more > summary::-webkit-details-marker { display: none; }
.album-more[open] > summary { display: none; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(22, 19, 17, .95); color: #f2ebdf; overflow: hidden; touch-action: pan-y;
}
.lightbox::backdrop { background: rgba(22, 19, 17, .95); }
.lightbox img {
  position: absolute; inset: 0; margin: auto; max-width: calc(100% - 24px); max-height: calc(100% - 96px);
  object-fit: contain; user-select: none; -webkit-user-drag: none;
}
.lb-info { position: absolute; left: 64px; right: 64px; bottom: 10px; text-align: center; line-height: 1.3; }
.lb-info p { margin: 0; }
.lb-cap { font-size: 15px; }
.lb-count { font-size: 13px; opacity: .7; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(242, 235, 223, .12); color: #f2ebdf; font-size: 34px; line-height: 1;
}
.lb-btn:hover { background: rgba(242, 235, 223, .24); }
.lb-btn:focus-visible { outline: 3px solid #f5c9a8; outline-offset: 2px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; } }
html:has(.lightbox[open]) { overflow: hidden; }

/* the carousel under the first paragraph: one wide photo at a time with the next one peeking in; swipe or the
   buttons, or on its own every 3 s until touched; a click opens the viewer */
.prose > .carousel { max-width: none; }
.carousel { position: relative; margin: 10px 0 30px; }
.car-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 min(86%, 960px); aspect-ratio: 3 / 2; scroll-snap-align: start; }
.car-btn { top: 50%; transform: translateY(-50%); background: rgba(22, 19, 17, .5); }
.car-btn:hover { background: rgba(22, 19, 17, .7); }
.car-prev { left: 10px; }
.car-next { right: 10px; }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .car-btn { width: 40px; height: 40px; font-size: 28px; } }
