:root {
  color-scheme: light;
  --bg: #f6f1e7;
  --bg-alt: #efe6d8;
  --ink: #1f2625;
  --muted: #6b6b62;
  --accent: #2e5f5b;
  --accent-strong: #1b3a37;
  --highlight: #f2a65a;
  --card: #ffffff;
  --border: rgba(31, 38, 37, 0.12);
  --shadow: 0 20px 60px rgba(46, 95, 91, 0.12);
  --radius: 20px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Crimson Pro", "Times New Roman", serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fef7ec 0%, var(--bg) 48%, #f4ead9 100%);
  min-height: 100vh;
}

.bg-orbit,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bg-orbit::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px dashed rgba(46, 95, 91, 0.25);
  top: -120px;
  right: -160px;
  animation: slow-spin 40s linear infinite;
}

.bg-glow::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 166, 90, 0.3), rgba(242, 166, 90, 0));
  bottom: -240px;
  left: -200px;
  filter: blur(10px);
}

@keyframes slow-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.container {
  width: min(92vw, var(--container));
  margin: 0 auto;
}

.site-header {
  padding: 32px 0 24px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.brand-mark {
  font-size: 22px;
  color: var(--accent);
}

.nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.hero {
  padding: 64px 0 32px;
  display: grid;
  gap: 16px;
}

.hero-kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0;
}

.hero-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.button:hover {
  transform: translateY(-2px);
}

.button.ghost {
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title h2,
.section-title h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.post-list {
  padding: 40px 0 80px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 95, 91, 0.4);
}

.post-card h3 {
  margin: 12px 0 8px;
  font-family: "Space Grotesk", sans-serif;
}

.post-card a {
  text-decoration: none;
  color: var(--ink);
}

.post-date {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Space Grotesk", sans-serif;
}

.tag-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-family: "Space Grotesk", sans-serif;
}

.empty {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
}

.post {
  padding: 48px 0 80px;
}

.post-header h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0 0 16px;
  font-family: "Space Grotesk", sans-serif;
}

.post-eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.post-lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
}

.post-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
}

.post-content {
  margin-top: 32px;
  line-height: 1.7;
  font-size: 1.1rem;
}

.post-content h2,
.post-content h3 {
  margin-top: 32px;
  font-family: "Space Grotesk", sans-serif;
}

.post-content pre {
  background: #141917;
  color: #f5f0e6;
  padding: 20px;
  border-radius: 16px;
  overflow-x: auto;
  font-size: 0.95rem;
}

.post-content code {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

.page {
  padding: 32px 0 80px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.archive {
  padding: 32px 0 80px;
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.archive-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.archive-date {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  color: var(--muted);
  min-width: 110px;
}

.site-footer {
  padding: 40px 0 60px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

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

  .nav a {
    margin-left: 0;
    margin-right: 12px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .archive-list li {
    flex-direction: column;
    gap: 6px;
  }
}
