:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --ink: #171b1f;
  --muted: #626b75;
  --line: #d8ddd2;
  --accent: #0a7a68;
  --accent-ink: #06473d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 40px clamp(20px, 5vw, 72px) 24px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.site-wordmark {
  color: var(--accent-ink);
  font-size: clamp(28px, 5.6vw, 78px);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.subtle-link {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

#status {
  min-width: 130px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.posts {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.search-box {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
}

.search-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.search-box input:focus {
  border-bottom-color: var(--accent);
  outline: 0;
}

.search-box input::placeholder {
  color: #8a918b;
}

.post {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.day-heading {
  margin: 36px 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
}

.post-meta {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.legal-page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.legal-page p {
  color: #293139;
  line-height: 1.65;
}

.legal-page h2 {
  margin-top: 28px;
  font-size: 24px;
}

.summary {
  max-width: 760px;
  color: #293139;
  font-size: 18px;
  line-height: 1.6;
}

.articles {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding-left: 22px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 22px;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.articles li {
  padding-left: 4px;
}

.article-meta {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.articles a {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.empty {
  margin-top: 64px;
  color: var(--muted);
  font-size: 18px;
}

.muted-row {
  color: var(--muted);
  font-size: 14px;
}

.read-more {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hub-intro {
  padding: 8px 0 12px;
}

.hub-search {
  margin: 18px 0 22px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.topic-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 190px;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.topic-card:nth-child(3n) {
  border-right: 0;
}

.topic-card span {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topic-card strong {
  font-size: 26px;
  line-height: 1;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.topic-card.is-muted {
  opacity: 0.58;
}

.topic-card:hover {
  background: rgba(255, 255, 255, 0.45);
}

.topic-card[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .site-header {
    align-items: start;
    flex-direction: column;
  }

  #status {
    text-align: left;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card,
  .topic-card:nth-child(3n) {
    border-right: 0;
  }
}
