/* Site stylesheet. Sections, in order:
   1. Fonts  2. Tokens  3. Reset & base  4. Layout helpers
   5. Header  6. Footer  7. Home  8. About  9. Pricing  10. Contact */


/* ==========================================================================
   1. Fonts
   Self-hosted, Latin + Latin Extended only. unicode-range means the browser
   downloads the extended file only if a page actually uses those characters.
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/montserrat-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/montserrat.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/cormorant-garamond-500-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/cormorant-garamond-500.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/cormorant-garamond-600-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/cormorant-garamond-600.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}


/* ==========================================================================
   2. Tokens
   The only place raw values live.
   Palette is pulled from her photos: limestone cream, lavender dress, violin wood.
   Colors are a first pass (design brief says TBD); adjust here and the whole site follows.
   ========================================================================== */

:root {
  /* Color */
  --color-bg: #fbf8f3;            /* warm limestone cream */
  --color-surface: #f3ede4;       /* slightly deeper cream for alternating sections */
  --color-surface-accent: #ece4f3; /* soft lavender band */
  --color-text: #2e2a33;          /* plum-tinted charcoal */
  --color-text-muted: #5f5868;
  --color-primary: #6b4e8a;       /* deep lavender: headings, links, buttons */
  --color-primary-hover: #553b70;
  --color-on-primary: #ffffff;
  --color-accent: #9a5a2e;        /* violin wood: small details only */
  --color-border: #ddd4c8;
  --color-overlay: rgb(46 42 51 / 0.45); /* darkens photos behind text */
  --color-overlay-strong: rgb(46 42 51 / 0.7);
  --color-focus: #9a5a2e;

  /* Typography */
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  --text-display: clamp(2.75rem, 1.8rem + 4.5vw, 5rem);

  --leading-tight: 1.15;
  --leading-normal: 1.7;
  --tracking-wide: 0.12em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-section: clamp(3rem, 2rem + 5vw, 6rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);

  /* Layout */
  --width-content: 70ch;   /* comfortable reading line */
  --width-page: 72rem;
  --width-aside: 22rem;    /* side photo next to page text */
  --header-height: 4.5rem;

  /* Shape & depth */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --border-width: 1px;
  --border-width-thick: 2px;
  --focus-ring: 3px;
  --shadow-sm: 0 1px 3px rgb(46 42 51 / 0.08);
  --shadow-md: 0 6px 24px rgb(46 42 51 / 0.12);

  /* Motion */
  --duration-fast: 150ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}


/* ==========================================================================
   3. Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--color-primary);
  text-wrap: balance;
  font-variant-numeric: lining-nums; /* capital-height numbers, so "1" doesn't look like "I" */
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

p {
  text-wrap: pretty;
}

a {
  color: var(--color-primary);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-primary-hover);
}

:focus-visible {
  outline: var(--focus-ring) solid var(--color-focus);
  outline-offset: var(--space-1);
}

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   4. Layout helpers
   ========================================================================== */

/* Centered page-width wrapper used by sections */
.container {
  width: min(100% - 2 * var(--gutter), var(--width-page));
  margin-inline: auto;
}

.prose {
  max-width: var(--width-content);
}

.prose > * + * {
  margin-top: var(--space-4);
}

/* Extra room above subheadings so each topic reads as its own block */
.prose > h2 {
  margin-top: var(--space-7);
}

.prose li + li {
  margin-top: var(--space-2);
}

/* Top spacing for the main section of an inner page */
.page {
  padding-top: var(--space-section);
}

/* Page text with a photo beside it (Teaching Methods, About, Contact).
   Phone: heading, then photo, then text, stacked. */
.with-photo {
  display: grid;
  grid-template-areas:
    "title"
    "photo"
    "text";
  gap: var(--space-5);
}

.with-photo h1     { grid-area: title; }
.with-photo .photo { grid-area: photo; }
.with-photo .prose { grid-area: text; }

.with-photo .photo {
  width: 100%;
  max-width: var(--width-aside);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Desktop: text on the left, photo in the space to its right */
@media (min-width: 64rem) {
  .with-photo {
    grid-template-columns: minmax(0, var(--width-content)) var(--width-aside);
    grid-template-areas:
      "title title"
      "text  photo";
    column-gap: var(--space-8);
    align-items: start;
  }

  /* Add .photo-left to put the photo on the left instead */
  .with-photo.photo-left {
    grid-template-columns: var(--width-aside) minmax(0, var(--width-content));
    grid-template-areas:
      "title title"
      "photo text";
  }
}


/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: var(--border-width) solid var(--color-border);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-height);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: var(--leading-tight);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

.brand-tag {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.site-header .nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: var(--space-5);
}

.site-header .nav a {
  color: var(--color-text);
  font-weight: var(--weight-medium);
  text-decoration: none;
  padding-block: var(--space-2);
  border-bottom: var(--border-width-thick) solid transparent;
  transition: border-color var(--duration-fast) var(--ease);
}

.site-header .nav a:hover,
.site-header .nav a[aria-current='page'] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.menu-toggle {
  display: none;
}

