/* THE ASSEFA FOUNDATION — static rebuild of the Squarespace site.
   Values below were measured from the live Squarespace site (Oct 2026). */
/* Fonts are self-hosted (SIL Open Font License) — no Google Fonts dependency. */
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/almarai-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/almarai-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/syne-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #ece4da;          /* main sand background */
  --bg-light: #f6f3ec;    /* lighter cream sections */
  --ink: #36302a;         /* text + dark buttons + footer */
  --cream: #f6f3ec;       /* text on dark */
  --tan: #b9a590;         /* footer buttons */
  --rule: rgba(54, 48, 42, .18);
  --title: "Libre Baskerville", Georgia, serif;
  --head: "Syne", "Helvetica Neue", Arial, sans-serif;
  --body: "Almarai", "Helvetica Neue", Arial, sans-serif;
  --gutter: 4vw;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 400; }
h1 { font-family: var(--head); font-size: clamp(2.4rem, 4.85vw, 4.6rem); line-height: 1.06; letter-spacing: -.02em; }
h2 { font-family: var(--head); font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 1.11; letter-spacing: -.02em; }
h3 { font-family: var(--head); font-size: clamp(1.5rem, 2.7vw, 2.55rem); line-height: 1.14; letter-spacing: -.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 300px; }

.gutter { padding-left: var(--gutter); padding-right: var(--gutter); }
.sec { padding-top: clamp(64px, 9vw, 136px); padding-bottom: clamp(64px, 9vw, 136px); }
.light { background: var(--bg-light); }
.col-narrow { max-width: 486px; }
.col-mid { max-width: 840px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; }
.homepage .site-header { position: absolute; top: 0; left: 0; right: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 var(--gutter); }
.wordmark { font-family: var(--title); font-weight: 700; font-size: clamp(1.05rem, 1.85vw, 1.5rem); letter-spacing: -.02em; text-decoration: none; }
.site-nav { display: flex; gap: clamp(16px, 1.9vw, 26px); align-items: center; }
.site-nav a { text-decoration: none; text-underline-offset: 4px; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: inherit; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 800px) {
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .site-nav { position: fixed; inset: 0; z-index: 55; background: var(--bg); flex-direction: column; justify-content: center; gap: 22px; transform: translateY(-100%); transition: transform .35s ease; }
  .site-nav a { font-family: var(--head); font-size: 2rem; letter-spacing: -.02em; }
  .site-nav.open { transform: none; }
  .nav-open { overflow: hidden; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Buttons (pill) ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 11px; }
.btns.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: min(261px, 100%); min-height: 57px; padding: 0 32px; border-radius: 300px; border: 1px solid var(--ink); font: 400 16px/1 var(--body); text-decoration: none; transition: opacity .2s, background .2s, color .2s; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { opacity: .85; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-tan { background: var(--tan); color: var(--ink); border-color: var(--tan); min-width: 0; min-height: 0; padding: 20px 32px; }
.btn-tan:hover { opacity: .85; }

/* ---------- Home: hero ---------- */
.hero-sec { padding: var(--header-h) var(--gutter) clamp(32px, 4vw, 52px); }
.hero { position: relative; min-height: clamp(560px, 82vw, 1060px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8vw 6vw; overflow: hidden;
  background: linear-gradient(rgba(236,228,218,.3), rgba(236,228,218,.3)), var(--img) center / cover no-repeat, #7d8a6a; }
.hero h1 { font-family: var(--title); text-transform: uppercase; letter-spacing: .02em; line-height: 1.06; color: var(--cream); max-width: 990px; text-shadow: 0 1px 24px rgba(54,48,42,.25); }
.hero .lede { color: var(--cream); font-weight: 700; font-size: clamp(1.05rem, 1.73vw, 1.4rem); max-width: 980px; margin: .4em auto 1.6em; text-shadow: 0 1px 16px rgba(54,48,42,.3); }
.founder-card { width: min(442px, 72%); margin: clamp(48px, 8vw, 112px) auto 0; }

/* ---------- Home: disparity ---------- */
.disparity { display: grid; grid-template-columns: 546fr 634fr; gap: 0; align-items: start; }
.disparity h2 { max-width: 435px; }
.disparity .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.full-bleed img { width: 100%; height: clamp(320px, 58.6vw, 900px); object-fit: cover; }

/* ---------- Home: how we got started ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.story h2 { margin-bottom: 1.6em; }
.story p { margin-bottom: 3.2em; max-width: 435px; }
.story p:last-child { margin-bottom: 0; }
.story img { width: 100%; aspect-ratio: 535 / 789; object-fit: cover; }

/* ---------- Home: help + cta ---------- */
.help-list p { margin-bottom: 1em; }
.help-list a { font-weight: 700; }
.help-list strong { font-weight: 700; }
.cta .btns { margin-top: 2.4em; }
.cta .btn { min-width: min(287px, 100%); }

/* ---------- Two-column page intro (About / Contact) ---------- */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: start; padding-top: 8px; }
.intro-split .text p { max-width: 485px; }
.intro-split .text p + p { margin-top: 3.2em; }
.intro-split img { width: 100%; aspect-ratio: 535 / 752; object-fit: cover; }
.about-intro h1 { text-transform: uppercase; }

/* ---------- About ---------- */
.stack h3 { margin-top: 1.4em; }
.stack h3 + p { margin-top: 1.3em; }
.team { padding-left: 8vw; padding-right: 8vw; }
.team .member { margin-top: 3.4em; }
.team .member h3 { margin-bottom: 1.3em; }
.team .member a { text-underline-offset: 3px; }

/* ---------- Contact form ---------- */
.contact-form { margin-top: 3.4em; max-width: 485px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.contact-form legend, .contact-form label { display: block; font-size: 14px; margin-bottom: 6px; }
.contact-form .req { opacity: .6; font-size: 12px; margin-left: 4px; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 18px; padding: 10px 16px; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .field { margin-bottom: 18px; }
.contact-form .status { margin-top: 14px; min-height: 1.5em; }

/* ---------- Donate ---------- */
.donate-head { text-align: center; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 100px); }
.donate-head h1 { margin-bottom: .6em; }
.donate-head p { max-width: 600px; margin: 0 auto; font-size: 14px; }
.zeffy-wrap { position: relative; width: 100%; height: 1200px; }
.zeffy-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Shop (switched off by default) ---------- */
.banner { padding: clamp(110px, 16vw, 200px) var(--gutter) clamp(70px, 10vw, 130px); color: #fff; text-align: center; background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)), var(--img) center / cover no-repeat, #555; }
.banner h1 { color: #fff; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 24px; }
.product-img { aspect-ratio: 1; background: var(--bg-light); overflow: hidden; margin-bottom: 16px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product h3 { font-size: 1.3rem; margin-bottom: .2em; }
.order { scroll-margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: clamp(64px, 8vw, 100px) var(--gutter) clamp(56px, 7vw, 90px); }
.site-footer a { color: inherit; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 486px) minmax(0, 390px); column-gap: clamp(40px, 12vw, 180px); row-gap: 48px; }
.footer-signup { text-align: center; padding: 0 12px; }
.footer-signup h2 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); margin-bottom: .55em; }
.footer-signup p { font-size: 14px; max-width: 380px; margin: 0 auto 1.6em; }
.signup { display: flex; gap: 10px; justify-content: center; align-items: center; }
.signup input { flex: 1 1 auto; min-width: 0; max-width: 280px; height: 66px; padding: 0 22px; font: inherit; border: 1px solid rgba(0,0,0,.12); background: #fff; color: #000; border-radius: 0; }
.signup-thanks { display: none; }
.signup.done input, .signup.done button { display: none; }
.signup.done .signup-thanks { display: block; }
.footer-contact { grid-column: 1; grid-row: 2; padding-left: 12px; font-size: 14px; }
.footer-contact p { margin: 0 0 1.1em; }
.footer-contact .btn-tan { margin-top: 1em; padding: 14px 36px; font-size: 14px; }
.footer-note { grid-column: 2; grid-row: 2; align-self: center; font-size: 14px; max-width: 390px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .disparity, .disparity .cols, .story, .intro-split { grid-template-columns: 1fr; gap: 28px; }
  .story { gap: 40px; }
  .story p { margin-bottom: 1.4em; }
  .intro-split .text p + p { margin-top: 1.4em; }
  .story figure, .intro-split figure { order: 2; }
  .team { padding-left: var(--gutter); padding-right: var(--gutter); }
  .hero { min-height: 0; padding: 120px 6vw 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact, .footer-note { grid-column: 1; grid-row: auto; }
  .footer-signup { padding: 0; }
  .products { grid-template-columns: 1fr 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .btns .btn { width: 100%; }
  .signup { flex-direction: column; align-items: stretch; }
  .signup input { max-width: none; }
  .products { grid-template-columns: 1fr; }
}
figure { margin: 0; }

/* ---------- Zeffy newsletter embed ---------- */
.zeffy-signup { max-width: 460px; margin: 0 auto; }
.zeffy-signup iframe { width: 100%; border: 0; display: block; }

/* ---------- Board Portal ---------- */
.portal-top { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: start; }
.portal-top .text { max-width: 335px; }
.portal-label { margin-top: 3em; }
.dot-list { list-style: none; padding: 0; margin: 0 0 3em; }
.dot-list li { margin-bottom: 1em; }
.dot-list li::before { content: "• "; }
.portal-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; padding-top: 104px; }
.portal-actions .btn { min-width: 257px; min-height: 60px; text-align: center; line-height: 1.2; }
.portal-logout { font-size: 14px; }
.plan h1 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.plan h3 { margin-top: 1.4em; }
.plan ul { margin: 0 0 1em; padding-left: 40px; max-width: 900px; }
.plan li { margin-bottom: .2em; }

/* Password screen (served by _worker.js) */
.portal-login main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding-top: 40px; padding-bottom: 40px; }
.portal-login .wordmark { margin-bottom: 48px; }
.portal-login h1 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.login-form { display: flex; gap: 10px; margin-top: 18px; width: min(460px, 100%); }
.login-form input { flex: 1; min-width: 0; height: 57px; padding: 0 24px; font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 300px; }
.login-form .btn { min-width: 0; }
.login-error { margin-top: 16px; }

@media (max-width: 800px) {
  .portal-top { grid-template-columns: 1fr; gap: 0; }
  .portal-top .text { max-width: none; }
  .portal-actions { padding-top: 0; gap: 16px; }
  .plan ul { padding-left: 22px; }
}
@media (max-width: 480px) {
  .login-form { flex-direction: column; }
  .portal-actions .btn { width: 100%; }
}
