/* West Wind Studio — sketch v1 */
:root {
  --bg: #F1E1DD;          /* original warm blush, kept for comfortable reading */
  --surface: #F7ECE8;
  --surface-2: #EAD4CE;
  --line: #DCC2BA;
  --text: #3A231C;
  --muted: #6E4A3E;
  --accent: #8C3A26;       /* deep terracotta for links and buttons */
  --accent-hover: #6F2C1C;
  --blue: #1E4FA0;         /* from the logo, used sparingly */

  --font-display: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;

  --radius: 10px;
  --wrap: 1120px;
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); padding-block: var(--space-4); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.01em; }
.nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  padding-block: var(--space-1); border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* Type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; color: var(--text); }
h1 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h2 { font-size: var(--text-xl); }
h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; }
p { margin: 0 0 var(--space-4); max-width: var(--measure); }
.eyebrow { font-size: var(--text-sm); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--space-3); }
.lede { font-size: var(--text-lg); color: var(--muted); line-height: 1.6; }

/* Sections */
section { padding-block: var(--space-16); }
section + section { border-top: 1px solid var(--line); }
.page-head { padding-block: var(--space-16) var(--space-12); }
.page-head .lede { margin-top: var(--space-4); max-width: 72ch; }

/* Hero (home) */
.hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--space-12); align-items: center; padding-block: var(--space-16); }
.hero h1 { margin-bottom: var(--space-4); }
.hero .addr { color: var(--muted); font-size: var(--text-sm); line-height: 1.6; margin-top: var(--space-6); }
.hero figure { margin: 0; }
.hero img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-8); }
.btn {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: 999px; font-size: var(--text-sm);
  font-weight: 500; text-decoration: none; border: 1.5px solid var(--accent); transition: background .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #FBF3F0; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FBF3F0; }
.btn-ghost { color: var(--accent); }
.btn-ghost:hover { background: var(--surface); }

/* Prose column */
.prose { max-width: var(--measure); }
.prose p { font-size: 1.125rem; }

.medicine {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); max-width: none;
  font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: var(--text-lg); text-align: center;
}

/* Two column */
.split { display: grid; grid-template-columns: 320px 1fr; gap: var(--space-12); align-items: start; }
.split img { border-radius: var(--radius); }
.split h2 { margin-bottom: var(--space-4); }

.offer-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.offer-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: var(--text-sm); color: var(--muted); }

/* Steps (arriving) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 0; max-width: 760px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-4); padding-block: var(--space-6); border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; left: 4px; top: 2.05rem; width: 9px; height: 9px; border: 1.5px solid var(--blue); transform: rotate(45deg); }
.steps li { grid-template-columns: 1fr; padding-left: var(--space-8); }
.steps strong { display: block; font-weight: 700; }
.steps span { color: var(--muted); }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-8); display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; }
.contact-card p:last-child { margin-bottom: 0; }

/* Compass */
.compass-grid { display: grid; grid-template-columns: 1fr 360px; gap: var(--space-16); align-items: start; }
.compass-grid figure { margin: 0; position: sticky; top: var(--space-8); }
.compass-grid figure img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; }
.principles { list-style: none; margin: var(--space-6) 0 0; padding: 0; }
.principles li { padding: var(--space-4) 0 var(--space-4) var(--space-8); border-top: 1px solid var(--line); position: relative; }
.principles li::before { content: ""; position: absolute; left: 4px; top: 1.45rem; width: 9px; height: 9px; border: 1.5px solid var(--blue); transform: rotate(45deg); }
.closing { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.4; max-width: 30ch; }

/* Payment */
.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); max-width: 860px; margin-top: var(--space-8); }
.pay { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); }
.pay h3 { margin-bottom: var(--space-2); }
.pay p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.pay .btn { margin-top: var(--space-4); }
.banner img { border-radius: var(--radius); width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
blockquote { margin: 0; max-width: 46rem; }
blockquote p { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); line-height: 1.55; max-width: none; }
blockquote footer { color: var(--muted); font-size: var(--text-sm); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-12); color: var(--muted); font-size: var(--text-sm); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); }
.site-footer h4 { font-family: var(--font-body); font-weight: 700; color: var(--text); margin: 0 0 var(--space-2); font-size: var(--text-sm); }
.site-footer p { margin: 0; line-height: 1.7; }
.site-footer .fine { grid-column: 1 / -1; max-width: none; border-top: 1px solid var(--line); padding-top: var(--space-6); font-size: 0.8125rem; }

