:root {
  --paper: #f5f0e8;
  --paper-soft: #fbf8f2;
  --ink: #1a1208;
  --muted: #746653;
  --rule: #d8cbbb;
  --rule-dark: #b9aa98;
  --accent: #c0392b;
  --shadow: rgba(26, 18, 8, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(26, 18, 8, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 1.05rem 1.25rem 0.95rem;
  background: rgba(245, 240, 232, 0.9);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(16px);
}

.site-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

.page-shell {
  width: min(100% - 2rem, 920px);
  margin: 0 auto;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(2.5rem, 8vw, 5rem);
  text-align: center;
}

.kicker,
.section-label,
.card-meta,
.read-link {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 1.35rem;
  color: var(--accent);
}

.hero-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  max-width: 880px;
  font-size: clamp(2.7rem, 8vw, 6.7rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-deck {
  max-width: 620px;
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.featured-section {
  max-width: 720px;
  margin: 0 auto clamp(4rem, 9vw, 7rem);
  padding-top: 1rem;
}

.section-label {
  margin: 0 0 1.1rem;
  color: var(--muted);
  text-align: center;
}

.featured-card {
  position: relative;
  display: block;
  padding: clamp(2rem, 5vw, 3.6rem);
  overflow: hidden;
  background: rgba(251, 248, 242, 0.76);
  border: 1px solid var(--rule);
  box-shadow: 0 22px 60px var(--shadow);
  text-align: center;
  text-decoration: none;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.featured-card::before,
.featured-card::after {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  height: 1px;
  background: var(--rule);
  content: "";
}

.featured-card::before {
  top: clamp(1rem, 3vw, 2rem);
}

.featured-card::after {
  bottom: clamp(1rem, 3vw, 2rem);
}

.featured-card:hover,
.featured-card:focus-visible {
  transform: translateY(-6px);
  background: var(--paper-soft);
  border-color: var(--rule-dark);
  box-shadow: 0 30px 78px rgba(26, 18, 8, 0.15);
}

.featured-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.card-rule {
  width: 62px;
  height: 2px;
  margin: 0 auto 1.5rem;
  background: var(--accent);
}

.card-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.card-meta span + span::before {
  margin-right: 1rem;
  color: var(--accent);
  content: "/";
}

.featured-card h2 {
  max-width: 560px;
  margin: 1.25rem auto 0.85rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.featured-card p {
  max-width: 520px;
  margin: 0 auto 1.8rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
}

.read-link {
  display: inline-block;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--ink);
  text-decoration-color: rgba(192, 57, 43, 0.45);
  text-underline-offset: 0.25em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.fade-in {
  animation: fadeIn 850ms ease both;
}

.delay-1 {
  animation-delay: 180ms;
}

.delay-2 {
  animation-delay: 320ms;
}

.reveal-text {
  animation: titleReveal 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1.25rem, 920px);
  }

  .hero {
    min-height: 54vh;
    padding-top: 4rem;
  }

  .kicker {
    max-width: 17rem;
    line-height: 1.7;
  }

  .featured-card {
    text-align: left;
  }

  .section-label,
  .card-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .card-rule {
    margin-left: 0;
  }

  .featured-card h2,
  .featured-card p {
    margin-left: 0;
    margin-right: 0;
  }

  .card-meta span + span::before {
    margin-right: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
