:root {
  --bg: #f6f4f0;
  --surface: #fffefc;
  --ink: #2a2430;
  --ink-soft: #544d58;
  --muted: #756e7c;
  --line: #e6e1db;
  --accent: #8a3d63;
  --accent-soft: #f3e3ec;
  --accent-ink: #75345a;
  --shadow-card: 0 1px 2px rgba(50, 40, 55, 0.04), 0 6px 20px -8px rgba(50, 40, 55, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-soft); color: var(--accent-ink); }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.font-display, h1, h2, h3 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Header */
.site-header {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { height: 30px; width: auto; display: block; }
.brand span {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 1.5rem; font-size: 0.92rem; font-weight: 500; }
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--accent-ink); text-decoration: none; }

/* Page shells */
.page-narrow { max-width: 44rem; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.page-wide { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem 5rem; }
.page-narrow h1, .page-wide h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; }
.page-narrow h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.page-narrow p, .page-narrow li { line-height: 1.7; color: var(--ink-soft); margin-top: 0.75rem; }
.page-narrow ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.lede { font-size: 1.1rem; }
.updated { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); line-height: 1.6; font-size: 0.95rem; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}
.site-footer .inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-ink); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none !important; }
}
