/* ============================================================
   Oʻahu ʻOhana Collective
   Design system: cannery-label / crate-stamp — the printed
   language of Hawaiʻi's food industry (pineapple & sugar label
   art, produce-crate stencils, inspection stamps) repurposed
   for a food-RESCUE nonprofit. Ink, kraft paper, and stamped
   grade-marks stand in for the receipts and agreements the org
   actually produces.
   ============================================================ */

:root {
  /* -- Light (kraft paper / daylight warehouse) -- */
  --paper: #eee7d3;
  --paper-panel: #f8f3e6;
  --paper-line: #d9cdac;
  --ink: #251f15;
  --ink-soft: #59503e;
  --ink-faint: #8a8065;

  --teal: #146b62;
  --teal-strong: #0d4c46;
  --teal-tint: #dcebe6;

  --stamp: #b23e26;
  --stamp-strong: #8f2f1c;

  --gold: #c99a34;
  --gold-strong: #a67c22;

  --radius-card: 4px;
  --radius-pill: 999px;
  --max: 1160px;

  --shadow-card: 0 1px 0 rgba(37, 31, 21, 0.05), 0 10px 24px -14px rgba(37, 31, 21, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1710;
    --paper-panel: #262019;
    --paper-line: #3c3424;
    --ink: #ede4cf;
    --ink-soft: #c3b89e;
    --ink-faint: #8f8368;

    --teal: #3fa295;
    --teal-strong: #2c7c71;
    --teal-tint: #223330;

    --stamp: #e2704f;
    --stamp-strong: #c65a3a;

    --gold: #dcb04d;
    --gold-strong: #c99a34;

    --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.2), 0 14px 28px -16px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --paper: #1c1710;
  --paper-panel: #262019;
  --paper-line: #3c3424;
  --ink: #ede4cf;
  --ink-soft: #c3b89e;
  --ink-faint: #8f8368;

  --teal: #3fa295;
  --teal-strong: #2c7c71;
  --teal-tint: #223330;

  --stamp: #e2704f;
  --stamp-strong: #c65a3a;

  --gold: #dcb04d;
  --gold-strong: #c99a34;

  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.2), 0 14px 28px -16px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: 'Roboto Slab', Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-family: 'Bevan', 'Roboto Slab', Georgia, serif; font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: var(--teal-strong); }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-strong);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
}
.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand-mark-link {
  display: block;
  flex: none;
}
.brand-mark {
  width: 115px;
  height: 115px;
  flex: none;
  display: block;
}
.brand-text-link {
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.3rem, 4.4vw, 3.4rem);
  text-align: center;
  white-space: nowrap;
}
.brand-text em { color: var(--stamp); font-style: normal; }
.mobile-break { display: none; }

