:root {
  --paper: #ffffff;
  --paper-deep: #eef5ff;
  --ink: #0f2240;
  --muted: #4a5b73;
  --line: #d6e4f7;
  --accent: #1a5fd6;
  --accent-ink: #ffffff;
  --green: #17803d;
  --band: #1a5fd6;
  --band-ink: #ffffff;
  --band-highlight: #8ff0b4;

  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: var(--serif);
  --wrap: 1120px;
  --gutter: 16px;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1626;
    --paper-deep: #122340;
    --ink: #eef4ff;
    --muted: #a9b9d0;
    --line: #22385c;
    --accent: #6aa8ff;
    --accent-ink: #0c1626;
    --green: #4cd486;
    --band: #1749a8;
    --band-ink: #ffffff;
    --band-highlight: #8ff0b4;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.25rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, .headline {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1, .headline { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.4rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--accent); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: clamp(0.9rem, 3vw, 1.75rem);
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

.site-header nav a:hover { color: var(--ink); }

/* Hero */

.hero { padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5.5rem); }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.3rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 1.75rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.button:hover { filter: brightness(1.08); transform: translateY(-1px); }

figure { margin: 0; }

figure img { border-radius: var(--radius); }

figcaption {
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Lessons */

.lessons {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.instrument-grid {
  display: grid;
  gap: 1.75rem 2.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .instrument-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .instrument-grid { grid-template-columns: repeat(3, 1fr); }
}

.instrument-grid h3 {
  font-size: 1.65rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.instrument-grid p { color: var(--muted); margin: 0; }

.points-heading { margin-top: clamp(3rem, 6vw, 4.5rem); }

.points {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .points { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (min-width: 1000px) {
  .points { grid-template-columns: repeat(4, 1fr); }
}

.points > div {
  border-top: 3px solid var(--green);
  padding-top: 1rem;
}

.points p { color: var(--muted); margin: 0; }

/* About */

.about { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .about-grid { grid-template-columns: 1fr 1.3fr; gap: 3.5rem; align-items: start; }
}

.about-text p { max-width: 34em; }

.about-photos {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .about-photos { grid-template-columns: 1.6fr 1fr; align-items: end; }
}

.photo-wide img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 75% 55%;
}

/* Contact */

.contact {
  background: var(--band);
  color: var(--band-ink);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  text-align: center;
}

.contact p {
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

.contact .email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5.5vw, 2.4rem);
  font-weight: 400;
  color: var(--band-ink);
  text-decoration-color: var(--band-highlight);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  margin: 0.75rem 0 1.5rem;
  overflow-wrap: anywhere;
}

.contact .email:hover { color: var(--band-highlight); }

.contact .location { font-size: 1.1rem; opacity: 0.85; margin-bottom: 0; }

/* Footer */

.site-footer {
  background: var(--paper);
  color: var(--muted);
  border-top: 4px solid var(--green);
  font-size: 1rem;
}

.site-footer .wrap { padding-top: 1.25rem; padding-bottom: 1.25rem; }

.site-footer p { margin: 0; }
