*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
}

:root {
  --bg: #f6f3ee;
  --fg: #1c1a16;
  --muted: #5c574e;
  --link: #1a3550;
  --link-hover: #0d2240;
  --rule: #d3cec5;
  --selection: #d9d2c6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161411;
    --fg: #e8e2d6;
    --muted: #a39c90;
    --link: #b7c9d6;
    --link-hover: #dce6ee;
    --rule: #3a3630;
    --selection: #3d3830;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", Times, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums;
}

::selection {
  background: var(--selection);
  color: var(--fg);
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 1.4rem 3rem;
}

@media (min-width: 40rem) {
  body {
    font-size: 1.1875rem;
  }

  .page {
    padding: 6.5rem 2rem 4.5rem;
  }
}

header {
  margin-bottom: 2.25rem;
}

.masthead {
  margin: 0 0 1.75rem;
  font-size: 1rem;
}

.masthead a {
  color: var(--fg);
  text-decoration: none;
}

.masthead a:hover,
.masthead a:focus-visible {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

h1::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  background: var(--fg);
  opacity: 0.35;
  margin: 1.2rem 0 0;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.5rem 0 1.15rem;
}

p {
  margin: 0 0 1.15rem;
}

.lead {
  font-size: 1.15em;
  line-height: 1.5;
  margin: 1.35rem 0 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

code {
  font-family: "Liberation Mono", "DejaVu Sans Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: 0.88em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
}

.writing {
  list-style: none;
  margin: 0;
  padding: 0;
}

.writing li {
  margin: 0 0 1.2rem;
}

.writing a {
  font-weight: 500;
}

.writing .meta {
  display: block;
  color: var(--muted);
  font-size: 0.92em;
  margin-top: 0.2rem;
}

.more {
  margin-top: 1.75rem;
}

.quiet {
  margin-top: 2.25rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.quiet a {
  color: var(--muted);
}

.quiet a:hover,
.quiet a:focus-visible {
  color: var(--link-hover);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0 1.35rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
}

th,
td {
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.empty {
  color: var(--muted);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.hash {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82em;
  font-variant-numeric: lining-nums;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--muted);
}

footer a:hover,
footer a:focus-visible {
  color: var(--link-hover);
}

.sep {
  margin: 0 0.35em;
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}

body.wide .page {
  max-width: 52rem;
}

.footer-reg {
  white-space: nowrap;
}

.portrait {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: 0 0 1.25rem;
  filter: grayscale(1);
}
