/* ============================================================================
   FLYING FEET - design system
   1930s aviation-meets-swing Art Deco, anchored on a heritage aviation blue.
   Blue-led, warm ivory ground, one signature: the gold-and-blue "speed lines".
   Plain CSS, no build step. Mobile-first. 1rem = 18px (html font-size 112.5%).

   ----------------------------------------------------------------------------
   PALETTE + VERIFIED WCAG CONTRAST  (formula: WCAG 2.1 relative luminance)
   Body text target AAA (>=7:1); UI / large text target AA (>=4.5:1 / >=3:1).
   ----------------------------------------------------------------------------
   TEXT-ON-BACKGROUND PAIRS ACTUALLY USED:
     ink        #201C17  on paper     #FAF6EC  = 15.69:1  AAA   (body text)
     ink        #201C17  on paper-alt #F1E7D3  = 13.80:1  AAA   (body on alt)
     ink        #201C17  on card      #FFFFFF  = 16.94:1  AAA   (body on card)
     ink-soft   #574E42  on paper     #FAF6EC  =  7.56:1  AAA   (muted text)
     ink-soft   #574E42  on paper-alt #F1E7D3  =  6.65:1  AA+   (muted on alt)
     ink-soft   #574E42  on card      #FFFFFF  =  8.16:1  AAA
     brand      #1E5A97  on paper     #FAF6EC  =  6.56:1  AA+   (links)
     brand      #1E5A97  on paper-alt #F1E7D3  =  5.77:1  AA+   (links on alt)
     brand      #1E5A97  on card      #FFFFFF  =  7.08:1  AAA
     brand-deep #153E6B  on paper     #FAF6EC  = 10.07:1  AAA   (headings/hover)
     brand-deep #153E6B  on card      #FFFFFF  = 10.86:1  AAA
     white      #FFFFFF  on brand     #1E5A97  =  7.08:1  AAA   (primary btn)
     white      #FFFFFF  on brand-deep#153E6B  = 10.86:1  AAA   (btn hover)
     white      #FFFFFF  on brand-bright#2E6DA4=  5.47:1  AA    (large fills only)
     danger     #A12B22  on card      #FFFFFF  =  7.28:1  AAA   (form errors)
     danger     #A12B22  on paper     #FAF6EC  =  6.75:1  AA+
     danger     #A12B22  on danger-tint#F7E4E1 =  5.94:1  AA+   (error text)
     success    #2E6E4B  on paper     #FAF6EC  =  5.64:1  AA+   (confirmations)
     success    #2E6E4B  on succ-tint #E1EFE7  =  5.13:1  AA+
     white      #FFFFFF  on danger    #A12B22  =  7.28:1  AAA
     accent-deep#8A5F17  on paper     #FAF6EC  =  5.22:1  AA+   (rare gold text)
     accent-deep#8A5F17  on paper-alt #F1E7D3  =  4.59:1  AA
     accent-deep#8A5F17  on gold-tint #F5E9CC  =  4.67:1  AA    (sample-flag)
   DECORATIVE-ONLY (never used as text):
     accent     #C0872B  on paper     #FAF6EC  =  2.89:1  FAIL  -> speed-lines,
                meter fill, underlines, small marks ONLY. Never body text.
   ============================================================================ */

/* ----------------------------------------------------------------- fonts --- */
/* Self-hosted (the same Fraunces and Source Sans 3 the page asked Google for), so
   the text does not wait on two third-party round trips on every page. The two
   main files are preloaded in each page's head. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/fraunces.woff2) format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600 700;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/sourcesans3.woff2) format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/sourcesans3-italic.woff2) format("woff2");
}

/* Page changes: Chrome crossfades the content and keeps the header (or rail) in
   place, so a click on a tab never repaints the chrome. */
@view-transition { navigation: auto; }
/* The overlay behind the snapshots is paper, never the browser's white, and the
   page swap is instant (no crossfade), so no mid-fade frame can show through. */
::view-transition { background: var(--paper); }
::view-transition-group(root), ::view-transition-group(site-header) { animation-duration: 0s; }
::view-transition-old(root) { animation: none; opacity: 0; }
::view-transition-new(root) { animation: none; }
::view-transition-old(site-header) { animation: none; opacity: 0; }
::view-transition-new(site-header) { animation: none; }
#site-header { view-transition-name: site-header; }

