:root {
  color-scheme: dark;
  --ink: #080a13;
  --panel: #111522;
  --line: rgba(255,255,255,.12);
  --paper: #f6f3ec;
  --muted: #a7abb6;
  --coral: #ff4d7a;
  --mint: #a7f3d0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a { color: var(--mint); text-underline-offset: 3px; }
header { border-bottom: 1px solid var(--line); }
nav, main, footer { width: min(calc(100% - 40px), 900px); margin: 0 auto; }
nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--paper); text-decoration: none; }
.brand-logo { display: block; width: auto; height: 52px; object-fit: contain; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 30;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--coral);
  box-shadow: 0 14px 32px rgba(0,0,0,.3);
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
}

main { padding: 90px 0 110px; }
.kicker { color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 16px 0 26px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 8vw, 72px); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.updated { margin-bottom: 34px; color: var(--muted); }
.summary { margin: 0 0 50px; padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--coral); border-radius: 12px; background: var(--panel); }
article { padding: 34px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.03em; }
h3 { margin: 26px 0 8px; font-size: 17px; }
p, li { color: var(--muted); }
li + li { margin-top: 8px; }
.table-wrap { margin-top: 20px; overflow-x: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--paper); background: var(--panel); }
td { color: var(--muted); }
strong { color: var(--paper); }
footer { padding: 28px 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: #6f7480; font-size: 12px; }
.footer-social { display: flex; flex-wrap: nowrap; gap: 10px; }
.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible { color: var(--paper); border-color: rgba(255,77,122,.55); background: rgba(255,77,122,.08); transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.footer-social svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  nav, main, footer { width: min(calc(100% - 28px), 900px); }
  nav { min-height: 70px; }
  main { padding: 60px 0 90px; }
  .brand-logo { height: 42px; }
  .back-to-top { right: 14px; bottom: 76px; }
  footer { align-items: flex-start; flex-direction: column; }
}
