@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #f3f0e8;
  --paper: #fffdf8;
  --ink: #111111;
  --muted: #4e4e4e;
  --line: #1f1f1f;
  --accent: #ff4d00;
  --accent-2: #ffd54a;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bg);
}

a { color: #001c7a; }

a:hover { color: #000; }

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.rail {
  border-right: 3px solid var(--line);
  background: #f8f5ec;
  padding: 1.3rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand-box {
  border: 3px solid var(--line);
  background: #fff;
  padding: 0.8rem;
  border-radius: 10px;
}

.logo-link {
  text-decoration: none;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.8rem;
  align-items: center;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: #fff url('/logo.png?v=1') center/cover no-repeat;
}

.wordmark {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.1rem;
  color: #111;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rail-tag {
  margin: 0.8rem 0 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #424242;
}

.rail-nav {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.42rem;
}

.rail-nav a {
  text-decoration: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #111;
  background: #fff;
}

.rail-nav a:hover {
  background: var(--accent);
  color: #fff;
}

.rail-note {
  margin-top: 1rem;
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  font-size: 0.86rem;
  background: #fff8db;
}

.content {
  padding: 1.2rem;
}

.mast {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, #fff, #fff2ec 42%, #fff8d8);
  padding: clamp(1rem, 2.5vw, 1.8rem);
  margin-bottom: 1rem;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  border: 2px solid var(--line);
  background: var(--accent-2);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.25;
}

h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.mast p {
  margin: 0;
  max-width: 74ch;
  color: #2d2d2d;
  font-size: 1.04rem;
}

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

.deck-card {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.72rem;
}

.deck-card strong {
  display: block;
  font-size: 1.4rem;
  font-family: 'Archivo Black', sans-serif;
}

.deck-card span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3a3a3a;
}

.content-card {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(1rem, 2.2vw, 1.7rem);
}

.content-card p,
.content-card li {
  color: #232323;
  line-height: 1.72;
}

.content-card h1 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  text-transform: none;
  letter-spacing: -0.02em;
}

.content-card h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  text-transform: uppercase;
}

.content-card h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.45rem;
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
}

ul, ol { padding-left: 1.2rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border: 2px solid var(--line);
  background: #fff;
}

th, td {
  border: 1px solid #272727;
  padding: 0.58rem;
  text-align: left;
}

th {
  background: #151515;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-footer {
  margin-top: 1rem;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-footer nav a {
  text-decoration: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.76rem;
  color: #111;
  font-weight: 700;
  text-transform: uppercase;
}

.copy {
  margin: 0;
  font-size: 0.82rem;
  color: #3d3d3d;
}

@media (max-width: 1020px) {
  .site-shell { grid-template-columns: 1fr; }
  .rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 3px solid var(--line);
  }
  .deck { grid-template-columns: 1fr; }
}
