:root {
  --bg-1: #f4efe7;
  --bg-2: #e9dfd0;
  --paper: rgba(255, 252, 247, 0.88);
  --ink: #1c1917;
  --muted: #6d6258;
  --line: rgba(120, 95, 76, 0.18);
  --accent: #9b3d1f;
  --accent-soft: #f1d3c7;
  --accent-2: #2d6a73;
  --shadow: 0 18px 45px rgba(71, 48, 31, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(155, 61, 31, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(45, 106, 115, 0.10), transparent 24%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

img { max-width: 100%; display: block; }
a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header-shell,
.site-footer-shell,
.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-shell { padding-top: 22px; }
.site-footer-shell {
  margin-top: 20px;
  padding-bottom: 18px;
}
.page-shell { padding: 28px 0 56px; }

.site-header-bar,
.site-footer-bar,
.home-main,
.welcome-band,
.article-card {
  background: var(--paper);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.site-header-bar,
.site-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}

.site-header-bar:hover,
.site-footer-bar:hover,
.welcome-band:hover,
.article-card:hover {
  box-shadow: 0 20px 42px rgba(71, 48, 31, 0.12);
}

.site-brand {
  color: var(--ink);
  text-decoration: none;
}

.site-brand strong {
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  transition: color 0.18s ease;
}

.site-brand:hover strong { color: var(--accent); }

.site-nav,
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a,
.site-footer-links a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.site-nav a:hover,
.site-footer-links a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.home-main {
  padding: 24px;
}

.welcome-band,
.cards-section,
.archive-section {
  margin: 0 0 28px;
}

.welcome-band {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.85fr);
  gap: 18px;
  padding: 22px;
}

.eyebrow,
.signal-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
}

.welcome-band h1,
.section-head h2,
.article-card h3 {
  letter-spacing: -0.04em;
}

.welcome-band h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.98;
  max-width: 10ch;
  color: var(--accent);
}

.welcome-band__copy p:last-child,
.signal-link,
.article-card__body p:last-child {
  margin-bottom: 0;
}

.welcome-band__copy p {
  font-size: 1rem;
  line-height: 1.62;
  max-width: 42ch;
}

.welcome-band__signal {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(45, 106, 115, 0.08), rgba(255,255,255,0.68));
  border: 1px solid var(--line);
}

.welcome-band__signal strong {
  font-size: 1.18rem;
  line-height: 1.18;
}

.welcome-band__signal-copy {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}

.signal-link,
.article-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(45, 106, 115, 0.22);
  border-radius: 999px;
  background: rgba(45, 106, 115, 0.08);
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.signal-link:hover,
.article-card__link:hover {
  transform: translateY(-1px);
  border-color: var(--accent-2);
  background: rgba(45, 106, 115, 0.12);
  box-shadow: 0 10px 22px rgba(71, 48, 31, 0.08);
}

.section-head {
  margin-bottom: 18px;
}

.section-head--compact h2 {
  font-size: 1.55rem;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: 2rem;
  color: var(--accent);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cards-grid--primary {
  align-items: stretch;
}

.article-card {
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 95, 76, 0.28);
}

.article-card__image-link {
  display: block;
}

.article-card__image-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.article-card__body {
  padding: 18px;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.article-card__meta span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  color: var(--muted);
  font-size: 0.84rem;
}

.article-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.15;
}

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

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card__body p {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--ink);
}

.archive-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,252,247,0.92));
  box-shadow: 0 12px 30px rgba(71, 48, 31, 0.07);
}

.archive-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.archive-card__meta span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--muted);
  font-size: 0.84rem;
}

.archive-card__content {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.archive-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

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

.archive-card h3 a:hover {
  color: var(--accent);
}

.archive-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.archive-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(45, 106, 115, 0.22);
  border-radius: 999px;
  background: rgba(45, 106, 115, 0.08);
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.archive-card__link:hover {
  background: rgba(45, 106, 115, 0.12);
  border-color: var(--accent-2);
}

.site-footer-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer-bar strong { color: var(--ink); }

.reveal { animation: riseIn 0.65s ease both; }
.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
.reveal:nth-child(5) { animation-delay: 0.24s; }
.reveal:nth-child(6) { animation-delay: 0.30s; }

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

@media (max-width: 900px) {
  .welcome-band,
  .cards-grid,
  .archive-card__content {
    grid-template-columns: 1fr;
  }

  .archive-card__content {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .site-header-shell,
  .site-footer-shell {
    width: min(100%, calc(100% - 20px));
  }

  .home-main,
  .welcome-band {
    padding: 20px;
  }

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

  .welcome-band h1 {
    max-width: none;
  }
}

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