:root {
  --ink: #152033;
  --muted: #5b667a;
  --line: #d7dce6;
  --accent: #0369a1;
  --serif: "EB Garamond", "Fraunces", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body.doc {
  margin: 0;
  background: #ece7de;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

.doc-nav {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 1rem auto 0;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.doc-nav a,
.doc-nav button {
  color: var(--muted);
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.sheet {
  width: min(800px, calc(100% - 2rem));
  margin: 1rem auto 3rem;
  padding: 2.4rem 2.6rem 2.8rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(21, 32, 51, 0.08);
}

header h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

header a { color: inherit; }

h2 {
  margin: 1.6rem 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
}

h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1rem;
}

h3 span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.86rem;
}

p, li { font-size: 0.95rem; }

ul { margin: 0.25rem 0 0; padding-left: 1.15rem; }
li + li { margin-top: 0.28rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.stats div {
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .sheet { padding: 1.4rem; }
}

@media print {
  body.doc { background: #fff; }
  .doc-nav { display: none; }
  .sheet {
    width: auto;
    margin: 0;
    border: 0;
    box-shadow: none;
  }
}
