/* Ibarra Real Nova and Source Sans 3, self-hosted, SIL Open Font License. */

@font-face {
  font-family: "Ibarra Real Nova";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibarra-real-nova-400.woff2") format("woff2");
}

@font-face {
  font-family: "Ibarra Real Nova";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibarra-real-nova-500.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-500.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-400-italic.woff2") format("woff2");
}

:root {
  --paper: #e4dccb;
  --raised: #f3eee4;
  --ink: #1c1915;
  --muted: #5a534a;
  --oak: #2a241c;
  --indigo: #23415f;
  --line: #c9bfae;
  --line-strong: #8d8478;
  --band-ink: #e7e1d4;
  --bad: #8a3030;
  --bad-bg: #f3e4df;
  --serif: "Ibarra Real Nova", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", "Liberation Sans", sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
}

main {
  flex: 1 0 auto;
}

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

h1,
h2,
h3,
.brand,
.footer-name,
legend,
.num,
.material p {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.15rem, 5vw, 3.1rem);
}

h1.display {
  font-size: clamp(3.3rem, 8vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

p {
  margin: 0 0 0.9rem;
}

strong {
  font-weight: 500;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 160ms ease-out;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 50;
  background: var(--raised);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

main > .wrap {
  padding-top: 1.25rem;
  padding-bottom: 0.4rem;
}

main > .wrap:last-child {
  padding-bottom: 2.6rem;
}

.crumbs-wrap {
  padding-bottom: 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.6rem;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--indigo);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle:focus-visible + .nav-button {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.2rem 1rem 0.7rem;
}

.nav-toggle:checked ~ .site-nav {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.nav-list a {
  display: inline-block;
  padding: 0.55rem 0;
  text-decoration: none;
  color: var(--muted);
  font-weight: 400;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
  background: none;
}

.hero {
  display: grid;
  gap: 1.4rem;
  padding-top: 1.6rem;
  padding-bottom: 0.4rem;
}

.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  background: #d9d0bc;
}

.photo-hero {
  margin: 0;
}

.photo-small {
  max-width: 14rem;
  margin-top: 0.4rem;
}

.photo-lead {
  max-width: 46rem;
  margin-top: 1.5rem;
}

.photo-offset {
  max-width: 28rem;
  margin-top: 1rem;
}

.pickup-photos {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.15rem;
  max-width: 54rem;
}

.instrument-note {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
  max-width: 46rem;
}

.instrument-note p {
  max-width: 22rem;
  margin-bottom: 0;
}

.donate-details {
  display: grid;
  gap: 0.8rem;
  margin: 0.3rem 0 1rem;
}

.place-photos {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.lead {
  font-size: 1.2rem;
  max-width: 36rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin: 0.2rem 0 0.7rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--oak);
  background: var(--oak);
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}

.button:hover,
button.button:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--paper);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}

.pending,
.fine {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

.section {
  padding: 1.6rem 0 0.2rem;
}

.section + .section {
  border-top: 1px solid var(--line);
  margin-top: 1.4rem;
}

.measure {
  max-width: 38rem;
}

.steps {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  max-width: 38rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.35rem 0.8rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  background: none;
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps li p:last-child {
  margin-bottom: 0;
}

.num {
  margin: 0;
  font-size: 1.45rem;
  color: var(--indigo);
}

.material {
  position: relative;
  display: flex;
  align-items: flex-end;
  max-width: 16rem;
  padding: 1rem;
  background-color: var(--oak);
  background-image: url("/assets/img/wood-grain.svg");
  background-size: 240px 240px;
  color: var(--band-ink);
}

.hero .material {
  max-width: none;
  min-height: 7.5rem;
}

.material p {
  position: relative;
  margin: 0;
  color: var(--band-ink);
  font-size: 1.35rem;
  line-height: 1.25;
  max-width: 14rem;
}

.band {
  background-color: var(--oak);
  background-image: url("/assets/img/wood-grain.svg");
  background-size: 240px 240px;
  color: var(--band-ink);
  padding: 2.3rem 0 2rem;
  margin-top: 2rem;
}

.band h2,
.band p,
.band strong {
  color: var(--band-ink);
}

.band .measure {
  max-width: 36rem;
}

.band .button {
  background: var(--paper);
  color: var(--oak);
  border-color: var(--paper);
  margin-top: 0.3rem;
}

.band .button:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--paper);
}

.path-side {
  max-width: 24rem;
  margin-top: 1.5rem;
  padding-top: 0.2rem;
}

.path-side h2 {
  font-size: 1.45rem;
}

.page-intro {
  max-width: 40rem;
}

.crumbs {
  margin: 0;
  font-size: 0.95rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--line-strong);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

.form-sheet {
  background: var(--raised);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(28, 25, 21, 0.05), 0 14px 28px rgba(42, 36, 28, 0.06);
  padding: 0.4rem 1rem 0.2rem;
  margin-top: 0.6rem;
}

fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 0.3rem;
  padding: 0.85rem 0 0.15rem;
  min-inline-size: 0;
}

