:root {
  --ink: #1a1208;
  --parchment: #f5efe2;
  --warm-white: #faf7f0;
  --gold: #b8892a;
  --gold-light: #d4a84b;
  --rust: #8b3a1a;
  --sage: #4a6741;
  --rule: #c9b98a;
  --muted: #7a6a50;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm-white);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 15%, rgba(184, 137, 42, 0.05), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(139, 58, 26, 0.04), transparent 40%),
    repeating-radial-gradient(circle at 0 0, rgba(26, 18, 8, 0.015), rgba(26, 18, 8, 0.015) 1px, transparent 1px, transparent 2px);
  opacity: 0.65;
  z-index: -1;
}

a {
  color: var(--rust);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

img {
  max-width: 100%;
  display: block;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 247, 240, 0.92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(4px);
  z-index: 10;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand-link {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.73rem;
  color: var(--muted);
}

.hero {
  background: var(--ink);
  color: var(--parchment);
  padding: 5.5rem 0 4.25rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 50% -220px;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 137, 42, 0.24) 0%, rgba(184, 137, 42, 0) 64%);
  pointer-events: none;
}

.masthead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-title {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.3rem, 6vw, 4.25rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.tagline {
  font-style: italic;
  margin: 1rem auto 1.2rem;
  max-width: 560px;
  color: rgba(245, 239, 226, 0.92);
}

.ornament {
  margin: 1.2rem auto 1.8rem;
  color: var(--gold-light);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.section {
  padding: 3.6rem 0;
}

.section-title {
  margin: 0 0 1.2rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.45rem;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.3rem;
}

.panel {
  border: 1px solid var(--rule);
  padding: 1.2rem 1.2rem 1rem;
  background: rgba(250, 247, 240, 0.82);
}

.panel h3 {
  margin: 0 0 0.7rem;
  color: var(--rust);
  font-size: 1.2rem;
  line-height: 1.2;
}

.panel-verse {
  grid-column: span 5;
}

.panel-word {
  grid-column: span 3;
}

.panel-musing {
  grid-column: span 4;
  background: var(--parchment);
}

.poem-title {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

.poem-meta {
  margin: 0.2rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.poem-text {
  margin: 0;
  white-space: pre-line;
  padding-left: 0.8rem;
  border-left: 1px solid var(--rule);
  line-height: 1.95;
}

.poem-source-note {
  margin: 0.75rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

.poem-source-marker {
  margin-right: 0.25rem;
}

.poem-source-note a {
  color: var(--gold);
  text-decoration: none;
}

.poem-source-note a:hover,
.poem-source-note a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

.archive-poem-snippet {
  margin-top: 0.5rem;
  border-left: 0;
  padding-left: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.pull-quote {
  margin: 0;
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
  font-style: italic;
  font-size: 1.07rem;
}

.quote-attribution {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.musing-text {
  margin: 0;
}

.archive-preview-grid,
.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.archive-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-item {
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  background: rgba(245, 239, 226, 0.65);
}

.archive-item-date {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-size: 0.72rem;
}

.archive-item-title {
  margin: 0.2rem 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.12rem;
}

.archive-item-quote {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.about-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(to right, rgba(245, 239, 226, 0.75), rgba(250, 247, 240, 0.95));
}

.form-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.newsletter-input {
  border: 1px solid var(--rule);
  background: var(--parchment);
  color: var(--ink);
  font: inherit;
  padding: 0.62rem 0.72rem;
  min-width: min(320px, 80vw);
}

.newsletter-btn {
  border: 1px solid var(--gold-light);
  background: var(--gold);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.newsletter-btn:hover,
.newsletter-btn:focus-visible {
  background: var(--gold-light);
}

.form-note {
  margin: 0.45rem 0 0;
  color: var(--gold-light);
  font-size: 0.85rem;
  min-height: 1.35rem;
}

.footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 2.6rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 1rem;
  align-items: start;
}

.footer h4 {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--gold-light);
}

.footer p,
.footer a {
  color: rgba(245, 239, 226, 0.9);
  margin: 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.social-link {
  border: 1px solid var(--rule);
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.page-hero {
  padding: 3.25rem 0 2.2rem;
  background: linear-gradient(to bottom, rgba(245, 239, 226, 0.95), rgba(250, 247, 240, 0.75));
  border-bottom: 1px solid var(--rule);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.theme-filter {
  border: 1px solid var(--rule);
  background: var(--parchment);
  padding: 0.5rem 0.7rem;
  font: inherit;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.8rem;
}

.photo-placeholder {
  border: 1px dashed var(--rule);
  min-height: 300px;
  background: linear-gradient(to bottom right, rgba(245, 239, 226, 0.8), rgba(250, 247, 240, 0.98));
  display: grid;
  place-items: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.73rem;
}

.about-portrait {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  object-fit: cover;
  aspect-ratio: 5 / 7;
}

.entry-meta {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
}

.entry-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.4rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.share-row {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
}

.share-btn {
  border: 1px solid var(--rule);
  background: var(--parchment);
  color: var(--ink);
  padding: 0.45rem 0.65rem;
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

@media (max-width: 980px) {
  .daily-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .panel-verse,
  .panel-word,
  .panel-musing {
    grid-column: span 1;
  }

  .footer-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }
}

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

  .nav-list {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .hero {
    padding-top: 4.2rem;
  }

  .archive-preview-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-input {
    min-width: 100%;
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