@media (max-width: 759px) {
  .brand-text-link {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.05;
  }
  .mobile-break { display: block; content: ""; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav {
  display: flex;
  justify-content: center;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  padding: 12px 24px;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.main-nav a:hover { color: var(--teal-strong); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (min-width: 760px) {
  .brand-mark { width: 135px; height: 135px; }
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--stamp);
  color: #fff9ee;
}
.btn-primary:hover { background: var(--stamp-strong); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* -------------------- Stamp / eyebrow tag -------------------- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--teal-strong);
  border: 1.5px solid currentColor;
  border-radius: 3px;
  padding: 3px 10px;
  transform: rotate(-1.2deg);
  margin-bottom: 16px;
}
.hero .eyebrow { color: var(--gold); }
.eyebrow.center { display: table; margin-left: auto; margin-right: auto; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  background: var(--teal-strong);
  color: #fdf7e8;
  padding: 96px 0 84px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: #fdf7e8; }
.hero-sub { color: rgba(253, 247, 232, 0.86); font-size: 1.08rem; max-width: 600px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn-secondary { color: #fdf7e8; border-color: rgba(253, 247, 232, 0.55); }
.hero .btn-secondary:hover { background: rgba(253, 247, 232, 0.14); color: #fdf7e8; }

/* -------------------- Status banner (notice ticket) -------------------- */
.status-banner {
  background: var(--gold);
  color: #2c2109;
  font-size: 0.92rem;
  padding: 14px 0;
  border-bottom: 2px solid var(--ink);
}
.status-banner p { margin: 0; color: inherit; max-width: none; }
.status-banner strong { font-family: 'JetBrains Mono', monospace; }

/* -------------------- Sections -------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-panel); }
.center { text-align: center; }
h2.center { max-width: 700px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.05rem; max-width: 600px; margin: 0 auto 40px; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.two-col.reverse { grid-template-columns: 0.9fr 1.1fr; }
.two-col.reverse > *:first-child { order: 2; }

.stat-card, .benefits-visual {
  background: var(--paper-panel);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.stat-card h3 { color: var(--teal-strong); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.06em; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.numbered-list {
  padding-left: 20px;
  display: grid;
  gap: 14px;
  color: var(--ink-soft);
}
.numbered-list strong { color: var(--ink); }

/* -------------------- Cards -------------------- */
.cards {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}
.three-up { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper-panel);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--ink-faint);
  border-radius: var(--radius-pill);
  color: var(--teal-strong);
  margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; }
.link-arrow {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  text-decoration: none;
  color: var(--stamp-strong);
}

.benefits-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.benefit-pill {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 12px 18px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--teal-strong);
  text-align: center;
}

.partner-grid { grid-template-columns: repeat(4, 1fr); }
.partner-card.placeholder {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-panel);
  border: 2px dashed var(--paper-line);
  border-radius: var(--radius-card);
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  padding: 12px;
}

/* -------------------- FAQ -------------------- */
.faq-item {
  background: var(--paper-panel);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: 'Roboto Slab', serif;
  font-size: 1.02rem;
}
.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* -------------------- Donate -------------------- */
.donate-status {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--stamp-strong);
  border: 1.5px dashed var(--stamp);
  padding: 4px 10px;
  border-radius: 3px;
  margin: 4px 0 20px;
}
.notify-form { max-width: 480px; }
.notify-row { display: flex; gap: 10px; margin-top: 8px; }
.notify-row input {
  flex: 1;
  font: inherit;
  padding: 10px 12px;
  border: 1.5px solid var(--paper-line);
  border-radius: 3px;
  background: var(--paper-panel);
  color: var(--ink);
}
.notify-form label { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }

.donate-card {
  background: var(--paper-panel);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.donate-card-sub { font-size: 0.88rem; color: var(--ink-faint); margin-bottom: 18px; }
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.amount-btn {
  font: inherit;
  font-weight: 700;
  padding: 14px 8px;
  border: 1.5px solid var(--paper-line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink-faint);
  cursor: not-allowed;
}
.donate-cta { width: 100%; text-align: center; opacity: 0.6; cursor: not-allowed; }
.donate-cta:hover { transform: none; }
.donate-fineprint { font-size: 0.8rem; color: var(--ink-faint); margin: 14px 0 0; }

/* -------------------- Contact -------------------- */
.cta-band { background: var(--paper-panel); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.contact-form {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 6px;
}
.contact-form label { font-weight: 700; font-size: 0.85rem; margin-top: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1.5px solid var(--paper-line);
  border-radius: 3px;
  background: var(--paper-panel);
  color: var(--ink);
}
.contact-form button { margin-top: 16px; justify-self: start; }
.form-note { font-size: 0.88rem; color: var(--teal-strong); min-height: 1.2em; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 32px 0;
}
.footer-inner { text-align: center; }
.footer-tagline { font-family: 'Roboto Slab', serif; font-style: italic; opacity: 0.75; margin-top: 4px; }
.site-footer p { color: inherit; margin: 0.2em 0; max-width: none; }

/* -------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse > *:first-child { order: 0; }
  .three-up { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}
