/* ==========================================================================
   South Shore Fiddle Jam — styles
   Sister site to South Shore Chamber Music Academy (SSCMA). Palette and type
   are carried over from SSCMA's tokens; shapes are rounder and the accents
   are hand-drawn so the feel shifts from "recital hall" to "front porch".
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset, SIL OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* SSCMA family palette */
  --ink: #22293E;          /* navy — text & brand */
  --tide: #22293E;         /* navy surfaces */
  --tide-deep: #171B28;    /* deep navy — footer */
  --sunset: #D1BA96;       /* soft gold — rules & borders */
  --coral-deep: #A83E27;   /* small coral labels — a shade deeper than SSCMA's #C24B32 so it passes AA (4.5:1) on sand AND sea-glass */
  --coral-bright: #EF9073; /* coral — the sun; CTA fill with navy text */
  --coral-hover: #E1734F;
  --shell: #F7F3EC;        /* sand background */
  --mist: #D9E8E4;         /* pale sea-glass sections */
  --cream: #FCFAF6;        /* card surfaces */
  --lagoon: #8FAA9E;       /* sea-glass — detail borders */
  --lagoon-deep: #4F6B60;
  /* Fiddle Jam additions */
  --fiddle: #DDA352;       /* warm amber — the fiddle */
  --fiddle-deep: #8A5A1F;
  --fiddle-tint: #F6E7CB;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;

  /* same 1.25 modular scale as SSCMA */
  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.406rem;
  --step-2: 1.758rem;
  --step-3: 2.197rem;
  --step-4: 2.747rem;
  --step-5: 3.433rem;

  --radius: 14px;          /* SSCMA is 5px — rounder here */
  --radius-lg: 24px;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(3.75rem, 8vw, 6.5rem);
  --header-h: 4.75rem;
  --shadow: 0 16px 34px -20px rgba(23, 27, 40, 0.45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--shell);
  /* barely-there paper grain, same as SSCMA */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; }
a { color: var(--ink); text-decoration-color: var(--coral-bright); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--coral-hover);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-tide :focus-visible, .site-footer :focus-visible { outline-color: var(--coral-bright); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--tide); color: var(--shell); padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 650;
}
.skip-link:focus { left: 0.75rem; color: var(--shell); }

.container { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Eyebrow + bow underline (signature element) ---------- */
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--coral-deep);
  margin: 0 0 0.9rem;
}
.on-tide .eyebrow { color: var(--coral-bright); }
.bow { width: min(15rem, 60%); height: auto; margin: -0.1rem 0 1.6rem; color: var(--ink); }
.on-tide .bow { color: var(--mist); }
.center .bow { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem;
  line-height: 1.2; letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.btn-primary {
  background: var(--coral-bright); color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 4px 0 var(--ink);   /* woodcut-print offset */
}
.btn-primary:hover { background: var(--coral-hover); color: var(--ink); transform: translate(-1px, -2px); box-shadow: 4px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); transform: translateY(-2px); }
.on-tide .btn-outline, .site-footer .btn-outline { color: var(--shell); border-color: color-mix(in srgb, var(--shell) 75%, transparent); }
.on-tide .btn-outline:hover, .site-footer .btn-outline:hover { background: color-mix(in srgb, var(--shell) 12%, transparent); color: var(--shell); }
.on-tide .btn-primary, .site-footer .btn-primary, .mobile-cta .btn-primary { box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.45); }
.btn-small { padding: 0.6rem 1.15rem; font-size: 0.95rem; }

.link-btn {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 650;
  color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--coral-bright);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--coral-deep); }
.on-tide .link-btn:hover, .site-footer .link-btn:hover { color: var(--coral-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--shell) 94%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--sunset) 45%, transparent);
}
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 3rem; height: 3rem; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.bw-top { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 0.2rem; }
.bw-bottom { font-family: var(--font-display); font-size: 1.45rem; font-weight: 620; letter-spacing: -0.01em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.site-nav a:not(.btn) { font-size: 0.95rem; font-weight: 650; color: var(--ink); text-decoration: none; white-space: nowrap; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--coral-bright); color: var(--ink); }
.nav-toggle { display: none; }
.header-cta { white-space: nowrap; }

