/* Riverdale Performing Arts Center — responsive styles */
:root {
  --black: #08090b;
  --charcoal: #17181a;
  --charcoal-2: #222326;
  --red: #ed1c2e;
  --red-dark: #c91022;
  --white: #fff;
  --paper: #f3f3f3;
  --gray: #b9bbc0;
  --ink: #121417;
  --muted-ink: #41454b;
  --content-width: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(var(--content-width), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: white; color: black; padding: 10px; }
.skip-link:focus { left: 8px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8,9,11,.97); color: white; border-bottom: 1px solid #38393b; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: white; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 48px; color: var(--red); font-size: 44px; line-height: 1; transform: rotate(-12deg); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; letter-spacing: .13em; }
.brand-copy strong { font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 600; }
.brand-copy small { margin-top: 5px; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); font-size: 13px; }
.primary-nav a:not(.nav-donate) { padding: 27px 0 24px; border-bottom: 3px solid transparent; }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a.active { border-bottom-color: var(--red); }
.nav-donate { padding: 10px 22px; border-radius: 3px; background: var(--red); font-weight: 700; }
.nav-donate:hover, .button-red:hover { background: var(--red-dark); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; color: white; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: white; transition: transform .2s, opacity .2s; }
.hero, .support { position: relative; isolation: isolate; overflow: hidden; color: white; background: var(--black); }
.hero { min-height: 490px; display: flex; align-items: center; }
.hero-image, .hero-shade, .support-photo, .support-shade { position: absolute; inset: 0; z-index: -2; }
.hero-image { background: url("https://spiritofsunnyvale.org/images/2024-sos-stanford.jpg") center 42% / cover no-repeat; }
/* .hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.76) 36%, rgba(0,0,0,.12) 76%), linear-gradient(0deg, rgba(0,0,0,.2), transparent 45%); } */
.hero-content { padding-block: 70px; }
.eyebrow { margin: 0 0 9px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.hero-kicker { color: #d7d7d7; font-size: 10px; letter-spacing: .2em; }
.hero-kicker span { color: var(--red); padding-inline: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -.025em; }
.hero h1 { max-width: 800px; margin-bottom: 17px; font-size: clamp(42px, 5.3vw, 68px); line-height: 1.03; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-description { max-width: 440px; margin-bottom: 24px; color: #e4e4e4; font-size: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 42px; padding: 11px 17px; border: 1px solid transparent; border-radius: 3px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.button span { font-size: 17px; line-height: 1; }
.button-red { color: white; background: var(--red); }
.button-outline { border-color: var(--red); color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--red); color: white; }
.section-light { background: var(--paper); }
.mission { padding-block: 36px; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 4vw, 54px); }
.mission-photo { width: 100%; height: 285px; object-fit: cover; }
.mission-copy h2, .section-intro h2, .support h2 { margin-bottom: 13px; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; }
.mission-copy > p:not(.eyebrow) { max-width: 480px; margin-bottom: 17px; color: var(--muted-ink); font-size: 14px; }
.section-dark { background: linear-gradient(135deg, #1c1d1f, #0b0c0e); color: white; }
.events { padding-block: 45px; }
.events-layout { display: grid; grid-template-columns: .85fr 2fr; gap: 35px; align-items: center; }
.section-intro > p:not(.eyebrow) { max-width: 350px; color: #c7c8ca; font-size: 13px; }
.section-intro .button { margin-top: 8px; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.event-card { min-width: 0; overflow: hidden; color: var(--ink); background: white; border-radius: 2px; }
.event-card > img { width: 100%; height: 130px; object-fit: cover; }
.event-card-body { padding: 12px 14px 14px; }
.event-date { margin-bottom: 4px; color: #55595f; font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.event-card h3 { margin-bottom: 3px; font-family: "Playfair Display", Georgia, serif; font-size: 16px; line-height: 1.2; }
.event-card-body > p:not(.event-date) { margin-bottom: 10px; color: #62666c; font-size: 11px; }
.event-card a { color: var(--red-dark); font-size: 11px; font-weight: 700; }
.event-card a span { margin-left: 5px; }
.programs { padding-block: 45px; }
.programs-layout { display: grid; grid-template-columns: .9fr 2fr; align-items: center; gap: 35px; }
.programs .section-intro > p:not(.eyebrow) { color: var(--muted-ink); }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.program-card { background: white; box-shadow: 0 1px 5px rgba(0,0,0,.05); }
.program-card img { width: 100%; height: 130px; object-fit: cover; }
.program-card div { padding: 12px 13px 15px; }
.program-card h3 { margin-bottom: 4px; font-size: 13px; }
.program-card p { margin: 0; color: #5b6066; font-size: 11px; }
.support { min-height: 240px; display: flex; align-items: center; }
.support-photo { background: url("https://images.unsplash.com/photo-1520523839897-bd0b52f945a0?auto=format&fit=crop&w=1800&q=85") center 50% / cover no-repeat; filter: grayscale(1); }
.support-shade { z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.96), rgba(0,0,0,.76) 42%, rgba(0,0,0,.12)); }
.support-content { padding-block: 35px; }
.support h2 { max-width: 460px; margin-bottom: 8px; }
.support-content > p:not(.eyebrow) { max-width: 410px; margin-bottom: 16px; color: #dedede; font-size: 13px; }
.site-footer { color: white; background: #101113; border-top: 1px solid #414246; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1.3fr .5fr; gap: 35px; padding-block: 30px; align-items: start; }
.footer-brand { align-self: center; }
.footer-links, .newsletter { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links h2, .newsletter h2 { margin-bottom: 8px; font-family: "DM Sans", Arial, sans-serif; font-size: 12px; font-weight: 700; }
.footer-links a { color: #c8c9cc; font-size: 11px; line-height: 1.8; }
.footer-links a:hover, .footer-bottom a:hover { color: white; text-decoration: underline; }
.newsletter p { margin-bottom: 10px; color: #c8c9cc; font-size: 11px; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; }
.newsletter input { width: min(100%, 230px); min-width: 0; padding: 10px 11px; border: 1px solid #55575b; border-radius: 3px; color: white; background: #292a2d; font-size: 11px; }
.newsletter .button { min-height: 36px; padding: 8px 13px; }
.form-message { min-height: 1em; margin-top: 7px; }
.social-links { display: flex; justify-content: flex-end; gap: 12px; }
.social-links a { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #777; border-radius: 50%; font-size: 13px; font-weight: 700; }
.social-links a:hover { color: white; border-color: var(--red); background: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-block: 13px; border-top: 1px solid #3b3c3f; color: #b9bbc0; font-size: 10px; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #ff6572; outline-offset: 3px; }

@media (max-width: 900px) {
  .container { width: min(100% - 40px, var(--content-width)); }
  .header-inner { min-height: 70px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px 20px; flex-direction: column; align-items: stretch; gap: 0; background: #0c0d0f; border-bottom: 1px solid #38393b; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.nav-donate) { padding: 12px 5px; border-bottom: 1px solid #292a2d; }
  .primary-nav .nav-donate { margin-top: 12px; text-align: center; }
  .hero { min-height: 440px; }
  .hero-image { background-position: 58% center; }
  /* .hero-shade { background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.65) 52%, rgba(0,0,0,.22)); } */
  .events-layout, .programs-layout { grid-template-columns: 1fr; gap: 25px; }
  .event-grid, .program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .social-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .brand-mark { width: 31px; font-size: 36px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 8px; }
  .hero { min-height: 500px; align-items: end; }
  .hero-image { background-position: 62% center; }
  /* .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.97) 0%, rgba(0,0,0,.82) 43%, rgba(0,0,0,.18) 100%); } */
  .hero-content { padding-block: 42px 38px; }
  .hero-kicker { font-size: 9px; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(39px, 11vw, 54px); }
  .hero-description { max-width: 440px; font-size: 14px; }
  .mission, .events, .programs { padding-block: 34px; }
  .mission-grid { grid-template-columns: 1fr; gap: 24px; }
  .mission-photo { height: 220px; }
  .mission-copy h2, .section-intro h2, .support h2 { font-size: 32px; }
  .event-grid { grid-template-columns: 1fr; gap: 15px; }
  .event-card { display: grid; grid-template-columns: 38% 1fr; }
  .event-card > img { height: 100%; min-height: 150px; }
  .event-card-body { padding: 14px; }
  .event-card h3 { font-size: 17px; }
  .program-grid { grid-template-columns: 1fr; gap: 13px; }
  .program-card { display: grid; grid-template-columns: 38% 1fr; align-items: stretch; }
  .program-card img { height: 100%; min-height: 130px; }
  .program-card div { padding: 16px 14px; align-self: center; }
  .support { min-height: 310px; align-items: end; }
  .support-photo { background-position: 60% center; }
  .support-shade { background: linear-gradient(0deg, rgba(0,0,0,.96), rgba(0,0,0,.78) 60%, rgba(0,0,0,.2)); }
  .support-content { padding-block: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .newsletter form { flex-direction: column; align-items: flex-start; }
  .newsletter input { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-bottom div { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
