/* Mayo Music School — local fonts, white paper, black ink. */
:root {
  color-scheme: light;
  --ink: #111; --paper: #fff; --muted: #555; --line: #d9d9d9;
  --soft: #f7f7f7; --control-line: #767676; --disabled-fill: #e8e8e8;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Noto Serif", "Droid Serif", serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --radius: 2px;
  accent-color: var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--sans); }
::selection { background: var(--ink); color: var(--paper); }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 3.5vw, 48px); line-height: 1.12; letter-spacing: -.025em; margin-bottom: var(--s4); }
h3 { font-size: 26px; line-height: 1.2; margin-bottom: var(--s2); }
p { text-wrap: pretty; }
p + p { margin-top: var(--s3); }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button,input,textarea { font: inherit; }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex="-1"]:focus {
  outline: 2px solid var(--ink); outline-offset: 4px;
}
input:focus-visible,textarea:focus-visible,[tabindex="-1"]:focus { outline-offset: 2px; }
[hidden] { display: none !important; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; background: var(--disabled-fill); color: var(--muted); border-color: var(--control-line); }

/* Standalone actions have generous hit areas; links within prose stay on the text baseline. */
.identity,.site-header nav a,.site-footer a,.backup-email a,.privacy-link,.text-link,.consultation-link,.skip-link {
  display: inline-flex; align-items: center; min-height: 48px; min-width: 48px;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px;
  padding: 16px 28px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 600 16px/1.3 var(--sans); letter-spacing: .01em;
}
.button:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
.button:active:not(:disabled) { background: var(--soft); }
.consultation-link { gap: 14px; margin-top: var(--s3); font-size: 16px; font-weight: 600; }
.consultation-link span { font-size: 20px; font-weight: 400; }
.section-label { margin-bottom: var(--s2); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.preview-notice { padding: 7px 20px; border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); font: 12px/1.5 var(--sans); }
.site-header,main,.site-footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.home-main { width: 100%; }
.home-main > .section { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.identity { gap: 16px; text-decoration: none; }
.identity img { display: block; width: 144px; height: auto; }
.site-header nav { display: flex; gap: var(--s4); }
.site-header nav a { font-size: 15px; text-decoration: none; }
.site-header nav a:hover,.site-header nav a:focus-visible { text-decoration: underline; }

/* Portrait and copy share a dark stage; text never overlays the image. */
.welcome { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); color: #fff; background: #111; }
.hero-media { position: relative; grid-column: 2; grid-row: 1; min-height: 620px; overflow: hidden; background: #111; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 68%; filter: grayscale(1); display: block; }
.hero-media::before,.hero-media::after { content: ""; position: absolute; z-index: 1; width: 24px; height: 24px; pointer-events: none; border-color: rgb(255 255 255 / 70%); }
.hero-media::before { top: 24px; left: 24px; border-top: 1px solid; border-left: 1px solid; }
.hero-media::after { bottom: 24px; right: 24px; border-bottom: 1px solid; border-right: 1px solid; }
.welcome:not(:has(.hero-media)) { grid-template-columns: 1fr; }
.welcome:not(:has(.hero-media)) .hero-copy { max-width: 1040px; }
.welcome .button { color: #111; background: #fff; border-color: #fff; }
.welcome .button:hover { color: #fff; background: #111; }
.welcome a:focus-visible { outline-color: #fff; }
.hero-copy { grid-column: 1; grid-row: 1; display: grid; align-content: center; gap: 24px; padding: 56px 48px 64px max(40px, calc((100vw - 1160px) / 2)); }
.welcome h1 { max-width: 14ch; font-size: clamp(56px, 4.8vw, 72px); font-weight: 700; line-height: 1.02; }
.welcome h1 em { font-weight: 400; }
.welcome-intro { max-width: 580px; }
.welcome-copy { max-width: 43ch; font-size: 18px; line-height: 1.6; }
.welcome-intro .button { margin-top: 24px; }
.section { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: var(--s3); }
.lessons-layout,.about-layout,.contact-layout { display: grid; gap: var(--s4); }
.lessons-layout > *, .about-layout > *, .contact-layout > *, .hero-copy > * { min-width: 0; }
.lessons-layout h2 { margin-bottom: 24px; font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.instrument-stack { font: 400 clamp(48px, 5vw, 72px)/1.02 var(--serif); letter-spacing: -.04em; }
.instrument-stack { counter-reset: instrument; }
.instrument-stack span { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.instrument-stack span::before { counter-increment: instrument; content: "0" counter(instrument); flex: 0 0 22px; font: 12px/1.4 ui-monospace, monospace; letter-spacing: 0; }
.lesson-copy { max-width: 640px; }
.about-copy p { max-width: 58ch; }
.photo-slot { width: 100%; }
.photo-slot img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.contact-theme { --ink: #fff; --paper: #111; --muted: #c7c7c7; --line: #555; --soft: #222; --control-line: #aaa; --disabled-fill: #333; background: var(--paper); color: var(--ink); }
.contact-layout { border-top: 0; box-shadow: 0 0 0 100vmax #111; clip-path: inset(0 -100vmax); }
.contact-theme input,.contact-theme textarea { background: #fff; color: #111; border-color: #fff; }
.contact-theme input:disabled,.contact-theme textarea:disabled { background: #e8e8e8; color: #555; }
.contact-theme input[aria-invalid="true"],.contact-theme textarea[aria-invalid="true"] { border-color: #111; box-shadow: inset 3px 0 0 #111; }
.contact-intro h2 { max-width: 17ch; }
.contact-intro p { max-width: 40ch; font-size: 17px; }
.demo-note,.draft-note { border-left: 2px solid var(--ink); padding: 12px 16px; margin-bottom: var(--s4); background: var(--soft); font-size: 13px; line-height: 1.6; }
.field { margin-bottom: var(--s4); }
label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
label span { margin-left: 4px; font-size: 13px; font-weight: 400; color: var(--muted); }
input,textarea { display: block; width: 100%; min-width: 0; min-height: 56px; padding: 14px 16px; border: 1px solid var(--control-line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.5; }
textarea { min-height: 176px; resize: vertical; }
input:hover:not(:disabled),textarea:hover:not(:disabled),input:focus-visible,textarea:focus-visible { border-color: var(--ink); }
input:disabled,textarea:disabled { color: var(--muted); opacity: 1; background: var(--soft); }
input[aria-invalid="true"],textarea[aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.field-help,.field-error { font-size: 13px; line-height: 1.6; color: var(--muted); }
.field-help { margin: -2px 0 10px; }
.field-error { margin-top: 8px; color: var(--ink); font-weight: 600; }
.error-summary,.failure-panel,.success-panel { border: 1px solid var(--ink); border-left-width: 3px; background: var(--soft); padding: 20px; margin-bottom: var(--s3); }
.error-summary { font-weight: 600; }
.error-summary ul { margin: 12px 0 0; padding-left: 20px; font-weight: 400; }
.failure-panel,.success-panel { margin-top: var(--s3); }
.failure-panel p,.success-panel p { font-size: 17px; }
.failure-panel a,.privacy-copy a { overflow-wrap: anywhere; }
#contact-form > .button { min-width: 160px; }
#form-status { margin-top: var(--s2); font-size: 14px; }
#form-status:empty { display: none; }
.backup-email { margin-top: var(--s3); overflow-wrap: anywhere; font-size: 17px; }
.privacy-link { margin-top: 4px; font-size: 14px; }
.text-link { font-size: 16px; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 13px; }
.site-footer span { margin-right: auto; }
.site-footer a { overflow-wrap: anywhere; }
.page-heading { padding: 56px 0 32px; }
.page-heading p:not(.section-label) { margin-top: var(--s3); max-width: 65ch; }
.privacy-main { max-width: 760px; padding-bottom: 64px; }
.privacy-main h1 { max-width: none; }
.privacy-copy { margin: 32px 0; }
.states-main { padding-bottom: 64px; }
.state-grid { display: grid; gap: 32px; margin-top: 32px; }
.state-card { padding: 24px; border: 1px solid var(--line); }
.state-card h2 { font-size: 32px; }
.state-caption { margin-bottom: var(--s3); color: var(--muted); font-size: 14px; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 5; padding: 12px 20px; background: var(--paper); border: 1px solid var(--ink); }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Production must physically remove these nodes; hiding only previews that result. */
html[data-preview="false"] [data-preview-only] { display: none !important; }

@media (min-width: 760px) {
  h1 { font-size: clamp(56px, 5.4vw, 76px); }
  .site-header,main,.site-footer { width: min(1160px, calc(100% - 80px)); }
  .home-main { width: 100%; }
  .home-main > .section { width: min(1160px, calc(100% - 80px)); }
  .welcome-intro { max-width: 560px; }
  .section { padding: 88px 0; }
  .lessons-layout { grid-template-columns: .65fr 1.35fr; gap: 64px; }
  .about-layout { grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
  .contact-layout { grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .state-grid { grid-template-columns: 1fr 1fr; }
  html[data-preview="false"] .about-layout:has([data-empty="true"]), .about-layout:not(:has(.photo-slot)) { grid-template-columns: .65fr 1.35fr; align-items: start; }
  html[data-preview="false"] .about-layout:has([data-empty="true"]) .about-copy, .about-layout:not(:has(.photo-slot)) .about-copy { display: contents; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .hero-copy { padding: 40px 28px 48px 40px; }
  .welcome h1 { font-size: 46px; }
  .welcome-copy { font-size: 17px; }
  .hero-media { min-height: 640px; }
  /* Keep the face inside the narrow portrait panel. */
  .hero-media img { object-position: left 68%; }
}
@media (max-width: 759px) {
  .site-header { padding: 16px 0 8px; gap: 8px; }
  .identity { margin-inline: auto; }
  .identity img { width: 112px; height: auto; }
  .site-header nav { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
  .site-header nav a { justify-content: center; }
  .welcome { grid-template-columns: 1fr; }
  .hero-media { grid-column: 1; grid-row: 2; min-height: 0; height: 420px; }
  .hero-media img { object-position: 25% 70%; }
  .welcome h1 { max-width: none; font-size: clamp(40px, 6.3vw, 48px); }
  .hero-copy { gap: 20px; padding: 32px 24px; }
  .welcome-copy { font-size: 18px; line-height: 1.5; }
  .welcome-intro .button { margin-top: 20px; width: 100%; }
  .contact-intro h2 { max-width: none; }
  .photo-slot img { width: 100%; height: auto; }
  .instrument-stack { font-size: 56px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 0; }
  .state-card { padding: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button { transition: background-color 160ms ease, color 160ms ease; }
}

/* Content grids: each block groups actual lesson information. */
.site-header nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.trust-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-bottom: 1px solid var(--line); width: min(1160px, calc(100% - 48px)); margin: auto; }
.trust-row span { padding: 24px 16px; font-size: 13px; font-weight: 600; text-align: center; }
.trust-row span + span { border-left: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; margin-bottom: 40px; }
.section-intro h2 { margin-bottom: 0; }
.section-intro > p { max-width: 58ch; }
.instrument-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.instrument-cards article { padding: 24px; }
.instrument-cards article + article { border-left: 1px solid var(--line); }
.index-number { display: block; font: 12px/1.5 ui-monospace, monospace; letter-spacing: .06em; margin-bottom: 32px; }
.instrument-cards h3 { font-size: clamp(36px, 4.3vw, 64px); letter-spacing: -.04em; margin-bottom: 8px; }
.instrument-cards p { font-size: 15px; }
.lesson-details { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; margin-top: 48px; }
.format-panel { background: #111; color: #fff; padding: 32px; }
.format-panel h3 { font-size: clamp(36px, 3.8vw, 56px); margin-bottom: 32px; }
.format-panel > p:last-child { font-size: 15px; }
.format-duration { font: 40px/1.2 var(--serif); padding-top: 24px; border-top: 1px solid #555; }
.format-duration span { font: 14px/1.5 var(--sans); }
.topic-grid { list-style: none; counter-reset: topic; padding: 0; margin: 0 0 24px; }
.topic-grid li { counter-increment: topic; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.topic-grid li::before { content: "0" counter(topic); font: 12px/1.65 ui-monospace, monospace; padding-top: 4px; }
.text-link { gap: 12px; font-weight: 600; }
.steps-grid { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; margin: 40px 0 0; }
.steps-grid li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps-grid li::before { content: "0" counter(step); display: block; font: 12px/1.5 ui-monospace, monospace; margin-bottom: 32px; }
.steps-grid h3 { font-size: 25px; }
.steps-grid p { font-size: 16px; }
.about-layout { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
.studio-portrait picture { display: block; }
.studio-portrait img { width: 100%; height: auto; }
.about-copy { max-width: 680px; }
.approach-intro { padding: 64px 0; }
.approach-intro h1 { font-size: clamp(44px, 6.5vw, 88px); }
.approach-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 40px; }
.approach-lead p + p { margin: 0; }
.approach-lead > p:first-child { font: 28px/1.4 var(--serif); max-width: 25ch; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); background: #111; color: #fff; }
.principles article { padding: 32px; }
.principles article + article { border-left: 1px solid #555; }
.principles h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 24px; overflow-wrap: anywhere; }
.principles p { font-size: 16px; }
.approach-topics { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; border-top: 0; }
.approach-topics > div > p { max-width: 35ch; }
.audience-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; border-block: 1px solid var(--ink); padding: 40px 0; }
.audience-panel h2 { margin-bottom: 16px; }
.audience-panel dl { margin: 0; }
.audience-panel dl div + div { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.audience-panel dt { font: 28px/1.3 var(--serif); }
.audience-panel dd { margin: 8px 0 0; font-size: 16px; }
.approach-main .start-section { border-top: 0; }
.start-section > .button { margin-top: 40px; }
@media (min-width: 760px) and (max-width: 1099px) {
  .section-intro,.lesson-details,.approach-lead,.approach-topics { gap: 32px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .principles article { padding: 24px; }
  .about-layout { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 40px; }
}
@media (max-width: 759px) {
  .site-header nav a { font-size: 14px; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row span { padding: 12px; }
  .trust-row span + span { border-left: 0; border-top: 1px solid var(--line); }
  .section-intro,.lesson-details,.about-layout,.approach-lead,.approach-topics,.audience-panel { grid-template-columns: 1fr; gap: 28px; }
  .instrument-cards { grid-template-columns: 1fr; }
  .instrument-cards article { display: grid; grid-template-columns: 28px 1fr; gap: 0 16px; padding: 20px 0; align-items: baseline; }
  .instrument-cards article + article { border-left: 0; border-top: 1px solid var(--line); }
  .instrument-cards .index-number { grid-row: span 2; margin: 0; }
  .instrument-cards p { grid-column: 2; }
  .instrument-cards h3 { font-size: 44px; }
  .format-panel { padding: 28px; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps-grid li { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; }
  .steps-grid li::before { grid-row: span 2; margin: 6px 0 0; }
  .steps-grid p { grid-column: 2; }
  .approach-intro { padding: 48px 0; }
  .approach-lead { margin-top: 32px; }
  .principles { grid-template-columns: 1fr; }
  .principles article + article { border-left: 0; border-top: 1px solid #555; }
  .principles .index-number { margin-bottom: 20px; }
}

@media print {
  .skip-link,nav,.preview-notice,.button,.consultation-link,form,.demo-note,[data-preview-only] { display: none !important; }
  body { font-size: 12pt; }
  h1 { font-size: 28pt; } h2 { font-size: 22pt; }
  .site-header,main,.site-footer { width: 100%; }
  .home-main > .section { width: 100%; }
  .welcome,.section { padding: 16pt 0; }
  .welcome,.contact-theme { background: #fff; color: #111; box-shadow: none; clip-path: none; }
  .contact-theme { --ink: #111; --muted: #555; }
  .hero-media { display: none; }
  .welcome,.hero-copy,.lessons-layout,.about-layout,.contact-layout { display: block; }
  .hero-copy { padding: 0; }
  .welcome-intro { margin-top: 16pt; }
  .backup-email { display: block; }
}
