:root {
  --paper: oklch(97.6% 0.01 88);
  --paper-2: oklch(94.2% 0.016 88);
  --ink: oklch(24% 0.03 165);
  --ink-soft: oklch(42% 0.03 165);
  --rule: oklch(82% 0.02 100);
  --green: oklch(33% 0.07 162);
  --green-deep: oklch(25% 0.055 162);
  --on-green: oklch(94% 0.02 95);
  --on-green-soft: oklch(84% 0.07 135);
  --lime: oklch(90% 0.19 115);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --wrap: 72rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; interpolate-size: allow-keywords; -webkit-text-size-adjust: 100%; scrollbar-color: var(--green) var(--paper-2); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lime); color: var(--green-deep); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.on-green :focus-visible { outline-color: var(--lime); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.75rem, 7.4vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }

.skip {
  position: fixed; left: 1rem; top: 0; z-index: 100; padding: 0.7rem 1.1rem;
  background: var(--green); color: var(--on-green); font-weight: 600; border-radius: 0 0 0.5rem 0.5rem;
  transform: translateY(-110%); transition: transform 0.25s var(--ease);
}
.skip:focus-visible { transform: none; outline-color: var(--lime); }

/* ---------- floating actions ---------- */
.dock { position: fixed; right: max(1.1rem, env(safe-area-inset-right)); bottom: max(1.1rem, env(safe-area-inset-bottom)); z-index: 40; }
.fab {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--paper); color: var(--green); border: 1px solid var(--rule);
  padding: 0.8rem 1.2rem; border-radius: 999px; font: 600 0.92rem/1 var(--body); text-decoration: none;
  box-shadow: 0 10px 28px -10px oklch(20% 0.05 160 / 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.fab svg { width: 1.15rem; height: 1.15rem; }
.fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px oklch(20% 0.05 160 / 0.5); }
.to-top {
  position: absolute; right: 0.35rem; bottom: calc(100% + 0.7rem);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--green); color: var(--on-green); border: 1px solid var(--on-green-soft);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s, background-color 0.3s;
}
.dock:not(:has(.fab)) .to-top { bottom: 0; }
.to-top svg { width: 1.1rem; height: 1.1rem; }
.to-top:hover { background: var(--green-deep); }
html[data-far] .to-top { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-footer .wrap { padding-bottom: 5.5rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule);
  background: color-mix(in oklch, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: box-shadow 0.4s var(--ease);
}
html[data-scrolled] .site-header { box-shadow: 0 10px 24px -16px oklch(20% 0.05 160 / 0.35); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem 1rem; padding-block: 1.1rem;
}
.wordmark {
  font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.01em;
  text-decoration: none; line-height: 1;
}
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 3vw, 2.25rem); }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 0.97rem; padding-block: 0.4rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background-size: 100% 1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--green); color: var(--on-green);
  font: 600 0.97rem/1 var(--body); text-decoration: none;
  padding: 0.95rem 1.6rem; border-radius: 999px; border: 0;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn--sm { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
.btn--lime { background: var(--lime); color: var(--green-deep); }
.btn--lime:hover { background: oklch(93% 0.18 115); }
.btn .arrow { width: 1em; height: 1em; }
.link-quiet {
  font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule);
  text-underline-offset: 0.35em; transition: text-decoration-color 0.3s;
}
.link-quiet:hover { text-decoration-color: currentColor; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero .wrap {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-copy { display: grid; gap: 1.75rem; justify-items: start; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem 1.75rem; flex-wrap: wrap; }
.hero-court { justify-self: center; width: min(100%, 24rem); }
@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .hero-court { width: min(100%, 26rem); justify-self: end; }
}
.facts {
  list-style: none; margin: 0; padding: 1.1rem 0 0;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 0.35rem 2rem;
  font-size: 0.95rem; color: var(--ink-soft);
}
.hero-facts { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* court line drawing */
.court { color: var(--green); overflow: visible; }
.court .line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; }
.court .net { stroke-width: 3; stroke-dasharray: 2 5; }
.court .guide { stroke: var(--ink-soft); stroke-width: 0.8; fill: none; }
.court text { fill: var(--ink-soft); font: 500 12px/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; }
.court .zone { fill: color-mix(in oklch, var(--green) 7%, transparent); }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .court .draw { stroke-dasharray: 1; animation: draw 2.2s var(--ease) backwards; }
  .court .draw.d2 { animation-delay: 0.35s; }
  .court .draw.d3 { animation-delay: 0.7s; }
  .court .net { stroke-dasharray: 2 5; animation: fade 1.2s ease-out 1.2s backwards; }
  .court text, .court .guide, .court .zone { animation: fade 1s ease-out 1.5s backwards; }
}

