:root {
  --ink: #1a1a1a;
  --ink-soft: #2d2d2d;
  --muted: #6b6b6b;
  --rule: #e6e2dc;
  --paper: #faf8f4;
  --paper-edge: #f3efe7;
  --accent: #8b2e2a;
  --link: #4a3aff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-edge);
}
.masthead-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 32px;
}
.masthead img {
  max-width: 280px;
  height: auto;
  display: block;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.eyebrow {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}

.subtitle {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--muted);
  margin: 0 0 48px;
}

.lede {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.all-caps {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background: var(--paper-edge);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
}

p { margin: 0 0 18px; }

ol.terms {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  counter-reset: section;
}
ol.terms > li {
  counter-increment: section;
  padding: 28px 0 28px 56px;
  border-top: 1px solid var(--rule);
  position: relative;
}
ol.terms > li:last-child { border-bottom: 1px solid var(--rule); }
ol.terms > li::before {
  content: counter(section, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 30px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

ol.terms > li > strong:first-child {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}

ol.sub {
  list-style: lower-alpha;
  padding-left: 22px;
  margin: 14px 0;
}
ol.sub li { margin-bottom: 10px; }

ol.sub-roman {
  list-style: lower-roman;
  padding-left: 22px;
  margin: 10px 0;
}
ol.sub-roman li { margin-bottom: 8px; }

.footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-edge);
  margin-top: 60px;
}
.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.footer img {
  max-width: 200px;
  height: auto;
}
.copyright {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding: 40px 22px 60px; }
  .masthead-inner { padding: 22px; }
  .footer-inner { padding: 30px 22px; }
  ol.terms > li { padding-left: 0; padding-top: 24px; }
  ol.terms > li::before {
    position: static;
    display: block;
    margin-bottom: 6px;
  }
  .all-caps { padding: 16px 18px; font-size: 14px; }
}
