/* Dan Byers — piano and guitar lessons.
   Same system as the printed flyer: sky blue, navy, Helvetica, 12-column grid.
   Every section: heading in columns 1–4, content in columns 5–12. */

:root {
  --sky:   #DCEAF6;
  --navy:  #15304D;
  --muted: #3F5B7A;
  --line:  #B9CEE2;
  --white: #FFFFFF;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* type scale (px): 15 / 18 / 22 / 32 / display */
  --fs-small: 0.9375rem;
  --fs-body: 1.125rem;
  --fs-lead: 1.375rem;
  --fs-h2: 2rem;
  --fs-display: clamp(3.25rem, 8.4vw, 7.5rem);

  /* spacing: 8px base */
  --s1: 0.5rem;  --s2: 1rem;  --s3: 1.5rem;  --s4: 2rem;
  --s6: 3rem;    --s8: 4rem;  --s12: 6rem;

  --gutter: 24px;
  --margin: clamp(20px, 5vw, 56px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sky);
  color: var(--navy);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

/* ---------- grid ---------- */
.wrap {
  max-width: calc(var(--max) + 2 * var(--margin));
  margin: 0 auto;
  padding: 0 var(--margin);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* ---------- top bar ---------- */
.top { padding: var(--s3) 0; }
.top .wrap { align-items: baseline; }
.name { grid-column: 1 / 7; font-weight: 700; text-decoration: none; font-size: var(--fs-body); }
.top-link { grid-column: 7 / 13; justify-self: end; font-size: var(--fs-small); }

/* ---------- hero ---------- */
.hero { padding: var(--s8) 0 var(--s12); }
.hero .wrap { row-gap: var(--s6); align-items: end; }
.hero-text { grid-column: 1 / 8; }
h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lede {
  margin-top: var(--s4);
  max-width: 34ch;
  font-size: var(--fs-lead);
  line-height: 1.45;
}
.button {
  display: inline-block;
  margin-top: var(--s4);
  padding: 0.85rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}
.button:hover { background: #0E2238; }
.hero-photo {
  grid-column: 8 / 13;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 30%;
  border-radius: 12px;
  filter: brightness(1.12) contrast(0.95);
}

/* ---------- content sections ---------- */
.section { padding: var(--s8) 0; }
/* divider spans the live area only, not the page margins */
.section .wrap { position: relative; padding-top: var(--s4); }
.section .wrap::before {
  content: ""; position: absolute; top: 0;
  left: var(--margin); right: var(--margin);
  border-top: 1px solid var(--line);
}

h2 {
  grid-column: 1 / 5;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.body { grid-column: 5 / 13; max-width: 40rem; }
.body > * + * { margin-top: var(--s3); }


.prose p { max-width: 66ch; }
.prose p + p { margin-top: var(--s3); }

.facts > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--s2);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
}
.facts > div:first-child { padding-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 700; }

/* ---------- contact band ---------- */
.contact {
  background: var(--navy);
  color: var(--sky);
  padding: var(--s12) 0;
}
.contact h2 { color: var(--white); }
.contact .body { max-width: none; }
.contact p { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.45; }
.email {
  display: inline-block;
  color: var(--white);
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.contact :focus-visible { outline-color: var(--sky); }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: var(--sky); padding: var(--s4) 0 var(--s6); font-size: var(--fs-small); }
.foot .wrap { position: relative; padding-top: var(--s3); }
.foot .wrap::before {
  content: ""; position: absolute; top: 0;
  left: var(--margin); right: var(--margin);
  border-top: 1px solid rgba(220, 234, 246, 0.25);
}
.foot p:first-child { grid-column: 1 / 8; }
.foot p:last-child { grid-column: 8 / 13; justify-self: end; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .hero { padding: var(--s4) 0 var(--s8); }
  .hero-text, .hero-photo { grid-column: 1 / -1; }
  .hero-photo { aspect-ratio: 1 / 1; }
  h2, .body { grid-column: 1 / -1; }
  h2 { margin-bottom: var(--s3); }
  .section { padding: var(--s6) 0; }
  .facts > div { grid-template-columns: 7rem 1fr; }
  .foot p:first-child, .foot p:last-child { grid-column: 1 / -1; justify-self: start; }
  .foot p:last-child { margin-top: var(--s1); }
}
