:root {
  --red: #c8102e;
  --red-dark: #8f0b20;
  --ink: #101014;
  --muted: #5c5c66;
  --paper: #f4f1ea;
  --white: #fffdf8;
  --line: #d7d2c8;
  --mono: "IBM Plex Mono", "ui-monospace", "Cascadia Mono", "Consolas", monospace;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: var(--red-dark); }
a:hover { color: var(--red); }
img { max-width: 100%; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.5rem 1rem;
}
.skip:focus { left: 0; z-index: 20; }

.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--red);
  position: relative;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #fff;
}
.brand-mark::before { left: 11px; top: 5px; width: 6px; height: 18px; }
.brand-mark::after { left: 5px; top: 11px; width: 18px; height: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text em { font-style: normal; font-size: 0.7rem; color: #b9b9c2; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-toggle {
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: 1px solid #444;
  padding: 0.4rem 0.7rem;
  font: inherit;
  display: none;
}
.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  font-size: 0.92rem;
}
.site-nav a {
  color: #d8d8de;
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  border-bottom-color: var(--red);
}

.hero {
  background: var(--ink);
  color: var(--white);
  padding: 3.5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "24";
  position: absolute;
  right: -0.1em;
  bottom: -0.35em;
  font-size: clamp(8rem, 28vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  color: #1c1c22;
  line-height: 0.8;
  pointer-events: none;
}
.hero-inner, .wrap {
  max-width: 1120px;
  margin: 0 auto;
}
.hero-inner { position: relative; z-index: 1; }
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.8rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 14ch;
}
.lede {
  font-size: 1.15rem;
  max-width: 42rem;
  color: #d5d5dc;
  margin: 0 0 1.75rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  outline: 1px solid #5a5a66;
}
.btn-ghost:hover { outline-color: #fff; color: #fff; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: -1.5rem auto 0;
  max-width: 1120px;
  position: relative;
  z-index: 2;
}
.stats div {
  background: var(--white);
  padding: 1.1rem 1.2rem;
}
.stats strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.stats span { color: var(--muted); font-size: 0.85rem; }

.section { padding: 3.5rem 1.25rem; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem 1.3rem 1.4rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.04em;
  margin: 0 0 0.45rem;
}
.mail {
  background: #ece7dc;
  border-left: 4px solid var(--red);
  padding: 1.25rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  white-space: pre-wrap;
  color: #2a2a32;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
th, td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.page-head {
  padding: 2.5rem 1.25rem 0.5rem;
}
.page-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0.2rem 0 0.6rem;
}
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0 0 0.4rem; }
form label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
form input, form textarea, form select {
  width: 100%;
  max-width: 40rem;
  font: inherit;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 1rem;
}
.notice {
  background: #e7f3ea;
  border: 1px solid #b7d4be;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
.notice-warn {
  background: #fff4d6;
  border-color: #e6d39a;
}
.site-footer {
  background: var(--ink);
  color: #c9c9d1;
  padding: 2.5rem 1.25rem 2rem;
  margin-top: 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin: 0 0 0.5rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.35rem; }
.legal {
  max-width: 1120px;
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid #2a2a32;
  color: #8a8a94;
  font-size: 0.8rem;
}
.project-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
.badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #1a1a20;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
  }
  .site-nav.is-open { display: flex; }
  .bar { position: relative; }
  .stats, .grid-2, .grid-3, .footer-grid, .project-hero {
    grid-template-columns: 1fr;
  }
}
