:root {
  --bg: #fbfaf7;
  --text: #1d1c1a;
  --muted: #6b675f;
  --rule: #e4e0d8;
  --link: #1d1c1a;
  --banner-bg: #f3efe4;
  --serif:
    "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --text: #e9e6df;
    --muted: #9a958b;
    --rule: #2e2c29;
    --link: #e9e6df;
    --banner-bg: #23211e;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 20px 96px;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.2rem;
  margin: 0 0 0.4em;
}

h2 {
  font-size: 1.3rem;
  margin: 2.2em 0 0.6em;
}

p {
  margin: 0 0 1.2em;
}

/* Home */
.home {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.links {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Essay */
.draft-banner {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--banner-bg);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 48px;
}

.back {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.dek {
  font-size: 1.2rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.6em;
}

.byline {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 2em;
  margin-bottom: 2em;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 600px) {
  body {
    font-size: 18px;
  }
  main {
    padding: 48px 16px 72px;
  }
  h1 {
    font-size: 1.8rem;
  }
}
