/* Advance Virginia — site styles
   Colors are taken from the organization's own logo. Change a value here and it
   updates every page. */

:root {
  --ink:        #17233d;
  --ink-soft:   #4e5a72;
  --navy:       #1b3a6b;
  --navy-deep:  #16305a;
  --paper:      #ffffff;
  --mint:       #e9f4f2;
  --cream:      #fdf3e3;
  --lilac:      #f2eef9;
  --teal:       #0e7a7e;
  --teal-deep:  #0a6165;
  --teal-tint:  #d6eceb;
  --purple:     #4b2e83;
  --orange:     #e07b29;
  --gold:       #e3a82b;
  --rose:       #e14b4f;
  --line:       #e0ded8;

  --wrap: 1140px;
  --r: 12px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  margin: 0 0 .5em; letter-spacing: -0.012em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.13; }
h2 { font-size: clamp(1.5rem, 3.3vw, 2.05rem); line-height: 1.2; }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0 0 1.1em; max-width: 68ch; }
ul, ol { max-width: 68ch; }
.give, .people, .values, .proglist, .deets, .steps, .twoup,
.startpanel ul, #site-nav ul, .footer-grid ul { max-width: none; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff;
        padding: .7rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
           color: var(--purple); margin: 0 0 .7rem; }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--paper);
               position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between;
                gap: 1rem; min-height: 84px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: auto; height: 56px; display: block; }

.nav-toggle { font: inherit; font-size: .95rem; background: none; border: 1.5px solid var(--line);
              border-radius: 999px; padding: .45rem 1rem; color: var(--ink); cursor: pointer; }
.nav-toggle:hover { border-color: var(--teal); color: var(--teal); }

#site-nav { display: none; width: 100%; padding-bottom: .9rem; }
#site-nav.is-open { display: block; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
#site-nav a { display: block; padding: .55rem 0; text-decoration: none; color: var(--ink);
              font-size: 1rem; border-bottom: 1px solid var(--line); }
#site-nav a:hover { color: var(--teal); }
#site-nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  #site-nav { display: block; width: auto; padding: 0; }
  #site-nav ul { flex-direction: row; gap: 1.25rem; align-items: center; }
  #site-nav a { padding: .1rem 0; font-size: .96rem; border-bottom: 2px solid transparent; }
  #site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .brand-logo { height: 64px; }
}

/* ---------- buttons ---------- */

.btn { display: inline-block; font-size: 1rem; font-weight: 600; padding: .72rem 1.5rem;
       border-radius: 999px; text-decoration: none; border: 2px solid var(--teal);
       transition: background-color .15s ease, color .15s ease; }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-line { background: transparent; color: var(--teal); }