/* ---------------------------------------------------------------- tokens --- */
:root {
  /* surfaces */
  --paper: #FAF6EC;
  --paper-alt: #F1E7D3;
  --card: #FFFFFF;
  --line: #E4D9C1;
  /* ink */
  --ink: #201C17;
  --ink-soft: #4E463B;
  /* brand blues */
  --brand: #19497C;        /* 8.51:1 on paper, 7.49 on sand, 9.19 on white - AAA everywhere */
  --brand-deep: #153E6B;
  --brand-bright: #2E6DA4;
  /* gold */
  --accent: #C0872B;
  --accent-deep: #8A5F17;
  /* status */
  --danger: #A12B22;
  --success: #2E6E4B;
  /* derived soft tints (backgrounds only; text verified above) */
  --brand-tint: #E7EEF6;
  --gold-tint: #F5E9CC;
  --success-tint: #E1EFE7;
  --danger-tint: #F7E4E1;

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* fluid type ramp (1rem = 18px) */
  --step--1: 0.9rem;                                     /* ~15px  captions   */
  --step-0:  1rem;                                       /* 18px   body       */
  --step-1:  1.2rem;                                     /* ~22px  lead       */
  --step-2:  clamp(1.35rem, 1.2rem + 0.7vw, 1.6rem);     /* card/teacher name */
  --step-3:  clamp(1.6rem, 1.35rem + 1.2vw, 2.05rem);    /* section titles    */
  --step-4:  clamp(2.35rem, 1.6rem + 3.6vw, 3.9rem);     /* hero title        */

  /* spacing scale */
  --sp-3xs: 0.25rem;
  --sp-2xs: 0.375rem;
  --sp-xs:  0.5rem;
  --sp-sm:  0.75rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2.25rem;
  --sp-2xl: 3.25rem;
  --sp-3xl: clamp(3rem, 6vw, 5rem);

  /* structure */
  --container: 66rem;
  --measure: 42rem;
  --radius-sm: 0.2rem;
  --radius: 0.4rem;
  --radius-lg: 0.7rem;
  --radius-pill: 999px;
  --border: 1px solid var(--line);
  --hairline: 1px solid var(--line);

  --shadow-1: 0 1px 2px rgba(21, 62, 107, 0.06), 0 2px 8px rgba(21, 62, 107, 0.06);
  --shadow-2: 0 6px 22px rgba(21, 62, 107, 0.12);

  --focus-ring: 3px solid var(--brand-deep);
  --focus-offset: 2px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------ reset/base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color-scheme: light;
  scrollbar-gutter: stable;       /* the track is reserved on every page, so short and long pages lay out alike */
  font-size: 112.5%;              /* 1rem = 18px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* keep the sticky footer layout without extra wrappers */
body { display: flex; flex-direction: column; }
.masthead { flex: 0 0 auto; }
.main { flex: 1 0 auto; }
.footer { flex: 0 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--brand-deep);
  line-height: 1.12;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; }
dl, dd { margin: 0; }

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--brand);                   /* AAA since --brand moved to #19497C */
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
  text-decoration-color: currentColor;   /* the underline is the only non-colour link cue */
  transition: color 140ms var(--ease), text-decoration-color 140ms var(--ease);
}
a:hover { color: var(--brand-deep); text-decoration-color: var(--accent); }

strong, b { font-weight: 700; }
em, i { font-style: italic; }

button, input, select, textarea { font: inherit; color: inherit; }

/* universal visible focus */
:focus-visible {
  /* Two-colour ring: the ivory outline reads on dark surfaces, the dark halo on
     ivory. A single colour cannot serve both the footer and the page. */
  outline: 3px solid var(--paper);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--brand-deep);
}
/* remove the default only where we supply focus-visible */
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--brand); color: #fff; }  /* 7.08:1, on-brand */

/* ------------------------------------------------------------- utilities --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.center { text-align: center; }
.center.stack { align-items: center; }
.center :is(p, .section__lead, .lede) { margin-inline: auto; }

/* vertical rhythm */
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--stack-space, 1rem); }

/* horizontal groups */
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-space, 0.75rem);
}

/* grids */
.grid { display: grid; gap: var(--grid-gap, 1.5rem); }
.grid--2, .grid--3 { grid-template-columns: 1fr; }
@media (min-width: 40em) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 58em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------- skip link --- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--brand-deep);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-2);
  transition: top 140ms var(--ease);
}
.skip-link:focus { top: 0.75rem; color: #fff; }

/* ==========================================================================
   CHASSIS: header, phone menu, request modal, rail layout.
   Mechanics and feel only; the fonts, colors, logo and page layouts above and
   below are theirs. Behavior is in app.js (see AGENTS.md, "Chassis").
   ========================================================================== */
:root { --cmp-sn-rail-w: 280px; --hdr-h: 64px; }
@media (max-width: 47.99em) { :root { --hdr-h: 60px; } }
html { scroll-padding-top: calc(var(--hdr-h) + 8px); }

/* ----------------------------------------------------------- header (bar) --- */
.masthead {
  --sn-link-pad: 20px;      /* set from app.js per fit step */
  --sn-font: 16px;
  --sn-gap: 24px;
  --sn-btn-pad: 20px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 1px 0 var(--accent);        /* thin gold keel-line under the blue */
  transition: box-shadow 160ms var(--ease);
}
.masthead.is-scrolled { box-shadow: 0 1px 0 var(--accent), 0 4px 4px rgba(21, 62, 107, 0.16); }

.masthead__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sn-gap);
  padding-block: 8px;
  min-height: calc(var(--hdr-h) - 2px);   /* the 2px is the border under the header */
}
.js .masthead__inner { flex-wrap: nowrap; }
@media (max-width: 47.99em) { .masthead__inner { padding-block: 6px; } }

