@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-extrabold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #0e1024;
  --slab: #191c38;
  --slab-2: #262a54;
  --gold: #e5b93c;
  --gules: #e0504a;
  --azure: #5a76e8;
  --argent: #f4f3ee;
  --argent-soft: #9aa0c2;
  --line: rgb(154 160 194 / 28%);
  font-family: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--void); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--argent);
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgb(90 118 232 / 5%) 50% 50.1%, transparent 50.2%),
    var(--void);
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gold);
  content: "";
}

a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: #f6d77c; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.site-header,
.site-footer,
main {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 6rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--argent);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
}

.brand img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
nav a { color: var(--argent-soft); font-size: .9rem; font-weight: 600; }
nav a[aria-current="page"] { color: var(--gold); }

main { padding-block: clamp(3rem, 7vw, 6.5rem); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .7fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  min-height: calc(100svh - 15rem);
}

.hero-copy { max-width: 48rem; }

.eyebrow {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2 {
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

h1 {
  margin: .65rem 0 1.35rem;
  font-size: clamp(3.3rem, 8vw, 7rem);
  font-weight: 800;
}

h2 { margin-top: 2.8rem; font-size: clamp(1.45rem, 4vw, 2.2rem); font-weight: 800; }
p, li { max-width: 72ch; }
.lede { color: var(--argent-soft); font-size: clamp(1.05rem, 2.5vw, 1.3rem); }

.hero-emblem {
  position: relative;
  border: 1px solid var(--slab-2);
  background: var(--slab);
  box-shadow: 1.2rem 1.2rem 0 var(--slab-2);
}

.hero-emblem::before {
  position: absolute;
  z-index: 1;
  top: -1px;
  left: -1px;
  width: 4.5rem;
  height: 4px;
  background: var(--gold);
  content: "";
}

.hero-emblem img {
  display: block;
  width: 100%;
  height: auto;
}

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-block;
  padding: .8rem 1rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--void);
  font-weight: 800;
  text-decoration: none;
}
.button:hover { color: var(--void); background: #f6d77c; }
.button.secondary { background: transparent; color: var(--gold); }
.button.secondary:hover { background: var(--slab); color: #f6d77c; }

.document {
  max-width: 54rem;
  padding: clamp(1.25rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  background: var(--slab);
}
.document h1 { font-size: clamp(2.6rem, 7vw, 5.1rem); }
.document h2 { letter-spacing: -.025em; }
.meta { color: var(--argent-soft); }
.notice { padding: 1rem; border-left: 4px solid var(--gold); background: var(--slab-2); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--argent-soft);
  font-size: .9rem;
}

@media (max-width: 48rem) {
  body { background: var(--void); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-emblem { width: min(100%, 26rem); order: -1; box-shadow: .75rem .75rem 0 var(--slab-2); }
}

@media (max-width: 38rem) {
  .site-header { align-items: flex-start; flex-direction: column; padding-block: 1.25rem; }
  main { padding-block: 2.5rem; }
  .brand img { width: 3rem; height: 3rem; }
}

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