/* Iris and Hubert Allen Scholarship Fund, Inc. — site styles */

:root {
  --navy: #0C2448;        /* ring, wordmark, headers; type on cream/white */
  --navy-deep: #001848;   /* footer, dark bar */
  --iris: #563D9A;        /* flower, accents ONLY — never body text */
  --iris-light: #A29CD1;  /* hover, washes */
  --gold: #D3A82B;        /* borders, EST., labels on navy */
  --gold-soft: #E4C054;   /* highlights */
  --slate: #606C84;       /* secondary text */
  --cream: #F4F1E8;       /* page background */
  --white: #FFFFFF;       /* seal center, light nav */

  --ink: var(--navy);
  --ink-soft: #1A335C;
  --muted: var(--slate);
  --paper: var(--white);
  --rule: color-mix(in srgb, var(--gold) 38%, var(--cream));
  --placeholder-bg: color-mix(in srgb, var(--gold-soft) 22%, var(--cream));
  --placeholder-edge: var(--gold);
  --focus: var(--navy);
  --shadow: 0 18px 40px rgba(12, 36, 72, 0.08);
  --radius: 2px;
  --measure: 40rem;
  --wide: 72rem;
  --header-h: 4.75rem;
  --font-display: "Fraunces", "Liberation Serif", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Liberation Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--navy);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(211, 168, 43, 0.10), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(86, 61, 154, 0.06), transparent 45%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--iris) 45%, transparent);
}

a:hover {
  color: var(--iris);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

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

.wrap {
  width: min(calc(100% - 2.5rem), var(--wide));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(calc(100% - 2.5rem), 44rem);
}

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid #E4DDD0; /* cream-on-cream hairline */
}

.site-header__inner {
  width: min(calc(100% - 2.5rem), var(--wide));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.wordmark:hover {
  color: var(--navy);
  text-decoration: none;
  opacity: 0.92;
}

.wordmark__lockup {
  height: 3.5rem; /* 56px — header, not a banner */
  width: auto;
  max-width: min(18rem, 62vw);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--navy) 18%, var(--cream));
  background: var(--white);
  color: var(--navy);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
}

.nav-toggle__bars {
  display: block;
  width: 1.1rem;
  height: 0.7rem;
  margin: 0 auto;
  background:
    linear-gradient(var(--navy), var(--navy)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) 0 100% / 100% 2px no-repeat;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background:
    linear-gradient(var(--navy), var(--navy)) 0 50% / 100% 2px no-repeat;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
}

.site-nav a:hover {
  color: var(--navy);
  background: color-mix(in srgb, var(--iris-light) 28%, transparent);
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.site-nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  margin-left: 0.35rem;
}

.site-nav a.nav-cta:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.site-nav a.nav-cta[aria-current="page"] {
  box-shadow: none;
  background: var(--navy-deep);
}

/* Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  overflow: hidden;
}

.hero__grid {
  width: min(calc(100% - 2.5rem), var(--wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: clamp(1.15rem, 2vw, 1.32rem);
  color: var(--ink-soft);
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
}

.hero__art {
  justify-self: end;
  width: min(100%, 18rem);
}

.hero__art img {
  width: 100%;
  height: auto;
}

/* Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--navy-deep);
  color: var(--white);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: color-mix(in srgb, var(--navy) 35%, var(--gold));
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--navy-deep);
  text-decoration: none;
}

/* Sections
   ------------------------------------------------------------------ */
main {
  flex: 1;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--paper {
  background: var(--white);
  border-block: 1px solid var(--rule);
}

.section--forest {
  background: var(--navy-deep);
  color: var(--cream);
}

.section--forest h2,
.section--forest .lede,
.section--forest p {
  color: var(--cream);
}

.section--forest .kicker {
  color: var(--gold);
}

.section--forest a {
  color: var(--gold-soft);
  text-decoration-color: color-mix(in srgb, var(--gold-soft) 45%, transparent);
}

.section--forest a:hover {
  color: var(--white);
}

.section--forest .btn--ghost {
  color: var(--cream);
  border-color: color-mix(in srgb, var(--cream) 35%, transparent);
}

.section--forest .btn--ghost:hover {
  background: color-mix(in srgb, var(--white) 10%, transparent);
  color: var(--white);
}

.section__head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section h2,
.page-body h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section.section--forest h2,
.section.section--forest .lede,
.section.section--forest p {
  color: var(--cream);
}

.section h3,
.page-body h3 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.35rem;
  color: var(--navy);
}

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.prose p,
.page-body p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.prose p:last-child,
.page-body p:last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.4rem 1.55rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.28rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.rule {
  width: 3rem;
  height: 2px;
  margin: 0 0 1.25rem;
  background: var(--gold);
  border: 0;
}