.masthead__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--brand-deep);
  padding: 0 0.15rem;
  border-radius: var(--radius);
}
.masthead__brand:hover { color: var(--brand-deep); }
.masthead__brand:hover .masthead__wordmark { text-decoration-color: color-mix(in srgb, var(--brand-deep) 60%, transparent); }
.masthead__logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
  transition: transform 220ms var(--ease);
}
.masthead__brand:hover .masthead__logo { transform: rotate(-6deg); }
.masthead__wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.06em;
  transition: text-decoration-color 140ms var(--ease);
  white-space: nowrap;
  width: 5.47em;               /* the Fraunces width, so the logo row never shifts while the font swaps in */
}

.nav { margin-left: auto; }
html:not(.js) .nav { flex-basis: 100%; margin-left: 0; }
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
html:not(.js) .nav__list { flex-wrap: wrap; }
.nav__item { margin: 0; }
.nav__link {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--sn-link-pad);
  font-size: var(--sn-font);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color 140ms var(--ease), background 140ms var(--ease), border-color 140ms var(--ease);
}
.nav__link:hover { color: var(--brand-deep); background: var(--paper-alt); }
.nav__link--active { color: var(--brand-deep); font-weight: 700; border-bottom-color: var(--accent-deep); }

.masthead__actions {
  display: flex;
  align-items: center;
  gap: calc(var(--sn-gap) / 2);
}

/* header and menu buttons */
.hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 calc(var(--sn-btn-pad, 20px) - 2px);
  font-family: var(--font-body);
  font-size: var(--sn-font, 16px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  color: var(--brand-deep);
  background: var(--card);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  transition: background 140ms var(--ease), border-color 140ms var(--ease),
              color 140ms var(--ease), transform 60ms var(--ease);
}
.hbtn:hover { background: var(--paper-alt); border-color: var(--brand-deep); color: var(--brand-deep); }
.hbtn:active { transform: translateY(1px); }
.hbtn--request { background: var(--brand); color: #fff; }
.hbtn--request:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.hbtn--secondary { background: var(--card); color: var(--brand-deep); }
.hbtn--lg { height: 48px; font-size: 1.05rem; --sn-btn-pad: 20px; }

.rail-foot { display: none; }

/* burger: a bare icon that becomes an X while the menu is open, like the other mocks */
.nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  margin-right: -8px;
  padding: 0;
  background: none;
  color: var(--brand-deep);
  border: 0;
  cursor: pointer;
}
.nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 1.4rem; height: 2px;
  margin: -1px 0 0 -0.7rem;
  background: currentColor;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), opacity 160ms var(--ease);
}
.nav-toggle::before { box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor; }
.nav-toggle::after { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { box-shadow: none; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { opacity: 1; transform: rotate(-45deg); }

.js .masthead[data-mode="burger"] .nav,
.js .masthead[data-mode="burger"] .masthead__actions { display: none; }
.js .masthead[data-mode="burger"] .nav-toggle { display: inline-flex; margin-left: auto; }
@media (max-width: 47.99em) {
  .js .masthead:not([data-mode]) .nav,
  .js .masthead:not([data-mode]) .masthead__actions { display: none; }
  .js .masthead:not([data-mode]) .nav-toggle { display: inline-flex; margin-left: auto; }
}

/* -------------------------------------------------------------- phone menu --- */
.menu-backdrop {
  position: fixed;
  inset: var(--hdr-live, var(--hdr-h)) 0 0 0;
  z-index: 30;
  background: rgba(21, 62, 107, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease), visibility 0s linear 200ms;
}
.menu-backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-panel {
  position: fixed;
  top: var(--hdr-live, var(--hdr-h));
  right: 0;
  bottom: 0;
  z-index: 35;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem 1.25rem 1.5rem;
  background: var(--paper);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 220ms var(--ease), visibility 0s linear 220ms;
}
.menu-panel.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.menu-panel__list { list-style: none; margin: 0; padding: 0; }
.menu-panel__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 140ms var(--ease);
}
.menu-panel__link:hover, .menu-panel__link[aria-current="page"] { color: var(--brand-deep); }
.menu-panel__link[aria-current="page"] { font-weight: 700; }
.menu-panel__actions { padding-top: 1.5rem; display: grid; gap: 0.6rem; }

/* ------------------------------------------------------------- rail layout --- */
@media (min-width: 1040px) {
  html[data-cmp-layout="rail"] { scroll-padding-top: 0; }
  html[data-cmp-layout="rail"] body { padding-left: var(--cmp-sn-rail-w); }
  html[data-cmp-layout="rail"] .masthead {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--cmp-sn-rail-w);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 0;
    border-right: 2px solid var(--brand);
    box-shadow: 1px 0 0 var(--accent);
  }
  html[data-cmp-layout="rail"] .masthead.is-scrolled { box-shadow: 1px 0 0 var(--accent), 4px 0 4px rgba(21, 62, 107, 0.16); }
  html[data-cmp-layout="rail"] .masthead__inner {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    max-width: none;
    min-height: 100%;
    padding: 1.1rem 1rem;
    gap: 1.25rem;
  }
  html[data-cmp-layout="rail"] .masthead__logo { width: 48px; height: 48px; }
  html[data-cmp-layout="rail"] .masthead__wordmark { font-size: 1.5rem; }
  html[data-cmp-layout="rail"] .nav { margin-left: 0; }
  html[data-cmp-layout="rail"] .nav__list { flex-direction: column; align-items: stretch; }
  html[data-cmp-layout="rail"] .nav__link {
    height: auto;
    min-height: 46px;
    padding: 0.5rem 0.6rem;
    font-size: 1.05rem;
    line-height: 1.2;
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
  }
  html[data-cmp-layout="rail"] .nav__link--active {
    border-bottom-color: transparent;
    border-left-color: var(--accent-deep);
    background: color-mix(in srgb, var(--paper-alt) 60%, transparent);
  }
  html[data-cmp-layout="rail"] .masthead__actions { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  html[data-cmp-layout="rail"] .hbtn { height: 46px; font-size: 1.05rem; }
  html[data-cmp-layout="rail"] .rail-foot { display: flex; align-items: center; gap: 0.25rem; margin-top: auto; padding-top: 1rem; }
  /* Social icons: the real Facebook mark in its own blue; Instagram is gray and not a link until the account exists. */
  html[data-cmp-layout="rail"] .rail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 140ms var(--ease);
  }
  html[data-cmp-layout="rail"] .rail-icon svg { width: 26px; height: 26px; }
  html[data-cmp-layout="rail"] a.rail-icon:hover { background: color-mix(in srgb, var(--paper-alt) 70%, transparent); }
  html[data-cmp-layout="rail"] a.rail-icon:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
  html[data-cmp-layout="rail"] .rail-icon--ig { color: #A7A7A7; cursor: default; }
  html[data-cmp-layout="rail"] .nav-toggle,
  html[data-cmp-layout="rail"] .menu-panel,
  html[data-cmp-layout="rail"] .menu-backdrop { display: none; }
}

/* ---------------------------------------------------------------- main ----- */
.main { display: block; }

/* --------------------------------------------------------- sections ------- */
/* symmetric padding on every band; the alt background creates the rhythm.
   (kept as a single flat selector to avoid sibling rules that cancel spacing) */
.section { padding-block: var(--sp-3xl); }
.section--alt { background: var(--paper-alt); }

.section__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section__title {
  font-size: var(--step-3);
  margin: 0;
}
.section__lead, .lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.lede { color: var(--ink); }

/* eyebrow: small-caps label above a title */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0;
}

