/* Quitanza, notary gravitas: ink on paper, letterpress numerals,
   the milled coin edge as a divider system. */

:root {
  --ink: #1c1a17;
  --paper: #f7f3ea;
  --paper-deep: #efe8d8;
  --accent: #7a1f1f;       /* sealing-wax red */
  --rule: #c9bda3;
  --muted: #6b6354;
  --mono: "Consolas", "SF Mono", ui-monospace, monospace;
  --serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-feature-settings: "onum" 1, "pnum" 1; /* letterpress (old-style) numerals */
  font-variant-numeric: oldstyle-nums;
}

main, .shell {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* milled edge: the tamper-evident border, as CSS */
.milled {
  border: none;
  height: 9px;
  margin: 3rem 0;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 7px
  );
  opacity: 0.55;
}

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

header.site .shell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.wordmark {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.wordmark .seal { color: var(--accent); }

nav.primary a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

nav.primary a:hover, nav.primary a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; margin: 2.5rem 0 1rem; }
h2 { font-size: 1.45rem; margin-top: 2.5rem; }
h3 { font-size: 1.1rem; }

.hero {
  padding: 4rem 0 1rem;
  text-align: center;
}

.hero h1 { font-size: 2.9rem; margin: 1rem 0 0.5rem; }

.hero .lede {
  font-size: 1.15rem;
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--muted);
}

.seal-mark {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  display: block;
}

a { color: var(--accent); }

pre, code {
  font-family: var(--mono);
  font-size: 0.84em;
  font-variant-numeric: normal;
}

pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  border-radius: 2px;
  line-height: 1.5;
}

:not(pre) > code {
  background: var(--paper-deep);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.cards li {
  border: 1px solid var(--rule);
  padding: 1rem 1.2rem;
  background: #fffdf7;
}

.cards li strong { display: block; margin-bottom: 0.3rem; }
.cards li span { font-size: 0.92rem; color: var(--muted); }

ol.ledger {
  counter-reset: item;
  list-style: none;
  padding-left: 0;
}

ol.ledger > li {
  counter-increment: item;
  margin: 1.1rem 0;
  padding-left: 3rem;
  position: relative;
}

ol.ledger > li::before {
  content: counter(item, upper-roman);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

footer.site {
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .shell { padding: 2rem 1.25rem 2.5rem; }

footer.site .pron { font-style: italic; }

.release-date {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.docs-nav {
  font-size: 0.92rem;
  margin: 1.5rem 0;
  color: var(--muted);
}

.docs-nav a { margin-right: 1rem; }

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  h1 { font-size: 1.8rem; }
}