@media (max-width: 77rem) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--shell);
    flex-direction: column; justify-content: center; gap: 1.4rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform 240ms ease, visibility 0s linear 240ms;
    overflow-y: auto; padding: 2rem 1rem 6rem;
  }
  .site-nav.open { transform: none; visibility: visible; transition: transform 240ms ease; }
  .site-nav a:not(.btn) { font-family: var(--font-display); font-size: var(--step-1); font-weight: 560; }
  .site-nav .header-cta { display: none; }
  .site-header > .container > .header-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 0.7rem 0.4rem; cursor: pointer;
  }
  .nav-toggle span { width: 26px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 200ms ease, opacity 200ms ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (min-width: 77.01rem) {
  .site-header > .container > .header-cta { display: none; }
}
@media (max-width: 47.99rem) {
  /* the fixed bottom bar carries the CTA on phones */
  .site-header > .container > .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .brand img { width: 2.6rem; height: 2.6rem; }
  .bw-bottom { font-size: 1.25rem; }
  .bw-top { font-size: 0.6rem; }
}

/* ---------- Wave dividers ----------
   (.wd-* rules are un-nested on purpose: <use> content only matches selectors
   against the <symbol> tree, while --wave-fill inherits in from the host.) */
.wave-divider { display: block; width: 100%; height: clamp(2.2rem, 5vw, 4rem); margin-bottom: -1px; }
.wd-fill { fill: var(--wave-fill, var(--mist)); }
.wd-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wd-foam { fill: none; stroke: var(--wave-foam, var(--cream)); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.9; }
.wave-flip { transform: scaleY(-1); margin-bottom: 0; margin-top: -1px; }
.to-mist { --wave-fill: var(--mist); }
.to-shell { --wave-fill: var(--shell); --wave-foam: var(--mist); }
.to-tide { --wave-fill: var(--tide); --wave-foam: var(--lagoon); }
.bg-mist { background: var(--mist); }
.bg-tide { background: var(--tide); }
.bg-shell { background: var(--shell); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(44rem 22rem at 88% -10%, rgba(239, 144, 115, 0.2) 0%, rgba(239, 144, 115, 0) 60%),
    radial-gradient(48rem 26rem at 0% 110%, rgba(171, 201, 184, 0.34) 0%, rgba(171, 201, 184, 0) 58%);
  overflow: hidden;
}
.hero-grid { display: grid; gap: clamp(1rem, 4vw, 3rem); align-items: center; }
.hero-art { width: min(21rem, 72vw); margin-inline: auto; }
.hero-art img { width: 100%; }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  font-weight: 520; max-width: 15ch; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; font-weight: 480; color: var(--coral-deep); }
.hero .hero-sub { font-size: clamp(var(--step-1), 2.8vw, var(--step-2)); font-weight: 560; margin: 0.35em 0 0.45em; max-width: none; }
.hero .subhead { font-size: clamp(var(--step-0), 2.2vw, var(--step-1)); line-height: 1.5; max-width: 50ch; }
.hero .subhead-2 + .subhead-2 { margin-top: -0.35em; }
.hero .subhead-2 { font-size: var(--step-0); max-width: 52ch; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin-top: 1.7rem; }
.next-jam {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 1.4rem 0 0; font-weight: 650; font-size: 1rem;
}
.next-jam::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--coral-bright); border: 2px solid var(--ink); flex-shrink: 0;
}
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-art { order: 2; width: 100%; max-width: 30rem; }
}

/* ---------- Sections ---------- */
section { padding-block: var(--section-pad); }
section h2 { font-size: clamp(var(--step-3), 4.2vw, var(--step-5)); font-weight: 520; max-width: 22ch; }
.section-intro { font-size: clamp(var(--step-0), 2vw, var(--step-1)); line-height: 1.55; }
.on-mist { background: var(--mist); }
.on-tide { background: var(--tide); color: var(--shell); }
.on-tide h2, .on-tide h3 { color: var(--shell); }
.on-tide a { color: var(--shell); }
.center { text-align: center; }
.center h2, .center .prose { margin-inline: auto; }
.section-cta { margin-top: clamp(2rem, 5vw, 3rem); }