/* ============================================================================
   SIGNATURE: SPEED LINES
   Three tapered horizontal streaks, longest on top, fading right, blending the
   aviation blue into vintage gold. Purely decorative (aria-hidden in markup).
   ============================================================================ */
.speedlines {
  --sl-h: 0.28rem;                 /* streak thickness */
  display: block;
  width: 3.5rem;
  height: calc(var(--sl-h) * 3 + 0.5rem);
  background-image:
    linear-gradient(90deg, var(--brand) 0%, var(--brand-bright) 60%, transparent 100%),
    linear-gradient(90deg, var(--brand-bright) 0%, var(--accent) 75%, transparent 100%),
    linear-gradient(90deg, var(--accent) 0%, var(--accent) 55%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% var(--sl-h), 78% var(--sl-h), 54% var(--sl-h);
  background-position: left top, left center, left bottom;
}
.center .speedlines, .speedlines--center { margin-inline: auto; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes speedlines-draw {
    from { background-size: 0 var(--sl-h), 0 var(--sl-h), 0 var(--sl-h); }
    to   { background-size: 100% var(--sl-h), 78% var(--sl-h), 54% var(--sl-h); }
  }
  .speedlines { animation: speedlines-draw 640ms var(--ease) both; }
}

/* ---------------------------------------------------------------- hero ----- */
.hero {
  background:
    radial-gradient(120% 90% at 88% -10%, var(--brand-tint) 0%, transparent 60%),
    var(--paper);
  border-bottom: var(--hairline);
  padding-block: var(--sp-3xl);
}
.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 52em) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__body { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }

.hero__title {
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
}
.hero__title em {
  font-style: italic;
  color: var(--brand);
}

