:root {
  --bg: #f4f1ec;
  --bg-deep: #e2ded6;
  --ink: #1d1b1a;
  --muted: #5b5752;
  --accent: #0c7c6e;
  --accent-dark: #064f46;
  --card: #ffffffcc;
  --stroke: #d2ccc3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff7e6 0%, var(--bg) 45%, var(--bg-deep) 100%);
  min-height: 100vh;
  animation: fadeIn 0.8s ease both;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(12, 124, 110, 0.12), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35) 1px, transparent 1px, transparent 12px);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.site-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 24px;
  font-weight: 700;
}

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

.site-nav {
  display: flex;
  gap: 16px;
  font-weight: 500;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  border-color: var(--stroke);
  background: #ffffff;
}

.content {
  margin-top: 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
}

.hero-card,
.hero-panel {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(16, 12, 8, 0.1);
  animation: floatUp 0.8s ease both;
}

.hero-panel {
  animation-delay: 0.1s;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 600;
}

.hero-card h1,
.daily h1,
.archive-page h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 40px;
  margin: 8px 0 12px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.summary {
  font-size: 16px;
  line-height: 1.6;
}

.summary p {
  margin: 0 0 12px;
}

.summary ul {
  margin: 0 0 12px 20px;
  padding: 0;
}

.summary li {
  margin-bottom: 6px;
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--stroke);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.primary {
  margin-top: 18px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(12, 124, 110, 0.25);
}

.primary:hover {
  background: var(--accent-dark);
}

.ghost {
  border-color: var(--stroke);
  background: #ffffff;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.daily-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.daily-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.overview {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--stroke);
  margin-bottom: 24px;
}

.overview h2 {
  margin-top: 0;
  font-family: "Fraunces", "Georgia", serif;
}

.entries {
  display: grid;
  gap: 16px;
}

.entry-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.entry-error {
  border-color: rgba(192, 66, 43, 0.4);
  background: rgba(255, 240, 235, 0.9);
}

.entry-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.entry-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.entry-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.error {
  color: #b63c24;
  font-weight: 600;
}

.archive-page {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(16, 12, 8, 0.1);
}

.archive-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.site-footer {
  margin-top: 48px;
}

.footer-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  font-size: 13px;
  color: var(--muted);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .entry-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .entry-meta {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 24px 16px 48px;
  }

  .hero-card h1,
  .daily h1,
  .archive-page h1 {
    font-size: 32px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .footer-card {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
