/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  /* Base */
  --white: #ffffff;
  --surface: #f5faf2;      /* soft mint-white, for alternating section bands */
  --surface-deep: #eaf4e4; /* slightly deeper mint, for cards on --surface */
  --ink: #2b2230;          /* warm plum-black, pulled from the logo outline */
  --ink-soft: #6d6274;     /* muted secondary text */
  --line: #e7e1de;         /* hairline borders on white */

  /* Brand accents, sampled from the TOSS logo artwork */
  --purple: #6f3ba6;
  --purple-deep: #4b2470;
  --purple-tint: #f1e9fa;
  --green: #3e7a3f;         /* accessible text/icon green */
  --green-pastel: #c7e4bd;  /* pastel fill green, matches the mascot's shell */
  --green-pastel-deep: #9dcd91;
  --gold: #c08f2e;          /* accessible text/icon gold */
  --gold-pastel: #f3ddA0;   /* pastel fill gold, matches the mascot's sparkle */

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section-space: 120px;
  --header-height: 76px;
  --radius: 20px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --duration: 200ms;
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --section-space: 72px;
    --header-height: 64px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

body.menu-open {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}

::selection {
  background: var(--purple);
  color: var(--white);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
}

.section--tint {
  background: var(--surface);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.display {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  letter-spacing: -0.01em;
}

.h3 {
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.lead {
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-soft);
}

/* Underline that draws in on hover */
.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--duration) var(--ease);
}

.link:hover,
.link[aria-current="page"] {
  background-size: 100% 1px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1.5px solid var(--purple);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--purple);
  cursor: pointer;
  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: var(--purple-deep);
  border-color: var(--purple-deep);
}

.btn--ghost {
  border-color: currentColor;
}

.btn--ghost:hover {
  background: var(--purple);
  color: var(--white);
}

.btn--on-dark {
  border-color: var(--gold-pastel);
  color: var(--white);
}

.btn--on-dark:hover {
  background: var(--gold-pastel);
  color: var(--ink);
  border-color: var(--gold-pastel);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ==========================================================================
   Header / navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--purple);
}

.wordmark span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.nav__group {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__links {
  display: flex;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav__toggle span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--duration) var(--ease);
}

.nav__toggle span:first-child {
  top: 16px;
}

.nav__toggle span:last-child {
  top: 23px;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav__toggle {
    display: block;
  }

  .nav__group {
    gap: 0;
  }

  .nav__links {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    flex-direction: column;
    gap: 8px;
    padding: 32px var(--gutter);
    background: var(--white);
    font-family: var(--font-heading);
    font-size: 36px;
    letter-spacing: -0.01em;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--duration) var(--ease),
      visibility var(--duration);
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links .link {
    background-size: 0 0;
  }

  .nav__links .link[aria-current="page"] {
    color: var(--purple);
  }

  .nav .btn--sm {
    padding: 9px 16px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Bead-strand divider
   ========================================================================== */
.bead-divider {
  display: block;
  width: 100%;
  height: 34px;
}

@media (max-width: 767px) {
  .bead-divider {
    height: 24px;
  }
}

/* ==========================================================================
   Home: hero
   ========================================================================== */
.hero {
  padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 72px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero__art {
  display: flex;
  justify-content: center;
}

.hero__art img {
  width: 100%;
  max-width: 420px;
}

.hero__copy .display {
  margin-bottom: 24px;
}

.hero__copy .lead {
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hero__location {
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__art {
    order: -1;
  }

  .hero__art img {
    max-width: 280px;
  }
}

/* ==========================================================================
   Mission / description section
   ========================================================================== */
.mission__head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.mission__body {
  display: grid;
  gap: 20px;
  max-width: 68ch;
  font-size: 18px;
  color: var(--ink-soft);
}

.mission__body strong {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Donate + progress section
   ========================================================================== */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
}

.donate-card {
  background: var(--purple);
  color: var(--white);
}

.donate-card .h3 {
  color: var(--white);
  margin-bottom: 14px;
}

.donate-card p {
  color: rgba(255, 255, 255, 0.85);
}

.donate-card__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-list {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.contact-list a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
  transition: border-color var(--duration) var(--ease);
}

.contact-list a:hover {
  border-color: var(--white);
}

.progress-card {
  background: var(--white);
  border: 1.5px solid var(--line);
}

.progress-card .h3 {
  margin-bottom: 4px;
}

.progress-amount {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--purple);
  line-height: 1;
}

.progress-goal {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 15px;
}

.progress-bar {
  margin-top: 32px;
}

.progress-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: var(--surface-deep);
  overflow: hidden;
}

.progress-fill {
  position: relative;
  height: 100%;
  width: var(--progress, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-pastel-deep), var(--green));
  transition: width 900ms var(--ease);
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-pastel);
  border: 2px solid var(--white);
  transform: translate(50%, -50%);
  box-shadow: 0 0 0 1.5px var(--green);
}

.progress-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .donate-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   About page
   ========================================================================== */
.page-header {
  padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 6vw, 64px);
}

.page-header .display {
  max-width: 16ch;
}

.page-header .lead {
  margin-top: 20px;
}

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
}

.split__body {
  display: grid;
  gap: 22px;
  font-size: 18px;
}

.split__body p {
  color: var(--ink-soft);
}

.split__body p:first-child {
  color: var(--ink);
}

.program-note {
  margin-top: 28px;
  padding: 24px 26px;
  background: var(--purple-tint);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--purple);
}

.program-note p {
  color: var(--ink);
  font-size: 16px;
}

.program-note p + p {
  margin-top: 10px;
}

.photo-banner {
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.photo-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.photo-caption a {
  border-bottom: 1px solid currentColor;
}

/* Founders */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.founder-card {
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border-radius: var(--radius);
}

.founder-card__top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
}

.founder-card__name {
  margin-bottom: 2px;
}

.founder-card__role {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

.founder-card p.bio {
  color: var(--ink-soft);
  font-size: 16px;
}

@media (max-width: 767px) {
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .founders-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact block (reused on home + about)
   ========================================================================== */
.contact-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius);
}

.contact-band__items {
  display: grid;
  gap: 12px;
  font-size: 16px;
}

.contact-band__items a {
  color: var(--purple);
}

@media (max-width: 767px) {
  .contact-band {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 56px 0 40px;
  background: var(--ink);
  color: var(--white);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-pastel);
  margin-bottom: 14px;
}

.footer__links {
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.85);
}

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

.footer__tagline {
  margin-top: 14px;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