/* Page interior
   ------------------------------------------------------------------ */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4.25rem) 0 0.5rem;
}

.page-hero p {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.page-body {
  padding: 2rem 0 4.5rem;
}

.page-body .wrap {
  width: min(calc(100% - 2.5rem), 46rem);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.4rem 1.35rem;
}

.panel h3 {
  margin-top: 0;
}

.address {
  font-style: normal;
  line-height: 1.55;
}

.address strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.15rem;
}

dl.meta {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 0.55rem 1rem;
  margin: 0;
}

dl.meta dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: 0.2rem;
}

dl.meta dd {
  margin: 0;
}

/* Placeholders — clearly labeled unknowns
   ------------------------------------------------------------------ */
.notice {
  border: 1px dashed var(--placeholder-edge);
  background: var(--placeholder-bg);
  padding: 1.25rem 1.3rem;
  margin: 1.5rem 0;
}

.notice__label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iris);
}

.notice p {
  margin: 0 0 0.7rem;
  max-width: none;
}

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

.notice--quiet {
  background: color-mix(in srgb, var(--paper) 70%, var(--cream));
}

/* Recipients / awards
   ------------------------------------------------------------------ */
.award-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.award {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.7rem 1.45rem 1.5rem;
  min-height: 14rem;
  display: flex;
  flex-direction: column;
}

.award--lead {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gold-soft) 28%, var(--paper)), var(--paper) 55%);
  border-color: color-mix(in srgb, var(--gold) 55%, var(--rule));
}

.award__cycle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.award__amount {
  margin: 1.1rem 0 0.35rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 650;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: lining-nums;
}

.award__name {
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--navy);
}

.award__note {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.past-flag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Quote / purpose
   ------------------------------------------------------------------ */
.purpose {
  margin: 1.75rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 3px solid var(--gold);
}

.purpose p {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--navy);
}

/* Donate
   ------------------------------------------------------------------ */
.mail-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
}

.mail-block .address {
  font-size: 1.15rem;
}

.fineprint {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 40rem;
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  margin-top: auto;
  background: var(--navy-deep);
  color: var(--cream);
  padding: 3rem 0 1.6rem;
}

.site-footer a {
  color: var(--cream);
  text-decoration-color: color-mix(in srgb, var(--cream) 40%, transparent);
}

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

.site-footer a[href^="mailto:"] {
  color: var(--gold);
  text-decoration-color: color-mix(in srgb, var(--gold) 40%, transparent);
}

.site-footer a[href^="mailto:"]:hover {
  color: var(--gold-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem 1.5rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer__lockup {
  height: 3.5rem;
  width: auto;
  max-width: min(18rem, 100%);
}

.footer__mark {
  width: 3.25rem;
  height: 3.25rem;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.3;
}

.footer__legal {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
}

.site-footer h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer address {
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--cream);
}

.footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav a {
  display: inline-block;
  padding: 0.18rem 0;
  text-decoration: none;
  font-weight: 600;
  color: var(--cream);
}

.footer__nav a:hover {
  color: var(--gold);
}

.footer__bottom {
  width: min(calc(100% - 2.5rem), var(--wide));
  margin: 2.25rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--cream) 70%, var(--slate));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

/* 404
   ------------------------------------------------------------------ */
.empty-state {
  padding: 5rem 0 6rem;
  text-align: left;
}

/* Responsive
   ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .hero__grid,
  .cards,
  .award-grid,
  .footer__grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero__art {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 0.6rem 1.25rem 1rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a,
  .site-nav a.nav-cta {
    display: block;
    margin: 0;
    padding: 0.75rem 0.5rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  dl.meta {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  dl.meta dt {
    margin-top: 0.65rem;
  }
}

@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .wrap,
  .site-header__inner,
  .hero__grid,
  .footer__bottom,
  .page-body .wrap {
    width: min(calc(100% - 1.75rem), var(--wide));
  }
  .wordmark__lockup {
    height: 3rem; /* 48px */
    max-width: min(14.5rem, 68vw);
  }
  .footer__lockup {
    height: 3rem;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .hero__actions,
  .site-footer,
  .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
}