/* What it is */
.what-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.who-more { margin-top: clamp(2.5rem, 6vw, 4rem); }
.who-more .prose { max-width: 70ch; }
@media (min-width: 60rem) { .what-grid { grid-template-columns: 1.15fr 0.85fr; } }
.chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chips li {
  background: var(--cream); border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 0.3rem 0.95rem; font-size: 0.98rem; font-weight: 600;
}
.chips li:nth-child(3n+1) { background: var(--fiddle-tint); }
.chips li:nth-child(3n+2) { background: #FBDDD2; }
.callout {
  position: relative;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 5px 6px 0 var(--ink);
  padding: clamp(1.5rem, 4vw, 2.1rem);
  transform: rotate(-0.8deg);
}
.callout h3 { font-size: var(--step-2); font-style: italic; font-weight: 500; margin-bottom: 0.5em; }
.callout p { margin: 0; }
.callout .callout-extra { margin-top: 1rem; padding-top: 1rem; border-top: 1.5px dashed color-mix(in srgb, var(--ink) 40%, transparent); }
.callout .callout-tag {
  display: inline-block; margin-bottom: 0.9rem;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--coral-bright); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.2rem 0.8rem;
}

/* Skills */
.skills { list-style: none; padding: 0; margin: clamp(1.75rem, 4vw, 2.75rem) 0 0; display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .skills { grid-template-columns: repeat(3, 1fr); } }
.skill {
  background: var(--cream);
  border: 1.5px solid color-mix(in srgb, var(--ink) 80%, transparent);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.4rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.skill:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow); }
.skill svg { width: 46px; height: 46px; margin-bottom: 0.8rem; }
.skill h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.skill p { margin: 0; font-size: 1.02rem; }
.skills-note { margin-top: 1.5rem; font-style: italic; font-family: var(--font-display); font-size: var(--step-0); }

/* Who it's for */
.who-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 60rem) { .who-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.welcome-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.welcome-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start;
  background: var(--cream); border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--lagoon) 70%, transparent);
  padding: 1rem 1.15rem;
}
.welcome-list svg { width: 26px; height: 26px; margin-top: 0.15rem; }
.welcome-list p { margin: 0; }
.welcome-list p + p { margin-top: 0.6rem; }
.crosslink {
  margin-top: 1.5rem; font-size: 0.98rem;
  border-left: 3px solid var(--sunset); padding: 0.3rem 0 0.3rem 1rem;
}

