/* ==========================================================================
   ESTATE — an agriturismo on the Caspian
   Language: editorial, slow, warm. Serif leads; mono only for small facts.
   ========================================================================== */
main { position: relative; z-index: 3; }
.k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
body[data-theme="paper"] .nav.is-solid::before { background: color-mix(in srgb, var(--paper) 80%, transparent); }
body.hero-dark:not(.past-hero) .nav { color: var(--mist); --muted: rgba(233,236,227,.6); --line: rgba(233,236,227,.16); --line-2: rgba(233,236,227,.3); --fg: var(--mist); --bg: var(--ink); }

/* ---------- Hero ---------- */
.e-hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; color: #18211B; transition: color 1s; }
.e-hero.is-dark { color: var(--mist); }
.e-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.e-hero__in { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--nav-h) + 28px) var(--gutter) 28px; pointer-events: none; }
.e-hero__in a, .e-hero__in input, .e-hero__in button { pointer-events: auto; }
.e-hero .eyebrow { color: currentColor; opacity: .75; }
.e-hero h1 { align-self: center; font-family: var(--f-serif); font-weight: 400; font-size: clamp(60px, 10.5vw, 188px); line-height: .86; letter-spacing: -.025em; text-align: center; }
.e-hero h1 em { color: var(--narenj); }
.e-hero__base { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end; }
.e-hero__base p { max-width: 36ch; font-size: 16px; line-height: 1.5; opacity: .82; }
.hourbox { width: min(360px, 80vw); display: grid; gap: 8px; text-align: center; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, currentColor 7%, transparent); border: 1px solid color-mix(in srgb, currentColor 18%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hourbox .k { color: currentColor; opacity: .7; display: flex; justify-content: space-between; }
.hourbox b { font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: 22px; line-height: 1.1; }
.hourbox input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, #0B1614, #F2BE94 25%, #F1ECE2 50%, #EE9358 76%, #0B1614); height: 3px; border-radius: 3px; }
.hourbox input[type="range"]::-webkit-slider-thumb { background: var(--narenj); border-color: transparent; box-shadow: 0 0 0 4px rgba(224,90,38,.25); }
.e-hero__ctas { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.e-hero.is-dark .btn { --fg: var(--mist); --bg: var(--ink); color: var(--mist); border-color: rgba(233,236,227,.3); }
.e-hero.is-dark .btn--solid { color: #fff; border-color: var(--narenj); }
@media (max-width: 900px) { .e-hero__base { grid-template-columns: 1fr; justify-items: start; } .e-hero__ctas { justify-content: flex-start; } }

/* ---------- Intro ---------- */
.intro__text { font-family: var(--f-serif); font-size: clamp(32px, 4.2vw, 68px); line-height: 1.06; letter-spacing: -.012em; max-width: 24ch; }
.intro__text em { color: var(--narenj); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(64px, 9vw, 120px); }
.principle { border-top: 1px solid var(--fg); padding-top: 20px; display: grid; gap: 14px; align-content: start; }
.principle h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.02; }
.principle p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Wheel ---------- */
.year { background: var(--ink); color: var(--mist); }
.year .k { color: rgba(233,236,227,.55); }
.year__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.wheel { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; margin-inline: auto; touch-action: none; user-select: none; }
.wheel svg { width: 100%; height: 100%; overflow: visible; }
.wheel text { font-family: var(--f-fa); fill: rgba(233,236,227,.5); font-size: 17px; transition: fill .4s; cursor: pointer; }
.wheel text.lat { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 1.5px; fill: rgba(233,236,227,.32); }
.wheel text.on { fill: var(--narenj); }
.wheel .tick { stroke: rgba(233,236,227,.18); }
.wheel .tick.major { stroke: rgba(233,236,227,.5); }
.wheel .grow { fill: rgba(195,236,107,.1); stroke: var(--shoot); stroke-width: 1.2; }
.wheel .sun { fill: none; stroke: var(--narenj); stroke-width: 1; stroke-dasharray: 3 4; }
.wheel__center { position: absolute; inset: 31%; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle, #16241C, var(--ink) 70%); border: 1px solid rgba(233,236,227,.12); pointer-events: none; }
.wheel__center b { font-family: var(--f-fa); font-weight: 300; font-size: clamp(30px, 4vw, 54px); line-height: 1; display: block; }
.wheel__center span { font-family: var(--f-serif); font-style: italic; font-size: clamp(16px, 1.4vw, 20px); color: var(--narenj); display: block; margin-top: 8px; }
.wheel__pointer { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 11px solid var(--narenj); }
.month-detail { display: grid; gap: 22px; }
.month-detail__fa { font-family: var(--f-fa); font-weight: 300; font-size: clamp(64px, 8vw, 128px); line-height: .9; direction: rtl; text-align: left; }
.month-detail h3 { font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: clamp(34px, 3.6vw, 56px); line-height: 1; color: var(--narenj); }
.month-detail p { font-size: 17px; line-height: 1.6; color: rgba(233,236,227,.78); max-width: 46ch; }
.exp-list { list-style: none; display: grid; border-top: 1px solid rgba(233,236,227,.14); }
.exp-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 13px; border-bottom: 1px solid rgba(233,236,227,.14); font-size: 16px; }
.exp-list li span:last-child { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: rgba(233,236,227,.45); }
.month-detail .supply-note { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(195,236,107,.06); border: 1px solid rgba(195,236,107,.18); font-size: 14px; color: rgba(233,236,227,.8); }
.month-detail .supply-note .k { color: var(--shoot); }
.year .btn { --fg: var(--mist); --bg: var(--ink); color: var(--mist); border-color: rgba(233,236,227,.3); }
.year .btn--solid { color: #fff; }
.wheel-nav { display: flex; gap: 8px; }
.wheel-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(233,236,227,.3); display: grid; place-items: center; transition: background-color .3s, color .3s; }
.wheel-nav button:hover { background: var(--mist); color: var(--ink); }
@media (max-width: 960px) { .year__grid { grid-template-columns: 1fr; } }

/* ---------- Stays ---------- */
.stays { overflow: hidden; }
.stays__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding-top: var(--nav-h); }
.stays__track { display: flex; gap: 18px; padding-inline: var(--gutter); will-change: transform; }
.stay { flex: none; width: clamp(300px, 30vw, 460px); display: grid; gap: 16px; }
.stay__art { position: relative; height: min(50vh, 560px); border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.stay__art svg { width: 100%; height: 100%; transition: transform 1.6s var(--ease-grow); }
.stay:hover .stay__art svg { transform: scale(1.04); }
.stay__art .tag { position: absolute; top: 16px; left: 16px; background: var(--paper); border-color: transparent; color: var(--fg); }
.stay__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stay h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 42px); line-height: 1; }
.stay p { color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 40ch; }
.stay__facts { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 760px) {
  .stays__pin { height: auto; padding-block: 96px; }
  .stays__track { overflow-x: auto; scroll-snap-type: x mandatory; }
  .stay { scroll-snap-align: start; width: 82vw; }
}

