@font-face {
  font-family: 'Swiza';
  src: url('fonts/Swiza-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Swiza';
  src: url('fonts/Swiza-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Swiza';
  src: url('fonts/Swiza-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Swiza';
  src: url('fonts/Swiza-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #8688ea;
  --ink: #161b52;
  --link-underline: #161b52;
  --max: 1400px;
  --edge: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Swiza', system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* ---------- Header ---------- */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px var(--edge) 10px;
  position: relative;
  z-index: 20;
}

.logo-mark {
  display: block;
  width: 84px;
  height: auto;
}

.logo-mark img { width: 100%; height: auto; display: block; }

.logo-mark a { display: block; }

nav.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

nav.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(13px, 1.4vw, 16px);
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
}

nav.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--ink);
}

nav.site-nav a:hover {
  opacity: 0.65;
}

.nav-toggle {
  display: none;
}

.nav-cta {
  margin-left: 4px;
}

@media (max-width: 720px) {
  .nav-cta { order: 10; margin-top: 4px; }
}

@media (max-width: 720px) {
  header.site-header { padding: 22px 20px 8px; align-items: flex-start; }
  .logo-mark { width: 58px; }
  nav.site-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 30;
  }
  nav.site-nav.open { transform: translateX(0); }
  nav.site-nav a { font-size: 8vw; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 40;
    position: relative;
  }
  .nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.25s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-close-x { position: fixed; top: 26px; right: 20px; z-index: 40; }
}

/* ---------- Tilt utility ---------- */
.tilt-1 { transform: rotate(-2.2deg); }
.tilt-2 { transform: rotate(1.6deg); }
.tilt-3 { transform: rotate(-1.1deg); }
.tilt-4 { transform: rotate(2.4deg); }
.tilt-5 { transform: rotate(-3deg); }

/* ---------- Typography ---------- */
h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.display {
  font-size: clamp(56px, 11vw, 128px);
}

.section-title {
  font-size: clamp(38px, 6.5vw, 72px);
  margin-bottom: 28px;
}

p { line-height: 1.5; }

.lede {
  font-size: clamp(16px, 1.5vw, 20px);
  max-width: 560px;
}

/* ---------- Footer / bench logo ---------- */
footer.site-footer {
  margin-top: clamp(60px, 8vw, 120px);
}

/* The FAF bench mark: a single plain <img>, the most reliable technique
   throughout this whole build — every rendering glitch traced back to
   border-image, never to a plain image tag. Scales as one block (both
   width and height together) to fill the available width. */
.bench {
  width: 100%;
  padding: 0 var(--edge);
}

.bench-mark-img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding: 22px var(--edge) 40px;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 600;
}

.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links a, .footer-bottom .footer-loc { text-decoration: none; }
.footer-loc-link { color: inherit; text-decoration: none; }
.footer-loc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links .btn-donate { text-decoration: none; }

@media (max-width: 720px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* underline link style used inline */
.u-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

/* solid pill CTA, e.g. for donation links */
.btn-donate {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95em;
  padding: 0.55em 1.3em;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-donate:hover { opacity: 0.82; }
.btn-donate:active { transform: scale(0.97); }
