/* The privacy policy and terms: long reading, in the site's type. */
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fbfaf6;
  --ink: #1f1d1a;
  --faint: #6b645a; /* 5.59:1 on this paper (AA needs 4.5); the letter pages use the same grey */
  --rule: rgba(31, 29, 26, 0.14);
  --todo: #f0e2bf;
  color-scheme: only light;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "EB Garamond", "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 36em;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) 1.5rem 5rem;
  counter-reset: section;
}

.home { display: inline-block; color: var(--ink); }
.home .mark { display: block; height: 3.4rem; width: auto; overflow: visible; }

h1 {
  margin: 1.4em 0 0.15em;
  font-size: 2.2em;
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
}
.updated { margin: 0 0 2.2em; color: var(--faint); }

/* Until the pages are final: a line saying so, and every gap still to fill highlighted. */
.draft { margin: 1.6em 0 0; font-size: 0.9em; font-style: italic; color: var(--faint); }
mark.todo { background: var(--todo); color: inherit; padding: 0 0.15em; border-radius: 2px; }

.contents { margin: 0 0 2.6em; color: var(--faint); font-size: 0.95em; }
.contents ol { margin: 0; padding-left: 1.4em; columns: 2 15em; column-gap: 2em; }
.contents li { margin: 0.15em 0; break-inside: avoid; }

h2 {
  margin: 2.4em 0 0.6em;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.3;
  scroll-margin-top: 1.5rem;
}
h2::before {
  counter-increment: section;
  content: counter(section) ".";
  display: inline-block;
  min-width: 1.6em;
  font-weight: 400;
  color: var(--faint);
}
h3 { margin: 1.7em 0 0.4em; font-size: 1em; font-style: italic; font-weight: 400; scroll-margin-top: 1.5rem; }

p { margin: 0.7em 0; }
ul { margin: 0.7em 0; padding-left: 1.2em; }
li { margin: 0.45em 0; }
b { font-weight: 600; }

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }

table { width: 100%; margin: 1em 0; border-collapse: collapse; font-size: 0.95em; }
th, td { padding: 0.55em 0.8em 0.55em 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { font-weight: 400; font-style: italic; color: var(--faint); }

/* The same four links close every page of the site; each is a thumb's height (44px) and at least as wide. */
footer {
  display: flex;
  flex-wrap: wrap;
  max-width: 40em; /* the text column's 36em, at this smaller size */
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  font-size: 0.9em;
  color: var(--faint);
}
footer a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; padding-right: 1.7em; }
