:root {
  color-scheme: light;
  --ink: #071a39;
  --muted: #4d5e77;
  --blue: #0756b7;
  --blue-dark: #043675;
  --gold: #ffba12;
  --gold-dark: #c46a00;
  --cream: #fff2cf;
  --paper: #fffaf0;
  --wood: #c8863c;
  --line: #d7b77d;
  --success: #278d26;
  --shadow: rgba(4, 22, 53, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: #e8b565;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  line-height: 1.6;
}

a { color: var(--blue-dark); }
a:focus-visible, button:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }

.shell {
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid #032c62;
  background: #064a9a;
  box-shadow: 0 8px 24px var(--shadow);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.mini-nut, .hero-nut {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  color: #6b3700;
  background: var(--gold);
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  box-shadow: inset 0 -7px 0 var(--gold-dark);
}

.mini-nut::after, .hero-nut::after {
  content: "";
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6f3b0d;
  box-shadow: inset 0 3px 0 #3f2108;
}

.nav-links { display: flex; flex-wrap: wrap; gap: 18px; }
.nav-links a { color: #fff; font-weight: 800; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
  padding: clamp(70px, 10vw, 130px) 0 86px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.04; }
h1 { margin: 0; font-size: clamp(3.3rem, 10vw, 7.8rem); letter-spacing: -0.07em; }
h2 { margin: 0 0 18px; font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -0.045em; }
h3 { margin: 0 0 8px; font-size: 1.15rem; }

.hero-copy {
  max-width: 640px;
  color: #2d3d56;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  border: 8px solid var(--blue-dark);
  border-radius: 56px;
  background: #0a5fc1;
  box-shadow: 0 24px 0 rgba(3, 43, 95, 0.28), 0 32px 60px var(--shadow);
}

.hero-nut {
  width: min(60%, 250px);
  filter: drop-shadow(0 22px 0 rgba(36, 17, 0, 0.25));
}

.hero-card::before, .hero-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 90px;
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 0 0 0 5px #d3c3a2;
}
.hero-card::before { left: 18%; top: 8%; transform: rotate(21deg); }
.hero-card::after { right: 18%; bottom: 8%; transform: rotate(21deg); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 3px solid var(--blue-dark);
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--blue-dark);
}
.button.secondary { background: var(--cream); color: var(--ink); border-color: #9a641d; box-shadow: 0 6px 0 #9a641d; }
.button:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--blue-dark); }

.section { padding: 76px 0; }
.section.paper { background: var(--paper); border-block: 3px solid var(--line); }

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

.feature, .link-card, .legal-card {
  border: 3px solid var(--line);
  border-radius: 24px;
  background: #fffaf0;
  box-shadow: 0 9px 0 rgba(131, 75, 19, 0.18);
}
.feature, .link-card { padding: 26px; }
.feature-mark { color: var(--blue); font-size: 1.8rem; font-weight: 950; }
.feature p, .link-card p { margin-bottom: 0; color: var(--muted); }
.link-card { color: inherit; text-decoration: none; }
.link-card:hover { transform: translateY(-3px); }

.legal-wrap { padding: 58px 0 90px; }
.legal-card { padding: clamp(24px, 6vw, 64px); }
.legal-card header { border-bottom: 3px solid var(--line); padding-bottom: 22px; margin-bottom: 30px; }
.legal-card section + section { margin-top: 34px; }
.legal-card p, .legal-card li { color: #33445d; }
.legal-card h2 { margin-top: 42px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.legal-card h3 { margin-top: 26px; }
.updated { color: var(--muted); font-weight: 750; }
.notice { padding: 16px 18px; border-left: 6px solid var(--blue); background: #e8f3ff; }

.site-footer {
  padding: 34px 0;
  background: #052b5e;
  color: #dceaff;
}
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: white; font-weight: 750; }

@media (max-width: 760px) {
  .nav { align-items: flex-start; padding: 14px 0; }
  .nav-links { justify-content: flex-end; gap: 10px 14px; font-size: 0.88rem; }
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .hero-card { min-height: 300px; order: -1; }
  .feature-grid, .link-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
