/* Puna Rising Ohana · Youth Mentorship
   Palette sampled from the Puna Rising Ohana logo: the sunset glow
   (peach to coral), the ember-red of the lettering, and the palm-frond brown. */
:root {
  --page: #FFFFFF;
  --surface: #FFFFFF;
  --sand: #FCEDDD;      /* pale glow behind the sun */
  --peach: #F7D0A8;     /* the turtle's head, the brightest sky */
  --coral: #CC806A;     /* "RISING" */
  --sunset: #A8513F;    /* coral deepened for text contrast on white */
  --ember: #793225;     /* deepest red in the lettering */
  --palm: #492D22;      /* palm-frond silhouettes */
  --ink: #492D22;
  --ink-soft: #7D574F;  /* "PUNA" */
  --line: #EBD3C3;

  --display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 5vw, 2.75rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--ember); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sunset); }
:focus-visible { outline: 3px solid var(--sunset); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* ---------- Header / footer ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 0.75rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--display); font-stretch: 118%; font-weight: 820;
  font-size: var(--step-1); line-height: 1.1; color: var(--ink); text-decoration: none;
}
.brand img { display: block; height: 72px; width: auto; }
.brand__sub { font-family: var(--body); font-weight: 700; font-size: var(--step-0); color: var(--ink-soft); padding-left: 0.75rem; border-left: 1px solid var(--line); }
@media (max-width: 30rem) { .brand img { height: 52px; } }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding-block: 0.35rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ember); }
.nav a[aria-current="page"] { border-color: var(--sunset); }

.site-footer { margin-top: 5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--step--1); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.5rem 2.5rem; }
.site-footer p { margin: 0; }

/* ---------- Home hero ---------- */
/* One bold moment: the headline carries the logo's sunset,
   peach at the top fading to coral, set on palm-frond brown. */
.hero-band { background: var(--palm); color: var(--sand); }
.hero-band .hero__title {
  background: linear-gradient(180deg, var(--peach) 10%, #E1A98E 55%, var(--coral) 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: 0.1em; /* keep descenders inside the gradient */
}
.hero-band .hero__lede { color: var(--sand); }
.hero-band .shelf ul { border-top-color: var(--peach); }
.hero-band .shelf a { color: var(--sand); border-bottom-color: rgba(252, 237, 221, 0.22); }
.hero-band .shelf__count { color: var(--peach); }
.hero-band .shelf a:hover .shelf__label, .hero-band .shelf a:focus-visible .shelf__label { color: var(--peach); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.hero-band :focus-visible { outline-color: var(--peach); }
.hero { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.hero__title {
  font-size: clamp(2.4rem, 8vw, 5rem);
  overflow-wrap: break-word;
  font-stretch: 104%;
  font-weight: 830;
  line-height: 0.94;
  letter-spacing: -0.02em;
  max-width: 13ch;
  margin: 0;
}
.hero__lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 36ch; margin: 1.25rem 0 0; }

/* The shelf: the library's contents, one big line per type */
.shelf ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.shelf a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0.1rem; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.shelf__label { font-family: var(--display); font-stretch: 125%; font-weight: 720; font-size: clamp(1.35rem, 3.2vw, 1.9rem); line-height: 1.1; }
.shelf__count { font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.shelf a:hover .shelf__label, .shelf a:focus-visible .shelf__label { color: var(--sunset); }

@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 4rem; }
  .hero__title { font-stretch: 108%; }
}
.hero--platform { grid-template-columns: 1fr; }

/* ---------- Sections ---------- */
.band { margin-top: 3.5rem; }
.band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.band__head h2 { margin: 0; }
.band__head a { font-weight: 700; }
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0.5rem; }
.page-head p { color: var(--ink-soft); max-width: 60ch; margin: 0; }
.empty-note { color: var(--ink-soft); }


.programs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.programs a { display: block; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.programs a:hover { border-color: var(--coral); }
.programs strong { display: block; font-family: var(--display); font-stretch: 112%; font-size: var(--step-1); }
.programs span { color: var(--ink-soft); }

/* ---------- Cards ---------- */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
}
.card[hidden] { display: none; }
.card__link {
  display: flex; flex-direction: column; gap: 0.35rem; height: 100%;
  padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
}
.card__link:hover { border-color: var(--coral); color: var(--ink); }
.card__link:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.card__type { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.card__title { font-family: var(--display); font-stretch: 106%; font-weight: 700; font-size: var(--step-1); line-height: 1.2; }
.card__summary, .card__meta { color: var(--ink-soft); font-size: 0.95rem; }
.card__meta { margin-top: auto; padding-top: 0.25rem; }
.card__amount { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: var(--step-2); color: var(--ember); line-height: 1.1; }

.card__thumb {
  display: block; aspect-ratio: 16 / 9; margin: -1rem -1rem 0.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--palm) var(--thumb) center / cover no-repeat;
  position: relative;
}
.card__thumb::after {
  content: ""; position: absolute; left: 0.75rem; bottom: 0.75rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--sunset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 1.4rem no-repeat;
}
.card__cal {
  align-self: flex-start; display: grid; justify-items: center; min-width: 3.5rem;
  margin-bottom: 0.4rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--palm);
}
.card__cal span { width: 100%; text-align: center; background: var(--palm); color: var(--peach); font-size: var(--step--1); font-weight: 700; padding: 0.1rem 0.5rem; }
.card__cal strong { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1.2; padding: 0.1rem 0.5rem 0.2rem; }

