/* ==========================================================
   Redding Film Fund — Direction A: "Title Card"
   Mid-century cut-paper / Saul Bass inspired
   ========================================================== */

:root {
  --paper: #f3ebdc;
  --paper-2: #e9dcc4;
  --ink: #1e1b18;
  --ink-soft: #4a433c;
  --teal: #1d6a79;
  --mustard: #e2a72e;
  --tomato: #bf3e2b;
  --olive: #8a972f;

  --display: "League Gothic", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --shadow: 8px 8px 0 var(--ink);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 200;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.program-teal :focus-visible,
.program-tomato :focus-visible,
.partner :focus-visible,
.site-footer :focus-visible { outline-color: var(--paper); }
.program :focus-visible.cta-card { outline-color: var(--ink); outline-offset: 5px; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(3.75rem, 2rem + 7vw, 8.5rem); }
h2 { font-size: clamp(2.75rem, 1.8rem + 4vw, 5.5rem); }

.section-title { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); }

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hl {
  color: var(--tomato);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--tomato);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; transform: none; }

.btn-small { padding: 0.6em 1.2em; font-size: 0.85rem; box-shadow: 3px 3px 0 var(--ink); }

.btn-invert { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 4px 4px 0 var(--mustard); }
.btn-invert:hover { box-shadow: 6px 6px 0 var(--mustard); }

/* ---------- sprocket strip ---------- */
.sprockets {
  height: 34px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='34'%3E%3Crect x='10' y='10' width='16' height='14' rx='3' fill='%23f3ebdc'/%3E%3C/svg%3E") repeat-x center;
}
.sprockets-dark { background-color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 6px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 66px; width: auto; }
.site-header nav { margin-left: auto; }
.nav-list {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding-block: 0.25rem;
  background: linear-gradient(var(--tomato), var(--tomato)) no-repeat left bottom / 0 2px;
  transition: background-size 0.2s ease;
}
.nav-list a:hover,
.nav-list a.is-active { background-size: 100% 2px; }
.nav-list a.is-active { color: var(--tomato); }

@media (max-width: 720px) {
  html { scroll-padding-top: 120px; }
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .header-inner .btn-small { margin-left: auto; }
  .brand img { height: 54px; }
  .site-header nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 6px;
    border-top: 1px solid var(--ink);
  }
  .nav-list { justify-content: space-between; }
  .nav-list a { display: inline-block; font-size: 0.78rem; padding-block: 0.6rem 0.5rem; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.lede {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  max-width: 34ch;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}
.arch {
  position: absolute;
  inset: 6% 6% 0 10%;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--ink);
  z-index: 2;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.shape { position: absolute; display: block; }
.sun {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mustard);
  top: -4%;
  right: -10%;
  z-index: 1;
}
.gnomon {
  width: 16px;
  height: 118%;
  background: var(--teal);
  left: 38%;
  bottom: 4%;
  transform: rotate(26deg);
  transform-origin: bottom center;
  border: 3px solid var(--ink);
  z-index: 1;
}
.dot {
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tomato);
  bottom: 6%;
  right: -4%;
  z-index: 3;
  border: 3px solid var(--ink);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; }
}

/* ---------- mission ---------- */
.mission { padding-block: clamp(4rem, 9vw, 7rem); }
.mission-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.mission-photo {
  margin-top: 1.5rem;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: 0 0 999px 999px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-width: 340px;
}
.mission-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.mission-text .big {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.4;
  font-weight: 500;
  margin-top: 0;
}
.mission-text p { max-width: 62ch; }

.pillars {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2rem;
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}
.pillars li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.pip { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.pip.teal { background: var(--teal); }
.pip.mustard { background: var(--mustard); }
.pip.tomato { background: var(--tomato); }
.pip.olive { background: var(--olive); }

@media (max-width: 860px) {
  .mission-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- program index ---------- */
.program-index {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--paper-2);
  border-block: 2px solid var(--ink);
}
.index-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
.index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 100%;
  padding: 3rem 1.5rem 1.25rem;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.index-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 14px;
  background: var(--accent);
  border-bottom: 3px solid var(--ink);
}
.index-card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.index-card img { height: 150px; width: auto; max-width: 100%; object-fit: contain; }
.index-card .num {
  position: absolute;
  top: 1.4rem;
  left: 1rem;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}
