/* Re:Human base styles. Load after tokens.css. Every value is a token. */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 32px;
  font-weight: 400;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* nothing is bold: browsers bold these by default */
h1, h2, h3, h4, h5, h6, th { margin: 0; font-weight: 400; }
b, strong { font-weight: 400; font-style: italic; }
p, figure, blockquote { margin: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ochre-wash); color: var(--ink); }

/* the page: one column, at most 720px, everything in it set from its left edge */
.page { padding: var(--space-5) var(--space-4); }
.column { max-width: 720px; margin: 0 auto; }
.column p, .column li, .column blockquote { max-width: var(--measure); text-wrap: pretty; }
@media (max-width: 400px) { .page { padding: var(--space-4) var(--space-3); } }

/* the colours of the quiet styles */
.label { text-transform: uppercase; color: var(--ink-muted); }
.meta, .small, .lede { color: var(--ink-muted); }

/* display styles step down one size on a narrow screen */
@media (max-width: 600px) {
  .masthead { font-size: 72px; line-height: 80px; letter-spacing: -0.015em; }
  .display  { font-size: 48px; line-height: 56px; letter-spacing: -0.01em; }
  .headline { font-size: 36px; line-height: 40px; letter-spacing: -0.005em; }
  .title    { font-size: 28px; line-height: 32px; letter-spacing: 0; }
  .heading  { font-size: 24px; line-height: 32px; }
}

/* links, hairlines, tables */
a { color: var(--clay-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-5) 0; }
table { border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
th, td { padding: var(--space-2) var(--space-3) var(--space-2) 0; text-align: left; border-bottom: 1px solid var(--rule); }

/* the opening words of a piece, and the one line a page turns on */
.leadin { font-variant-caps: all-small-caps; letter-spacing: 0.06em; }
.turn { margin: var(--space-5) 0; text-wrap: balance; }

/* a pull quote: on a wash, or between two hairlines */
.pull { padding: var(--space-4); background: var(--clay-wash); color: var(--ink); max-width: none; }

/* controls: a field is a line to write on; the one primary button is an ink field */
.field {
  height: 64px; min-width: 0; padding: 0;
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: var(--radius-none);
  font: inherit;
}
.button {
  display: inline-flex; align-items: center; height: 64px; padding: 0 var(--space-4);
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: var(--radius-none);
  font: inherit; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--clay); color: var(--on-clay); }
:focus-visible { outline: 2px solid var(--rule-focus); outline-offset: 2px; }

/* the subscribe box */
.join { background: var(--paper-sunk); padding: var(--space-4); margin-top: var(--space-5); max-width: 546px; }
.join .label { display: block; margin-bottom: var(--space-2); }
.join-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.join-row .field { flex: 1 1 200px; }
.join-row .button { flex: 0 0 auto; }
.note { margin-top: var(--space-3); }

/* the foot of a page */
.colophon { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5); }

/* logo files carry their own colours: show the plain file by day and the -reversed file by night */
:root, [data-theme="light"] { --show-day: block; --show-night: none; }
[data-theme="dark"] { --show-day: none; --show-night: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --show-day: none; --show-night: block; } }
.on-day { display: var(--show-day); }
.on-night { display: var(--show-night); }
