:root {
  --ink: #20211d;
  --muted: #72746b;
  --paper: #f7f3e8;
  --panel: #fffcf3;
  --line: #ded7c6;
  --yellow: #ffc84d;
  --cream: #fff1bf;
  --green: #1d8b62;
  --red: #d84836;
  --blue-soft: #dceeff;
  --shadow: #20211d;
}

* { box-sizing: border-box; }

html {
  color: var(--ink);
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(32, 33, 29, .045) 1px, transparent 1px),
    linear-gradient(rgba(32, 33, 29, .045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
}

.mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  overflow: hidden;
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--shadow);
  font-size: 12px;
  font-weight: 900;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 3px 3px 0 var(--shadow);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: var(--yellow);
}

.doc {
  padding: clamp(22px, 4vw, 40px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 7px 7px 0 var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin: 0; }

h1 {
  max-width: 12ch;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .9;
  letter-spacing: 0;
  font-weight: 1000;
}

h2 {
  margin-top: 32px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: .95;
  letter-spacing: 0;
  font-weight: 1000;
}

h3 {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 950;
}

.lead {
  max-width: 70ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.fact,
.clause {
  padding: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
}

.fact strong,
.clause strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fact span,
.clause p,
li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.52;
  font-weight: 650;
}

.clauses {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.clause p + p { margin-top: 10px; }

ul, ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

li + li { margin-top: 8px; }

.callout {
  margin-top: 24px;
  padding: 16px;
  border: 1.5px dashed var(--ink);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.footer {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 { max-width: 9ch; }
}
