/* MC Warfare website. Dark "hazard" theme: charcoal, hazard yellow, warning red. System fonts only, no third-party
   requests (the CSP in _headers allows only this site's own files). */
:root {
  --bg: #0f1011;
  --bg-2: #16181a;
  --panel: #1c1f22;
  --panel-2: #23272b;
  --line: #2e3337;
  --text: #e9e6df;
  --muted: #a9a59c;
  --yellow: #f5c518;
  --yellow-2: #ffd84d;
  --red: #e2482f;
  --green: #5fd27a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--yellow-2); text-underline-offset: 3px; }
a:hover { color: #fff1b0; }
code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  background: #0b0c0d;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .08em .4em;
  font-size: .92em;
  color: #fff3c4;
}
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* hazard stripe used as a thin accent line */
.stripe {
  height: 6px;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 14px, #141414 14px 28px);
}

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(15, 16, 17, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.brand span b { color: var(--yellow); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background:
  radial-gradient(900px 420px at 80% -10%, rgba(245, 197, 24, .16), transparent 60%),
  radial-gradient(700px 380px at 0% 110%, rgba(226, 72, 47, .14), transparent 60%), var(--bg); }
.hero-inner { position: relative; }
.hero-mark { position: absolute; right: -40px; top: -30px; width: 360px; opacity: .07; pointer-events: none; }
.eyebrow { color: var(--yellow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin: 0 0 10px; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; margin: 0 0 14px; letter-spacing: .02em; font-weight: 900; text-transform: uppercase; }
.hero-title .hl { color: var(--yellow); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #d6d2c8; max-width: 640px; margin: 0 0 22px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; margin: 0 0 26px; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(245, 197, 24, .18); }
.dot.live { background: var(--green); box-shadow: 0 0 0 4px rgba(95, 210, 122, .2); }

.address-card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--radius); padding: 18px 20px; max-width: 520px; box-shadow: var(--shadow); }
.address-label { margin: 0 0 4px; color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.address-line { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; }
.address-line code { font-size: 1em; background: none; border: 0; padding: 0; color: var(--yellow-2); }
.address-note { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-primary { background: var(--yellow); color: #141414; }
.btn-primary:hover { background: var(--yellow-2); color: #141414; }
.btn-ghost { background: transparent; color: var(--text); border-color: #4a4f54; }
.btn-ghost:hover { border-color: var(--yellow); color: #fff; }
.btn-copy { background: var(--panel-2); color: var(--text); border-color: #4a4f54; min-height: 38px; padding: 6px 14px; }
.btn-copy.is-copied { border-color: var(--green); color: var(--green); }
.copy-buffer { position: fixed; top: -1000px; }

/* sections */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.kicker { display: inline-block; color: var(--yellow); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: 6px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.15; margin: 0 0 10px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: #d3cfc6; }
.card .icon { font-size: 1.6rem; line-height: 1; margin-bottom: 10px; display: block; }
.card-link { display: inline-block; margin-top: 12px; font-weight: 700; }

/* war flow */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps > li { counter-increment: step; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 64px; }
.steps > li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: #141414; font-weight: 900; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: #d3cfc6; }
.callout { border: 1px solid #5a2a22; background: rgba(226, 72, 47, .09); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; }
.callout strong { color: #ffb4a6; }

/* text pages */
.page-hero { padding: 48px 0 18px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .02em; }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 22px; }
.prose p, .prose li { color: #d8d4cb; }
.rule { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.rule p { margin: 4px 0 0; }
.penalty { display: inline-block; margin-top: 8px; font-size: .9rem; color: #ffcf9e; background: rgba(226, 72, 47, .12); border: 1px solid #5a2a22; border-radius: 8px; padding: 2px 10px; }
table.cmds { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: .97rem; }
table.cmds th, table.cmds td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.cmds th { color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
table.cmds td:first-child { white-space: nowrap; }
.ranks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0; }
.ranks li { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 600; }
.ranks b { color: var(--yellow); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #0b0c0d; padding: 36px 0 26px; margin-top: 30px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-bottom: 18px; }
.footer-brand { color: var(--text); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.footer-heading { color: var(--text); font-weight: 700; margin: 0 0 6px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 4px 0; }
.age { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; margin-left: 4px; }
.disclaimer { font-size: .78rem; letter-spacing: .02em; margin: 6px 0; }

@media (max-width: 640px) {
  .hero { padding: 52px 0 44px; }
  .hero-mark { width: 220px; right: -60px; }
  .steps > li { padding-left: 58px; }
  table.cmds td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