.index-card .label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}
.c-teal { --accent: var(--teal); }
.c-mustard { --accent: var(--mustard); }
.c-tomato { --accent: var(--tomato); }

@media (max-width: 760px) {
  .index-cards { grid-template-columns: 1fr; }
  .index-card img { height: 120px; }
}

/* ---------- program sections ---------- */
.program { padding-block: clamp(4rem, 9vw, 7rem); border-bottom: 2px solid var(--ink); }
.program-teal { background: var(--teal); color: var(--paper); }
.program-mustard { background: var(--mustard); color: var(--ink); }
.program-tomato { background: var(--tomato); color: #fff; }

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.program-grid.reverse .program-copy { order: 2; }
.program-copy p { max-width: 58ch; }

.program-media {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
}
.frame {
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--ink);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-tall { grid-column: 1 / 6; grid-row: 1; aspect-ratio: 4 / 3; }
.frame-wide {
  grid-column: 3 / 7;
  grid-row: 2;
  margin-top: -18%;
  aspect-ratio: 3 / 2;
  border-radius: 0 999px 999px 0;
  position: relative;
}
.program-media.single .frame-tall { grid-column: 1 / -1; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; }

.cta-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem 1rem 1rem;
  max-width: 460px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.cta-card img { width: 110px; height: 90px; object-fit: contain; flex: none; }
.cta-card img.cta-ticket { height: 110px; }
.cta-text { display: flex; flex-direction: column; line-height: 1.35; }
.cta-text strong {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.cta-text span { font-size: 0.95rem; color: var(--ink-soft); }
.cta-text .cta-url {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--tomato);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  .program-grid { grid-template-columns: 1fr; }
  .program-grid.reverse .program-copy { order: 0; }
  .program-media.single .frame-tall { max-width: 420px; }
}
@media (max-width: 420px) {
  .cta-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- partner ---------- */
.partner { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 7vw, 5rem); }
.partner-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.partner h2 { font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem); }
.partner p { max-width: 60ch; margin: 0; opacity: 0.9; }
@media (max-width: 720px) {
  .partner-inner { grid-template-columns: 1fr; }
  .partner-inner img { max-width: 200px; }
}

/* ---------- donate ---------- */
.donate { padding-block: clamp(4rem, 9vw, 7rem); }
.ticket {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  background: var(--tomato);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(2.5rem, 8vw, 5rem);
  -webkit-mask:
    radial-gradient(circle 26px at left center, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 26px at right center, #0000 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle 26px at left center, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 26px at right center, #0000 98%, #000) right / 51% 100% no-repeat;
  position: relative;
}
.ticket::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.ticket p { max-width: 44ch; margin-inline: auto; }
.ticket .btn { margin-top: 1.25rem; position: relative; z-index: 1; }
.ticket .btn-invert { box-shadow: 4px 4px 0 var(--ink); }
.ticket .btn-invert:hover { box-shadow: 6px 6px 0 var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.footer-brand img { width: 200px; margin-bottom: 1.25rem; }
.footer-brand p { margin: 0 0 0.75rem; max-width: 36ch; }
.small { font-size: 0.85rem; opacity: 0.75; }
.footer-col h3 {
  font-size: 1.6rem;
  color: var(--mustard);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }

.social { display: flex !important; gap: 0.75rem !important; margin-bottom: 1.5rem !important; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.social a:hover { background: var(--paper); color: var(--ink); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(243, 235, 220, 0.2);
  font-size: 0.85rem;
  opacity: 0.8;
}
.footer-base p { margin: 0; }
.footer-base a { text-decoration: none; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