/* ---------- Table ---------- */
.table__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.km-list { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); }
.km { display: grid; grid-template-columns: 1fr 2fr auto; gap: 16px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.km b { font-weight: 500; font-size: 16px; }
.km .bar { height: 2px; background: var(--line); position: relative; }
.km .bar i { position: absolute; left: 0; top: -1px; height: 4px; border-radius: 4px; background: var(--narenj); width: 0; transition: width 1.6s var(--ease-grow); }
.km .bar i::after { content: ""; position: absolute; right: -4px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--narenj); }
.km span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); min-width: 64px; text-align: right; }
.menu-card {
  position: relative; background: #FBF8F2; color: #1A231D; border-radius: 4px; padding: clamp(28px, 3vw, 44px); box-shadow: 0 30px 80px -30px rgba(60,40,20,.35), 0 0 0 1px rgba(26,35,29,.06);
  transform: rotate(1.2deg); transition: transform 1.2s var(--ease-grow);
}
.menu-card:hover { transform: rotate(0deg) translateY(-6px); }
.menu-card__head { text-align: center; border-bottom: 1px solid rgba(26,35,29,.15); padding-bottom: 20px; margin-bottom: 18px; }
.menu-card__head .fa { font-family: var(--f-fa); font-size: 26px; display: block; }
.menu-card__head h4 { font-family: var(--f-serif); font-weight: 400; font-size: 30px; margin-top: 4px; }
.menu-card__head small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: rgba(26,35,29,.55); }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 12px; border-bottom: 1px dotted rgba(26,35,29,.2); }
.dish:last-of-type { border: 0; }
.dish h5 { font-family: var(--f-serif); font-weight: 400; font-size: 21px; line-height: 1.1; }
.dish p { grid-column: 1; font-size: 13px; color: rgba(26,35,29,.6); }
.dish code { grid-row: 1 / 3; grid-column: 2; align-self: center; font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; color: var(--narenj); border: 1px solid rgba(224,90,38,.35); padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
.menu-card__foot { margin-top: 18px; text-align: center; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; color: rgba(26,35,29,.5); }
@media (max-width: 960px) { .table__grid { grid-template-columns: 1fr; } }

/* ---------- Experiences ---------- */
.exps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.exp { position: relative; border-radius: 18px; overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; min-height: 440px; isolation: isolate; }
.exp__art { position: absolute; inset: 0; z-index: -1; }
.exp__art svg { width: 100%; height: 100%; }
.exp__body { margin-top: auto; padding: 22px; display: grid; gap: 10px; background: linear-gradient(transparent, color-mix(in srgb, var(--bg-2) 92%, transparent) 40%); }
.exp__top { display: flex; justify-content: space-between; padding: 18px 20px 0; }
.exp__top .tag { background: color-mix(in srgb, var(--paper) 85%, transparent); border-color: transparent; color: var(--fg); }
.exp h3 { font-family: var(--f-serif); font-weight: 400; font-size: 34px; line-height: 1; }
.exp h3 .fa { display: block; font-size: 15px; color: var(--muted); margin-top: 6px; direction: rtl; text-align: left; }
.exp p { font-size: 14.5px; color: var(--muted); line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .9s var(--ease-grow), opacity .6s; }
.exp:hover p, .exp:focus-within p { max-height: 120px; opacity: 1; }
.exp__facts { display: flex; gap: 14px; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 1000px) { .exps { grid-template-columns: 1fr 1fr; } .exp p { max-height: none; opacity: 1; } }
@media (max-width: 620px) { .exps { grid-template-columns: 1fr; } .exp { min-height: 380px; } }

/* ---------- Adopt ---------- */
.adopt { background: var(--paper-2); }
.adopt__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.orchard { width: 100%; height: auto; }
.orchard .tree { cursor: pointer; transition: transform .4s var(--ease-grow); transform-box: fill-box; transform-origin: center; }
.orchard .tree:hover { transform: scale(1.35); }
.orchard .tree circle.crown { fill: transparent; stroke: #46623F; stroke-width: 1.2; }
.orchard .tree.taken circle.crown { fill: #46623F; stroke: #46623F; }
.orchard .tree.sel circle.crown { fill: var(--narenj); stroke: var(--narenj); }
.orchard .tree circle.fruit { fill: var(--narenj); }
.orchard .tree.taken circle.fruit, .orchard .tree.sel circle.fruit { fill: #FBF8F2; }
.adopt-card { background: #FBF8F2; border-radius: 18px; padding: 28px; display: grid; gap: 18px; box-shadow: 0 30px 80px -40px rgba(60,40,20,.4); }
.adopt-card__no { font-family: var(--f-serif); font-size: 64px; line-height: 1; }
.adopt-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.adopt-card dl div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.adopt-card dd { font-size: 15px; }
.adopt-gets { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.adopt-gets li { display: flex; gap: 10px; }
.adopt-gets li::before { content: "✳"; color: var(--narenj); }
.adopt-legend { display: flex; gap: 18px; margin-top: 14px; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.adopt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 960px) { .adopt__grid { grid-template-columns: 1fr; } }

/* ---------- Gatherings (hover preview list) ---------- */
.g-list { list-style: none; border-top: 1px solid var(--line); }
.g-row { display: grid; grid-template-columns: 80px 1fr 1fr auto; gap: 24px; align-items: center; padding-block: clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--line); transition: padding .8s var(--ease-grow), color .4s; }
.g-row:hover { padding-left: 18px; }
.g-row h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 72px); line-height: .95; }
.g-row p { color: var(--muted); font-size: 15px; max-width: 40ch; }
.g-row .k { align-self: start; padding-top: 12px; }
.g-preview { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .4s, transform .6s var(--ease-grow); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.g-preview.is-on { opacity: 1; transform: scale(1); }
.g-preview svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .g-row { grid-template-columns: 1fr; gap: 10px; } .g-preview { display: none; } }

/* ---------- Book ---------- */
.book { background: var(--ink); color: var(--mist); }
.book .k { color: rgba(233,236,227,.55); }
.book__panel { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 0; border: 1px solid rgba(233,236,227,.18); border-radius: 22px; overflow: hidden; margin-top: 48px; }
.book__f { padding: 20px 22px; border-right: 1px solid rgba(233,236,227,.14); display: grid; gap: 8px; }
.book__f input, .book__f select { font-size: 18px; color: var(--mist); color-scheme: dark; width: 100%; }
.book__f select option { color: #111; }
.book__go { display: grid; place-items: center; padding: 14px; }
.guests { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.guests button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(233,236,227,.3); }
.avail-res { display: grid; gap: 0; margin-top: 24px; }
.avail-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 18px 4px; border-bottom: 1px solid rgba(233,236,227,.14); animation: rise .8s var(--ease-grow) both; }
.avail-row h4 { font-family: var(--f-serif); font-weight: 400; font-size: 26px; }
.avail-row .ok { color: var(--shoot); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; }
.avail-row .no { color: var(--narenj); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.book .btn { --fg: var(--mist); --bg: var(--ink); color: var(--mist); border-color: rgba(233,236,227,.3); }
.book .btn--solid { color: #fff; border-color: var(--narenj); }
.arrive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid rgba(233,236,227,.14); }
.arrive div { padding: 22px 22px 0 0; display: grid; gap: 8px; }
.arrive h4 { font-family: var(--f-serif); font-weight: 400; font-size: 28px; }
.arrive p { font-size: 14.5px; color: rgba(233,236,227,.65); max-width: 34ch; }
@media (max-width: 1000px) { .book__panel { grid-template-columns: 1fr 1fr; } .book__f { border-bottom: 1px solid rgba(233,236,227,.14); } .book__go { grid-column: 1 / -1; } .avail-row { grid-template-columns: 1fr 1fr; } .arrive { grid-template-columns: 1fr; } }

/* sticky booking pill */
.pill { position: fixed; left: 50%; bottom: 22px; z-index: 50; transform: translate(-50%, 180%); transition: transform .9s var(--ease-grow); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 22px; border-radius: 99px; background: var(--ink); color: var(--mist); box-shadow: 0 20px 50px -10px rgba(0,0,0,.35), 0 0 0 1px rgba(233,236,227,.14); }
.pill.is-on { transform: translate(-50%, 0); }
.pill span { font-family: var(--f-serif); font-style: italic; font-size: 18px; white-space: nowrap; }
.pill .btn { --fg: var(--mist); --bg: var(--ink); color: #fff; }
@media (max-width: 520px) { .pill span { display: none; } .pill { padding-left: 8px; } }

/* The Estate keeps narenj as its accent, even after dark */
.year, .book, body[data-page="estate"] .foot { --accent: var(--narenj); --accent-ink: #FFF8F0; }