legend {
  font-size: 1.25rem;
  padding: 0;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.req {
  color: var(--indigo);
}

.optional,
.hint {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.hint,
.field-error {
  margin: 0.3rem 0 0;
}

.field-error,
.error-title {
  color: var(--bad);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  min-height: 46px;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--bad);
}

.check-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.65rem;
  align-items: start;
}

.check-field input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 1.15rem;
  margin-top: 0.28rem;
  padding: 0;
  border-radius: 2px;
}

.check-field label {
  font-weight: 400;
}

.check-field .field-error {
  grid-column: 1 / -1;
}

.error-summary {
  background: var(--bad-bg);
  border: 1px solid #e2b2ab;
  border-radius: 8px;
  padding: 0.8rem 0.9rem 0.3rem;
  margin: 0.8rem 0 0.4rem;
}

.error-summary ul {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.15rem;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0.3rem 0 1rem;
}

.grid-3 {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 0.15rem 0 0.2rem;
  border-top: 1px solid var(--line);
  background: none;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.faq-item h2 {
  font-size: 1.35rem;
  margin-top: 0.85rem;
}

.todo {
  margin: 0 0 1rem;
  padding: 0.1rem 0 0.1rem 0.75rem;
  border-left: 2px solid var(--indigo);
}

.todo-label {
  font-weight: 500;
  margin-right: 0.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.4rem 0 1.8rem;
  font-size: 0.98rem;
}

.footer-name {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1.15rem;
}

.footer-name a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.copyright {
  color: var(--muted);
  margin-bottom: 0;
}

.reference {
  font-family: ui-monospace, "Cascadia Mono", monospace;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-block;
  padding: 0.1rem 0.4rem;
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}

@media (min-width: 760px) {
  .nav-button,
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    gap: 0.15rem 1rem;
  }

  .nav-list a {
    padding: 0.35rem 0;
  }

  .hero {
    grid-template-columns: minmax(0, 32rem) minmax(16rem, 1fr);
    column-gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    padding-top: 2.6rem;
  }

  .pickup-photos {
    grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.72fr);
    align-items: end;
    gap: 1rem 1.2rem;
  }

  .pickup-photos .photo:last-child {
    margin-bottom: 1.6rem;
  }

  .instrument-note {
    grid-template-columns: minmax(0, 16rem) minmax(14rem, 22rem);
    align-items: end;
    margin-left: 3.5rem;
  }

  .donate-details {
    grid-template-columns: minmax(12rem, 16rem) minmax(16rem, 28rem);
    align-items: end;
    gap: 1rem 1.4rem;
    max-width: 48rem;
  }

  .donate-details .photo:first-child {
    margin-bottom: 1.4rem;
  }

  .place-photos {
    grid-template-columns: 1.35fr 0.8fr 0.95fr;
    grid-template-areas:
      "school school church"
      "center hands church";
    align-items: end;
    gap: 0.85rem 1rem;
  }

  .photo-school { grid-area: school; }
  .photo-church { grid-area: church; }
  .photo-center { grid-area: center; }
  .photo-hands { grid-area: hands; margin-bottom: 1.2rem; }

  .about-top {
    display: grid;
    grid-template-columns: minmax(0, 36rem) minmax(14rem, 22rem);
    gap: 0.5rem 2rem;
    align-items: end;
  }

  .photo-offset {
    margin-left: 4.5rem;
  }

  .grid-3 {
    grid-template-columns: 0.8fr 1.3fr 1fr;
  }

  .form-sheet {
    padding: 0.5rem 1.4rem 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  a,
  .button,
  button.button {
    transition: none;
  }
}
