:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --surface: #fffdf8;
  --ink: #20211e;
  --muted: #6d6b62;
  --line: #d9d2c5;
  --accent: #d8582b;
  --accent-dark: #a93d19;
  --shadow: 0 18px 55px rgba(52, 42, 28, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 210, 197, 0.9);
  background: rgba(246, 242, 233, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-family: Georgia, serif;
}

nav { display: flex; flex-wrap: wrap; gap: 9px 22px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--ink); }

.hero {
  padding: clamp(66px, 10vw, 132px) clamp(20px, 5vw, 72px) 58px;
  border-bottom: 1px solid var(--line);
}

.hero-inner { max-width: 1050px; margin: 0 auto; }
.eyebrow { color: var(--accent-dark); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.035em; }
h1 { margin: 14px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 7vw, 82px); font-weight: 500; }
.hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(18px, 2.4vw, 23px); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 72px) 84px;
}

.card {
  min-height: 230px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover { transform: translateY(-3px); border-color: #b8ad9b; color: var(--ink); }
.card-number { color: var(--accent-dark); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; }
.card h2 { margin: 38px 0 10px; font-family: Georgia, serif; font-size: clamp(25px, 3vw, 36px); font-weight: 500; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.document {
  width: min(920px, calc(100% - 40px));
  margin: 48px auto 72px;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document #title-block-header { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.document h1 { font-size: clamp(35px, 5vw, 57px); }
.document h2 { margin-top: 2.25em; font-size: clamp(25px, 3vw, 34px); }
.document h3 { margin-top: 1.8em; font-size: 21px; }
.document p, .document li { max-width: 76ch; }
.document table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.document th, .document td { min-width: 150px; padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.document th { background: #eee8dc; }
.document blockquote { margin: 28px 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--accent); color: var(--muted); }

.site-footer {
  padding: 35px 20px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.site-footer p { margin: 5px 0; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { position: static; align-items: flex-start; flex-direction: column; gap: 12px; }
  nav { gap: 8px 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 190px; }
  .document { width: min(100% - 24px, 920px); margin-top: 18px; padding: 24px 20px; border-radius: 16px; }
}

@media print {
  .site-header, .site-footer { display: none; }
  body { background: #fff; font-size: 12pt; }
  .document { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
}