/* Schedule */
.date-grid { list-style: none; padding: 0; margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.date-card {
  position: relative;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem 0.9rem 0.9rem; text-align: center;
}
.date-card .d-month { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-deep); }
.date-card .d-day { font-family: var(--font-display); font-size: var(--step-4); font-weight: 520; line-height: 1.05; }
.date-card .d-meta { font-size: 0.88rem; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.date-card .d-badge {
  position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: var(--coral-bright); border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.1rem 0.6rem; white-space: nowrap;
}
.date-card.is-next { background: var(--fiddle-tint); box-shadow: 3px 4px 0 var(--ink); }
.date-card.is-past { border-style: dashed; border-color: color-mix(in srgb, var(--ink) 35%, transparent); background: transparent; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.date-card.is-past .d-month, .date-card.is-past .d-meta { color: inherit; }
.date-card.is-past .d-day { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.date-card.is-past .d-badge { background: var(--shell); color: color-mix(in srgb, var(--ink) 75%, transparent); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }

.details { display: grid; gap: 1.25rem 2rem; margin-top: clamp(2rem, 5vw, 3rem); }
@media (min-width: 48rem) { .details { grid-template-columns: repeat(2, 1fr); } }
.detail { border-left: 3px solid var(--lagoon); padding-left: 1.1rem; }
.detail h3 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; letter-spacing: 0; margin-bottom: 0.2em; }
.detail p { margin: 0; font-size: 1.04rem; }

/* Tune list — a set list taped to the wall */
.tunes-wrap { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 60rem) { .tunes-wrap { grid-template-columns: 0.8fr 1.2fr; } }
.setlist {
  position: relative;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 7px 0 var(--ink);
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.25rem, 4vw, 2.4rem);
  transform: rotate(0.7deg);
}
.setlist::before { /* strip of tape */
  content: ""; position: absolute; top: -0.85rem; left: 50%;
  width: 7rem; height: 1.6rem; transform: translateX(-50%) rotate(-2deg);
  background: color-mix(in srgb, var(--fiddle) 55%, transparent);
  border-left: 2px dashed rgba(34, 41, 62, 0.25); border-right: 2px dashed rgba(34, 41, 62, 0.25);
}
.setlist h3 { font-size: var(--step-2); font-style: italic; font-weight: 500; text-align: center; margin-bottom: 1rem; }
.setlist ol { list-style: none; counter-reset: tune; padding: 0; margin: 0; }
.setlist li {
  counter-increment: tune;
  display: grid; grid-template-columns: 2ch 1fr auto; gap: 0.75rem; align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.setlist li:last-child { border-bottom: 0; }
.setlist li::before { content: counter(tune); font-family: var(--font-display); color: var(--coral-deep); font-size: var(--step-1); line-height: 1; }
.tune-name { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, var(--step-1)); font-weight: 520; line-height: 1.25; }
.tune-name small { display: block; font-family: var(--font-body); font-size: 0.88rem; font-weight: 400; color: color-mix(in srgb, var(--ink) 75%, transparent); }
.setlist-cta { margin: 1.75rem 0 0; text-align: center; }
@media (min-width: 60rem) { .setlist-cta { grid-column: 2; } }
.tune-key {
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.1rem 0.65rem; background: var(--mist);
}

/* Cost */
.cost-inner { max-width: 50rem; margin-inline: auto; }
.price-table-wrap { margin-top: clamp(1.5rem, 4vw, 2.25rem); border: 2px solid color-mix(in srgb, var(--shell) 85%, transparent); border-radius: var(--radius-lg); overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; text-align: center; table-layout: fixed; }
.price-table caption { caption-side: bottom; font-size: 0.92rem; padding: 0.8rem 1rem; color: color-mix(in srgb, var(--shell) 80%, transparent); border-top: 1px solid color-mix(in srgb, var(--shell) 25%, transparent); }
.price-table th, .price-table td { padding: clamp(0.8rem, 2.5vw, 1.2rem) clamp(0.5rem, 2vw, 1rem); }
.price-table thead th { font-size: clamp(0.78rem, 2vw, 0.92rem); font-weight: 700; letter-spacing: 0.04em; line-height: 1.3; color: var(--coral-bright); border-bottom: 1px solid color-mix(in srgb, var(--shell) 25%, transparent); }
.price-table tbody th { text-align: left; font-family: var(--font-display); font-weight: 520; font-size: clamp(1.05rem, 2.5vw, var(--step-1)); padding-left: clamp(1rem, 3vw, 1.75rem); }
.price-table tbody tr + tr > * { border-top: 1px solid color-mix(in srgb, var(--shell) 18%, transparent); }
.price-table td { font-family: var(--font-display); font-size: clamp(var(--step-2), 5vw, var(--step-4)); font-weight: 480; line-height: 1; }
.price-table td + td, .price-table thead th + th + th { border-left: 1px solid color-mix(in srgb, var(--shell) 18%, transparent); }
.cost-payment { margin: clamp(1.5rem, 4vw, 2.25rem) auto 0; max-width: 40rem; font-size: 1.06rem; border-top: 3px solid var(--coral-bright); padding-top: 0.9rem; }
.cost-notes { list-style: none; padding: 0; margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; display: grid; gap: 1rem; text-align: left; }
@media (min-width: 48rem) { .cost-notes { grid-template-columns: repeat(3, 1fr); } }
.cost-notes li { border-top: 3px solid var(--coral-bright); padding-top: 0.8rem; font-size: 1.02rem; }
.cost-notes strong { display: block; font-family: var(--font-display); font-size: var(--step-0); font-weight: 560; margin-bottom: 0.15rem; }

/* Meet Amanda */
.amanda-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.amanda-head h2 { margin-bottom: 0.2em; }
.amanda-head .amanda-role { margin-bottom: 0; }
.amanda-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .amanda-grid { grid-template-columns: 0.72fr 1.28fr; } }
.portrait { position: relative; max-width: 24rem; margin-inline: auto; width: 100%; }
.portrait img {
  border-radius: var(--radius-lg);
  border: 2px solid var(--ink);
  box-shadow: 8px 9px 0 var(--coral-bright), 8px 9px 0 2px var(--ink);
  width: 100%;
}
.amanda-grid h2 { margin-bottom: 0.2em; }
.amanda-role { font-weight: 650; color: var(--coral-deep); margin-bottom: 1.3rem; }

