/* ==========================================================================
   Maia Collins: pianist, singer and piano teacher
   ========================================================================== */

/* ---------- Fonts (Libre Franklin, SIL Open Font License, see /fonts/OFL.txt) ---------- */
@font-face {
  font-family: 'Libre Franklin';
  src: url('/fonts/libre-franklin-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  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: 'Libre Franklin';
  src: url('/fonts/libre-franklin-latin-ext.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('/fonts/libre-franklin-italic-latin.woff2') format('woff2');
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
  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: 'Libre Franklin';
  src: url('/fonts/libre-franklin-italic-latin-ext.woff2') format('woff2');
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f5f1;
  --bg-alt: #efebe4;
  --ink: #1d1a17;
  --text: #3d3833;
  --muted: #6c645c;
  --accent: #9a4a2c;        /* warm rust, from the piano's wood */
  --accent-deep: #7a3820;
  --line: #dcd5cb;
  --dark: #161412;
  --dark-text: #cfc8bf;
  --dark-accent: #d4977a;

  --font: 'Libre Franklin', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --max: 75rem;
  --header-h: 5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 56rem) {
  :root { --header-h: 4rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 350;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent-deep); }
strong { font-weight: 500; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2 { color: var(--ink); font-weight: 300; letter-spacing: -.02em; }
h1 { font-size: clamp(3.1rem, 7.2vw, 5.75rem); line-height: 1; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.1; text-wrap: balance; }

.eyebrow, .row-label {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow { margin-bottom: 1.1rem; }
.row-label { margin-bottom: 1.4rem; }

.prose { max-width: 38rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 + p { margin-top: 1.6rem; }
.prose .eyebrow + h2 { margin-top: 0; }
.lead { color: var(--ink); font-size: clamp(1.2rem, 1.9vw, 1.4rem); font-weight: 300; line-height: 1.55; }
.statement {
  color: var(--ink);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 300;
  line-height: 1.45;
  padding-top: .4em;
}

.list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.list li {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: .8rem 0 .8rem 1.75rem;
  position: relative;
}
.list li::before {
  content: '';
  position: absolute; left: 0; top: 1.45rem;
  width: .85rem; height: 1px; background: var(--accent);
}

/* ---------- Buttons & links ---------- */
.btn {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--bg);
  cursor: pointer;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 500;
  gap: .6em;
  justify-content: center;
  letter-spacing: .16em;
  line-height: 1.2;
  min-height: 3.25rem;
  padding: .95em 1.9em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:disabled { cursor: progress; opacity: .6; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.link-arrow {
  color: var(--ink);
  display: inline-block;
  /* 44px-tall tap area without changing the visual spacing */
  margin-block: -.85rem;
  padding-block: .85rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover span { transform: translateX(4px); }

.actions { padding-top: .6rem; }

/* ---------- Header ---------- */
.site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  position: sticky; top: 0; z-index: 50;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  align-items: center;
  display: flex;
  height: var(--header-h);
  justify-content: space-between;
  padding-inline: var(--gutter);
}
.brand {
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -.01em;
  padding-block: .6rem; /* bigger tap area */
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-role { color: var(--accent); font-weight: 300; margin-left: .15em; }

.site-nav ul { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); list-style: none; padding: 0; }
.site-nav a {
  color: var(--ink);
  font-size: .8rem;
  font-weight: 450;
  letter-spacing: .14em;
  padding-block: .5rem;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a::after {
  background: currentColor;
  bottom: .2rem; left: 0; right: 0;
  content: '';
  height: 1px;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--accent); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  display: none;
  font-size: .78rem;
  font-weight: 500;
  gap: .7rem;
  letter-spacing: .16em;
  min-height: 2.75rem;
  padding: 0;
  text-transform: uppercase;
}
.nav-toggle-icon, .nav-toggle-icon::before {
  background: var(--ink);
  display: block;
  height: 1px;
  position: relative;
  transition: transform .3s var(--ease);
  width: 1.4rem;
}
.nav-toggle-icon { transform: translateY(-3px); }
.nav-toggle-icon::before { content: ''; top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle-icon { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-icon::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    inset: var(--header-h) 0 auto 0;
    opacity: 0;
    padding: 1rem var(--gutter) 2.5rem;
    pointer-events: none;
    position: fixed;
    transform: translateY(-.75rem);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
    visibility: hidden;
  }
  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    visibility: visible;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; font-size: .95rem; padding-block: 1rem; }
  .site-nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: min(calc(100svh - var(--header-h)), 58rem);
}
.hero-text {
  align-self: center;
  padding-block: clamp(3rem, 8vh, 6rem);
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)) clamp(2rem, 5vw, 5rem);
}
.hero-tagline {
  color: var(--ink);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 300;
  line-height: 1.45;
  margin-top: 1.4rem;
  max-width: 26rem;
}
.hero-intro { margin-top: 1.6rem; max-width: 31rem; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2.4rem; }
.hero-media { position: relative; }
.hero-media picture { inset: 0; position: absolute; } /* image fills the column without setting its height */
.hero-media img { height: 100%; width: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 40%; }

.hero-text > * { animation: rise 1s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .2s; }
.hero-text > :nth-child(4) { animation-delay: .3s; }
.hero-media img { animation: fade 1.4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { height: 58svh; min-height: 22rem; order: -1; }
  .hero-media img { object-position: 50% 38%; }
  .hero-text { padding: 2.5rem var(--gutter) 3.5rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 11vw, 9rem); }
.section--alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(3rem, 7vw, 5.5rem); max-width: 48rem; }

/* label on the left, text on the right */
.row {
  display: grid;
  gap: 1rem clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}
.row .row-label { padding-top: .45rem; }
.row + .row, .split + .row, .row + .split, .split + .split { margin-top: clamp(4rem, 9vw, 7rem); }

/* image beside text */
.split {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.split--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split--reverse .media { order: 2; }

.media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.media--tall img { aspect-ratio: 3 / 4; object-position: 50% 52%; }
.pos-seated { object-position: 40% 46%; }
.pos-portrait { object-position: 50% 22%; }
.pos-bw { object-position: 50% 42%; }
.pos-headshot { object-position: 50% 30%; }

.band { margin-block: clamp(4rem, 9vw, 7rem); }
.band img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 40% 50%; width: 100%; }

@media (max-width: 56rem) {
  .row, .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .media { order: 0; }
  .row .row-label { padding-top: 0; margin-bottom: .4rem; }
  .media { max-width: 30rem; }
  .band img { aspect-ratio: 4 / 3; object-position: 32% 50%; }
}

.pull-quote {
  margin: clamp(5rem, 11vw, 8rem) auto;
  max-width: 50rem;
  text-align: center;
}
.pull-quote p {
  color: var(--ink);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  text-wrap: balance;
}
.pull-quote::before {
  background: var(--accent);
  content: '';
  display: block;
  height: 1px;
  margin: 0 auto 2.25rem;
  width: 3rem;
}

/* ---------- Dark section ---------- */
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark h2, .section--dark .lead { color: #f4efe8; }
.section--dark .eyebrow { color: var(--dark-accent); }
.section--dark a { color: var(--dark-accent); }
.section--dark .link-arrow { color: #f4efe8; }

.coming-soon {
  border: 1px solid rgb(255 255 255 / .16);
  margin-top: 2.5rem !important;
  padding: 1.6rem 1.8rem;
}
.coming-soon-label {
  color: var(--dark-accent);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  margin-bottom: .4rem;
  text-transform: uppercase;
}
.coming-soon p:last-child { color: #f4efe8; font-size: 1.15rem; font-weight: 300; }

.video { aspect-ratio: 16 / 9; margin-top: 2rem; }
.video iframe { border: 0; height: 100%; width: 100%; }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.review-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.review-card blockquote { position: relative; }
.review-card blockquote::before {
  color: var(--accent);
  content: '\201C';
  display: block;
  font-size: 3rem;
  font-weight: 300;
  height: 1.6rem;
  line-height: 1;
}
.review-card blockquote p { color: var(--ink); font-weight: 300; font-size: 1.05rem; line-height: 1.7; max-width: 40rem; }
.review-card blockquote p + p { margin-top: .9em; }
.review-card figcaption { border-top: 1px solid var(--line); padding-top: 1rem; }
.review-name { color: var(--ink); display: block; font-weight: 500; }
.review-role { color: var(--muted); display: block; font-size: .9rem; }
.reviews-more { margin-top: 2.5rem; }

/* ---------- Contact ---------- */
.contact-details { border-top: 1px solid var(--line); margin-top: 2.4rem !important; padding-top: 1.6rem; }
.contact-email { align-items: center; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.contact-email a { color: var(--ink); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 300; overflow-wrap: anywhere; }
.contact-email a:hover { color: var(--accent); }
.copy-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  text-transform: uppercase;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-status { color: var(--muted); font-size: .9rem; }
.contact-area { color: var(--muted); margin-top: .4rem !important; }

/* ---------- Leave a review ---------- */
.leave-review {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2rem clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  margin-top: clamp(5rem, 10vw, 8rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.leave-review-intro p { margin-bottom: 1.6rem; max-width: 24rem; }
.review-form, .review-thanks { grid-column: 2; max-width: 38rem; }
.review-thanks:focus { outline: none; }
.review-thanks .lead { margin-bottom: .5rem; }

.field + .field { margin-top: 1.4rem; }
.field label { color: var(--ink); display: block; font-size: .95rem; font-weight: 450; margin-bottom: .45rem; }
.field-hint { color: var(--muted); font-weight: 350; }
.field input[type='text'], .field textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: block;
  line-height: 1.5;
  padding: .85rem 1rem;
  transition: border-color .2s;
  width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--ink); outline: 2px solid var(--accent); outline-offset: 0; }
.field input::placeholder { color: #a39b92; }
.field--hp { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }
.field--check { align-items: flex-start; display: flex; gap: .8rem; }
.field--check input { accent-color: var(--accent); flex: none; height: 1.15rem; margin-top: .3rem; width: 1.15rem; }
.field--check label { font-weight: 350; margin: 0; }
.form-note { color: var(--muted); font-size: .9rem; margin-top: 1.4rem; }
.form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.form-status { font-size: .95rem; }
.form-status.is-error { color: #a1281c; }

@media (max-width: 56rem) {
  .leave-review { grid-template-columns: 1fr; }
  .review-form, .review-thanks { grid-column: 1; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; line-height: 1.7; padding-block: 3.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-name { color: var(--ink); font-size: 1.15rem; font-weight: 400; margin-bottom: .3rem; }
.footer-links { text-align: right; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { margin-top: .6rem; }
@media (max-width: 40rem) { .footer-links { text-align: left; } }

/* ---------- Scroll reveal (only applied by JS to content below the fold) ---------- */
.reveal-pending { opacity: 0; transform: translateY(22px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.not-found { display: grid; min-height: calc(100svh - var(--header-h) - 12rem); place-items: center; text-align: center; }
.not-found p { margin: 1.2rem 0 2rem; }
