/* Fortress HQ — Glass system.
   Scene is grey, glass is teal-green. They must never converge. */

:root {
  --ink: #142522;
  --highlighter: #eafd35;
  --highlighter-soft: #e2f463;
  --deep-teal: #1e6f5c;
  --muted: #404d4a;
  --faint: #5b6a66;
  --hairline: rgba(255, 255, 255, 0.5);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
}

/* Fixed pseudo-element rather than background-attachment: fixed.
   Stacked backdrop-filters over a fixed background repaint the whole
   scene every scroll frame in Chromium, which eats the first click. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 640px at 80% -14%, #b3bcba 0%, transparent 58%),
    radial-gradient(800px 560px at 0% 100%, #969fa0 0%, transparent 55%),
    linear-gradient(160deg, #a7aeae 0%, #9da6a5 52%, #a4acaa 100%);
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.sheet {
  background:
    linear-gradient(155deg, rgba(206, 228, 230, 0.30) 0%,
                            rgba(214, 236, 224, 0.18) 45%,
                            rgba(222, 238, 228, 0.30) 100%),
    rgba(224, 238, 232, 0.46);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  box-shadow: 0 36px 80px rgba(28, 40, 42, 0.24),
              inset 0 1px 0 rgba(255, 255, 255, 0.65);
  padding: 44px 48px;
}

.wordmark {
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
.wordmark span { color: var(--deep-teal); }

h1 {
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--ink);
  font-weight: 640;
  margin: 26px 0 14px;
}

h2 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.014em;
  color: var(--ink);
  font-weight: 620;
  margin: 40px 0 10px;
}

h3 {
  font-size: 15px;
  color: var(--ink);
  font-weight: 620;
  margin: 26px 0 6px;
}

p { margin: 0 0 14px; }

a { color: var(--deep-teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

strong { color: var(--ink); font-weight: 620; }

ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 7px; }

.lede { font-size: 17px; color: var(--muted); }

.meta {
  font-size: 13px;
  color: var(--faint);
  margin: 0;
}

.rule {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 34px 0;
}

/* The one lit thing. Accent discipline: once per viewport, never twice. */
.beacon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--highlighter);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14.5px;
}
th, td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
th {
  color: var(--ink);
  font-weight: 620;
  font-size: 13px;
  letter-spacing: 0.01em;
}
td code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--ink);
  word-break: break-all;
}

.scroller { overflow-x: auto; }

.callout {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 16px;
}
.callout p:last-child { margin-bottom: 0; }

footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .wrap { padding: 28px 14px 56px; }
  .sheet { padding: 30px 24px; border-radius: 24px; }
  h2 { margin-top: 32px; }
}