.btn-line:hover { background: var(--teal-tint); color: var(--teal-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

.arrow { font-weight: 600; text-decoration: none; display: inline-block; margin-top: .3rem; }
.arrow::after { content: " \203A"; font-weight: 700; }
.arrow:hover { text-decoration: underline; }

/* ---------- hero ---------- */

.hero { padding: 3rem 0 2.4rem; }
.hero-grid { display: grid; gap: 2.4rem; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }

.startpanel { border: 1px solid var(--line); border-top: 5px solid var(--gold);
              border-radius: var(--r); padding: 1.4rem 1.5rem .5rem;
              background: var(--lilac); align-self: start; }
.startpanel h2 { font-size: 1.08rem; margin-bottom: .8rem; }
.startpanel ul { list-style: none; margin: 0; padding: 0; }
.startpanel li { border-top: 1px solid #e1dbef; }
.startpanel li:first-child { border-top: 0; }
.startpanel a { display: block; padding: .75rem 0; text-decoration: none; font-weight: 600; color: var(--ink); }
.startpanel a span { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-soft); }
.startpanel a:hover { color: var(--teal); }

@media (min-width: 940px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: start; }
}

/* ---------- bands ---------- */

.band { padding: 3.4rem 0; }
.band-mint { background: var(--mint); }
.band-cream { background: var(--cream); }
.band-deep { background: var(--navy); color: #fff; }
.band-deep h2, .band-deep h3 { color: #fff; }
.band-deep p { color: #d5deef; }
.band-deep a { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.cols { display: grid; gap: 2rem; }
@media (min-width: 800px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); gap: 2.3rem; }
  .cols-2 { grid-template-columns: repeat(2, 1fr); gap: 2.6rem; }
}

.topruled { border-top: 4px solid var(--teal); padding-top: .9rem; }
.topruled h3 { margin-bottom: .4rem; }
.topruled p { font-size: .98rem; color: var(--ink-soft); margin-bottom: 0; }
.t-teal { border-top-color: var(--teal); }
.t-purple { border-top-color: var(--purple); }
.t-orange { border-top-color: var(--orange); }
.t-gold { border-top-color: var(--gold); }

/* ---------- two programme cards ---------- */

.pcard { background: #fff; border-radius: var(--r); overflow: hidden;
         box-shadow: 0 2px 14px rgba(23,35,61,.07); display: flex; flex-direction: column; }
.pcard figure img { display: block; width: 100%; height: 210px; object-fit: cover; }
.pcard > div { padding: 1.4rem 1.5rem 1.6rem; border-top: 5px solid var(--teal); }
.pcard-edu > div { border-top-color: var(--purple); }
.pcard p { font-size: .99rem; color: var(--ink-soft); }

/* ---------- goals ---------- */

.goal figure img { display: block; width: 100%; height: 200px; object-fit: cover;
                   border-radius: var(--r); margin-bottom: 1rem; }
.goal .num { font-family: var(--font-display); font-size: .95rem; letter-spacing: .05em;
             text-transform: uppercase; color: var(--teal); margin: 0 0 .2rem; font-weight: 600; }
.goal:nth-child(2) .num { color: var(--purple); }
.goal:nth-child(3) .num { color: var(--orange); }
.goal h3 { margin-bottom: .35rem; }
.goal > p:last-child { font-size: .98rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- create / exhibit / sell ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2rem; counter-reset: step; }
@media (min-width: 840px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.3rem; } }
.steps > li { counter-increment: step; }
.steps figure img { display: block; width: 100%; height: 210px; object-fit: cover; border-radius: var(--r); }
.steps h3 { margin: 1rem 0 .35rem; display: flex; align-items: center; gap: .6rem; }
.steps h3::before {
  content: counter(step); font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  color: #fff; background: var(--teal); width: 1.65rem; height: 1.65rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.steps > li:nth-child(2) h3::before { background: var(--purple); }
.steps > li:nth-child(3) h3::before { background: var(--orange); }
.steps p { font-size: .98rem; color: var(--ink-soft); }
.steps p:last-child { margin-bottom: 0; }

/* ---------- programme list ---------- */

.proglist { margin: 0; padding: 0; list-style: none; display: grid; gap: 2rem; }
.proglist > li { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--line);
                 border-radius: var(--r); overflow: hidden; }
.proglist figure img { display: block; width: 100%; height: 200px; object-fit: cover; }
.proglist > li > div { padding: 0 1.4rem 1.4rem; }
.proglist h3 { margin: 0 0 .4rem; }
.proglist p { color: var(--ink-soft); margin-bottom: 0; }
@media (min-width: 840px) {
  .proglist > li { grid-template-columns: 17rem 1fr; gap: 0; align-items: stretch; }
  .proglist figure img { height: 100%; min-height: 175px; }
  .proglist > li > div { padding: 1.5rem 1.7rem; align-self: center; }
}

/* ---------- photography ---------- */

.widephoto { max-width: 1400px; margin: 0 auto; padding: 0 1.25rem; }
.widephoto img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9;
                 object-fit: cover; border-radius: var(--r); }
.widephoto.flush { padding: 0; max-width: none; }
.widephoto.flush img { border-radius: 0; }

.splitmedia { display: grid; gap: 1.8rem; align-items: center; }
.splitmedia figure img { display: block; width: 100%; height: auto; border-radius: var(--r); }
@media (min-width: 880px) { .splitmedia { grid-template-columns: 1.25fr 1fr; gap: 3rem; } }

.inlinephoto { margin-top: 2rem; }
.inlinephoto img { display: block; width: 100%; height: auto; border-radius: var(--r); }

/* ---------- notice + pull quote ---------- */

.notice { border-left: 5px solid var(--gold); background: var(--cream); padding: 1.1rem 1.3rem;
          border-radius: 0 var(--r) var(--r) 0; margin: 0 0 2.4rem; }
.notice p { margin: 0; font-size: .99rem; }

.pull { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.42rem); line-height: 1.45;
        color: var(--navy); border-left: 5px solid var(--teal); padding-left: 1.2rem; max-width: 62ch; }

