:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --ink-faint: #8b847b;
  --rule: #e2ddd3;
  --accent: #a2571b;
  --accent-soft: #f0e3d5;
  --morning: #b4761f;
  --evening: #4a5f7a;
  --measure: 34rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Source Serif 4", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --surface: #1b1a16;
    --ink: #e8e3d9;
    --ink-soft: #a8a196;
    --ink-faint: #767065;
    --rule: #2c2a24;
    --accent: #d99548;
    --accent-soft: #2a2318;
    --morning: #d99548;
    --evening: #7f9bbd;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  padding: 0 1.25rem;
}
main { max-width: var(--measure); margin: 0 auto; padding-bottom: 5rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.masthead {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.wordmark {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.35rem;
}
.tagline {
  margin: 1.1rem 0 0;
  color: var(--ink-faint);
  font-style: italic;
  font-size: 0.9375rem;
}

.daymark {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 3rem 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.daymark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.card:last-of-type { border-bottom: 0; }
.card h3 { margin: 0.5rem 0 0.4rem; font-size: 1.375rem; line-height: 1.3; font-weight: 600; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.dek { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.65; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.edition { font-weight: 600; }
.edition--morning { color: var(--morning); }
.edition--evening { color: var(--evening); }
.mood { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.85; }

.post { padding: 1rem 0 2rem; }
.post h1 {
  margin: 0.75rem 0 2rem;
  font-size: 2rem;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4rem; }
.prose h2 { margin: 2.6rem 0 0.9rem; font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.prose h3 { margin: 2rem 0 0.7rem; font-size: 1.0625rem; font-weight: 600; }
.prose h4 { margin: 1.6rem 0 0.6rem; font-size: 0.9375rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--accent-soft);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.prose img { max-width: 100%; height: auto; }

.tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none; margin: 2.5rem 0 0; padding: 0;
}
.tags li {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em;
  color: var(--ink-faint); border: 1px solid var(--rule);
  border-radius: 999px; padding: 0.2rem 0.65rem;
}

.pager {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em;
}
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager--post a { max-width: 45%; }

.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.foot button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--ink-faint); text-decoration: underline;
}
.foot button:hover { color: var(--accent); }

.empty { padding: 5rem 0; text-align: center; }
.empty h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 0.75rem; }
.empty p { color: var(--ink-soft); margin: 0; }

.gate {
  max-width: 22rem; margin: 0 auto; padding: 22vh 0 4rem; text-align: center;
}
.gate h1 {
  font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500; margin: 0 0 0.75rem;
}
.gate-sub { color: var(--ink-faint); font-size: 0.9375rem; font-style: italic; margin: 0 0 2.25rem; }
.gate-form { display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.gate-form label {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.gate-form input {
  font: inherit; font-family: var(--mono); font-size: 0.9375rem;
  padding: 0.7rem 0.85rem; border: 1px solid var(--rule); border-radius: 5px;
  background: var(--surface); color: var(--ink);
}
.gate-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.gate-form button {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.7rem 1rem; margin-top: 0.5rem; cursor: pointer;
  border: 1px solid var(--accent); border-radius: 5px;
  background: var(--accent); color: var(--bg);
}
.gate-form button:hover { filter: brightness(1.08); }
.gate-form button:disabled, .gate-form input:disabled { opacity: 0.45; cursor: not-allowed; }
.error {
  color: var(--accent); font-family: var(--mono); font-size: 0.75rem;
  margin: 0 0 1.25rem; letter-spacing: 0.04em;
}

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .post h1 { font-size: 1.6rem; }
  .masthead { padding: 2.5rem 0 1.5rem; }
  .foot { flex-direction: column; align-items: flex-start; }
}
