:root {
  color-scheme: dark;
  --night: #041329;
  --night-soft: #071d3a;
  --panel: rgba(8, 31, 59, 0.92);
  --cyan: #52dcf5;
  --cyan-soft: rgba(82, 220, 245, 0.14);
  --gold: #e5c578;
  --rose: #ffbdc9;
  --text: #eef9ff;
  --muted: #bfd3df;
  --line: rgba(139, 216, 234, 0.24);
  --shadow: 0 24px 70px rgba(0, 5, 18, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(54, 174, 229, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(229, 197, 120, 0.09), transparent 24rem),
    linear-gradient(155deg, #031027 0%, #071d3a 52%, #041329 100%);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--cyan);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #9aecfb;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--night);
  background: var(--gold);
  border-radius: 0.35rem;
  font-weight: 800;
  transform: translateY(-180%);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand span:first-child {
  color: var(--gold);
  font-size: 1.35rem;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 750;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
}

.header-nav a[aria-current="page"],
.header-nav a:hover {
  color: var(--text);
}

.page-shell,
.article-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-shell {
  padding: clamp(3rem, 8vw, 7rem) 0 5rem;
}

.article-shell {
  max-width: 880px;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 5rem;
}

.hero,
.article-header {
  max-width: 780px;
}

.eyebrow,
.step-label {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
}

p,
ul,
ol,
address {
  color: var(--muted);
}

strong {
  color: var(--text);
}

.lead {
  max-width: 72ch;
  margin: 1.5rem 0 0;
  color: #d8eaf3;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.card {
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  padding: 1.6rem;
  color: var(--text);
  background: linear-gradient(145deg, rgba(10, 40, 72, 0.95), rgba(5, 25, 51, 0.96));
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover {
  color: var(--text);
  border-color: rgba(82, 220, 245, 0.62);
  transform: translateY(-3px);
}

.card-number {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.card h2 {
  margin-top: 2rem;
}

.card p {
  margin-top: 0;
}

.card-action {
  margin-top: auto;
  color: var(--cyan);
  font-weight: 850;
}

.article-header {
  margin-bottom: 3rem;
}

.article-shell > section,
.status-box,
.step-card {
  margin-top: 1.25rem;
  padding: clamp(1.35rem, 4vw, 2.25rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 12px 38px rgba(0, 7, 22, 0.22);
}

.article-shell > section p:last-child,
.article-shell > section ul:last-child,
.article-shell > section ol:last-child,
.status-box p:last-child,
.step-card p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

li + li {
  margin-top: 0.45rem;
}

.status-box {
  background: linear-gradient(135deg, rgba(82, 220, 245, 0.12), rgba(8, 31, 59, 0.94));
  border-color: rgba(82, 220, 245, 0.38);
}

.notice,
.warning {
  padding: 1rem 1.2rem;
  color: var(--muted);
  background: rgba(229, 197, 120, 0.1);
  border: 1px solid rgba(229, 197, 120, 0.34);
  border-radius: 0.65rem;
}

.page-shell > .notice {
  margin-top: 2rem;
}

.article-shell > .notice {
  margin-top: 1.25rem;
}

.step-label {
  display: block;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
}

td {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  color: #031427;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: #031427;
  background: #9aecfb;
}

.button-secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--text);
  background: var(--cyan-soft);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.small-copy {
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.error-page {
  display: grid;
  place-content: center;
  width: min(680px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  text-align: center;
}

.error-page h1 {
  max-width: none;
}

.error-page .button {
  justify-self: center;
  margin-top: 1rem;
}

@media (max-width: 780px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    justify-content: flex-start;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 15rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .page-shell,
  .article-shell,
  .site-header,
  .site-footer {
    width: min(100% - 1.25rem, 1120px);
  }

  .header-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .article-shell > section,
  .status-box,
  .step-card {
    padding: 1.15rem;
  }

  .article-actions .button {
    width: 100%;
  }
}

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

  .card {
    transition: none;
  }
}