.court .ball { fill: var(--lime); stroke: var(--green); stroke-width: 1.2; }
.court .ripple { fill: none; stroke: var(--green); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes ball-x { 0% { transform: translateX(-100px); opacity: 0; } 4% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes ball-y {
  0% { transform: translateY(80px); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  50% { transform: translateY(-75px); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  100% { transform: none; }
}
@keyframes ripple { from { transform: scale(0.3); opacity: 0.6; } to { transform: scale(2.2); opacity: 0; } }
@keyframes unroll { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes unroll-v { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes line-in { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .page-head .wrap > * { animation: rise 0.8s var(--ease) backwards; }
  .hero-copy > :nth-child(2), .page-head .wrap > :nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.24s; }
  .ball-x { animation: ball-x 1.1s linear 2.1s backwards; }
  .ball-y { animation: ball-y 1.1s linear 2.1s backwards; }
  .court .ripple { animation: ripple 0.9s ease-out 3.15s backwards; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .plan--wide { animation: unroll linear both; animation-timeline: view(); animation-range: entry 5% cover 35%; }
    .plan--narrow { animation: unroll-v linear both; animation-timeline: view(); animation-range: entry 5% cover 40%; }
    .way::after { animation: line-in linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
  }
}

/* ---------- placeholders ---------- */
.ph {
  position: relative; background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in oklch, var(--ink) 7%, transparent) 11px 12px);
  border: 1px solid var(--rule); display: grid; align-content: end;
  aspect-ratio: var(--ratio, 4 / 3); padding: 1rem 1.15rem;
  font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.02em;
}
.ph b { display: block; font-weight: 600; color: var(--ink); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tint { background: var(--paper-2); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.2fr 0.8fr; }
}
.stack { display: grid; gap: 1.25rem; justify-items: start; }

.ways { display: grid; border-top: 1px solid var(--rule); margin-top: clamp(2rem, 4vw, 3rem); }
.way { position: relative; display: grid; gap: 0.5rem 2rem; padding-block: 1.75rem; }
.way::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--rule); transform-origin: left; }
.way p { color: var(--ink-soft); }
@media (min-width: 48rem) {
  .way { grid-template-columns: 1fr 1.4fr; align-items: baseline; }
}

/* ---------- green field (CTA + footer) ---------- */
.on-green { background: var(--green); color: var(--on-green); }
.cta { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 7.5rem); }
.cta-court { position: absolute; right: clamp(-3rem, 4vw, 6rem); top: -12%; height: 124%; width: auto; color: var(--on-green-soft); opacity: 0.3; pointer-events: none; }
.cta-court rect, .cta-court path { fill: none; stroke: currentColor; stroke-width: 1.2; }
.cta-court .n { stroke-width: 2.4; stroke-dasharray: 2 5; }
.cta .wrap { position: relative; display: grid; gap: 1.75rem; justify-items: start; }
.cta p { color: var(--on-green-soft); }
.site-footer { background: var(--green-deep); color: var(--on-green-soft); font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 2rem; padding-block: 3rem; }
.site-footer .wordmark { color: var(--on-green); }
.site-footer address { font-style: normal; display: grid; gap: 0.15rem; }
.site-footer h2 { font: 600 0.8rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-green); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
@media (min-width: 48rem) {
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.fine { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid color-mix(in oklch, var(--on-green) 18%, transparent); font-size: 0.85rem; }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head .wrap { display: grid; gap: 1.25rem; }
.block { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.block > .wrap { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.block-head { display: grid; gap: 0.75rem; }

.plan { width: 100%; height: auto; color: var(--green); }
.plan--narrow { max-width: 26rem; margin-inline: auto; }
.plan--wide { display: none; }
@media (min-width: 40rem) { .plan--wide { display: block; } .plan--narrow { display: none; } }
.plan .wall { fill: none; stroke: var(--ink); stroke-width: 2; }
.plan .room { fill: var(--paper-2); stroke: var(--rule); stroke-width: 1; }
.plan .seat { fill: none; stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.cl { fill: none; stroke: currentColor; stroke-width: 1.2; }
.cn { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-dasharray: 2 4; }
.cb { fill: color-mix(in oklch, var(--green) 8%, var(--paper)); stroke: currentColor; stroke-width: 1.4; }
.plan text { fill: var(--ink); font: 500 13px var(--body); }
.plan .cap { fill: var(--ink-soft); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.plan .num { font: 400 22px var(--display); fill: var(--green); }
.plan-note { color: var(--ink-soft); font-size: 0.92rem; }

.specs { margin: 0; display: grid; }
.specs > div { display: grid; gap: 0.15rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.specs > div:first-child { border-top: 1px solid var(--rule); }
.specs dt { font-size: 0.85rem; color: var(--ink-soft); }
.specs dd { margin: 0; font-weight: 500; }
@media (min-width: 40rem) { .specs > div { grid-template-columns: 11rem 1fr; align-items: baseline; } .specs dt { font-size: 0.95rem; } }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 22rem; }
caption { text-align: left; color: var(--ink-soft); font-size: 0.92rem; padding-bottom: 0.9rem; }
th, td { text-align: left; padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); border-bottom-color: var(--ink); }
tbody th { font-weight: 500; }
tbody th small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.88rem; }
td { font-family: var(--body); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
td .rm { font: 500 0.8rem var(--body); color: var(--ink-soft); margin-right: 0.2rem; letter-spacing: 0.04em; }
tr.peak td, tr.peak th { background: color-mix(in oklch, var(--green) 6%, transparent); }

.extras { list-style: none; margin: 0; padding: 0; display: grid; }
.extras li { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 0.9rem; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.extras li span:last-child { color: var(--ink-soft); }
.extras li:first-child { border-top: 1px solid var(--rule); }

details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary {
  list-style: none; cursor: pointer; padding-block: 1.15rem; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--green); }
summary::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.3s var(--ease); flex: none; margin-right: 0.3rem; }
details[open]:not(.closing) summary::after { transform: rotate(-135deg); }
details p { padding-bottom: 1.25rem; color: var(--ink-soft); }

.contact-list { display: grid; border-top: 1px solid var(--rule); }
.contact-row {
  display: grid; gap: 0.2rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule);
  text-decoration: none; transition: background-color 0.3s;
}
.contact-row small { color: var(--ink-soft); font-size: 0.88rem; }
.contact-row strong { font-family: var(--body); font-weight: 500; font-size: clamp(1.4rem, 3.2vw, 2rem); letter-spacing: -0.01em; overflow-wrap: anywhere; font-variant-numeric: lining-nums tabular-nums; }
a.contact-row:hover { background: var(--paper-2); }
.contact-row > * { transition: transform 0.4s var(--ease); }
a.contact-row:hover > * { transform: translateX(0.75rem); }
.visit { display: grid; gap: 2rem; }
.visit dl { margin: 0; display: grid; gap: 1.5rem; }
.visit dt { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.2rem; }
.visit dd { margin: 0; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1.5rem; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