/* Sign-up */
.signup-grid { display: grid; gap: 1.75rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
@media (min-width: 62rem) { .signup-grid { grid-template-columns: 1.4fr 0.8fr; } }
.form-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}
.form-card > h3 { font-size: var(--step-2); }
.form-note {
  border: 1.5px dashed var(--ink); background: var(--fiddle-tint);
  border-radius: var(--radius); padding: 0.85rem 1.1rem; font-size: 0.98rem; margin-bottom: 1.5rem;
}
.field { margin-bottom: 1.15rem; }
.field label, legend { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.hint { display: block; font-weight: 400; color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: 0.92rem; line-height: 1.45; }
label .hint, legend .hint { display: inline; }
.req { color: var(--coral-deep); font-weight: 700; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  padding: 0.7rem 0.85rem; min-height: 3rem;
  border: 1.5px solid color-mix(in srgb, var(--ink) 55%, transparent);
  border-radius: 10px; background: #fff;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--coral-hover); outline-offset: 1px; border-color: var(--ink); }
.field-row { display: grid; gap: 0 1.1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } .field-row.narrow-first { grid-template-columns: 1.6fr 1fr; } }
fieldset {
  border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent);
  border-radius: var(--radius); padding: 0.9rem 1.1rem 0.7rem; margin: 0 0 1.25rem; min-width: 0;
}
legend { padding-inline: 0.4rem; margin-bottom: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 0.1rem 1rem; margin-top: 0.4rem; }
.choice { display: flex; align-items: flex-start; gap: 0.65rem; font-weight: 500; font-size: 1.02rem; padding: 0.4rem 0; cursor: pointer; line-height: 1.4; }
.choice b { font-weight: 700; white-space: nowrap; }
input[type="checkbox"], input[type="radio"] { width: 1.3rem; height: 1.3rem; margin: 0.08rem 0 0; accent-color: var(--ink); flex-shrink: 0; }
.radio-list { margin-top: 0.4rem; }
.field-error { color: #A3271A; font-weight: 650; font-size: 0.95rem; margin: 0.35rem 0 0; }
.field-error:empty { display: none; }
.total-line {
  margin: 1.1rem 0 0; padding: 0.9rem 1.1rem;
  background: var(--mist); border-radius: var(--radius); border: 1.5px solid var(--lagoon);
  font-size: 1.04rem;
}
.total-line strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 560; }
.next-steps { background: var(--tide); color: var(--shell); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2rem); }
.next-steps h3 { color: var(--shell); font-size: var(--step-1); }
.next-steps ol { list-style: none; counter-reset: ns; padding: 0; margin: 0; display: grid; gap: 1rem; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; font-size: 1.02rem; line-height: 1.5; }
.next-steps li::before {
  content: counter(ns); font-family: var(--font-display); font-weight: 560;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral-bright); color: var(--ink); line-height: 1;
}
.next-steps .sick { margin: 1.4rem 0 0; padding-top: 1.1rem; border-top: 1px solid color-mix(in srgb, var(--shell) 25%, transparent); font-size: 0.98rem; }

