:root {
  --ink: #0b1220;
  --ink-soft: #111c2e;
  --paper: #f4f0e8;
  --paper-bright: #fffdf8;
  --amber: #ffc247;
  --amber-deep: #d99500;
  --graphite: #344054;
  --rule: #cfc8bb;
  --white: #ffffff;
  --muted-on-dark: #aab5c6;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Helvetica, sans-serif;
  --max-width: 1240px;
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1rem clamp(1.1rem, 4vw, 4rem);
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  background: var(--ink);
  color: var(--white);
}

.wordmark {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  width: fit-content;
  color: inherit;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

nav {
  display: flex;
  gap: 0.25rem 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #d7deea;
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover {
  color: var(--amber);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 rgb(0 0 0 / 28%);
}

.button-small {
  justify-self: start;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  font-size: 0.68rem;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 700px;
  gap: 3rem;
  align-content: space-between;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.1rem, 6vw, 7rem) 3rem;
  background: var(--ink);
  color: var(--white);
}

.grid-field {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgb(255 255 255 / 18%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 18%) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent 10%, #000 65%);
}

.continuity-line {
  position: absolute;
  z-index: -1;
  top: 17%;
  right: -7rem;
  width: min(58vw, 760px);
  height: min(58vw, 760px);
  border: 1px solid rgb(255 194 71 / 72%);
  border-radius: 50%;
  box-shadow: 0 0 60px rgb(255 194 71 / 12%), inset 0 0 60px rgb(255 194 71 / 8%);
}

.continuity-line::before,
.continuity-line::after {
  content: "";
  position: absolute;
  background: var(--amber);
}

.continuity-line::before {
  top: 50%;
  right: 100%;
  width: 60vw;
  height: 1px;
}

.continuity-line::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  opacity: 0.35;
}

.line-node {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 0 24px rgb(255 194 71 / 85%);
}

.node-one { top: 12%; left: 18%; }
.node-two { top: 50%; left: -0.4rem; }
.node-three { right: 14%; bottom: 10%; }

.hero-copy {
  max-width: 850px;
  animation: rise 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0 1.5rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow span {
  color: var(--muted-on-dark);
  font-weight: 500;
}

.eyebrow-dark {
  color: #805600;
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 11vw, 9rem);
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.copy-needed {
  display: inline-block;
  margin: 0 0.35rem 0.2rem 0;
  padding: 0.26rem 0.42rem 0.2rem;
  border: 1px solid currentColor;
  color: var(--amber-deep);
  font-family: var(--body);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.button .copy-needed,
.section-paper .copy-needed {
  color: #654200;
}

.section-amber .eyebrow-dark {
  color: #4f3500;
}

.hero h1 .copy-needed {
  display: table;
  margin: 0 0 1.2rem;
  color: var(--amber);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.hero-deck {
  max-width: 680px;
  color: #cbd4e1;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.hero-actions p {
  max-width: 290px;
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 0.82rem;
}

.hero-index {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1.2rem;
  width: fit-content;
  padding-top: 1.2rem;
  border-top: 1px solid rgb(255 255 255 / 22%);
  color: var(--muted-on-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero-index p,
.hero-index strong {
  margin: 0;
}

.hero-index strong {
  color: var(--white);
  letter-spacing: 0.08em;
}

.decision-strip {
  display: grid;
  background: var(--amber);
  color: var(--ink);
}

.decision-strip article {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 0.75rem;
  padding: 1.5rem clamp(1.1rem, 4vw, 3rem);
  border-bottom: 1px solid rgb(11 18 32 / 35%);
}

.decision-strip span {
  grid-row: 1 / 3;
  font-size: 0.68rem;
  font-weight: 900;
}

.decision-strip p,
.decision-strip strong {
  margin: 0;
}

.decision-strip p {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.decision-strip strong {
  font-family: var(--display);
  font-size: 1.2rem;
}

.section {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(4.5rem, 10vw, 9rem) clamp(1.1rem, 6vw, 7rem);
}

.section-paper {
  background: var(--paper);
  color: var(--ink);
}

.section-ink {
  background: var(--ink-soft);
  color: var(--white);
}

.section-amber {
  background: var(--amber);
  color: var(--ink);
}

.section-marker {
  color: currentColor;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  opacity: 0.65;
}

.section-heading {
  max-width: 720px;
}

.section-intro {
  max-width: 620px;
  color: var(--muted-on-dark);
  font-size: 1.05rem;
}

.prose-block {
  max-width: 680px;
}

.prose-block p {
  margin-bottom: 1.5rem;
}

.lead {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.4;
}

.placeholder-block {
  padding-left: 1rem;
  border-left: 2px solid var(--amber-deep);
}

.source-line {
  color: var(--graphite);
  font-size: 0.82rem;
}

.program-grid {
  display: grid;
  gap: 1px;
  border: 1px solid rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 18%);
}

.program-card {
  min-height: 260px;
  padding: 1.6rem;
  background: var(--ink-soft);
}

.program-card:hover {
  background: #16233a;
}

.card-number {
  display: block;
  margin-bottom: 3.5rem;
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 900;
}

.program-card h3 {
  max-width: 18ch;
  color: var(--white);
}

.program-card p {
  color: var(--muted-on-dark);
  font-size: 0.92rem;
}

.program-card-optional {
  border-top: 3px solid var(--amber);
}

.action-panel {
  max-width: 690px;
  padding-top: 2rem;
  border-top: 1px solid rgb(11 18 32 / 42%);
}

.button-ink {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.placeholder-action[aria-disabled="true"] {
  cursor: not-allowed;
}

.status-note,
.payment-note {
  max-width: 560px;
  margin: 1rem 0 0;
  font-size: 0.84rem;
}

.payment-note {
  font-weight: 800;
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.owner-card {
  min-height: 250px;
  padding: 1.5rem;
  border: 1px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 49.5%, var(--ink) 50%, var(--ink) 50.4%, transparent 50.5%);
}

.owner-card p {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.owner-card h3 {
  max-width: 16ch;
  margin-top: 6rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 500;
}

.placeholder-register {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.1rem, 6vw, 7rem);
  border-top: 1px solid var(--rule);
  background: var(--paper-bright);
}

.placeholder-register h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

.placeholder-register p {
  max-width: 640px;
}

.register-note {
  font-weight: 750;
}

.site-footer {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem clamp(1.1rem, 6vw, 7rem);
  background: var(--ink);
  color: var(--muted-on-dark);
  font-size: 0.85rem;
}

.wordmark-footer {
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-label {
  margin-bottom: 0.5rem;
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  background: var(--ink);
  color: var(--white);
}

.not-found-card {
  max-width: 720px;
  text-align: center;
}

.not-found-code {
  margin-bottom: 1rem;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .button-small {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }

  .decision-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .decision-strip article {
    border-right: 1px solid rgb(11 18 32 / 35%);
    border-bottom: 0;
  }

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

  .site-footer {
    grid-template-columns: 1.2fr 0.7fr 1fr;
  }
}

@media (min-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-header nav {
    grid-column: auto;
    justify-self: center;
  }

  .button-small {
    grid-row: auto;
    grid-column: auto;
  }

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

  .hero-index {
    align-self: end;
  }

  .section {
    grid-template-columns: minmax(80px, 0.3fr) minmax(260px, 0.8fr) minmax(320px, 1fr);
  }

  .program-grid {
    grid-column: 2 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .action-panel {
    grid-column: 3;
  }

  .about-grid {
    grid-column: 2 / -1;
    grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
