/* Jonathan v2 — a warm, editorial "music studio" theme.
   Valkyrie A for reading and headings, Concourse 3 for interface text.
   Ink on paper, an oxblood action colour, brass for small accents only.
   Every text/background pair below has been checked against WCAG 2.1 AA. */

@font-face { font-family: "Valkyrie"; src: url("fonts/valkyrie-a-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Valkyrie"; src: url("fonts/valkyrie-a-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Valkyrie"; src: url("fonts/valkyrie-a-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Concourse"; src: url("fonts/concourse-3-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Concourse"; src: url("fonts/concourse-3-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Concourse Caps"; src: url("fonts/concourse-3-caps-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Theme-contract tokens (required by bin/theme-lint) */
  --color-bg: #FAF6EF;      /* page */
  --color-text: #1D2330;    /* 14.6:1 on page */
  --color-accent: #7A2C2C;  /* oxblood: actions, links; 8.8:1 on page, white text 9.4:1 */
  --color-muted: #5A5F6B;   /* secondary text; 5.4:1 on paper-2 */
  --font-body: "Valkyrie", Georgia, "Times New Roman", serif;
  --font-heading: "Valkyrie", Georgia, "Times New Roman", serif;
  --space-unit: 1rem;

  /* Theme-local aliases and extras */
  --paper: var(--color-bg);
  --paper-2: #F2EBDF;     /* bands */
  --ink: var(--color-text);
  --muted: var(--color-muted);
  --navy: #1F2B3D;        /* inquiry band */
  --ox: var(--color-accent);
  --ox-dark: #5E1F1F;
  --brass: #8A5E16;       /* small accents on paper, 4.8:1 on paper-2 */
  --brass-light: #D9B26A; /* accents on navy, 7.2:1 */
  --rule: #DDD3C3;

  --serif: var(--font-body);
  --sans: "Concourse", "Helvetica Neue", Arial, sans-serif;
  --caps: "Concourse Caps", "Concourse", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --narrow: 42rem;
  --gutter: clamp(var(--space-unit), 4vw, calc(2 * var(--space-unit)));
  --radius: 4px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--ink); color: var(--paper); font-family: var(--sans); border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.eyebrow {
  font-family: var(--caps);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--brass);
  margin: 0 0 0.75rem;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.8rem 1.4rem;
  min-height: 44px;
  border: 2px solid var(--ox);
  border-radius: var(--radius);
  background: var(--ox);
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ox-dark); border-color: var(--ox-dark); color: #FFFFFF; }
.btn--small { padding: 0.5rem 0.9rem; font-size: 0.9rem; min-height: 40px; }
.btn--large { padding: 1rem 1.75rem; font-size: 1.075rem; }
.text-link { font-family: var(--sans); font-weight: 700; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 239, 0.96); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgba(250, 246, 239, 0.85); backdrop-filter: blur(6px); } }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.site-title { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.site-title:hover { color: var(--ink); }
/* Mark: a small five-line staff with a note head */
.site-mark {
  width: 1.6rem; height: 1.25rem; position: relative; flex: none;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 0.3rem);
  background-size: 100% 1.25rem;
}
.site-mark::after {
  content: ""; position: absolute; width: 0.55rem; height: 0.42rem; border-radius: 50%;
  background: var(--ox); left: 0.5rem; top: 0.37rem; transform: rotate(-20deg);
}
.site-nav { display: flex; align-items: center; gap: 1.5rem; font-family: var(--sans); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.975rem; }
.site-nav a:not(.btn):hover { color: var(--ox); text-decoration: underline; }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; padding: 0.6rem; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 1.4rem; height: 2px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -0.45rem; }
.burger::after { top: 0.45rem; }
.mobile-nav-panel {
  position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 14rem;
  display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(29, 35, 48, 0.12); font-family: var(--sans);
}
.mobile-nav-panel a:not(.btn) { color: var(--ink); text-decoration: none; padding: 0.6rem 0.5rem; }
.mobile-nav-panel .btn { margin-top: 0.5rem; text-align: center; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .mobile-nav { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4.5rem, 10vw, 8rem); }
.hero-inner { position: relative; z-index: 1; }
.hero-title { max-width: 18ch; font-size: clamp(2.4rem, 5vw + 1rem, 4.25rem); }
.hero-intro { max-width: 38rem; font-size: 1.2em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
/* The staff: five fine lines along the bottom of the hero, the theme's one decorative motif */
.staff {
  position: absolute; left: 0; right: 0; bottom: clamp(1.25rem, 3vw, 2.25rem); height: 2.5rem;
  background: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 0.6rem);
  background-size: 100% 3rem; background-repeat: no-repeat;
}

/* ---------- Sections ---------- */
.band { background: var(--paper-2); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band--ink { background: var(--navy); color: var(--paper); }
.band--ink .eyebrow { color: var(--brass-light); }
.band--ink a:not(.btn) { color: var(--brass-light); }
.section-head { margin-bottom: 2rem; max-width: 40rem; }

.lessons-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 760px) { .lessons-grid { grid-template-columns: 1fr; } }

.instrument-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.instrument-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.instrument-name { font-size: 1.5rem; font-weight: 700; }
.instrument-note { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }

.facts { margin: 0; padding: 1.5rem; background: var(--paper); border-radius: var(--radius); border-left: 3px solid var(--brass); }
.facts div + div { margin-top: 1rem; }
.facts dt { font-family: var(--caps); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--brass); }
.facts dd { margin: 0.15rem 0 0; }

.about { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.about-inner { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(1.5rem, 5vw, 4rem); }
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; } }