/* Responsive */
@media (max-width: 860px) {
  .medicine { grid-template-columns: 1fr; gap: var(--space-2); }
  .hero, .split, .compass-grid, .site-footer .wrap { grid-template-columns: 1fr; }
  .hero { gap: var(--space-8); padding-block: var(--space-12); }
  .split img { max-width: 260px; }
  .compass-grid figure { position: static; max-width: 300px; order: -1; }
  .contact-card { grid-template-columns: 1fr; }
  section { padding-block: var(--space-12); }
  .page-head { padding-block: var(--space-12) var(--space-8); }
}
@media (max-width: 560px) {
  .pay-grid { grid-template-columns: 1fr; }
  .nav { gap: var(--space-4); }
  .site-header .wrap { justify-content: center; }
  .banner img { aspect-ratio: 16 / 9; }
}

/* ---------- Sign up + Waiver ---------- */
.narrow { width: min(100% - 2.5rem, 760px); }
.nav a.nav-cta { color: var(--accent); font-weight: 700; }
.preview-note { display: inline-block; margin-top: var(--space-4); font-size: var(--text-sm); color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 6px; padding: 0.25rem 0.7rem; }
.preview-note[hidden] { display: none; }
.signup, .waiver { padding-bottom: var(--space-16); }
.notice { color: var(--muted); }
.week + .week { margin-top: var(--space-8); }
.week-label { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space-3); }
.class-rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.class-row { display: grid; grid-template-columns: 3.5rem 1fr auto 7rem; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-6); }
.class-row + .class-row { border-top: 1px solid var(--line); }
.when { display: grid; justify-items: center; line-height: 1.1; }
.when .dow, .when .mon { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.when .dnum { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.what strong { display: block; font-weight: 700; }
.what span { color: var(--muted); font-size: var(--text-sm); }
.spots { display: grid; justify-items: end; gap: 4px; }
.dots { display: flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; }
.dots i.on { background: var(--accent); border-color: var(--accent); opacity: .55; }
.left { font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.act { display: flex; justify-content: flex-end; }
.btn-sm { padding: 0.45rem 1rem; font-size: var(--text-sm); }
.btn-block { width: 100%; justify-content: center; }
.is-full .what, .is-full .when { opacity: .55; }
.is-full .left { color: var(--accent); font-weight: 700; }
.is-event { background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.is-event .what strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--accent); }
.signup-foot { margin-top: var(--space-8); display: grid; gap: var(--space-2); color: var(--muted); }
.signup-foot p { margin: 0; }

dialog.sheet { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); padding: var(--space-8); width: min(100% - 2rem, 440px); box-shadow: 0 20px 60px rgba(58,35,28,.18); }
dialog.sheet::backdrop { background: rgba(58,35,28,.35); }
.sheet h2 { font-size: var(--text-xl); margin: 0; }
.sheet .muted { color: var(--muted); margin: var(--space-1) 0 var(--space-6); }
.sheet-x { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; font-size: 1.6rem; color: var(--muted); cursor: pointer; line-height: 1; padding: .25rem .5rem; }
form label { display: grid; gap: 6px; font-weight: 500; margin-bottom: var(--space-4); font-size: var(--text-sm); }
form input:not([type=checkbox]) { font: inherit; font-size: var(--text-base); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; width: 100%; }
form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.opt { font-weight: 400; color: var(--muted); }
label.check { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 400; line-height: 1.5; }
label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.err { color: var(--accent); font-weight: 500; font-size: var(--text-sm); }
.done h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.done p { color: var(--muted); }

.waiver-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-8); max-height: 26rem; overflow-y: auto; font-size: 1rem; line-height: 1.75; }
.waiver-text h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin: var(--space-6) 0 var(--space-2); }
.waiver-text h3:first-of-type { margin-top: var(--space-2); }
.waiver-text p { margin: 0; }
.waiver-form { margin-top: var(--space-8); }
.sig-wrap { margin: var(--space-6) 0; }
.sig-head { display: flex; justify-content: space-between; font-weight: 500; font-size: var(--text-sm); margin-bottom: 6px; }
.linkish { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#sig { display: block; width: 100%; height: 150px; background: #FBF5F2; border: 1px solid var(--line); border-radius: 8px; touch-action: none; cursor: crosshair;
  background-image: linear-gradient(to right, var(--line), var(--line)); background-size: calc(100% - 2rem) 1px; background-repeat: no-repeat; background-position: center 72%; }
.small { font-size: .8125rem; margin-top: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-8); margin-top: var(--space-8); }

@media (max-width: 600px) {
  .class-row { grid-template-columns: 3rem 1fr auto; padding: var(--space-4); gap: var(--space-3); }
  .spots { grid-column: 2; grid-row: 2; justify-items: start; }
  .act { grid-column: 3; grid-row: 1 / span 2; }
  .waiver-text { padding: var(--space-6); max-height: 22rem; }
  dialog.sheet { padding: var(--space-6); }
}
button.btn { font-family: inherit; cursor: pointer; }
button.btn:disabled { opacity: .6; cursor: progress; }
.btn-block { display: block; text-align: center; }
