/* Amplify L.A. Youth. Soft to loud: the page is a score. A heavy "Amplify", a staff of seven notes that grow from
   p to ff, and every section on its own short staff, each a little louder than the one before. */

@font-face {
  font-family: "Grandstander";
  src: url("/fonts/Grandstander-normal-100-900.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-normal-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-normal-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Golden State poppy: sage does the work, poppy orange is the one loud note. */
:root {
  --page: #f6f8f3;
  --ink: #20302a;
  --muted: #4f5f57;
  --accent: #3e6b4f;
  --on-accent: #ffffff;
  --poppy: #f28c28;
  --line: #c8d4ca;
  --wash: #e8eee5;

  --display: "Grandstander", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, sans-serif;

  --gutter: clamp(1rem, 5vw, 3rem);
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #141c18;
    --ink: #eef2ec;
    --muted: #a9b7ad;
    --accent: #9cc9a8;
    --on-accent: #141c18;
    --poppy: #f8a04a;
    --line: #34463b;
    --wash: #1c2721;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--text);
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}
a:hover {
  text-decoration-thickness: 0.17em;
}
:focus-visible {
  outline: 3px solid var(--poppy);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--page);
  z-index: 10;
}
.skip:focus {
  top: 0.75rem;
}

/* One centred column, like a page of sheet music. */
.wrap {
  max-width: 58rem;
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

/* Header */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
}
.wordmark {
  font: 700 1.125rem/1.2 var(--display);
  color: var(--ink);
  text-decoration: none;
}
.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

/* Hero: the word, then a staff whose notes grow from soft to loud. */

.hero {
  padding-top: clamp(2rem, 7vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 18vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.hero h1 .a {
  display: block;
  font-weight: 900;
}
.hero h1 .b {
  display: block;
  margin-top: 0.12em;
  font-size: 0.5em;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--ink);
}

.score {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  overflow: visible;
}
.score .l {
  stroke: var(--line);
  stroke-width: 1.5;
}
.score .n {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
}
.score .n.top {
  fill: var(--poppy);
  stroke: var(--ink);
  stroke-width: 2;
}
/* each note's place in the run, for the entrance below */
.score .n:nth-of-type(1) { --i: 0; }
.score .n:nth-of-type(2) { --i: 1; }
.score .n:nth-of-type(3) { --i: 2; }
.score .n:nth-of-type(4) { --i: 3; }
.score .n:nth-of-type(5) { --i: 4; }
.score .n:nth-of-type(6) { --i: 5; }
.score .n:nth-of-type(7) { --i: 6; }

.dyn {
  display: flex;
  justify-content: space-between;
  margin: 0.25rem 0 0;
  font: italic 400 1.4rem/1 var(--text);
  color: var(--accent);
}

.lede {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  font: 500 clamp(1.4rem, 1rem + 1.6vw, 2rem)/1.25 var(--display);
}
.lede b {
  padding: 0 0.1em;
  font-weight: 800;
  background: linear-gradient(transparent 62%, var(--poppy) 62% 92%, transparent 92%);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 1.75rem 0 0;
}
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font: 700 1rem/1.2 var(--text);
  text-decoration: none;
}
.button:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.actions .alt {
  color: var(--ink);
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .score .n {
    animation: hit 600ms cubic-bezier(0.2, 0.8, 0.3, 1.3) both;
    animation-delay: calc(var(--i) * 140ms + 150ms);
  }
}
@keyframes hit {
  from {
    transform: scale(0.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Inner pages: the title in the loud weight, no score. */

.page-head {
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.page-head h1 {
  margin: 0;
  font: 900 clamp(2.5rem, 1.5rem + 4vw, 4.5rem)/1 var(--display);
  letter-spacing: -0.01em;
  color: var(--accent);
}
.page-head .lede {
  margin-top: 1rem;
}

/* Sections: each one sits on a short staff, marked a little louder than the last (p, mp, mf, f, ff). */

.s {
  --w: 300;
  --z: 1.65rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  scroll-margin-top: 1rem;
}
.s.mp { --w: 400; --z: 1.8rem; }
.s.mf { --w: 500; --z: 1.95rem; }
.s.f { --w: 600; --z: 2.1rem; }
.s.ff { --w: 800; --z: 2.4rem; }

.staff {
  position: relative;
  height: 25px;
  margin-bottom: 1.1rem;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 6px);
}
.staff i {
  position: absolute;
  top: 50%;
  left: 0;
  padding: 0 0.7rem 0 0;
  transform: translateY(-50%);
  background: var(--page);
  font: italic 400 1.6rem/1 var(--text);
  color: var(--accent);
}
.s h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-weight: var(--w);
  font-size: var(--z);
  line-height: 1.1;
}
.s p {
  max-width: var(--measure);
  margin: 0 0 1rem;
}

.mission {
  font: 500 clamp(1.25rem, 1rem + 0.8vw, 1.625rem)/1.35 var(--display);
}

/* Photos: one wide beside two narrow. Until the real photos land, each frame shows an empty staff. */
.photos {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: clamp(9rem, 18vw, 15rem);
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}
.photo {
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 0.625rem) center / 100%
      calc(2.5rem + 1px) no-repeat,
    var(--wash);
  color: var(--muted);
  font-size: 0.95rem;
}
.photo span {
  transform: translateY(2.75rem);
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home: two ways in, one per audience. */
.paths {
  display: grid;
  gap: 2rem 3rem;
}
@media (min-width: 48rem) {
  .paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.paths h3 {
  margin: 0 0 0.25rem;
  font: 700 1.375rem/1.2 var(--display);
}
.s .path-lead {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.pages {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pages li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.pages a {
  font: 700 1.2rem/1.3 var(--display);
}
.pages span {
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.75rem;
  max-width: var(--measure);
  margin: 1.25rem 0;
}
.facts dt {
  font-weight: 700;
}
.facts dd {
  margin: 0;
}

/* Sessions as beats: a filled note was played, a hollow one is still to come. */
.events {
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
}
.events li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0 0.75rem;
  padding: 0.6rem 0;
}
.events li::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.4rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
}
.events .next::before {
  border-style: dashed;
  background: transparent;
}
.events .when {
  grid-column: 2;
  font-weight: 700;
}
.events .place {
  grid-column: 2;
  color: var(--muted);
}
.events .next .when {
  color: var(--accent);
}

.faq {
  max-width: var(--measure);
}
.faq details {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
}
.faq summary::marker {
  color: var(--accent);
}
.faq details p {
  margin: 0.5rem 0 0;
}
.faq .more {
  margin-top: 1.5rem;
}

.missing {
  padding-top: clamp(3rem, 10vw, 6rem);
  padding-bottom: clamp(3rem, 10vw, 6rem);
}
.missing h1 {
  margin: 0 0 1rem;
  font: 900 clamp(2.25rem, 1.5rem + 3vw, 3.5rem)/1.05 var(--display);
  color: var(--accent);
}

/* Footer */

.site-footer {
  padding: 1.5rem 0 3rem;
  color: var(--muted);
  font-size: 1rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.site-footer p {
  margin: 0;
}