.posts { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.post-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.post-card { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.post-card-date { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin: 0 0 0.25rem; }
.post-card-title { margin: 0; font-size: 1.4rem; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--ox); text-decoration: underline; }
.post-card-excerpt { margin: 0.4rem 0 0; color: var(--muted); }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; font-family: var(--sans); font-size: 0.95rem; }

/* ---------- Inquiry form ---------- */
.inquire { max-width: 46rem; }
.inquiry { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem; }
.inquiry label { font-family: var(--sans); font-weight: 700; font-size: 0.975rem; }
.inquiry .hint { margin: 0; font-family: var(--sans); font-size: 0.9rem; }
.inquiry .req { color: var(--brass-light); }
.inquiry .optional { font-weight: 400; }
.inquiry input[type="text"], .inquiry input[type="email"], .inquiry select, .inquiry textarea {
  width: 100%; min-height: 44px; padding: 0.65rem 0.8rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid transparent; border-radius: var(--radius);
}
.inquiry textarea { resize: vertical; min-height: 7rem; }
.inquiry input:focus-visible, .inquiry select:focus-visible, .inquiry textarea:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-family: var(--sans); font-size: 0.925rem; }
.consent input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--brass-light); }
.consent label { font-weight: 400; }
.band--ink .btn { background: var(--paper); border-color: var(--paper); color: var(--ox); }
.band--ink .btn:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--ox-dark); }
.inquiry .btn { justify-self: start; }

/* ---------- Posts and pages ---------- */
.post-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.post-date { font-family: var(--sans); color: var(--muted); margin-bottom: 0.5rem; }
.post-byline { font-family: var(--sans); color: var(--muted); }
.post-image { margin: 0 0 2rem; }
.post-image img { border-radius: var(--radius); }
.page, .archive { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.list-intro { color: var(--muted); }
.empty-archive { color: var(--muted); }

.prose { overflow-wrap: break-word; }
.prose h2 { margin-top: 1.75em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.5em; }
.prose blockquote { margin: 1.5em 0; padding: 0.25em 0 0.25em 1.25em; border-left: 3px solid var(--brass); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose img, .prose figure { margin: 1.75em 0; }
.prose figcaption { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.prose pre, .prose code { font-size: 0.9em; }
.prose pre { overflow-x: auto; padding: 1rem; background: var(--paper-2); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--rule); text-align: left; }
.prose iframe { max-width: 100%; }

.post-terms { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin-top: 2rem; }

.lessons-cta { margin: 3rem 0 1rem; padding: 1.75rem; background: var(--paper-2); border-radius: var(--radius); border-left: 3px solid var(--ox); }
.lessons-cta-text { font-size: 1.1em; }
.lessons-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 2.5rem 0; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.95rem; }
.site-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; align-items: start; }
.footer-brand strong { font-family: var(--serif); font-size: 1.15rem; }
.footer-brand p { margin: 0.25rem 0 0; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { color: var(--ink); }
.footer-legal { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.875rem; }

@media print {
  .site-header, .site-footer, .lessons-cta, .staff, .mobile-nav { display: none !important; }
  body { background: #FFFFFF; }
}
