@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --bg: #f8f6f1;
  --surface: #fffefb;
  --ink: #141414;
  --muted: #5a5a5a;
  --line: #d7d1c5;
  --accent: #7a1f1f;
  --accent-soft: #eee4d8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  font-family: "Libre Baskerville", Georgia, serif;
  background: var(--bg);
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 100% 0%, rgba(209, 196, 176, 0.24), transparent 36%);
}

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

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.2rem;
}

.site-header {
  padding-top: 1rem;
  border-bottom: 2px solid var(--ink);
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
}

.brand-mark {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.brand-text {
  font-size: 1.9rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  color: var(--ink);
}

.nav {
  display: inline-flex;
  gap: 0.3rem;
}

.nav a {
  text-decoration: none;
  padding: 0.3rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a:hover {
  border-color: var(--ink);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
}

.hero {
  border-top: 4px double var(--ink);
  border-bottom: 4px double var(--ink);
}

h1,
h2,
h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(1.95rem, 5vw, 2.85rem);
}

h2 {
  font-size: clamp(1.32rem, 3.5vw, 1.7rem);
}

.eyebrow {
  margin: 0 0 0.38rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.hero-actions {
  display: flex;
  gap: 0.62rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 1rem;
}

.button {
  display: inline-block;
  padding: 0.58rem 0.86rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.button:hover {
  background: #f2eee6;
}

.button-subtle {
  background: transparent;
  border-color: var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.stat-card {
  border: 1px solid var(--line);
  background: #fbf9f4;
  padding: 0.65rem 0.8rem;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  margin: 0.05rem 0 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.44rem;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  padding: 0.52rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}

.list li:last-child {
  border-bottom: 0;
}

.pill {
  display: inline-block;
  padding: 0.14rem 0.44rem;
  border-radius: 2px;
  background: var(--accent-soft);
  color: #4d3724;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.meta,
.footer {
  color: var(--muted);
}

.digest {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.25rem;
}

.digest-content {
  max-width: 74ch;
}

.digest-content > p:first-of-type::first-letter {
  float: left;
  font-size: 2.4em;
  line-height: 0.88;
  padding-right: 0.07em;
  padding-top: 0.04em;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
}

.digest-content h1,
.digest-content h2,
.digest-content h3 {
  margin-top: 1rem;
}

.digest-content blockquote {
  margin: 0.9rem 0;
  padding: 0.55rem 0.8rem;
  border-left: 3px solid var(--line);
  background: #faf7f1;
}

.footer {
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.85rem;
}

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

  .nav {
    width: 100%;
  }

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

  .list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
