/* Pantry Lane — warm editorial styles, system fonts only */
:root {
  --paper: #f3ece2;
  --paper-deep: #e8ddcf;
  --card: #fffaf3;
  --ink: #1e1915;
  --ink-soft: #5b534b;
  --line: #d9ccbc;
  --terracotta: #c14f1f;
  --terracotta-dark: #9a3b14;
  --olive: #3b4a37;
  --olive-soft: #5b6b55;
  --sage: #d5e0cd;
  --shadow: 0 10px 30px rgba(31, 24, 18, 0.06);
  --radius: 18px;
  --max: 1120px;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--terracotta-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

/* Disclosure + header */
.disclosure {
  background: var(--olive);
  color: #f6f1e8;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0.55rem 1rem;
}
.disclosure a { color: #fff; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(243, 236, 226, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.logo:hover { color: var(--olive); }

nav.primary { display: flex; flex-wrap: wrap; gap: 0.2rem 1.05rem; }
nav.primary a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] { color: var(--ink); }

.nav-toggle { display: none; }
.nav-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero { padding: 3.2rem 0 2.2rem; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 0.8rem;
  max-width: 16ch;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.btn-amazon { background: var(--olive); color: #fff; }
.btn-amazon:hover { background: #2d392b; color: #fff; }

/* Sections + cards */
section { padding: 1.4rem 0 2.4rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.muted { color: var(--ink-soft); }
.section-head p { margin: 0; color: var(--ink-soft); }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0.6rem 0 0.5rem;
  font-weight: 600;
}
.card p { margin: 0 0 1rem; color: var(--ink-soft); flex: 1; }
.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--sage);
  color: var(--olive);
  display: grid;
  place-items: center;
}
.icon-badge svg { width: 30px; height: 30px; }
.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-soft);
  margin: 0 0 0.3rem;
}

/* Category pages */
.page-hero { padding: 2.4rem 0 1rem; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.6rem;
}
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.crumbs a { color: inherit; }

/* Articles */
.article {
  max-width: 42rem;
  padding: 0.5rem 0 3rem;
}
.article h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
}
.article .dek { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.6rem; }
.article h2 { margin: 2rem 0 0.7rem; }
.article p { margin: 0 0 1rem; }
.related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 2.2rem 0 2.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.site-footer h2 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--sans);
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.25rem 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.legal { margin-top: 1.6rem; font-size: 0.82rem; }

/* Misc */
.note {
  background: var(--sage);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: var(--olive);
  font-size: 0.95rem;
  margin: 1rem 0 0;
}
.prose { max-width: 44rem; }
.prose h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 0.8rem; }
.prose h2 { margin-top: 1.8rem; }
.categories-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.cat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 8.5rem;
}
.cat-tile:hover { border-color: var(--olive-soft); }
.cat-tile h3 { font-family: var(--serif); margin: 0 0 0.35rem; font-size: 1.15rem; }
.cat-tile p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 860px) {
  .nav-btn { display: inline-flex; }
  nav.primary {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
    flex-direction: column;
    gap: 0.6rem;
  }
  #nav-toggle:checked ~ .header-bar nav.primary { display: flex; }
  .header-bar { position: relative; }
  .categories-row,
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .categories-row,
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
}
