/* Palette/typography matched to reading-wiki's newsletter issues, so the whole
   site (homepage, blog, newsletter archive) and the issues themselves read as
   one consistent thing. */
:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --card-alt: #f6f5f0;
  --border: #e5e2d9;
  --border-strong: #d8d3c4;
  --ink: #1d272a;
  --ink-muted: #646464;
  --ink-faint: #9a9a9a;
  --terracotta: #c4652d;
  --terracotta-soft: #f7e9df;
  --blue: #3f6178;
  --blue-soft: #e7eef1;
  --shadow: 0 1px 3px rgba(29,39,42,0.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181f21; --card: #212a2c; --card-alt: #262f31;
    --border: #34403c; --border-strong: #414e49;
    --ink: #f2f0e9; --ink-muted: #b3b8ae; --ink-faint: #7d857d;
    --terracotta: #e2864f; --terracotta-soft: #3a2e24;
    --blue: #8bb3c4; --blue-soft: #22322f;
    --shadow: 0 1px 4px rgba(0,0,0,0.25);
  }
}
:root[data-theme="dark"] {
  --bg: #181f21; --card: #212a2c; --card-alt: #262f31;
  --border: #34403c; --border-strong: #414e49;
  --ink: #f2f0e9; --ink-muted: #b3b8ae; --ink-faint: #7d857d;
  --terracotta: #e2864f; --terracotta-soft: #3a2e24;
  --blue: #8bb3c4; --blue-soft: #22322f;
  --shadow: 0 1px 4px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; transition: background 0.15s ease, color 0.15s ease;
  font-family: "Suisse Intl", Arial, Helvetica, sans-serif;
  font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--bg);
}
.wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }

.theme-toggle {
  position: fixed; top: 24px; right: 24px; width: 40px; height: 40px;
  border-radius: 100px; background: var(--card); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 17px; z-index: 999; box-shadow: var(--shadow); line-height: 1;
}
.theme-toggle:hover { border-color: var(--terracotta); }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 48px;
}
header.site .brand {
  font-family: "Suisse Works Book", Georgia, serif; font-weight: 400;
  font-size: 1.3rem; text-decoration: none; color: var(--ink);
}
header.site nav { display: flex; gap: 24px; }
header.site nav a {
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); text-decoration: none;
}
header.site nav a:hover, header.site nav a.active { color: var(--terracotta); }

h1 {
  font-family: "Suisse Works Book", Georgia, serif; font-weight: 400;
  font-size: 40px; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--ink);
}
h2 { font-family: "Suisse Works Book", Georgia, serif; font-weight: 400; font-size: 1.4rem; margin: 40px 0 12px; }
p { margin: 0 0 16px; }
a { color: var(--terracotta); }

.eyebrow {
  display: inline-block; font-family: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--terracotta); margin-bottom: 16px;
}
.tagline { color: var(--ink-muted); font-size: 17.5px; margin-bottom: 32px; max-width: 62ch; }

.links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.links a {
  display: inline-block; padding: 7px 16px; border-radius: 100px;
  background: var(--terracotta-soft); color: var(--terracotta); text-decoration: none;
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
}

.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-list li {
  margin: 14px 0; padding: 18px 22px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px;
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.entry-date {
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; color: var(--ink-faint); white-space: nowrap;
}
.entry-list a.entry-title {
  font-family: "Suisse Works Book", Georgia, serif; font-size: 1.05rem;
  text-decoration: none; color: var(--ink);
}
.entry-list a.entry-title:hover { color: var(--terracotta); }
.entry-blurb { flex-basis: 100%; color: var(--ink-muted); font-size: 0.9rem; margin: 2px 0 0; }

.empty-state { color: var(--ink-faint); font-style: italic; padding: 20px 0; }

.back-link {
  color: var(--terracotta); text-decoration: none; font-weight: 500;
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
}

article.post .post-date {
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; color: var(--ink-faint); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
article.post h1 { margin-bottom: 8px; }

footer.site {
  margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--ink-faint); font-size: 13px;
}
