/* ==========================================================================
   gpapazian.com - shared stylesheet
   Colors come from the Council Rock seal: navy ring, blue letters, gold ring.
   Headings: Young Serif.  Everything else: Source Sans 3.  Fonts are in /fonts.
   ========================================================================== */

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/young-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-700-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --navy: #1e2b5b;        /* seal ring */
  --navy-deep: #16214a;   /* header bar */
  --blue: #1f3e7a;        /* the C and R */
  --gold: #c9a24a;        /* gold ring */
  --gold-soft: #e6d3a3;   /* gold on navy */
  --ink: #1a202f;         /* body text */
  --ink-soft: #4a5068;    /* notes, captions */
  --mist: #eef1f7;        /* pale panel */
  --line: #d9dde8;        /* hairlines */
  --paper: #ffffff;

  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --text: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 44rem;       /* reading width, about 70 characters */
  --wide: 66rem;          /* photo grid, header */
  --gutter: 1rem;
}

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

html {
  font-size: 106.25%;     /* 17px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

b, strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--navy-deep);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.site-header .bar {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand:hover { color: var(--gold-soft); }
.brand:focus-visible { outline-color: #fff; }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
}
.site-nav a:hover { border-bottom-color: var(--gold-soft); color: #fff; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav a:focus-visible { outline-color: #fff; }

@media (max-width: 760px) {
  .site-header .bar { justify-content: center; text-align: center; padding-bottom: 0.5rem; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { justify-content: center; gap: 0 1.1rem; }
  .site-nav a { font-size: 0.9rem; padding: 0.2rem 0; }
}

/* --------------------------------------------------------------------------
   Page title block: set like the cover of a concert program
   -------------------------------------------------------------------------- */
main { flex: 1; }

.title-block {
  text-align: center;
  padding: 2.5rem var(--gutter) 1.5rem;
  max-width: var(--wide);
  margin: 0 auto;
}
.title-block h1 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--navy);
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.title-block .schools {
  font-family: var(--text);
  font-weight: 600;
  color: var(--blue);
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
  line-height: 1.4;
  margin: 0;
}
.title-block .lede {
  max-width: var(--measure);
  margin: 1rem auto 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* The staff: five gold lines and one whole note, the site's one ornament */
.staff {
  display: block;
  width: 200px;
  height: 34px;
  margin: 1.1rem auto 0;
}
.staff line { stroke: var(--gold); stroke-width: 1.25; }
.staff ellipse { fill: var(--navy); }

/* --------------------------------------------------------------------------
   Reading column and section headings
   -------------------------------------------------------------------------- */
.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
}
.prose > :first-child { margin-top: 0; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--navy);
  font-size: clamp(1.55rem, 1.3rem + 1vw, 1.95rem);
  line-height: 1.15;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--gold);
}
h2:first-child { margin-top: 1rem; }

h3 {
  font-family: var(--text);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
}

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin: 0 0 0.6rem; }
li ul { margin: 0.4rem 0 0; }
li ul li { margin-bottom: 0.3rem; }
.prose li::marker { color: var(--gold); }

.note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
  margin: 1.75rem 0 0;
}

/* Heading with an inline wordmark, e.g. "Ear Training" + the Solati logo */
.with-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4em 0.7em;
}
.with-mark .mark { display: inline-flex; align-self: center; line-height: 0; }
.with-mark .mark img { height: 0.95em; width: auto; }
.with-mark .mark:hover { opacity: 0.8; }

/* Jump list for long pages */
.jump {
  background: var(--mist);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0 2rem;
  font-size: 0.95rem;
}
.jump span { font-weight: 700; color: var(--navy); margin-right: 0.6rem; }
.jump ul { list-style: none; display: inline-flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; }
.jump li { margin: 0; }
.jump a { font-weight: 600; text-decoration: none; }
.jump a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Navy band sections (concert page)
   -------------------------------------------------------------------------- */
.band {
  background: var(--navy);
  color: #fff;
  padding: 2.25rem var(--gutter) 2rem;
  margin: 1.5rem 0 0;
}
.band + .band { margin-top: 0; border-top: 1px solid rgba(255,255,255,0.15); }
.band:last-of-type { border-bottom: 3px solid var(--gold); }
.band .inner { max-width: var(--measure); margin: 0 auto; }
.band h2 {
  color: #fff;
  border-bottom-color: var(--gold);
  margin-top: 0;
}
.band a { color: #fff; text-decoration-color: var(--gold-soft); text-decoration-thickness: 1.5px; }
.band a:hover { color: var(--gold-soft); }
.band a:focus-visible { outline-color: #fff; }
.band .note { color: #e6e8f0; border-left-color: var(--gold); }
.band p:last-child { margin-bottom: 0; }
.band .group { font-weight: 700; margin-top: 1.25rem; }
.band .group:first-of-type { margin-top: 0; }

/* --------------------------------------------------------------------------
   Home photo grid
   -------------------------------------------------------------------------- */
/* Same arrangement as before: a wide left column and a narrow right one,
   top row tall, bottom row short. Ratios are chosen so each row lines up. */
.photos {
  max-width: var(--wide);
  margin: 1.5rem auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  align-items: start;
  gap: 1rem;
}
.photos figure { margin: 0; }
.photos img { width: 100%; object-fit: cover; border-radius: 4px; }
.photos .tall img     { aspect-ratio: 1.071; }
.photos .portrait img { aspect-ratio: 0.754; }
.photos .wide img     { aspect-ratio: 2.098; }
.photos .collage img  { aspect-ratio: 1.478; }
@media (max-width: 640px) {
  .photos { grid-template-columns: 1fr; }
  .photos img { aspect-ratio: auto; }
}

.signature {
  text-align: center;
  font-family: var(--display);
  color: var(--navy);
  font-size: 1.15rem;
  margin: 2.5rem 0 3rem;
}

/* --------------------------------------------------------------------------
   Buttons (supply page)
   -------------------------------------------------------------------------- */
.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
  border: 2px solid var(--navy);
}
.button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.center { text-align: center; }

.supplies p { margin-bottom: 0.35rem; }
.supplies p + p.detail { margin-bottom: 1.1rem; color: var(--ink-soft); }
.linked-image { display: block; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.linked-image:hover { border-color: var(--gold); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--mist);
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem var(--gutter) 2rem;
}
.site-footer p { margin: 0.2rem 0; }
.site-footer .who { color: var(--navy); font-weight: 700; }