/* Mobile: collapse the nav behind the toggle button */
@media (max-width: 52rem) {
  .menu-toggle {
    display: grid;
    place-items: center;
    width: var(--space-7);
    height: var(--space-7);
    background: none;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

  /* Three-line icon drawn with one span + two pseudo-elements */
  .bars,
  .bars::before,
  .bars::after {
    display: block;
    width: var(--space-5);
    height: var(--border-width-thick);
    background: var(--color-text);
    transition: transform var(--duration-fast) var(--ease);
  }

  .bars {
    position: relative;
  }

  .bars::before,
  .bars::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .bars::before { top: calc(-1 * var(--space-2)); }
  .bars::after { top: var(--space-2); }

  .menu-toggle[aria-expanded='true'] .bars { background: transparent; }
  .menu-toggle[aria-expanded='true'] .bars::before { transform: translateY(var(--space-2)) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] .bars::after { transform: translateY(calc(-1 * var(--space-2))) rotate(-45deg); }

  .site-header .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--color-bg);
    border-bottom: var(--border-width) solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .menu-toggle[aria-expanded='true'] + .nav {
    display: block;
  }

  .site-header .nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-3) var(--gutter) var(--space-5);
  }

  .site-header .nav a {
    display: block;
    padding-block: var(--space-3);
  }
}


/* ==========================================================================
   6. Footer
   ========================================================================== */

.site-footer {
  margin-top: var(--space-section);
  background: var(--color-surface);
  border-top: var(--border-width) solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-7);
}

.site-footer .name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

.site-footer .fine {
  flex-basis: 100%;
}


/* ==========================================================================
   7. Home
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(85vh, 48rem);
  padding-block: var(--space-section);
  color: var(--color-on-primary);
}

/* Photo fills the hero; she stands on the right, so anchor the crop there */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

/* Darken the left side so the text is readable over the photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, var(--color-overlay-strong), var(--color-overlay) 40%, transparent 75%);
}

.hero-content {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
}

.hero-content > * {
  max-width: 36rem;
}

.hero h1 {
  font-size: var(--text-display);
  color: inherit;
}

.lede {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
}

/* Keep "· Madison, WI" together when the line wraps */
.lede span {
  white-space: nowrap;
}

.hero blockquote {
  font-style: italic;
}

.hero cite {
  display: block;
  font-style: normal;
  font-size: var(--text-sm);
}

.hero cite::before {
  content: '— ';
}

/* On narrow screens the side gradient isn't enough; darken the whole photo */
@media (max-width: 40rem) {
  .hero::before {
    background: var(--color-overlay);
  }
}

/* Parent testimonials, below the hero */
.testimonials {
  padding-top: var(--space-section);
}

/* Quote cards: stacked on phones, in a row on desktop */
.testimonials .quotes {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
}

@media (min-width: 64rem) {
  .testimonials .quotes {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.testimonials figure {
  padding: var(--space-6);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
}

.testimonials blockquote {
  font-style: italic;
}

/* Curly quote marks added here so every quote matches */
.testimonials blockquote p::before { content: '“'; }
.testimonials blockquote p::after  { content: '”'; }

/* Short accent rule above each parent's name */
.testimonials figcaption {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: var(--border-width-thick) solid var(--color-accent);
  width: fit-content;
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

/* Contact form at the bottom of Home (the form's own styles are in section 10) */
.home-contact {
  padding-top: var(--space-section);
}


/* ==========================================================================
   8. About
   ========================================================================== */

/* Education & Certification, below the bio */
.education {
  padding-top: var(--space-section);
}

/* Keep lines at reading width, lined up with the page's left edge */
.education > * {
  max-width: var(--width-content);
}

/* A rule above each group: the Suzuki certification, then the degrees */
.education .group {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: var(--border-width-thick) solid var(--color-border);
}

.education .entry + .entry {
  margin-top: var(--space-6);
}

.education .year {
  margin-top: var(--space-1);
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

/* Desktop: certification on the left, degrees on the right */
@media (min-width: 64rem) {
  .education {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-8);
  }

  .education h2 {
    grid-column: 1 / -1;
  }
}


/* ==========================================================================
   9. Pricing
   ========================================================================== */

.prices > * {
  max-width: var(--width-content);
}

.prices > * + * {
  margin-top: var(--space-5);
}

/* Extra room above each subheading so topics read as separate blocks */
.prices > h2 {
  margin-top: var(--space-7);
}

/* Price cards: stacked on phones, in a row on wider screens.
   They use the full page width, wider than the text column, so the photos aren't tiny. */
.prices .cards {
  max-width: none;
  display: grid;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

/* Wait until 48rem: any narrower and the price boxes cover most of each photo */
@media (min-width: 48rem) {
  .prices .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.prices .card img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* Length and price in a box that overlaps the bottom of the photo */
.prices .card .label {
  position: relative;
  margin: calc(-1 * var(--space-7)) 0 0 var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Desktop photos are big enough for the box to overlap them further */
@media (min-width: 64rem) {
  .prices .card .label {
    margin-top: calc(-1 * var(--space-8));
  }
}

.prices .length {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.prices .amount {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  font-variant-numeric: lining-nums;
  line-height: var(--leading-tight);
  color: var(--color-primary);
}


/* ==========================================================================
   10. Contact (form styles shared with Home)
   ========================================================================== */

.contact-form {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

/* First and last name: stacked on phones, side by side on wider screens */
.contact-form .names {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 36rem) {
  .contact-form .names {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form .field {
  display: grid;
  gap: var(--space-2);
}

.contact-form label {
  font-weight: var(--weight-medium);
}

/* The * after each label. Screen readers skip it (aria-hidden) and
   announce "required" from the input's required attribute instead. */
.contact-form .required {
  color: var(--color-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  color: var(--color-text);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
}

.contact-form textarea {
  resize: vertical;
}

/* Clearer edge on the field being typed in (the focus ring is added on keyboard focus) */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
}

/* Spam-trap field: kept out of sight and out of the layout */
.contact-form .trap {
  display: none;
}

.contact-form button {
  justify-self: start;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease);
}

.contact-form button:hover {
  background: var(--color-primary-hover);
}