/* Contact dialog */
#contact-dialog, #music-dialog {
  border: 0; padding: 0; background: transparent;
  width: min(32rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem);
}
#contact-dialog::backdrop, #music-dialog::backdrop { background: rgba(23, 27, 40, 0.6); }
.contact-card { position: relative; box-shadow: 0 30px 80px -20px rgba(23, 27, 40, 0.6); }
.contact-card > h2 { font-size: var(--step-2); margin-bottom: 0.25em; padding-right: 2.5rem; }
.dialog-close {
  position: absolute; top: 0.8rem; right: 0.9rem;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--shell); border: 1.5px solid var(--ink); cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--ink);
}
.dialog-close:hover { background: var(--coral-bright); }
.form-success { text-align: center; padding: 1.5rem 0.5rem; }
.form-success[hidden] { display: none; }
.form-success svg { width: 64px; height: 64px; margin: 0 auto 1rem; }
.form-success h3 { font-size: var(--step-2); }

/* FAQ */
.faq-list { margin-top: clamp(1.5rem, 4vw, 2.5rem); max-width: 52rem; display: grid; gap: 0.75rem; }
.faq-item { background: var(--cream); border: 1.5px solid color-mix(in srgb, var(--ink) 75%, transparent); border-radius: var(--radius); }
.faq-item[open] { box-shadow: 3px 4px 0 var(--ink); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-size: clamp(1.12rem, 2.5vw, var(--step-1)); font-weight: 530; line-height: 1.3;
  padding: 1.1rem 1.3rem; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-body); font-weight: 400; color: var(--coral-deep);
  font-size: var(--step-2); line-height: 0.8; transition: transform 200ms ease; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.3rem; max-width: 60ch; }
.faq-body p { margin: 0; }

/* Footer */
.site-footer { background: var(--tide-deep); color: var(--shell); padding-block: clamp(2rem, 5vw, 3.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }
.footer-brand img { width: min(20rem, 88%); margin-bottom: 1rem; }
.footer-tagline { color: color-mix(in srgb, var(--shell) 85%, transparent); font-size: 1rem; margin-bottom: 0.3rem; max-width: 30ch; }
.footer-place { font-weight: 650; margin: 0; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 1.5rem; }
.footer-nav a { color: var(--shell); text-decoration: none; font-size: 1rem; padding: 0.3rem 0; }
.footer-nav a:hover { color: var(--coral-bright); }
.footer-actions { display: grid; gap: 1rem; justify-items: start; }
.site-footer .link-btn { color: var(--shell); }
.sister { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--sunset) 40%, transparent); font-size: 0.98rem; }
.sister a { color: var(--shell); }
.sister a:hover { color: var(--coral-bright); }
.small-print { margin: 0.6rem 0 0; font-size: 0.88rem; color: color-mix(in srgb, var(--shell) 70%, transparent); }

/* Mobile fixed Sign Up bar (<768px) */
.mobile-cta { display: none; }
@media (max-width: 47.99rem) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
    background: var(--tide-deep);
    border-top: 2px solid var(--coral-bright);
    transition: transform 220ms ease, visibility 0s linear 0s;
  }
  .mobile-cta .btn { width: 100%; }
  /* slides away while the form is on screen so it never covers Submit */
  .mobile-cta.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform 220ms ease, visibility 0s linear 220ms; }
  body { padding-bottom: 4.6rem; }
}

/* Simple pages (thanks / 404) */
.simple-page { min-height: 100vh; display: flex; flex-direction: column; }
.simple-page main { flex: 1; display: grid; place-items: center; padding: clamp(2rem, 6vw, 5rem) 0; }
.simple-card { max-width: 40rem; margin-inline: auto; text-align: center; }
.simple-card img.simple-mark { width: min(13rem, 55vw); margin: 0 auto 1.25rem; }
.simple-card h1 { font-size: clamp(var(--step-4), 7vw, var(--step-5)); font-weight: 520; }
.simple-card .next-steps { text-align: left; margin: 2rem 0; }
.simple-page .mobile-cta { display: none; }
.simple-page { padding-bottom: 0 !important; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
.callout.reveal.in { transform: rotate(-0.8deg); }
.setlist.reveal.in { transform: rotate(0.7deg); }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .skill, .mobile-cta, .site-nav { transition: none; }
  .btn:hover, .skill:hover { transform: none; }
}
