/* Slabmint — editorial paper stylesheet.
   Light, typographic and column-based, deliberately unlike the app's dark UI:
   the site reads like a printed grading guide. Written for this project only. */

:root {
  --paper: #f6f2ea;
  --paper-deep: #ece5d8;
  --ink: #1b1a17;
  --ink-soft: #55514a;
  --ink-faint: #8b857a;
  --rule: #d9d1c1;
  --gold: #8a6a2f;
  --jade: #2f6f56;
  --measure: 34rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.62;
}

/* A thin foil rule across the very top, the only nod to the app's gold. */
body::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #cbb27c, #8a6a2f 45%, #cbb27c);
}

.sheet {
  max-width: 62rem;
  margin: 0 auto;
  padding: 2.4rem 1.6rem 5rem;
}

/* Masthead: wordmark left, navigation as running heads on the right. */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark em {
  font-style: normal;
  color: var(--gold);
}

.runners {
  display: flex;
  gap: 1.4rem;
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.runners a { color: var(--ink-soft); text-decoration: none; }
.runners a:hover, .runners a[aria-current] { color: var(--gold); }

/* Lede block, set wide and quiet. */
.lede {
  padding: 3.2rem 0 2.6rem;
  border-bottom: 1px solid var(--rule);
}

.lede h1 {
  font-size: clamp(2.1rem, 6vw, 3.3rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.lede p {
  margin: 0;
  max-width: var(--measure);
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* Two-column body: a running note in the margin beside the text. */
.columns {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2.4rem;
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.columns:last-of-type { border-bottom: 0; }

.margin-note {
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.45rem;
}

.body { max-width: var(--measure); }
.body > :first-child { margin-top: 0; }
.body h2 {
  font-size: 1.32rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.01em;
}
.body h3 {
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}
.body p, .body li { color: var(--ink-soft); }
.body a { color: var(--gold); text-underline-offset: 3px; }
.body ul { padding-left: 1.1rem; }
.body li { margin: 0.35rem 0; }

/* Figures: the numbers Slabmint measures, set as a small table. */
.figures {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 0.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86rem;
}

.figures th {
  text-align: left;
  font-family: ui-sans-serif, -apple-system, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

.figures td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

.figures td:last-child { text-align: right; color: var(--jade); }

/* Pull quote used once on the landing page. */
.pull {
  margin: 2.2rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--gold);
  font-size: 1.16rem;
  color: var(--ink);
  max-width: var(--measure);
}

.stamp {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: ui-sans-serif, -apple-system, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.stamp:hover { background: var(--gold); color: var(--paper); }

.colophon {
  margin-top: 3.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-family: ui-sans-serif, -apple-system, sans-serif;
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
}

.colophon a { color: var(--ink-faint); }

.revised {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0.2rem 0 0;
}

@media (max-width: 40rem) {
  .columns { grid-template-columns: 1fr; gap: 0.5rem; }
  .margin-note { padding-top: 0; }
  .sheet { padding: 1.8rem 1.1rem 3.5rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14130f;
    --paper-deep: #1b1a15;
    --ink: #f0ebe0;
    --ink-soft: #b3aca0;
    --ink-faint: #7e786d;
    --rule: #33302a;
    --gold: #c9a961;
    --jade: #6fc9a2;
  }
}
