:root {
  color-scheme: light;
  --ink: #211d1d;
  --muted: #6c6262;
  --line: #e8dede;
  --paper: #fffdfb;
  --surface: #f8f2ef;
  --brand: #8e1b1b;
  --brand-dark: #681111;
  --accent: #c67642;
  --content: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  margin: auto;
  padding: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

nav { display: flex; flex-wrap: wrap; gap: 20px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
nav a[aria-current="page"], nav a:hover { color: var(--brand); }

.content {
  max-width: var(--content);
  min-height: calc(100vh - 150px);
  margin: auto;
  padding: 56px 24px 80px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; }
h1 { margin: 0 0 28px; font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { margin-top: 56px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 1.75rem; }
h3 { margin-top: 34px; font-size: 1.2rem; }
p, ul, ol { max-width: 76ch; }

.hero {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 44px;
  padding: 34px 0 26px;
}

.hero-logo { width: 150px; height: 150px; border-radius: 28px; box-shadow: 0 16px 45px #7a252526; }
.hero h1 { margin-bottom: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-copy { margin: 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button {
  display: inline-block;
  padding: 10px 17px;
  border: 1px solid var(--brand);
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
}
.button.primary { color: white; background: var(--brand); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { background: transparent; }

.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  box-shadow: 0 8px 24px #4422220a;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.doc-card:hover { transform: translateY(-3px); border-color: #cfaeae; color: var(--ink); }
.doc-card h3 { margin: 12px 0 8px; }
.doc-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card-number { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .12em; }

table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
th, td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
th { background: var(--surface); }

pre {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #2b2525;
  color: #fff8f1;
  line-height: 1.5;
}
code { padding: .12em .35em; border-radius: 4px; background: var(--surface); font-size: .9em; }
pre code { padding: 0; background: none; }
blockquote { margin-left: 0; padding: 4px 18px; border-left: 4px solid var(--accent); color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--content);
  margin: auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
  nav { gap: 12px 16px; }
  .content { padding-top: 36px; }
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero-logo { width: 100px; height: 100px; border-radius: 20px; }
  .doc-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