.hero__lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__media { justify-self: center; width: 100%; }
.hero__figure {
  margin: 0;
  background: var(--card);
  padding: 0.55rem;
  border: var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  position: relative;
}
.hero__figure::after {          /* inner gold hairline - vintage photo mount */
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: calc(var(--radius-lg) - 0.4rem);
  pointer-events: none;
}
.hero__figure img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 0.35rem);
}
.hero__caption {
  margin-top: 0.55rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

/* --------------------------------------------------------------- buttons --- */
.btn {
  --btn-bg: var(--card);
  --btn-fg: var(--brand-deep);
  --btn-bd: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;              /* >= 44px hit target */
  padding: 0.6rem 1.25rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms var(--ease), border-color 140ms var(--ease),
              color 140ms var(--ease), transform 60ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
}
.btn--primary:hover { --btn-bg: var(--brand-deep); --btn-bd: var(--brand-deep); color: #fff; }
.btn--primary:active { --btn-bg: var(--brand-deep); }

.btn--secondary {
  --btn-bg: var(--card);
  --btn-fg: var(--brand-deep);
  --btn-bd: var(--brand);
}
.btn--secondary:hover { --btn-bg: var(--paper-alt); --btn-bd: var(--brand-deep); color: var(--brand-deep); }
.btn--secondary:active { --btn-bg: var(--gold-tint); }

.btn--lg {
  min-height: 3.1rem;
  padding: 0.8rem 1.7rem;
  font-size: var(--step-1);
}
.btn--block { display: flex; width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
  --btn-bg: var(--paper-alt);
  --btn-fg: var(--ink-soft);
  --btn-bd: var(--line);
  cursor: not-allowed;
  opacity: 0.8;
  box-shadow: none;
  transform: none;
}

/* ----------------------------------------------------------------- cards --- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid color-mix(in srgb, var(--brand) 45%, var(--line));  /* --line alone was 1.40:1 */
  border: var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.card:hover { box-shadow: var(--shadow-2); }

.card__media {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-alt);
  border-bottom: var(--hairline);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem;
  flex: 1 1 auto;
}
.card__eyebrow {
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.card__title { font-size: var(--step-2); }
.card__meta {
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-weight: 600;
}
.card__text { color: var(--ink); }
.card__actions {
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* -------------------------------------------------------------- teachers --- */
.teacher {
  display: grid;
  /* minmax(0,...) stops the implicit track being sized by min-content, which
     overflowed the card at 200% zoom on a phone. */
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  background: var(--card);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 1.25rem;
}
@media (min-width: 40em) {
  .teacher { grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); align-items: start; }
}
.teacher__media { margin: 0; }
.teacher__media img {
  display: block;
  margin-inline: auto;
  width: 100%;
  max-width: var(--nw, 100%);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.teacher__body { display: flex; flex-direction: column; gap: 0.6rem; }
.teacher__name {
  font-size: var(--step-2);
  margin: 0;
}
.teacher__role {
  font-weight: 700;
  color: var(--brand);
  font-size: var(--step-0);
}

/* ---------------------------------------------------------- tags & pills --- */
.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag, .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.2;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-pill);
  /* Short tags stay on one line because they have room; long pills such as
     "Loves absolute beginners" must be allowed to wrap, or they push the bios
     page sideways at 200% zoom on a phone. */
  max-width: 100%;
}
.tag {
  background: var(--paper-alt);
  color: var(--ink);
  border: 1px solid var(--line);
}
.pill {
  background: var(--brand-tint);
  color: var(--brand-deep);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}

/* sample-flag: marks placeholder copy the teachers should replace */
.sample-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--gold-tint);
  border: 1px dashed var(--accent-deep);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.5rem;
  line-height: 1.3;
}
.sample-flag::before { content: "✎"; font-style: normal; }

/* ----------------------------------------------------------------- forms --- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: var(--card);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(1.15rem, 3vw, 1.75rem);
  max-width: 40rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field__label {
  font-weight: 700;
  color: var(--ink);
}
.field__hint {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.field__error {
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--danger);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.field__error:empty { display: none; }
.field__error::before { content: "▲"; font-size: 0.75em; }

.field__control {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  line-height: 1.4;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
textarea.field__control { min-height: 7rem; resize: vertical; }
.field__control::placeholder { color: color-mix(in srgb, var(--ink-soft) 80%, transparent); }
.field__control:hover { border-color: var(--brand); }
.field__control:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--brand-deep);
}

.field--error .field__control {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}

.req {
  color: var(--danger);
  font-weight: 700;
  margin-left: 0.15rem;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-note {
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--gold-tint);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}
.form-note strong { color: var(--accent-deep); }

/* ---------------------------------------------------------------- alerts --- */
.alert {
  --alert-edge: var(--brand);
  --alert-bg: var(--brand-tint);
  --alert-title: var(--brand-deep);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--alert-bg);
  border: 1px solid color-mix(in srgb, var(--alert-edge) 30%, transparent);
  border-left: 5px solid var(--alert-edge);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--ink);
}
.alert--info    { --alert-edge: var(--brand);   --alert-bg: var(--brand-tint);   --alert-title: var(--brand-deep); }
.alert--success { --alert-edge: var(--success); --alert-bg: var(--success-tint); --alert-title: var(--success); }
.alert--warning { --alert-edge: var(--accent);  --alert-bg: var(--gold-tint);    --alert-title: var(--accent-deep); }

.alert__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--alert-title);
  margin: 0;
}
.alert__body { color: var(--ink); }
.alert__body p + p { margin-top: 0.5rem; }

/* JS demo confirmation echoes the entered email back LARGE */
.alert--success .alert__body strong {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--brand-deep);
  word-break: break-word;
  line-height: 1.25;
}

