:root {
  color-scheme: dark;
  --ink: #071016;
  --panel: #0d1a22;
  --panel-soft: #12242d;
  --ice: #dff6ff;
  --muted: #9bb2bd;
  --cyan: #35c8ee;
  --cyan-dark: #167a9b;
  --gold: #f2c765;
  --danger: #ff727c;
  --line: rgba(128, 219, 244, 0.22);
  --content: 880px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ice);
  background:
    radial-gradient(circle at 50% -12%, rgba(53, 200, 238, 0.15), transparent 36rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 48px 48px, 48px 48px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: #7ce4ff;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: white;
}

a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 22, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner,
.page,
.footer-inner {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

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

.brand-mark {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 4px solid var(--ice);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 8px var(--cyan);
}

.brand-mark::after {
  position: absolute;
  inset: 12px;
  border-radius: 1px;
  background: var(--gold);
  content: "";
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.page {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero {
  max-width: 740px;
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 3rem 0 0.8rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
  margin: 1.8rem 0 0.5rem;
  font-size: 1.12rem;
}

p,
li {
  color: #c8d9e0;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card,
.notice {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(18, 36, 45, 0.95), rgba(10, 25, 33, 0.95));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.card {
  display: block;
  min-height: 210px;
  padding: 1.5rem;
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease;
}

.card:hover {
  border-color: rgba(124, 228, 255, 0.72);
  transform: translateY(-3px);
}

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

.card p {
  margin-bottom: 0;
}

.notice {
  margin: 2rem 0;
  padding: 1.2rem 1.35rem;
  border-left: 5px solid var(--cyan);
}

.notice.warning {
  border-left-color: var(--gold);
}

.notice.urgent {
  border-left-color: var(--danger);
}

.notice > :first-child {
  margin-top: 0;
}

.notice > :last-child {
  margin-bottom: 0;
}

.contents {
  margin: 2rem 0 3rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 26, 34, 0.72);
}

.contents strong {
  display: block;
  margin-bottom: 0.5rem;
}

.contents ol {
  margin: 0;
  padding-left: 1.3rem;
  columns: 2;
}

.contents li {
  break-inside: avoid;
  margin-bottom: 0.3rem;
}

section {
  scroll-margin-top: 1rem;
}

code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ice);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 11, 15, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 650px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

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

  .contents ol {
    columns: 1;
  }
}

@media print {
  body {
    color: #111;
    background: white;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .contents {
    display: none;
  }

  p,
  li,
  a {
    color: #111;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .notice {
    box-shadow: none;
  }
}