.lede { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- people, values, giving ---------- */

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
@media (min-width: 720px) { .people { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.people li { border-top: 4px solid var(--teal); padding-top: .9rem; }
.people li:nth-child(2) { border-top-color: var(--purple); }
.people li:nth-child(3) { border-top-color: var(--orange); }
.people h3 { margin-bottom: .15rem; }
.people .role { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 3rem; } }
.values h3 { margin-bottom: .2rem; font-size: 1.06rem; }
.values p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.give { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .give { grid-template-columns: repeat(3, 1fr); } }
.give li { background: #fff; border-radius: var(--r); border-top: 5px solid var(--teal);
           box-shadow: 0 2px 14px rgba(23,35,61,.07); padding: 1.4rem 1.5rem 1.6rem;
           display: flex; flex-direction: column; }
.give li:nth-child(2) { border-top-color: var(--purple); }
.give li:nth-child(3) { border-top-color: var(--orange); }
.give h3 { margin-bottom: .35rem; }
.give p { font-size: .96rem; color: var(--ink-soft); flex: 1; }
.give .btn { align-self: flex-start; margin-top: .4rem; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; } }
.deets { list-style: none; margin: 0; padding: 0; }
.deets li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.deets li:first-child { border-top: 1px solid var(--line); }
.deets strong { display: block; font-size: .89rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- page head ---------- */

.page-head { padding: 3rem 0 2.4rem; background: var(--mint); }
.page-head p { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 0; }
.page-head h1 { max-width: 22ch; }

.prose h2 { margin-top: 2.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .4rem; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-deep); color: #c9d4e8; padding: 3rem 0 2rem; font-size: .96rem; }
.site-footer h2 { color: #fff; font-size: 1.14rem; }
.site-footer a { color: #fff; }
.footer-tag { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold); margin-bottom: .6rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: .22rem 0; }
.footer-grid p { max-width: 44ch; }
.footer-base { border-top: 1px solid rgba(255,255,255,.18); margin-top: 2.4rem; padding-top: 1.2rem;
               font-size: .88rem; color: #a8b6cf; }
.footer-base p { max-width: 84ch; margin-bottom: .5rem; }
.footer-base a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- photo captions ---------- */
figcaption { font-size: .88rem; color: var(--ink-soft); padding-top: .6rem; line-height: 1.45; }
.widephoto figcaption { max-width: var(--wrap); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.widephoto.flush figcaption { padding-left: 1.25rem; padding-right: 1.25rem; padding-bottom: .2rem; }
.splitmedia figure.capped figcaption { padding-top: .55rem; }

/* ---------- statistics ---------- */
.band-stats { background: var(--lilac); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; } }

.stats li { border-top: 4px solid var(--teal); padding-top: .9rem; }
.stats li:nth-child(2) { border-top-color: var(--purple); }
.stats li:nth-child(3) { border-top-color: var(--orange); }
.stats li:nth-child(4) { border-top-color: var(--gold); }
.stats .fig { font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 2.7rem);
              line-height: 1; color: var(--navy); display: block; margin-bottom: .5rem; }
.stats p { font-size: .96rem; color: var(--ink-soft); margin: 0; }
.sources { font-size: .84rem; color: var(--ink-soft); margin-top: 2rem; max-width: 90ch; line-height: 1.5; }
.ref { font-size: .72em; vertical-align: super; text-decoration: none; padding-left: .1em; }
