:root {
  --blue: #14338f;
  --blue-dark: #091d62;
  --blue-ink: #071558;
  --paper: #f6f2e8;
  --paper-bright: #fffdf7;
  --red: #e23624;
  --gold: #c69b43;
  --green: #1c8b73;
  --violet: #6a4b9d;
  --ink: #111426;
  --muted: #555e74;
  --line: rgba(17, 20, 38, 0.18);
  --shadow: 0 24px 60px rgba(7, 21, 88, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 51, 143, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 51, 143, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.archive-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 22px 14px;
  color: white;
  background: var(--blue);
  border-right: 5px solid var(--blue-dark);
}

.rail-brand {
  display: block;
  padding: 12px 10px 16px;
  color: white;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.rail-brand span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.rail-brand strong {
  display: block;
  margin-top: 2px;
  font-size: 1.55rem;
  line-height: 1;
}

.rail-nav {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.rail-nav a {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  background: #f9fbff;
  border: 2px solid #9db2de;
  transition: transform 160ms ease, background 160ms ease;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  background: white;
  transform: translateX(3px);
}

.rail-nav .shop-link {
  color: white;
  background: var(--red);
  border-color: #ffb6ac;
}

.rail-card {
  margin-top: 28px;
  padding: 12px;
  color: var(--blue-ink);
  background: #fff;
  border: 2px solid #9db2de;
}

.mini-title,
.eyebrow,
.section-kicker {
  display: block;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-card .mini-title {
  color: var(--blue);
}

.rail-card p {
  margin: 8px 0 0;
  font-size: 0.78rem;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  min-height: 88vh;
  padding: clamp(44px, 7vw, 96px) clamp(22px, 6vw, 88px) 48px;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.96), rgba(255, 253, 247, 0.78)),
    repeating-linear-gradient(0deg, rgba(20, 51, 143, 0.06), rgba(20, 51, 143, 0.06) 1px, transparent 1px, transparent 12px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 780px;
}

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

h1 {
  margin-bottom: 16px;
  color: var(--blue-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.05rem, 5.4vw, 4.85rem);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 14px;
  color: var(--blue-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.lead {
  max-width: 690px;
  color: #28304a;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid currentColor;
  box-shadow: 5px 5px 0 rgba(7, 21, 88, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(7, 21, 88, 0.22);
}

.button.primary {
  color: white;
  background: var(--red);
}

.button.secondary {
  color: var(--blue);
  background: white;
}

.catalog-board {
  position: relative;
  width: min(100%, 410px);
  min-height: 520px;
  padding: 18px;
  background: var(--paper-bright);
  border: 3px solid var(--blue);
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(20, 51, 143, 0.05);
}

.catalog-board::before {
  content: "";
  position: absolute;
  inset: 56px 24px 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)),
    radial-gradient(circle at 50% 45%, rgba(198, 155, 67, 0.22), transparent 34%);
  border: 1px solid var(--line);
}

.board-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: white;
  padding: 8px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--blue);
}

.gem-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 430px;
  padding: 34px 22px 18px;
}

.gem {
  display: block;
  aspect-ratio: 1;
  min-width: 0;
  border: 3px solid rgba(7, 21, 88, 0.25);
  box-shadow:
    inset 10px 12px 14px rgba(255, 255, 255, 0.46),
    inset -10px -12px 16px rgba(0, 0, 0, 0.18),
    0 12px 20px rgba(7, 21, 88, 0.18);
}

.g1 {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff 0 9%, #b89ee6 10% 28%, #5d3f92 68%);
}

.g2 {
  border-radius: 22% 44% 24% 46%;
  background: radial-gradient(circle at 38% 30%, #fff 0 8%, #80d5c8 10% 28%, #087b6e 70%);
}

.g3 {
  border-radius: 12%;
  transform: rotate(8deg);
  background: radial-gradient(circle at 35% 28%, #fff 0 8%, #ffc875 10% 26%, #a4541d 72%);
}

.g4 {
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 36% 26%, #fff 0 8%, #ffb8c6 10% 30%, #b03962 70%);
}

.g5 {
  border-radius: 50%;
  background: radial-gradient(circle at 37% 28%, #fff 0 8%, #dfe7ee 10% 26%, #6b879b 72%);
}

.g6 {
  border-radius: 50%;
  background: conic-gradient(from 30deg, #1c2d65, #5d77c9, #d8e2ff, #1c2d65);
}

.g7 {
  border-radius: 22%;
  background: radial-gradient(circle at 38% 30%, #fff 0 7%, #dfec9b 10% 28%, #7a8822 72%);
}

.g8 {
  border-radius: 50% 12% 50% 12%;
  transform: rotate(45deg);
  background: radial-gradient(circle at 38% 28%, #fff 0 8%, #f49d73 10% 26%, #af3a22 72%);
}

.g9 {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, #c99a65 10% 24%, #3e2a1b 72%);
}

.g10 {
  border-radius: 18% 50% 18% 50%;
  background: radial-gradient(circle at 36% 28%, #fff 0 8%, #9bdbe7 10% 28%, #3e8aaa 72%);
}

.g11 {
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #fff 0 8%, #97c293 10% 28%, #396f46 72%);
}

.g12 {
  border-radius: 18%;
  transform: rotate(-10deg);
  background: radial-gradient(circle at 35% 28%, #fff 0 8%, #b2b2ba 10% 22%, #111426 72%);
}

.intro-band,
.content-grid,
.material-section,
.links-section,
.faq-section,
.final-cta {
  padding: clamp(44px, 7vw, 88px) clamp(22px, 6vw, 88px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  color: white;
  background: var(--blue);
}

.intro-band h2,
.intro-band .section-kicker {
  color: white;
}

.intro-band p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--paper-bright);
  border-bottom: 1px solid var(--line);
}

.content-grid article {
  padding: 30px;
  border: 2px solid var(--blue);
  background: white;
}

.content-grid article + article {
  margin-left: -2px;
}

.number {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 800;
}

.content-grid h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.content-grid p,
.material-section p,
.faq-section p,
.final-cta p {
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.material-section {
  background:
    linear-gradient(90deg, var(--paper), rgba(255, 253, 247, 0.86)),
    repeating-linear-gradient(90deg, rgba(20, 51, 143, 0.08) 0 1px, transparent 1px 18px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.material-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.material-list li {
  min-height: 48px;
  padding: 12px 14px;
  color: var(--blue-ink);
  font-weight: 800;
  background: white;
  border: 2px solid rgba(20, 51, 143, 0.35);
}

.links-section {
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.92), rgba(246, 242, 232, 0.92)),
    var(--paper);
}

.links-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links-list li {
  padding: 26px 28px;
  background: white;
  border: 2px solid var(--blue);
  box-shadow: 5px 5px 0 rgba(7, 21, 88, 0.12);
}

.links-list .section-kicker {
  margin-bottom: 6px;
}

.links-list h3 {
  margin: 4px 0 10px;
  color: var(--blue-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.15;
}

.links-list p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.faq-section {
  background: var(--paper-bright);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

details {
  padding: 18px 20px;
  background: white;
  border: 2px solid var(--blue);
}

summary {
  cursor: pointer;
  color: var(--blue-ink);
  font-weight: 800;
}

details p {
  margin: 14px 0 0;
}

.final-cta {
  color: white;
  background:
    linear-gradient(115deg, rgba(9, 29, 98, 0.98), rgba(20, 51, 143, 0.96)),
    var(--blue);
}

.final-cta h2,
.final-cta p,
.final-cta .eyebrow {
  color: white;
}

.final-cta p {
  max-width: 720px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(22px, 6vw, 88px) 24px calc(220px + clamp(22px, 6vw, 88px));
  color: white;
  background: var(--blue-dark);
}

.site-footer p {
  max-width: 700px;
  margin: 0;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: white;
  font-weight: 700;
}

@media (max-width: 1020px) {
  .archive-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    min-height: 0;
    padding: 12px;
    border-right: 0;
    border-bottom: 5px solid var(--blue-dark);
  }

  .rail-brand {
    display: inline-block;
    min-width: 180px;
  }

  .rail-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 12px;
  }

  .rail-card {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .catalog-board {
    min-height: 440px;
  }

  .gem-grid {
    min-height: 348px;
  }

  .site-footer {
    padding-left: clamp(22px, 6vw, 88px);
  }
}

@media (max-width: 760px) {
  .rail-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .catalog-board {
    min-height: 360px;
  }

  .gem-grid {
    gap: 12px;
    min-height: 282px;
    padding: 24px 14px 12px;
  }

  .intro-band,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    gap: 16px;
  }

  .content-grid article + article {
    margin-left: 0;
  }

  .material-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .links-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-top: 16px;
  }
}

@media (max-width: 440px) {
  .rail-nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.85rem;
  }

  .material-list {
    grid-template-columns: 1fr;
  }
}

.legal-page {
  background: var(--paper-bright);
}

.legal-wrap {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal-wrap h1 {
  margin: 22px 0 20px;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
}

.legal-wrap section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 2px solid rgba(20, 51, 143, 0.24);
}

.legal-wrap h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}
