/* ==========================================================================
   Fermata Music Studio
   Palette taken from the business card: warm ivory card stock, black ink,
   and gilt — the gold of the fermata mark and the hairline rules.
   ========================================================================== */

:root {
  /* Surfaces */
  --ground:        #f8f4ec;  /* ivory card stock                          */
  --surface:       #fcfaf5;
  --surface-sunk:  #efe8da;

  /* Ink */
  --ink:           #1b1814;  /* warm black                                */
  --ink-soft:      #3f3a32;
  --ink-mute:      #6f675a;

  /* Accents */
  --accent:        #8a6a30;  /* deep gilt — text-safe gold on ivory       */
  --accent-deep:   #6b5124;
  --on-accent:     #ffffff;
  --brass:         #b8914f;  /* the card's gold, for marks and rules      */

  /* Lines */
  --rule:          #d9ccb3;
  --rule-soft:     #e7dfcf;

  /* Type */
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Iowan Old Style", Georgia, serif;
  --script:  "Great Vibes", "Snell Roundhand", "Segoe Script", cursive;
  --body:    "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.25rem, 1.16rem + 0.42vw, 1.52rem);
  --step-2:  clamp(1.6rem, 1.42rem + 0.85vw, 2.2rem);
  --step-3:  clamp(2.15rem, 1.78rem + 1.8vw, 3.35rem);
  --step-4:  clamp(2.8rem, 2.05rem + 3.6vw, 5.2rem);

  --gutter: max(1rem, 5vw);
  --measure: 34rem;
  --wide: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:       #15120e;
    --surface:      #1d1914;
    --surface-sunk: #0f0d0a;
    --ink:          #f1ebdf;
    --ink-soft:     #cfc6b6;
    --ink-mute:     #998f7f;
    --accent:       #d6b577;
    --accent-deep:  #e6cc98;
    --on-accent:    #15120e;
    --brass:        #c9a466;
    --rule:         #3b342a;
    --rule-soft:    #2a251e;
  }
}

:root[data-theme="dark"] {
  --ground:       #15120e;
  --surface:      #1d1914;
  --surface-sunk: #0f0d0a;
  --ink:          #f1ebdf;
  --ink-soft:     #cfc6b6;
  --ink-mute:     #998f7f;
  --accent:       #d6b577;
  --accent-deep:  #e6cc98;
  --on-accent:    #15120e;
  --brass:        #c9a466;
  --rule:         #3b342a;
  --rule-soft:    #2a251e;
}

/* --------------------------------------------------------------- reset -- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.005em;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ground);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ------------------------------------------------------------ utilities -- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); display: grid; gap: 1.1em; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------- staff rule -- */
/* Five hairlines, 4px apart — the divider is a bar of manuscript paper. */

.staff {
  height: 17px;
  border: 0;
  margin: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--rule) 0 1px,
    transparent 1px 4.25px
  );
  opacity: 0.85;
}

/* ---------------------------------------------------------------- mark -- */

.mark { display: block; width: 100%; height: 100%; }
.mark .arc { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: butt; }
.mark .dot { fill: currentColor; }

/* -------------------------------------------------------------- header -- */

.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 32px; height: 20px; color: var(--brass); flex: none; }
.site-head .brand__mark { width: 42px; height: 26px; }
.brand__name {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.brand__name span {
  display: block;
  font-size: 0.5em;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
  margin-top: 0.4em;
}

.nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); }
.nav a {
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* Mobile navigation ------------------------------------------------------ */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav--main {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--rule-soft);
    padding-bottom: 0.6rem;
  }
  .nav--main[data-open="false"] { display: none; }
  .nav--main a {
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav--main a:last-child { border-bottom: 0; }
}

.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.lang a, .lang span {
  padding: 0.3rem 0.62rem;
  text-decoration: none;
  color: var(--ink-mute);
  line-height: 1.4;
}
.lang [aria-current="true"] { background: var(--ink); color: var(--ground); }

/* ---------------------------------------------------------------- hero -- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.12fr 0.88fr; }
}


.hero h1 {
  font-size: var(--step-4);
  margin-block: 0.5rem 1.4rem;
  max-width: 13ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.signature { margin-top: 1.6rem; }
.signature__name {
  font-family: var(--script);
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  line-height: 1.1;
  color: var(--ink);
}
.signature__line {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1.6rem;
  font-size: var(--step--1);
  color: var(--ink-mute);
}

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ground);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

.btn--wa { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--wa:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* -------------------------------------------------------------- frames -- */
/* Photo slots. Each one names the picture that belongs in it. */

.frame {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  background: var(--surface-sunk);
  border: 1px dashed var(--rule);
  color: var(--ink-mute);
  overflow: hidden;
}
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom, var(--rule-soft) 0 1px, transparent 1px 11px
  );
  opacity: 0.55;
  pointer-events: none;
}
.frame > * { position: relative; }
.frame__label {
  font-size: var(--step--1);
  line-height: 1.4;
  max-width: 24ch;
}
.frame__kind {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--square   { aspect-ratio: 1 / 1; }
.frame--wide     { aspect-ratio: 3 / 2; }
.frame--video    { aspect-ratio: 16 / 9; }
.frame--reel     { aspect-ratio: 9 / 16; }

/* Real media: same slot shapes, no placeholder chrome. */
img.frame,
video.frame {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  object-fit: cover;
}

/* ------------------------------------------------------------ sections -- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--sunk { background: var(--surface); }

.section__head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: var(--measure);
}
.section__head h2 { font-size: var(--step-3); }

/* --------------------------------------------------------------- about -- */

.about__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .about__grid { grid-template-columns: 1fr 0.72fr; align-items: start; }
  .about__grid .facts { margin-top: 0; }
}

