:root {
  --ink: #050403;
  --ink-2: #15120f;
  --paper: #f4efe4;
  --paper-2: #e7ddcc;
  --bone: #f3edde;
  --bone-2: #c7bdad;
  --dim: #8f8475;
  --rule: rgba(243, 237, 222, 0.18);
  --rule-light: rgba(21, 18, 15, 0.18);
  --accent: #ff4d1f;
  --brass: #d7b56b;
  --wrap: 1120px;
  --pad-x: clamp(22px, 4.2vw, 72px);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: "Albert Sans", "Helvetica Neue", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.93  0 0 0 0 0.86  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.45;
  mix-blend-mode: overlay;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 4, 3, 0.88);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(16px);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 500;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--bone-2);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.eyebrow {
  color: var(--brass);
}

.hero {
  min-height: 58svh;
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 400;
  line-height: 1.02;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.18;
}

.lede {
  max-width: 62ch;
  color: var(--bone-2);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-aside {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  color: var(--bone-2);
}

.hero-aside strong,
.metric strong {
  display: block;
  color: var(--bone);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--bone);
  border-radius: 6px;
  color: var(--bone);
  text-decoration: none;
  font-weight: 500;
}

.button:hover {
  background: var(--bone);
  color: var(--ink);
}

.button.alt {
  border-color: var(--rule);
  color: var(--bone-2);
}

.section {
  padding: clamp(64px, 9vw, 108px) 0;
  border-top: 1px solid var(--rule);
}

.section.paper {
  background: var(--paper);
  color: var(--ink-2);
  border-top: 0;
}

.section.paper .lede,
.section.paper .copy,
.section.paper .mini,
.section.paper .faq p {
  color: #51483d;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 72px);
}

.copy {
  max-width: 70ch;
  color: var(--bone-2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tile {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.paper .tile {
  border-color: var(--rule-light);
  background: rgba(255, 255, 255, 0.45);
}

.tile a {
  text-decoration: none;
}

.mini {
  margin-bottom: 10px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 22px;
  border-top: 1px solid var(--rule);
  color: var(--bone-2);
}

.faq {
  display: grid;
  gap: 18px;
}

.faq article {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.paper .faq article {
  border-color: var(--rule-light);
}

.crumbs {
  margin-bottom: 22px;
  color: var(--dim);
  font-size: 14px;
}

.crumbs a {
  color: var(--bone-2);
  text-decoration: none;
}

.paper .crumbs a {
  color: #51483d;
}

.media-band {
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.5), rgba(5, 4, 3, 0.04)),
    url("/assets/californios-team.jpg") center / cover;
}

footer {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  color: var(--dim);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 820px) {
  .site-nav .wrap,
  .hero-grid,
  .split,
  footer .wrap {
    display: block;
  }

  .nav-links {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .hero-aside {
    margin-top: 36px;
  }

  .grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(38px, 11vw, 56px);
  }
}
