@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant_garamond_regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant_garamond_semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/fonts/lora_regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/fonts/lora_semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/fonts/lora_italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f3f2f2;
  --text: #201f1d;
  --muted: #605d5d;
  --faint: #7d7979;
  --rule: rgba(32, 31, 29, 0.16);
  --accent: #b68235;
  --accent-strong: #7d5411;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18;
    --text: #f1ece4;
    --muted: #c5bcab;
    --faint: #a89e8e;
    --rule: #3b3630;
    --accent: #c08f42;
    --accent-strong: #dcb679;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

header.site {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

header.site img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
}

header.site a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  font-size: 2.6rem;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 0.5rem;
}

.eyebrow {
  margin: 0 0 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

p,
li {
  color: var(--muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

a {
  color: var(--accent-strong);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

ul.links {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--rule);
}

ul.links li {
  border-bottom: 1px solid var(--rule);
}

ul.links a {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}

ul.links a::after {
  content: "›";
  color: var(--faint);
}

pre {
  white-space: pre-wrap;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--faint);
}

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