/* The room itself, full width under the text. */
.about__photo { margin-top: clamp(2rem, 5vw, 3.5rem); }

.facts {
  margin: 2.2rem 0 0;
  display: grid;
  gap: 0;
  max-width: var(--measure);
}
.facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--step--1);
}
.facts div:last-child { border-bottom: 1px solid var(--rule-soft); }
.facts dt { color: var(--ink-mute); letter-spacing: 0.04em; }
.facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- lessons -- */

.lessons {
  display: grid;
  gap: 1px;
  background: var(--rule-soft);
  border-block: 1px solid var(--rule-soft);
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .lessons { grid-template-columns: 1fr 1fr; } }

.lesson {
  background: var(--ground);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 0.7rem;
  align-content: start;
}
.section--sunk .lesson { background: var(--surface); }
.lesson h3 { font-size: var(--step-2); }
.lesson__meta {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--brass);
}
.lesson p { color: var(--ink-soft); font-size: 0.96rem; }

.aside-note {
  margin-top: 2.2rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  max-width: var(--measure);
  font-size: 0.96rem;
}

/* --------------------------------------------------------------- rates -- */
/* Rates reuse the .lessons / .lesson cards; these are the only additions. */

@media (min-width: 680px) { .lesson--wide { grid-column: 1 / -1; } }
.lessons--policy { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.lesson__list {
  margin: 0.4rem 0 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: var(--wide);
}
.lesson__list li::marker { color: var(--brass); font-weight: 700; }
.lesson__list strong { color: var(--ink); }

/* ------------------------------------------------------------- gallery -- */

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

/* Clips sit above the photos. On wider screens the two landscape clips stack on the
   left and the phone clip fills the same height on the right. */
.gallery__videos {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.gallery__videos .frame--reel { width: 100%; max-width: 22rem; margin-inline: auto; }
.gallery__pair { grid-column: 1 / -1; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .gallery__pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 680px) {
  .gallery__videos { grid-template-columns: 1.6fr 1fr; }
  .gallery__videos .frame--reel {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
  }
}

/* --------------------------------------------------------- testimonials -- */

/* A horizontal strip that snaps card to card: swipe on a phone, arrows on a
   desktop. Three cards fit at full width, two on a tablet, one and a peek on a
   phone — so adding a fourth review needs nothing but another <figure>. */
.quotes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 0.9rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
@media (min-width: 640px) { .quotes { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (min-width: 960px) { .quotes { grid-auto-columns: calc((100% - 2rem) / 3); } }

.quotes-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.quotes-nav button {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.quotes-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.quotes-nav button:disabled { opacity: 0.35; cursor: default; }

.quote {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  gap: 1.1rem;
  align-content: start;
}
.section--sunk .quote { background: var(--ground); }
.quote__mark {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 0.4;
  color: var(--brass);
  height: 1.2rem;
}
.quote blockquote { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }
.quote figcaption { font-size: var(--step--1); color: var(--ink-mute); }
.quote figcaption b { color: var(--ink); font-weight: 700; display: block; }

.notice {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--ink-soft);
  font-size: var(--step--1);
  max-width: 46rem;
}
.notice b { color: var(--ink); }

/* ----------------------------------------------------------------- faq -- */

.faq { max-width: 46rem; display: grid; }
.faq details {
  border-top: 1px solid var(--rule-soft);
  padding-block: 1.05rem;
}
.faq details:last-of-type { border-bottom: 1px solid var(--rule-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: var(--step-1);
  font-family: var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--body); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.8rem; color: var(--ink-soft); max-width: var(--measure); font-size: 0.97rem; }

/* ------------------------------------------------------------- contact -- */

.contact__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .contact__grid { grid-template-columns: 1.1fr 0.9fr; }
}

.form { display: grid; gap: 1.05rem; max-width: 34rem; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field textarea, .field select {
  font-family: var(--body);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--rule);
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.section--sunk .field input,
.section--sunk .field textarea,
.section--sunk .field select { background: var(--surface); }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field--row { display: grid; gap: 1.05rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .field--row { grid-template-columns: 1fr 1fr; } }

.form__fine { font-size: var(--step--1); color: var(--ink-mute); }

.contact-card {
  display: grid;
  gap: 1.4rem;
  align-content: start;
  border: 1px solid var(--rule-soft);
  background: var(--surface);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.section--sunk .contact-card { background: var(--ground); }
.contact-card h3 { font-size: var(--step-2); }
.contact-card dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-card dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--ink-mute);
  margin-bottom: 0.2rem;
}
.contact-card dd { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.contact-card a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* -------------------------------------------------------------- footer -- */

.site-foot {
  background: var(--ink);
  color: var(--ground);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
:root[data-theme="dark"] .site-foot,
:root:not([data-theme="light"]) .site-foot { border-top: 1px solid var(--rule); }

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-foot .brand__mark { color: var(--brass); }
.site-foot .brand__name { color: var(--ground); }
.site-foot .brand__name span { color: color-mix(in srgb, var(--ground) 55%, transparent); }
.site-foot .nav a { color: color-mix(in srgb, var(--ground) 78%, transparent); }
.site-foot .nav a:hover { color: var(--ground); }
.site-foot__fine {
  width: 100%;
  border-top: 1px solid color-mix(in srgb, var(--ground) 18%, transparent);
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--ground) 60%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}

.site-foot__nav { display: flex; flex-direction: column; gap: 0.3rem; }