/* ---------------------------------------------------------------- meter ---- */
.meter { display: flex; flex-direction: column; gap: 0.4rem; }
.meter__label {
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--ink);
  letter-spacing: 0.02em;
}
.meter__track {
  position: relative;
  height: 0.8rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: var(--meter-fill, 0%);          /* static HTML sets this; JS may update */
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  border-radius: var(--radius-pill);
  transition: width 240ms var(--ease);
}
.meter--full .meter__fill {
  background: linear-gradient(90deg, var(--ink-soft) 0%, var(--accent-deep) 100%);
}
.meter--full .meter__label { color: var(--accent-deep); }

/* ------------------------------------------------------ figures/heritage --- */
.figure {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--card);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.figure__mat {
  position: relative;
  height: 20rem;
  background: #fff;               /* white mat: the tango print has a baked-in white edge */
}
.figure__img {
  position: absolute;
  inset: 0;
  margin: auto;                   /* centered at the file's own pixel size, shrunk only to fit the mat */
  width: auto;
  height: auto;
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 2rem);
}
.figure__caption {
  padding: 0.7rem 0.95rem;
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--ink-soft);
  font-style: italic;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--brand), var(--accent)) 1;
}

.heritage { display: block; }
.heritage__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 36em) {
  .heritage__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62em) {
  .heritage__grid { grid-template-columns: repeat(4, 1fr); }
}

.heritage__grid--wide .figure__mat { height: 14rem; }
@media (min-width: 62em) {
  .heritage__grid--wide { grid-template-columns: repeat(3, 1fr); }
}

/* Home: one wide photo of the ballroom, never wider than its own pixels */
.home-photo { margin: 0 auto; max-width: 900px; }
.home-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.home-photo figcaption { padding-top: 0.6rem; font-size: var(--step--1); color: var(--ink-soft); font-style: italic; }

/* --------------------------------------------------------------- footer ---- */
.footer {
  background: var(--brand-deep);
  color: var(--paper);
  border-top: 3px solid var(--accent);
  padding-block: var(--sp-2xl);
  margin-top: var(--sp-3xl);
}
.footer__inner {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 48em) {
  .footer__inner { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 64em) {
  .footer__inner { grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
}

.footer__brand { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  padding: 2px;
}
.footer__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}
.footer__tag {
  color: color-mix(in srgb, var(--paper) 88%, transparent);
  max-width: 30rem;
}

.footer__nav { display: block; }
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.15rem 1rem;
}
.footer__item { margin: 0; }
.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-inline: 0.75rem;               /* 'Bios' was a 33px-wide target */
  color: #fff;
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, var(--accent) 80%, transparent);
}
.footer__link:hover { color: var(--gold-tint); text-decoration-color: var(--accent); }

/* Standalone links (rail, footer, class strip) carry no underline at rest: a page of underlined
   labels reads as lines. Prose links keep theirs. The underline appears on hover and focus. */
.rail-foot__link, .footer__link, .home-next__go, .home-next__link, .quotes__more a { text-decoration-color: transparent; }
.rail-foot__link:hover, .footer__link:hover, .home-next__link:hover, .quotes__more a:hover, .home-next__classlink:hover .home-next__go,
.rail-foot__link:focus-visible, .footer__link:focus-visible, .home-next__link:focus-visible { text-decoration-color: var(--accent); }
.home-next__link::after, .quotes__more a::after { content: "\2192"; margin-left: 0.4em; text-decoration: none; display: inline-block; }

.footer__legal {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  font-size: var(--step--1);
}

