:root {
  /* Navy / gold from Fremont Beacon logo */
  --navy: #002d62;
  --navy-deep: #001a3a;
  --ink: #002d62;
  --ink-soft: rgba(0, 45, 98, 0.78);
  --paper: #f7f5f0;
  --paper-soft: #fbfaf7;
  --river: #002d62;
  --river-deep: #001a3a;
  --signal: #fdb813;
  --signal-soft: #ffd56a;
  --line: rgba(0, 45, 98, 0.14);
  --white: #fffdf8;
  --shadow: 0 16px 36px rgba(0, 26, 58, 0.16);
  --font-display: "Literata", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(0, 45, 98, 0.12), transparent 58%),
    radial-gradient(700px 360px at 92% 0%, rgba(253, 184, 19, 0.14), transparent 52%),
    linear-gradient(180deg, #f8f6f0 0%, var(--paper) 45%, #ebe6db 100%);
  min-height: 100vh;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--river-deep); text-underline-offset: 3px; }
a:hover { color: var(--signal); }
.wrap { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(245, 242, 234, 0.92);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  flex: 0 1 auto;
}
.brand-logo {
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
}
/* Header wordmark — between #667 and #668 (deployed: /fremont-beacon/css/styles.css) */
.site-header .brand .brand-text {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: clamp(3.1rem, 8vw, 4.75rem) !important;
  letter-spacing: -0.03em;
  line-height: 1 !important;
  white-space: nowrap;
  flex: 0 0 auto;
  display: inline-block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.nav a:not(.btn):hover { color: var(--river); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--river);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--river-deep);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--river-deep);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--river);
  color: var(--river);
}
.btn-signal {
  background: var(--signal);
  color: var(--navy-deep);
}
.btn-signal:hover {
  background: #e5a40a;
  color: var(--navy-deep);
}

.hero {
  position: relative;
  min-height: min(88vh, 42rem);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 26, 58, 0.3) 0%, rgba(0, 26, 58, 0.58) 42%, rgba(0, 20, 45, 0.9) 100%),
    radial-gradient(700px 320px at 20% 70%, rgba(253, 184, 19, 0.18), transparent 65%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.25rem;
  max-width: 40rem;
  animation: rise-in 0.9s ease both;
}
.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  animation: rise-in 0.85s ease both;
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 22ch;
}
.hero-lede {
  margin: 0 0 1.5rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  line-height: 1.55;
  color: rgba(255, 253, 248, 0.9);
  max-width: 36ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.4);
}
.hero .btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.section {
  padding: 3.25rem 0;
}
.section-alt {
  background: rgba(255, 253, 248, 0.55);
  border-block: 1px solid var(--line);
}
.section h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}
.section-intro {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature {
  padding: 0.25rem 0;
}
.feature h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: center;
}
.split-photo {
  border-radius: 14px;
  width: 100%;
  max-height: 18rem;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 2.75rem 0 1.5rem;
}
.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}
.page-hero p {
  margin: 0;
  max-width: 52ch;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.prose {
  max-width: 62ch;
}
.prose p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.prose li + li { margin-top: 0.4rem; }

.cta-band {
  padding: 2.75rem 0 3.5rem;
}
.cta-box {
  background: linear-gradient(135deg, var(--river-deep), var(--river));
  color: var(--white);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
  animation: rise-in 0.8s ease both;
}
.cta-box h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.cta-box p {
  margin: 0 0 1.25rem;
  max-width: 48ch;
  line-height: 1.6;
  color: rgba(255, 253, 248, 0.9);
}
.cta-box .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.35);
}
.cta-box .btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.site-footer a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
}
.site-footer a:hover { color: var(--river); }
.powered {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: rgba(0, 45, 98, 0.55);
  font-size: 0.82rem;
}
.powered img {
  height: 18px;
  width: auto;
  opacity: 0.85;
}

@keyframes hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .feature-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: min(78vh, 36rem);
  }
  .nav a:not(.btn) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .hero-content,
  .cta-box,
  .btn {
    animation: none;
    transition: none;
  }
}