.badge {
  display: inline-block; margin-left: 0.25rem; padding: 0.05rem 0.55rem;
  background: var(--peach); color: var(--ink); border-radius: 999px;
  font-size: var(--step--1); font-weight: 700; white-space: nowrap;
}
.facts .badge { border: 1px solid var(--coral); }
.badge--calm { background: var(--sand); border: 1px solid var(--line); }

/* ---------- Library filters ---------- */
.filters { display: grid; gap: 1rem; margin: 1.5rem 0 1rem; }
.filters[hidden] { display: none; }
.filters__search input {
  width: 100%; max-width: 32rem; font: inherit; padding: 0.7rem 0.9rem;
  border: 1px solid var(--ink-soft); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; margin: 0; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 0.4rem 0.95rem; border: 1px solid var(--ember); border-radius: 999px;
  font-weight: 700; color: var(--ember); background: var(--surface);
}
.chips input:checked + span { background: var(--palm); border-color: var(--palm); color: var(--sand); }
.chips input:focus-visible + span { outline: 3px solid var(--sunset); outline-offset: 2px; }
.chips input:hover + span { border-color: var(--palm); }
.filters__selects { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.filters__selects label { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.filters__selects select {
  font: inherit; font-weight: 400; padding: 0.45rem 0.6rem;
  border: 1px solid var(--ink-soft); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.count { color: var(--ink-soft); margin: 0 0 0.75rem; }
.empty { padding: 2rem 0; }
.empty[hidden] { display: none; }

/* ---------- Resource page ---------- */
.resource { max-width: 48rem; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.crumbs { display: flex; gap: 0.5rem; font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 1rem; }
.resource__title { font-size: clamp(2rem, 6vw, 3.25rem); }
.lede { font-size: var(--step-1); color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 60ch; }
.prose { max-width: 65ch; }
.prose h2 { font-size: var(--step-1); margin-top: 2rem; }
.notice { padding: 0.75rem 1rem; background: var(--sand); border-left: 4px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; }
.notice--closed { border-left-color: var(--ember); }
.fine { font-size: var(--step--1); color: var(--ink-soft); }

.facts { display: grid; gap: 0.75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: 0 0 1.5rem; padding: 1.25rem; background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); }
.facts dt { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 700; }
.files { padding-left: 1.2rem; }

.button {
  display: inline-block; padding: 0.8rem 1.3rem; border: 0; border-radius: var(--radius);
  background: var(--sunset); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--ember); color: #fff; }
.button--quiet { background: var(--surface); color: var(--ember); border: 1px solid var(--ember); }
.button--quiet:hover { background: var(--ember); color: #fff; }

.yt {
  position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.5rem;
  border-radius: var(--radius); overflow: hidden;
  background: var(--palm) var(--thumb) center / cover no-repeat;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Ccircle cx='36' cy='36' r='36' fill='%23A8513F'/%3E%3Cpath fill='white' d='M29 22v28l22-14z'/%3E%3C/svg%3E") center / 4.5rem no-repeat;
}
.yt__play:hover { background-size: 5rem; }
.yt noscript a { position: absolute; left: 1rem; bottom: 1rem; color: #fff; }

.related { margin-top: 3.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .yt__play { transition: background-size 0.15s ease; }
}

/* ---------- Program page ---------- */
.hero__eyebrow { margin: 0 0 1rem; color: var(--peach); font-weight: 700; font-size: var(--step-0); max-width: 40ch; }
.hero-band .hero__title--program { font-size: clamp(2.2rem, 6.4vw, 4.25rem); max-width: 16ch; line-height: 0.98; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-band .button { background: var(--peach); color: var(--palm); }
.hero-band .button:hover { background: #fff; color: var(--palm); }
.button--ghost, .hero-band .button--ghost { background: transparent; color: var(--sand); border: 1px solid rgba(252,237,221,.5); }
.hero-band .button--ghost:hover { background: rgba(252,237,221,.12); color: #fff; }
.factbar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(252,237,221,.22); border: 1px solid rgba(252,237,221,.22); border-radius: var(--radius); overflow: hidden; align-self: end; }
.factbar li { background: var(--palm); padding: 1.1rem 1rem; display: grid; gap: 0.15rem; }
.factbar strong { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--peach); line-height: 1.05; }
.factbar span { color: var(--sand); font-size: var(--step--1); }

.prog { margin-top: clamp(3rem, 7vw, 4.5rem); }
.prog--about > div { max-width: 46rem; }
.kicker { margin: 0 0 0.4rem; color: var(--sunset); font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; }
.prog__big { font-size: var(--step-1); line-height: 1.5; }
.leaders { font-weight: 700; border-left: 4px solid var(--coral); padding-left: 1rem; }
.prog__sub { margin-top: 2.5rem; }
.fine { font-size: var(--step--1); color: var(--ink-soft); }

.phases { list-style: none; margin: 1.25rem 0 0.75rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.phase { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--coral); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.phase__when { margin: 0 0 0.25rem; color: var(--sunset); font-weight: 700; font-size: var(--step--1); }
.phase h3 { font-size: var(--step-1); margin: 0 0 0.6rem; }
.phase ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }

.offer { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-top: 1.25rem; }
.offer__item { background: var(--sand); border-radius: var(--radius); padding: 1.25rem; }
.offer__item h3 { font-size: var(--step-1); margin: 0 0 0.4rem; }
.offer__item p { margin: 0; }
.highlights { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.25rem 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.highlights > div { background: var(--surface); padding: 1.1rem 1.25rem; }
.highlights dt { font-weight: 700; color: var(--ember); margin-bottom: 0.25rem; }
.highlights dd { margin: 0; }

.mark-band { background: var(--sand); margin-top: clamp(3rem, 7vw, 4.5rem); padding-block: clamp(2rem, 5vw, 3rem); }
.mark-band ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; font-size: var(--step-1); max-width: 55ch; }

.apply { display: grid; gap: 1.5rem; margin-top: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.involved { margin: 0; display: grid; gap: 0.9rem; }
.involved dt { font-weight: 700; display: inline; }
.involved dd { display: inline; margin: 0 0 0 0.25rem; }
.apply__card { background: var(--palm); color: var(--sand); border-radius: var(--radius); padding: 1.5rem; }
.apply__card h3 { color: var(--peach); font-size: var(--step-2); margin: 0 0 0.6rem; }
.apply__card a:not(.button) { color: var(--peach); }
.apply__card .button { background: var(--peach); color: var(--palm); margin-top: 0.5rem; }
.apply__card .button:hover { background: #fff; color: var(--palm); }
.apply__card .fine { color: var(--sand); }
.closing { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: var(--step-2); color: var(--ember); margin: 2rem 0 0; }

/* ---------- Content-first home ---------- */
.hero--content { grid-template-columns: 1fr !important; }
.hero--content .hero__title { max-width: 17ch; }
.hero--content .hero__lede { max-width: 44ch; }

.tiles { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.tile { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--coral); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--coral); border-top-color: var(--sunset); color: var(--ink); }
.tile__label { font-family: var(--display); font-stretch: 112%; font-weight: 780; font-size: var(--step-1); line-height: 1.15; }
.tile:hover .tile__label { color: var(--sunset); }
.tile__about { color: var(--ink-soft); font-size: .95rem; }
.tile__count { margin-top: auto; padding-top: .5rem; font-weight: 700; font-size: var(--step--1); color: var(--sunset); }

/* ---------- The one sign-up section ---------- */
.signup { margin-top: clamp(3.5rem, 8vw, 5rem); padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--sand); }
.signup .wrap { display: grid; gap: 2rem; }
.signup__head h2 { font-size: var(--step-3); margin-bottom: .25rem; }
.signup__tag { margin: 0; font-weight: 700; color: var(--ember); }
.signup h3 { font-size: var(--step-1); margin: 0 0 .75rem; }
.signup h3:not(:first-child) { margin-top: 1.75rem; }
.signup__top { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 56rem) { .signup__top { grid-template-columns: 1.5fr 1fr; gap: 2.5rem; } }
.signup__about p { margin: 0 0 .75rem; }
.facts-row { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.facts-row li { background: var(--surface); border-radius: var(--radius); padding: .75rem .9rem; display: grid; }
.facts-row strong { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.35rem; color: var(--ember); line-height: 1.1; }
.facts-row span { font-size: var(--step--1); color: var(--ink-soft); }
.signup__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: start; padding-top: 2rem; border-top: 1px solid var(--line); }
.phases--compact { grid-template-columns: 1fr; margin-top: 0; }
.phases--compact .phase { padding: 1rem 1.1rem; }
.phases--compact h4 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 .5rem; }
.deflist { margin: 0; display: grid; gap: .7rem; }
.deflist dt { font-weight: 700; color: var(--ember); }
.deflist dd { margin: 0; }
.plain { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.signup .closing { margin: 0; }