/* --------------------------------------------------- reduced motion guard -- */
@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------- print ----- */
@media print {
  :root { --paper: #fff; --paper-alt: #fff; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .skip-link, .nav-toggle, .nav, .masthead__inner .nav, .hero__actions, .masthead__actions, .rail-foot, .menu-panel, .menu-backdrop,
  .btn, .form__actions, .footer__nav { display: none !important; }
  .masthead { border-bottom: 1px solid #000; box-shadow: none; }
  .masthead__wordmark, h1, h2, h3, h4, .footer__name { color: #000; }
  .footer { background: #fff; color: #000; border-top: 1px solid #000; }
  .card, .form, .teacher, .figure, .hero__figure { box-shadow: none; border: 1px solid #999; }
  .card, .teacher, .figure, .hero__figure { break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #333; }
  .speedlines { animation: none; }
}


/* home: a hero on the theme's hero ground, a band for the next classes, two facts */
.home-hero {
  background:
    radial-gradient(120% 90% at 88% -10%, var(--brand-tint) 0%, transparent 60%),
    var(--paper);
  border-bottom: var(--hairline);
  padding-block: clamp(2.25rem, 6vw, 4rem);
}
.home-hero__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: grid;
  gap: var(--sp-xl);
  justify-items: center;
  text-align: center;
}
.home-hero__text { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.home-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
  margin: 0;
  max-width: 14ch;
}
.home-hero__lede { font-size: var(--step-1); line-height: 1.45; margin: 0; max-width: 30rem; }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.7rem 1.2rem; margin: 0.4rem 0 0; }
.home-hero__or { font-size: 1.06rem; }
.home-hero__or a { font-weight: 700; color: var(--brand-deep); }
.home-hero__photo {
  width: 171px;               /* the file's own width: never shown larger than its pixels */
  max-width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--brand-deep);
  box-shadow: 9px 9px 0 var(--brand-bright);
  margin: 0 9px 9px 0;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 50%;   /* the file is 2:3 */
}
.home-hero .speedlines { margin-inline: auto; }
@media (min-width: 52rem) {
  .home-hero__inner { grid-template-columns: minmax(0, 1fr) 250px; justify-items: start; text-align: left; align-items: center; gap: var(--sp-2xl); }
  .home-hero__text { align-items: flex-start; }
  .home-hero__actions { justify-content: flex-start; }
  .home-hero .speedlines { margin-inline: 0; }
}

.home-next { padding-block: clamp(1.5rem, 4vw, 2.25rem); }
.home-next__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: grid;
  gap: 0.9rem 2rem;
  align-items: center;
}
.home-next__when { margin: 0; font-size: var(--step-1); line-height: 1.3; }
.home-next__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.home-next__class {
  background: var(--card);
  border: var(--border);
  border-left: 5px solid var(--accent);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  color: var(--brand-deep);
}
.home-next__time { font-family: var(--font-display); margin-right: 0.5rem; color: var(--accent-deep); }
.home-next__link { font-weight: 700; justify-self: start; }
@media (min-width: 52rem) {
  .home-next__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .home-next__list { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .home-next__link { justify-self: end; white-space: nowrap; }
}

.home-info { padding-block: clamp(1.75rem, 5vw, 3rem) 0; }
.home-info__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: grid;
  gap: 1rem 1.5rem;
}
.home-info__card {
  margin: 0;
  padding: 1.1rem 1.3rem;
  background: var(--card);
  border: var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: var(--step-1);
  line-height: 1.45;
}
@media (min-width: 52rem) { .home-info__inner { grid-template-columns: 1fr 1fr; } }

.main:has(> .section--alt:last-child) + .footer { margin-top: 0; }

/* contact: a tighter page, one band for reaching us and one for finding us */
.section--tight { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.contact { display: grid; gap: var(--sp-lg); align-items: start; }
.contact__list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem 1.3rem;
  background: var(--card);
  border: var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
.contact__list dd { margin: 0.15rem 0 0; }
@media (min-width: 52rem) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-lg) var(--sp-2xl); }
  .contact__intro { grid-column: 1; grid-row: 1; }
  .contact__list { grid-column: 1; grid-row: 2; }
  .contact__form { grid-column: 2; grid-row: 1 / span 2; }
}
.directions { display: grid; gap: 1rem 2rem; align-items: start; }
.directions .alert { margin: 0; }
.directions__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.directions__list li { margin: 0; }
@media (min-width: 52rem) {
  .directions { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}


/* ------------------------------------------------------- mailing list ----- */
.signup__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.2;
}
.signup__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
  max-width: 30rem;
}
.signup__form[hidden] { display: none; }
.signup__input { flex: 1 1 14rem; width: auto; }
.signup__msg { margin-top: 0.75rem; font-weight: 700; }
.signup__msg[hidden] { display: none; }

.signup--footer { grid-column: 1 / -1; }
.signup--footer .signup__title { color: #fff; font-size: var(--step-1); }
.signup--footer .signup__msg { color: var(--gold-tint); }
.signup--footer .signup__msg--error { color: #FFD9D4; }
.signup--footer .btn--primary { --btn-bg: var(--accent); --btn-bd: var(--accent); color: var(--ink); }
.signup--footer .btn--primary:hover { --btn-bg: var(--gold-tint); --btn-bd: var(--gold-tint); color: var(--ink); }

.classes__more { margin-top: 1.5rem; font-weight: 600; }

.footer__tag a { color: #fff; text-decoration-color: var(--accent); }

/* ------------------------------------------- Marc's copy: path, quotes, lists --- */
.home-hero__who {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--accent-deep);
}
.home-path__inner { display: grid; gap: var(--sp-xl); align-items: start; }
.home-path .speedlines { margin-inline: 0; }
.home-path__card {
  background: var(--card);
  border: var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  display: grid;
  gap: 0.75rem;
}
.home-path__card p { margin: 0; line-height: 1.5; }
.home-path__lead { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--brand-deep); line-height: 1.3; }
@media (min-width: 52rem) { .home-path__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-2xl); } }

.quotes { display: grid; gap: 1.1rem; }
@media (min-width: 52rem) { .quotes { grid-template-columns: 1fr 1fr; align-items: start; } }
.quote {
  margin: 0;
  background: var(--card);
  border: var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  display: grid;
  gap: 0.8rem;
}
.quote__text { margin: 0; display: grid; gap: 0.6rem; }
.quote__text p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: var(--step-0); line-height: 1.55; color: var(--ink); }
.quote__by { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.4; }
.quote__by strong { color: var(--brand-deep); }
.quotes__more { margin: 0; font-weight: 700; }

