:root {
  --bg: #f6f4ef;
  --paper: #fffdf8;
  --line: #d8d3c8;
  --line-strong: #b9b1a1;
  --text: #1d1b18;
  --muted: #6f685c;
  --accent: #135d4a;
  --accent-soft: #deefe8;
  --card: #ffffff;

  --font-sans: "Manrope", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino", serif;

  --rail: 312px;
  --content-max: 820px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 28px rgba(24, 22, 18, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 14% 10%, #f2ede2 0%, transparent 28%),
    radial-gradient(circle at 86% 88%, #ece8dc 0%, transparent 30%),
    var(--bg);
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-strong);
}

.site-header__inner {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 78px;
}

.site-logo {
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-right: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

.site-logo:hover {
  text-decoration: none;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
}

.search-form {
  width: min(100%, 760px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, white);
  background: #ffffff;
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: 0 0 auto;
}

.search-form__input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font: inherit;
  color: var(--text);
}

.search-form__input::placeholder {
  color: #8c8478;
}

.search-suggestions {
  position: absolute;
  left: 22px;
  right: 22px;
  top: calc(100% - 8px);
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 30;
  max-height: 320px;
  overflow: auto;
}

.suggestion-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.suggestion-item + .suggestion-item {
  margin-top: 4px;
}

.suggestion-item[aria-selected="true"],
.suggestion-item:hover {
  background: #f3f0e8;
}

.suggestion-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.suggestion-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

mark {
  background: var(--accent-soft);
  color: inherit;
  border-radius: 4px;
  padding: 0 2px;
}

.site-header__actions {
  position: absolute;
  right: 34px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-link {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: #fff;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  padding: 7px 14px;
}

.site-body {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: calc(100vh - 79px);
}

.sidebar {
  border-right: 1px solid var(--line-strong);
  padding: 22px 14px 32px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.sidebar nav {
  position: sticky;
  top: 98px;
}

.sidebar-heading {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d8477;
  margin: 0 8px 10px;
}

.sidebar-heading--mt {
  margin-top: 24px;
}

.sidebar-home {
  margin-bottom: 8px;
}

.sidebar-sections {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 0.94rem;
  color: #4f493f;
  padding: 8px 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link--active {
  text-decoration: none;
  background: #efeade;
  color: #24211c;
}

.sidebar-icon {
  width: 1.1rem;
  text-align: center;
}

.sidebar-brand-logo {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex: 0 0 1rem;
}

.site-main {
  padding: 28px clamp(18px, 3vw, 44px) 72px;
}

.site-breadcrumbs {
  max-width: var(--content-max);
  margin: 0 auto 12px;
}

.site-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: #8f867a;
}

.site-breadcrumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: #b4ab9f;
}

.site-breadcrumbs a {
  color: #746c60;
}

.site-breadcrumbs a:hover {
  color: var(--accent);
}

.home-header,
.section-page-header {
  max-width: var(--content-max);
  margin: 0 auto 18px;
}

.home-header h1,
.section-page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 8px 0 10px;
}

.home-header p,
.section-page-header p {
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
}

.section-tabs {
  max-width: var(--content-max);
  margin: 0 auto 18px;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  color: #5b5347;
  background: #f8f5ee;
}

.section-tab:hover,
.section-tab--active {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  color: var(--accent);
  background: var(--accent-soft);
}

.stories-feed {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.story-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.story-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: #cbc4b5;
}

.story-card-link {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 0;
}

.story-card-body {
  padding: 16px 18px;
}

.story-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.story-card-author-name {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.story-card-title {
  margin: 0 0 7px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.28;
}

.story-card-excerpt {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 0.95rem;
}

.story-card-meta {
  font-size: 0.78rem;
  color: #847b6e;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.story-card-image {
  border-left: 1px solid var(--line);
}

.story-card-image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f2efe7;
  border: 1px solid #ddd7ca;
  color: #4c4538;
}

.post {
  max-width: var(--content-max);
  margin: 0 auto;
}

.snack-page {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.snack-page__brand,
.snack-page__updated {
  color: var(--muted);
}

.snack-meta__chips {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.snack-meta__chip {
  background: #fde8e8;
  border: 1px solid #e6c0c0;
  color: #a83232;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.84rem;
}

.snack-meta__chip--none {
  color: #41744f;
  background: #e7f4ea;
  border-color: #b8d8bf;
}

.snack-page__ingredients {
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
  display: grid;
  gap: 0.32rem;
}

.post-hero-image {
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin: 8px 0 10px;
}

.post-meta,
.post-excerpt,
.post-crosspost {
  color: var(--muted);
}

.post-section-tag {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #d4cdbf;
  background: #f3ede0;
  padding: 4px 10px;
  font-size: 0.8rem;
  margin: 0 6px 8px 0;
}

.post-content {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.85;
}

.post-content a {
  color: color-mix(in srgb, var(--accent) 88%, #18322a);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transition: text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.post-content a:hover {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.11em;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content pre {
  margin: 0 0 1.2rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.4rem;
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin: 0.25rem 0;
}

.post-content h2,
.post-content h3 {
  font-family: var(--font-sans);
  line-height: 1.25;
}

.post-content h2 {
  font-size: 1.55rem;
  margin: 2rem 0 0.9rem;
}

.post-content h3 {
  font-size: 1.22rem;
  margin: 1.6rem 0 0.7rem;
}

.post-content blockquote {
  padding: 6px 0 6px 16px;
  border-left: 3px solid var(--line-strong);
  color: #5e5649;
}

.post-content code,
.post-content pre {
  font-family: "Source Code Pro", "Menlo", monospace;
}

.post-content code {
  font-size: 0.88em;
  background: #f2eee5;
  padding: 1px 5px;
  border-radius: 4px;
}

.post-content pre {
  background: #f4f0e7;
  border: 1px solid #dfd8ca;
  border-radius: 10px;
  padding: 14px;
  overflow: auto;
}

.post-footer,
.comments-section {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
}

.no-posts {
  border: 1px dashed #d4cdbf;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: #faf8f2;
}

.site-footer {
  border-top: 1px solid var(--line-strong);
  background: #f2eee4;
  padding: 26px clamp(18px, 3vw, 40px) 16px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: calc(var(--content-max) + var(--rail));
  margin: 0 auto;
}

.footer-col strong {
  font-family: var(--font-serif);
  display: block;
  margin-bottom: 8px;
}

.footer-col p,
.footer-col a {
  color: #5f574b;
  font-size: 0.9rem;
}

.footer-col ul {
  display: grid;
  gap: 6px;
}

.footer-bottom {
  max-width: calc(var(--content-max) + var(--rail));
  margin: 16px auto 0;
  padding-top: 10px;
  border-top: 1px solid #d8d0c1;
  color: #7e7568;
  font-size: 0.8rem;
}

@media (max-width: 1040px) {
  :root {
    --rail: 252px;
  }

  .site-header__actions {
    display: none;
  }

  .story-card-link {
    grid-template-columns: 1fr 160px;
  }
}

@media (max-width: 840px) {
  .site-header {
    position: static;
  }

  .site-header__inner,
  .site-body {
    grid-template-columns: 1fr;
  }

  .site-logo,
  .sidebar {
    border-right: 0;
  }

  .site-logo {
    border-bottom: 1px solid var(--line);
    min-height: 62px;
  }

  .search-wrap {
    justify-content: stretch;
    padding-top: 10px;
    border-bottom: 1px solid var(--line);
  }

  .search-form {
    width: 100%;
  }

  .search-suggestions {
    left: 14px;
    right: 14px;
  }

  .sidebar {
    padding-top: 14px;
    border-bottom: 1px solid var(--line-strong);
  }

  .sidebar nav {
    position: static;
  }

  .sidebar-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .story-card-link {
    grid-template-columns: 1fr;
  }

  .story-card-image {
    order: -1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    max-height: 220px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-header h1,
  .section-page-header h1 {
    line-height: 1.12;
  }

  .site-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .sidebar-sections {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* Cookie consent banner                                               */
/* ------------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -4px 20px rgba(24, 22, 18, 0.10);
  padding: 16px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.cookie-banner__btn--accept {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cookie-banner__btn--accept:hover {
  background: #0d4a3a;
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--muted);
  border-color: var(--line-strong);
}

.cookie-banner__btn--decline:hover {
  background: var(--accent-soft);
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Prose content (privacy policy, standalone pages)                   */
/* ------------------------------------------------------------------ */
.prose h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.25em;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-top: 2em;
}

.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5em 0;
}

.prose th,
.prose td {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  text-align: left;
}

.prose th {
  background: var(--accent-soft);
  font-weight: 600;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

