/* The Art School of Peterborough
   Palette: the school's own pigments. Colour is used as information: every
   art form maps to one pigment, so the calendar reads at a glance.
   Type: Montserrat only (the brand face), pushed to its heaviest weights for display. */

:root {
  --ink: #091333; --red: #D64D3B; --yellow: #FFCC52; --blue: #60B4E0; --deep: #1D658B; --green: #A1BF68; --paper: #F6F4EF;
  --ink-2: #3a425e; --line: #dfe1e8; --white: #fff;
  --wrap: 1280px; --gut: clamp(1.1rem, 4vw, 3rem);
  --r-sm: 6px; --r: 14px;
  --font: 'Montserrat', system-ui, sans-serif;
  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3.2rem);
  --step-4: clamp(2.8rem, 2rem + 4vw, 6rem);
  --step-5: clamp(3.6rem, 2.2rem + 7vw, 8.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6; font-weight: 450; color: var(--ink); background: var(--white); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: .6rem 1rem; z-index: 99; font-weight: 700; }
.skip:focus { left: 1rem; }
.quiet { color: #8a90a6; font-size: var(--step--1); margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 var(--step--1)/1 var(--font); letter-spacing: .01em; padding: 1em 1.6em; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; color: var(--ink); }
.btn:hover { transform: translateY(-1px); color: var(--ink); }
.btn:active { transform: none; }
.btn-yellow { background: var(--yellow); }
.btn-blue { background: var(--blue); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; background: #17224a; }
.btn-ghost { border-color: var(--ink); background: transparent; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- header ---------- */
.site-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.logo img { width: clamp(170px, 18vw, 230px); height: auto; margin: 6px 0 -2px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.site-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .2rem; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .7rem .8rem; border-radius: var(--r-sm); }
.site-nav > ul > li > a:hover, .site-nav > ul > li.is-current > a { background: rgba(255,255,255,.08); }
.site-nav > ul > li.is-current > a { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.sub { position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: .5rem; background: #fff; border-radius: var(--r); box-shadow: 0 18px 40px rgba(9,19,51,.22); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .55rem .8rem; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; border-radius: var(--r-sm); }
.sub a:hover { background: var(--paper); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.menu-toggle span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 3px; background: #fff; border-radius: 2px; transition: .2s; }
.menu-toggle span:nth-child(1) { top: 16px; } .menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 84px 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 1rem var(--gut) 2rem; overflow: auto; display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li > a { font-size: 1.3rem; padding: .7rem 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 .5rem 1rem; }
  .sub a { color: #c9cde0; }
  .sub a:hover { background: none; color: #fff; }
  .head-cta { align-self: flex-start; margin-top: 1rem; }
}

/* ---------- brush stroke ---------- */
.brush { width: 100%; height: 100%; display: block; color: var(--pig, var(--red)); }
.brush-under { display: block; width: min(320px, 70%); height: .32em; margin-top: .12em; color: var(--pig, var(--red)); }
.page-hero .brush-under, .cal-head .brush-under, .done .brush-under { color: var(--pig); }
.brush-under .brush { color: inherit; }

/* ---------- hero (the one loud moment) ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-title { font-size: var(--step-5); font-weight: 850; letter-spacing: -.045em; line-height: .92; margin: 0 0 .35em; }
.hero-lead { display: block; }
.hero-rotor { position: relative; display: inline-block; white-space: nowrap; }
.hero-word { position: relative; z-index: 1; display: inline-block; color: var(--ink); transition: opacity .25s ease, transform .25s ease; }
.hero-word.is-out { opacity: 0; transform: translateY(.12em); }
.hero-brush { position: absolute; z-index: 0; left: -.1em; right: -.14em; bottom: -.06em; height: .5em; color: var(--pig); opacity: .92; }
.hero-brush .brush { color: inherit; transform-origin: left center; }
.hero-brush.is-drawing .brush { animation: paint .55s cubic-bezier(.6,.05,.3,1) both; }
@keyframes paint { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-intro { font-size: var(--step-1); font-weight: 500; max-width: 34ch; color: var(--ink-2); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: 1.8rem; }
.hero-actions .link-arrow { margin-left: .4rem; }
.hero-figure { margin: 0; position: relative; }
.hero-figure { isolation: isolate; }
.hero-figure img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 20px; transform: rotate(1.2deg); box-shadow: 0 2px 0 rgba(9,19,51,.04); }
.hero-figure::after { content: ""; position: absolute; inset: 9% -3% -5% 8%; background: var(--yellow); z-index: -1; border-radius: 22px; transform: rotate(-2.4deg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-title { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-rotor { white-space: normal; }
}

/* ---------- notice ---------- */
.notice { background: var(--yellow); }
.notice-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2.5rem; padding-top: 1.3rem; padding-bottom: 1.3rem; }
.notice h2 { font-size: var(--step-1); font-weight: 800; margin: 0; }
.notice ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 2rem; font-weight: 550; }
.notice .btn { margin-left: auto; }

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.sec-title { font-size: var(--step-3); font-weight: 800; letter-spacing: -.03em; margin: 0; }

/* ---------- this week strip ---------- */
.week { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.week-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.week-day { padding: .9rem .6rem 1.2rem; border-right: 1px solid var(--line); min-height: 150px; }
.week-day:last-child { border-right: 0; }
.week-day h3 { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); display: flex; align-items: baseline; gap: .4rem; margin-bottom: .8rem; }
.week-day h3 b { font-size: 1.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.week-day.is-today h3 span { background: var(--ink); color: #fff; padding: .1rem .45rem; border-radius: 4px; }
.week-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.more { font-size: var(--step--1); font-weight: 650; }
@media (max-width: 900px) {
  .week-strip { grid-template-columns: 1fr; }
  .week-day { display: grid; grid-template-columns: 5.5rem 1fr; gap: .6rem; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .week-day h3 { flex-direction: column; gap: 0; margin: 0; }
}

/* ---------- chips (calendar entries) ---------- */
.chip { display: grid; grid-template-columns: auto 1fr; column-gap: .45rem; align-items: baseline; padding: .4rem .5rem .45rem .6rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--pig) 16%, #fff); border-left: 4px solid var(--pig); font-size: .8rem; line-height: 1.3; transition: background-color .12s; }
.chip:hover { background: color-mix(in srgb, var(--pig) 30%, #fff); color: var(--ink); }
.chip-time { font-weight: 750; font-variant-numeric: tabular-nums; }
.chip-title { font-weight: 550; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chip-wk, .chip-spots { grid-column: 2; font-size: .72rem; color: var(--ink-2); }
.chip.is-low .chip-spots { color: #a2321f; font-weight: 700; }
.chip.is-full { background: repeating-linear-gradient(-45deg, #f3f3f5 0 6px, #fafafb 6px 12px); border-left-color: #b7bac6; color: #6b7088; }
.chip.is-full .chip-title { text-decoration: line-through; text-decoration-thickness: 1px; }
.chip.is-full .chip-spots { font-weight: 700; color: var(--ink-2); }

/* ---------- doors ---------- */
.doors { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.doors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.door { position: relative; display: block; border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--pig); aspect-ratio: 3/4; }
.door img { position: absolute; inset: 0; width: 100%; height: 72%; object-fit: cover; transition: height .35s ease; }
.door-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem 1.2rem; display: grid; gap: .3rem; }
.door-text b { font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.door-text span { font-size: .88rem; font-weight: 550; line-height: 1.4; max-height: 0; overflow: hidden; opacity: 0; transition: .3s ease; }
.door:hover img, .door:focus-visible img { height: 52%; }
.door:hover .door-text span, .door:focus-visible .door-text span { max-height: 6em; opacity: 1; }
@media (hover: none) { .door img { height: 55%; } .door-text span { max-height: none; opacity: 1; } }
@media (max-width: 900px) { .doors-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- workshops scroller & filters ---------- */
.workshops { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--ink); color: #fff; }
.workshops .sec-title { color: #fff; }
.workshops .link-arrow { color: #fff; }
.medium-filter { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem; }
.pill { --pig: var(--ink); appearance: none; border: 1.5px solid currentColor; background: transparent; color: inherit; font: 600 .85rem/1 var(--font); padding: .6em 1em .6em .85em; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.pill[style]::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--pig); }
.workshops .pill { color: #fff; border-color: rgba(255,255,255,.35); }
.pill.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.workshops .pill.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.medium-filter.static .pill { color: var(--ink); border-color: var(--line); }
.medium-filter.static .pill.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 24%, 300px); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-color: rgba(255,255,255,.3) transparent; }
.scroller-item { scroll-snap-align: start; }
.scroller-item[hidden] { display: none; }

/* ---------- class cards ---------- */
.card { background: #fff; color: var(--ink); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); }
.workshops .card { border: 0; }
.card-media { display: block; aspect-ratio: 1; background: color-mix(in srgb, var(--pig) 30%, #fff); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; border-top: 5px solid var(--pig); }
.card-meta { font-size: .78rem; font-weight: 600; color: var(--ink-2); margin: 0 0 .4rem; display: flex; align-items: center; gap: .4rem; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--pig); flex: none; }
.card-title { font-size: 1.08rem; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 .6rem; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-when { font-size: .88rem; color: var(--ink-2); margin: 0 0 .8rem; line-height: 1.45; }
.card-foot { margin: auto 0 0; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; }
.price { font-weight: 800; font-size: 1.05rem; }
.spots { font-weight: 600; color: var(--ink-2); }
.spots.is-low { color: #a2321f; }
.spots.is-full { color: #fff; background: var(--ink); padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }

/* ---------- letter ---------- */
.letter { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.letter-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.letter-photo { margin: 0; }
.letter-photo img { border-radius: var(--r); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.letter-body { max-width: 60ch; }
.letter-body p { font-size: var(--step-1); line-height: 1.55; font-weight: 450; }
.letter-body .signed { font-weight: 800; font-size: var(--step-1); }
@media (max-width: 800px) { .letter-grid { grid-template-columns: 1fr; } .letter-photo img { aspect-ratio: 3/2; } }

/* ---------- membership ---------- */
.members { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--paper); }
.members-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.members-head p { margin: 0; max-width: 48ch; font-size: var(--step-1); font-weight: 500; color: var(--ink-2); line-height: 1.5; }
.members-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.tier { background: #fff; border-radius: var(--r); padding: 1.8rem; border-top: 8px solid var(--pig); display: flex; flex-direction: column; }
.tier h3 { font-size: var(--step-2); font-weight: 800; margin: 0; }
.tier-price { margin: .3rem 0 1rem; color: var(--ink-2); }
.tier-price b { font-size: var(--step-3); color: var(--ink); font-weight: 850; letter-spacing: -.03em; }
.tier ul { padding-left: 1.1rem; margin: 0 0 1.6rem; }
.tier li { margin-bottom: .35rem; }
.tier li::marker { color: var(--pig); }
.tier .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .members-head, .members-grid { grid-template-columns: 1fr; } }

/* ---------- support ---------- */
.support { background: var(--red); color: #fff; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.support-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 3rem; align-items: center; }
.support h2 { font-size: var(--step-2); font-weight: 800; margin: 0; }
.support p { margin: 0; max-width: 55ch; font-weight: 500; }
.support .btn { background: #fff; color: var(--ink); }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } .support .btn { justify-self: start; } }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c9cde0; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: .95rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2rem; }
.foot-brand img { width: 210px; margin-bottom: 1.2rem; }
.foot-h { color: #fff; font-size: 1rem; font-weight: 750; margin-bottom: .8rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.hours dt { font-weight: 600; } .hours dd { margin: 0; }
.site-foot .hours dt { color: #fff; }
.land { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14); }
.land p { max-width: 95ch; font-size: .86rem; line-height: 1.65; margin: 0; }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; font-size: .82rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- page hero ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-hero-grid { display: grid; gap: 2rem; }
.page-title { font-size: var(--step-4); font-weight: 850; letter-spacing: -.045em; line-height: .98; margin-bottom: .4em; }
.lede { font-size: var(--step-1); font-weight: 500; color: var(--ink-2); max-width: 52ch; line-height: 1.5; }
.page-hero-img img { width: 100%; height: clamp(160px, 22vw, 300px); object-fit: cover; border-radius: var(--r); }

/* ---------- prose ---------- */
.content { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem); }
.prose { font-size: 1.06rem; line-height: 1.7; }
.prose h2 { font-size: var(--step-2); font-weight: 800; margin: 1.8em 0 .5em; }
.prose h3 { font-size: var(--step-1); font-weight: 750; margin: 1.5em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .3rem; }
.prose li::marker { color: var(--red); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; border-bottom: 2px solid var(--ink); }
.prose p:has(> img) { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.prose img { border-radius: var(--r-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- people ---------- */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2rem 1.4rem; }
.person figure { margin: 0 0 .8rem; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--r); background: var(--paper); }
.person img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
.person h2 { font-size: 1.1rem; font-weight: 750; margin: 0 0 .1rem; }
.person .role { font-size: .9rem; color: var(--ink-2); margin: 0; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4rem; }
.board .person { display: grid; grid-template-columns: 160px 1fr; gap: 1.6rem; align-items: start; max-width: 860px; }
.board .person figure { margin: 0; aspect-ratio: 1; }
.board .person .role { margin-bottom: .6rem; }
.callout { margin-top: 3rem; background: var(--paper); border-radius: var(--r); padding: 1.8rem; max-width: 860px; }
@media (max-width: 600px) { .board .person { grid-template-columns: 90px 1fr; gap: 1rem; } }

/* ---------- calendar ---------- */
.cal-head { padding: clamp(2.5rem, 5vw, 4rem) 0 1rem; }
.cal-head .lede { margin-bottom: 1.6rem; }
.cal-filters { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: end; }
.field-inline { display: grid; gap: .25rem; font-size: .8rem; font-weight: 650; color: var(--ink-2); }
.field-inline select, .field select, .field input, .field textarea { font: 500 1rem var(--font); color: var(--ink); padding: .65rem .8rem; border: 1.5px solid #c9ccd8; border-radius: var(--r-sm); background: #fff; min-width: 12rem; }
.field-inline select:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 70%, transparent); }
.cal { padding: 1rem 0 clamp(3rem, 6vw, 5rem); }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.cal-month { font-size: var(--step-3); font-weight: 850; letter-spacing: -.04em; margin: 0; min-width: 9ch; text-align: center; }
.cal-month span { font-weight: 400; color: #8a90a6; }
.cal-nav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.cal-nav:hover { background: var(--ink); color: #fff; }
.legend { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: .35rem; }
.legend li::before { content: ""; width: .75rem; height: .75rem; border-radius: 3px; background: var(--pig); }
.cal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 3px solid var(--ink); border-left: 1px solid var(--line); }
.cal-dowhead { font-size: .78rem; font-weight: 700; padding: .5rem .55rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.cal-cell { min-height: 140px; padding: .45rem .4rem .6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.cal-cell.is-pad { background: var(--paper); }
.cal-cell.is-past { background: #fbfbfc; }
.cal-cell.is-past .chip { opacity: .55; }
.cal-date { font-size: .9rem; margin: 0 0 .4rem; padding-left: .15rem; }
.cal-dow { display: none; }
.cal-num { font-weight: 800; }
.cal-cell.is-today .cal-num { background: var(--red); color: #fff; border-radius: 999px; padding: .05rem .5rem; }
.cal-cell ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.cal-empty { margin-top: 1.4rem; font-weight: 550; }
@media (max-width: 900px) {
  .cal-grid { grid-template-columns: 1fr; border-left: 0; }
  .cal-dowhead, .cal-cell.is-pad, .cal-cell.is-empty { display: none; }
  .cal-cell { min-height: 0; display: grid; grid-template-columns: 4.5rem 1fr; gap: .6rem; padding: .8rem 0; border-right: 0; }
  .cal-date { display: flex; flex-direction: column; font-size: 1.5rem; line-height: 1; }
  .cal-dow { display: block; font-size: .75rem; font-weight: 650; color: var(--ink-2); order: -1; margin-bottom: .2rem; }
  .chip { font-size: .9rem; }
  .legend { margin-left: 0; }
}

/* drawer */
.drawer { border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(460px, 100vw); background: #fff; box-shadow: -20px 0 50px rgba(9,19,51,.25); }
.drawer::backdrop { background: rgba(9,19,51,.45); }
.drawer[open] { animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer-inner { padding: 1.4rem 1.6rem 2rem; }
.drawer-close { float: right; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); width: 40px; height: 40px; }
.drawer img { border-radius: var(--r); aspect-ratio: 16/10; object-fit: cover; width: 100%; margin: .6rem 0 1rem; }
.drawer h2 { font-size: var(--step-2); font-weight: 800; }

/* ---------- listing ---------- */
.listing { padding-bottom: clamp(3rem, 6vw, 5rem); }
.tabs { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.tabs a { text-decoration: none; color: var(--ink-2); font-weight: 650; padding: .7rem 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.is-on, .tabs a:hover { color: var(--ink); border-color: var(--ink); }
.empty { padding: 3rem 0; }

/* ---------- class detail ---------- */
.class { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.class-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.crumbs { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.crumbs a { color: inherit; }
.class-title { font-size: var(--step-3); font-weight: 850; letter-spacing: -.035em; line-height: 1.02; position: relative; padding-left: 0; }
.class-title::after { content: ""; display: block; width: 90px; height: 8px; background: var(--pig); border-radius: 4px; margin-top: .5em; }
.facts { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; }
.facts li { display: grid; font-weight: 650; }
.facts span { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.facts small { font-weight: 500; color: var(--ink-2); }
.class-img { margin: 0 0 1.8rem; }
.class-img img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r); }
.note { background: color-mix(in srgb, var(--yellow) 30%, #fff); border-radius: var(--r-sm); padding: .9rem 1.1rem; }
.panel { border-top: 1px solid var(--line); padding: 1rem 0; }
.panel:last-child { border-bottom: 1px solid var(--line); }
.panel summary { cursor: pointer; font-weight: 750; list-style: none; display: flex; justify-content: space-between; }
.panel summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.panel[open] summary::after { content: "–"; }
.panel .prose { margin-top: .8rem; font-size: .98rem; }
.book { position: sticky; top: 104px; background: var(--paper); border-radius: var(--r); padding: 1.6rem; border-top: 8px solid var(--pig); }
.book h2 { font-size: var(--step-2); font-weight: 800; }
.book-form { display: grid; gap: .9rem; }
.session-pick { border: 0; margin: 0 0 .4rem; padding: 0; display: grid; gap: .45rem; max-height: 300px; overflow: auto; }
.session-pick legend { font-weight: 700; margin-bottom: .5rem; font-size: .9rem; }
.session-opt { display: grid; grid-template-columns: auto 1fr auto; column-gap: .7rem; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .65rem .8rem; cursor: pointer; font-size: .9rem; }
.session-opt input { grid-row: span 2; accent-color: var(--ink); width: 1.1rem; height: 1.1rem; }
.so-date { font-weight: 700; } .so-date small { font-weight: 500; color: var(--ink-2); }
.so-time { grid-column: 2; color: var(--ink-2); }
.so-spots { grid-row: 1 / span 2; grid-column: 3; font-size: .8rem; font-weight: 650; color: var(--ink-2); }
.session-opt.is-low .so-spots { color: #a2321f; }
.session-opt.is-full { opacity: .55; cursor: not-allowed; }
.session-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field { display: grid; gap: .3rem; font-size: .88rem; font-weight: 650; }
.field small { font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .field select { min-width: 0; width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-items: end; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 600; font-size: .9rem; padding-bottom: .7rem; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--ink); }
.fine { font-size: .8rem; color: var(--ink-2); margin: 0; }
.form-error { background: #fde8e4; color: #8f2615; padding: .7rem .9rem; border-radius: var(--r-sm); font-weight: 600; margin: 0; }
@media (max-width: 960px) { .class-grid { grid-template-columns: 1fr; } .book { position: static; } }

/* ---------- done / receipt ---------- */
.done { padding: clamp(3rem, 7vw, 6rem) 0; }
.receipt { display: grid; grid-template-columns: 9rem 1fr; gap: .7rem 1rem; margin: 2rem 0; padding: 1.4rem 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.receipt dt { font-weight: 650; color: var(--ink-2); }
.receipt dd { margin: 0; font-weight: 550; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-info h2, .contact-form h2, .sent h2 { font-size: var(--step-1); font-weight: 800; margin-top: 1.4rem; }
.contact-info h2:first-child { margin-top: 0; }
.contact-form { display: grid; gap: 1rem; background: var(--paper); padding: 1.8rem; border-radius: var(--r); }
.contact-form h2 { margin-top: 0; }
.contact-form .btn { justify-self: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* refinements */
.letter-body .sec-title { margin-bottom: .6em; }
.cal-head .page-title { font-size: var(--step-3); }
.cal-head .lede { font-size: var(--step-0); margin-bottom: 1.2rem; }
.cal-head { padding-bottom: .4rem; }
@media (max-width: 600px) {
  .cal-month { font-size: 1.8rem; min-width: 0; }
  .cal-bar { gap: .5rem; }
  .cal-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .cal-filters .field-inline:last-of-type { grid-column: span 2; }
  .field-inline select { min-width: 0; width: 100%; }
}