.lists-2 { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 52rem) { .lists-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.list-card {
  background: var(--card);
  border: var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
}
.list-card__title { font-size: var(--step-1); margin: 0 0 0.8rem; color: var(--brand-deep); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.facts li { position: relative; padding-left: 1.1rem; line-height: 1.4; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4rem; height: 0.4rem; background: var(--accent); transform: rotate(45deg); }
@media (min-width: 36rem) { .facts--cols { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.facts strong { color: var(--brand-deep); }

.more-list { display: grid; gap: 0.6rem; }
.more { background: var(--card); border: var(--border); border-radius: var(--radius); }
.more > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--brand-deep);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  transform: rotate(45deg);
  transition: transform 0.15s var(--ease);
}
.more[open] > summary::after { transform: rotate(-135deg); }
.more > summary:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.more__body { padding: 0.2rem 1.1rem 1.1rem; }
.more .facts { padding-inline: 1.1rem; }
.more .facts li { padding-left: 1.1rem; }
@media (min-width: 52rem) { .more .facts { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

/* two-column sections: text beside text or a form, so wide screens are used */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-lg) var(--sp-2xl); align-items: start; }   /* one column on a phone: an implicit auto column grows to a child's fixed width and pushes the page past the screen */
.split > * { min-width: 0; }
@media (min-width: 52rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.split--text { gap: 1rem var(--sp-2xl); }
.split--text > p { margin: 0; max-width: none; }
.split .form, .contact__form .form { max-width: none; }
.contact-form__done {
  background: var(--card);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(1.15rem, 3vw, 1.75rem);
}
.contact-form__done:focus { outline: none; }
.form__title { font-size: var(--step-2); margin: 0; }

/* Home: each class in the next-class strip links to its own sign-up page */
.home-next__class { padding: 0; }
.home-next__classlink {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  min-height: 3rem;
  padding: 0.6rem 0.9rem;
  color: var(--brand-deep);
  text-decoration: none;
}
.home-next__classlink:hover .home-next__go { text-decoration-color: var(--accent); }
.home-next__go {
  margin-left: auto;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  text-decoration-color: transparent;      /* shown on hover (see the standalone-links block) */
}

/* Home: four winter classes in a two-by-two strip, each with its dates */
.home-next__dates { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
/* The strip is a heading line over a two-by-two grid of class cards, then the link: the old three-column
   row (heading | list | link) left the four cards about 70px wide beside the rail. */
.home-next__inner:has(.home-next__list--four) { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.home-next__list--four { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.home-next__list--four .home-next__classlink {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "time name go" "time dates go";
  align-items: center;
  column-gap: 0.9rem;
  row-gap: 0.1rem;
  min-height: 4rem;
  padding: 0.7rem 1rem;
}
.home-next__list--four .home-next__time { grid-area: time; margin: 0; font-size: var(--step-2); line-height: 1; min-width: 3.4ch; }
.home-next__list--four .home-next__name { grid-area: name; line-height: 1.25; }
.home-next__list--four .home-next__dates { grid-area: dates; }
.home-next__list--four .home-next__go { grid-area: go; margin: 0; }
.home-next__inner:has(.home-next__list--four) .home-next__link { justify-self: start; }
@media (min-width: 40rem) {
  .home-next__list--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* footer: brand, mailing list and links side by side on wide screens */
@media (min-width: 64em) {
  .signup--footer { grid-column: auto; }
}
@media (min-width: 52rem) {
  .contact { grid-template-rows: auto 1fr; }
}

/* a framed photo beside a page's opening text, with the blue offset block the Home photo has */
.page-photo {
  margin: 0 9px 9px 0;
  max-width: 30rem;
  justify-self: end;
  width: 100%;
  border: 2px solid var(--brand-deep);
  box-shadow: 9px 9px 0 var(--brand-bright);
  background: var(--paper-alt);
}
.page-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
}
.page-photo--top img { aspect-ratio: 5 / 3; object-position: 50% 0; }   /* crops the photographer's mark off the bottom */
.page-photo--wedding img { aspect-ratio: 4 / 5; object-position: 50% 0; }   /* the file is tall: both heads and the whole gown, floor trimmed */
.page-photo--pair img { object-position: 50% 28%; }
.stack > .page-photo { justify-self: start; margin-top: 1.5rem; }
@media (min-width: 52rem) {
  .contact__photo { grid-column: 1; grid-row: 2; justify-self: start; }
  .contact__list { grid-row: 3; }
  .contact__form { grid-row: 1 / span 3; }
  .contact { grid-template-rows: auto auto 1fr; }
}
@media (max-width: 51.99rem) {
  .page-photo { justify-self: start; }
}

.page-photo--pair { max-width: 440px; }   /* its file is 440px wide: never upscaled */
.page-photo--portrait { max-width: 240px; }   /* Marc as he looks now; the file is 461px wide */
.page-photo--portrait img { aspect-ratio: 2 / 3; object-position: 50% 0; }
.page-photo--couple img { aspect-ratio: 4 / 3; object-position: 50% 44%; }   /* the file is tall: a band that holds both faces */
