:root {
  --bg: #f5eedc;
  --card: #fffaf0;
  --ink: #241b12;
  --muted: #6b5a49;
  --line: #d9c8ab;
  --accent: #7a4b2a;
  --accent-soft: #ead8be;
  --shadow: rgba(36, 27, 18, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top, rgba(122, 75, 42, 0.08), transparent 45%),
    linear-gradient(180deg, #f7f0e1 0%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.brand { font-size: 1.8rem; font-weight: 700; color: var(--ink); }
.brand-copy { margin: 6px 0 0; color: var(--muted); max-width: 560px; }

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-form input {
  min-width: 240px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
}

.search-form button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.page-shell { padding: 32px 0 56px; }

.hero-card,
.story-card,
.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 40px var(--shadow);
}

.hero-card {
  padding: 28px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.35rem; }

.lede,
.story-card p,
.footer-text,
.post-meta,
.story-meta { color: var(--muted); }

.content-grid,
.post-layout,
.post-hero {
  display: grid;
  gap: 24px;
}

.content-grid,
.post-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.post-hero { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; margin-bottom: 24px; }

.story-list { display: grid; gap: 18px; }

.story-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.story-card__image { height: 100%; object-fit: cover; }
.story-card__body { padding: 22px; }

.side-card { padding: 20px; }

.category-list,
.story-links,
.locale-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li,
.story-links li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(217, 200, 171, 0.6);
}

.category-list li:last-child,
.story-links li:last-child { border-bottom: 0; }

.locale-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.locale-nav--stack { flex-direction: column; }

.locale-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
}

.locale-chip.is-active {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
}

.post-shell { display: grid; gap: 24px; }
.post-hero__image { border-radius: 24px; border: 1px solid var(--line); }
.post-taxonomy { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 8px 12px;
}

.prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 40px var(--shadow);
}

.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-title {
  margin: 0 0 6px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .content-grid,
  .post-layout,
  .post-hero,
  .story-card {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    gap: 14px;
    padding: 12px 0;
  }

  .brand {
    font-size: 1.4rem;
  }

  .brand-copy {
    display: none;
  }

  .search-form {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .search-form input {
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
  }

  .search-form button {
    flex: 0 0 auto;
    padding: 10px 14px;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .brand-block {
    min-width: 0;
  }

  .search-form {
    width: 100%;
  }
}
