@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Italic-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/SourceSans3-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/SourceSans3-Italic-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f3eee6;
  --bg-elev: #fffdf8;
  --ink: #2a2622;
  --muted: #6a6259;
  --faint: #8b8378;
  --line: rgba(42, 38, 34, 0.1);
  --accent: #3f5273;
  --accent-soft: #d7deea;
  --blush: #e8d2c4;
  --sage: #6d7d6a;
  --font-display: "Fraunces", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  --header-h: 4.5rem;
  --max: 70rem;
  --shadow: 0 10px 30px rgba(80, 60, 40, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(215, 222, 234, 0.9), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(232, 210, 196, 0.7), transparent 55%),
    var(--bg);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent); text-underline-offset: 0.16em; }
a:hover { color: #2c3b56; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--accent); color: #fff; padding: 0.5rem 0.8rem; z-index: 100; }
.skip-link:focus { top: 0.75rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 238, 230, 0.86);
  backdrop-filter: blur(16px);
}
.header-inner, .footer-inner, .highlights, .featured, .latest, .categories, .layout-article, .layout-listing, .page-prose {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 550; font-size: 1.35rem; letter-spacing: -0.03em; }
.logo-wordmark em { font-style: italic; font-weight: 450; color: var(--accent); }
.nav-toggle { display: none; }
.site-nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.4rem 0.8rem; font-weight: 600; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.3rem; border-radius: 999px; font-weight: 650; text-decoration: none; border: 1px solid transparent; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2c3b56; color: #fff; }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero {
  width: min(52rem, calc(100% - 2.4rem));
  margin: 3.5rem auto 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-art { order: -1; margin: 0 auto 1.25rem; width: 108px; }
.eyebrow, .card-kicker, .product-kicker { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 0.8rem; }
.hero h1, .article-header h1, .page-header h1, .error-page h1 {
  font-family: var(--font-display); font-weight: 450; font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 1rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead, .article-lead { color: var(--muted); font-size: 1.25rem; margin: 0 auto 1.6rem; max-width: 36rem; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.7rem; }

.highlights { margin-bottom: 3.5rem; }
.highlights-grid, .featured-grid, .category-grid { display: grid; gap: 1.1rem; }
.highlights-grid { grid-template-columns: repeat(3, 1fr); }
.highlight-card, .card, .category-card, .sidebar-card, .product-card {
  background: var(--bg-elev); border-radius: var(--radius); padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.7);
}
.highlight-card h2, .section-head h2, .categories h2, .related h2, .sidebar h2, .card h3, .article-list h2, .article-list h3 {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; margin: 0 0 0.5rem;
}
.highlight-card p, .card p, .article-list p { color: var(--muted); margin: 0 0 0.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; }
.featured, .latest, .categories { margin-bottom: 3.5rem; }
.featured-grid { grid-template-columns: 1.4fr 1fr 1fr; }
.card-featured.is-lead { grid-row: auto; grid-column: 1 / 2; background: linear-gradient(180deg, #edf0f6, var(--bg-elev) 60%); }
.card h3 a, .article-list a { color: var(--ink); text-decoration: none; }
.card h3 a:hover, .article-list a:hover { color: var(--accent); }
.card-featured.is-lead h3 { font-size: 2rem; line-height: 1.15; }
.card-meta { color: var(--faint); font-size: 0.92rem; }

.category-grid { grid-template-columns: repeat(4, 1fr); }
.category-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 0.35rem; }
.category-card:hover { color: inherit; transform: translateY(-2px); }
.category-name { font-family: var(--font-display); font-size: 1.2rem; }
.category-text { color: var(--muted); font-size: 0.95rem; }

.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.latest .article-list { grid-template-columns: 1fr 1fr; }
.article-list li article { padding: 0.2rem 0 1rem; border-bottom: 1px solid var(--line); }

.layout-article, .listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 2.8rem; padding: 2rem 0 4.5rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1rem; padding: 0; font-size: 0.9rem; color: var(--faint); }
.breadcrumbs li:not(:last-child)::after { content: "·"; margin-left: 0.35rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.article-body { max-width: 40rem; }
.article-body h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.8rem; margin: 2.4rem 0 0.8rem; }
.article-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; margin: 1.6rem 0 0.5rem; }
.article-body blockquote { margin: 1.6rem 0; padding-left: 1.2rem; border-left: 2px solid var(--blush); font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--accent); }

.disclosure-banner { background: #efe4d8; border-radius: 16px; padding: 1rem 1.2rem; margin: 0 0 1.6rem; font-size: 0.95rem; }
.disclosure-banner p { margin: 0; color: var(--muted); }
.product-card { margin: 1.8rem 0; }
.product-name { font-family: var(--font-display); margin: 0 0 0.4rem; }
.product-blurb, .product-note { color: var(--muted); }
.related { margin-top: 3rem; }
.related ul, .sidebar ul, .footer-cols ul, .error-links { list-style: none; margin: 0.7rem 0 0; padding: 0; }
.related li, .sidebar li { margin: 0 0 0.45rem; }
.sidebar { display: flex; flex-direction: column; gap: 1rem; align-self: start; position: sticky; top: calc(var(--header-h) + 1rem); }
.sidebar-note p { color: var(--muted); font-size: 0.95rem; }
.page-prose { padding: 3rem 0 4.5rem; max-width: 44rem; }

.ad-slot[hidden] { display: none !important; }
.ad-slot.has-ad { margin: 1rem auto; width: min(var(--max), calc(100% - 2.4rem)); display: flex; justify-content: center; }
.ad-slot-inarticle.has-ad, .ad-slot-sidebar.has-ad { width: 100%; margin: 1.5rem 0; }
.ad-slot.is-placeholder {
  margin: 1rem auto; width: min(var(--max), calc(100% - 2.4rem)); min-height: 5.5rem;
  border: 1px dashed #b7a89a; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.ad-slot-inarticle.is-placeholder, .ad-slot-sidebar.is-placeholder { width: 100%; margin: 1.3rem 0; }

.site-footer { margin-top: 2rem; padding: 3.5rem 0 2rem; background: #ebe4da; }
.footer-brand p, .footer-note, .footer-copy { color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.footer-cols h2 { font-family: var(--font-display); font-size: 1.1rem; margin: 0; }
.footer-cols a, .error-links a { color: var(--ink); text-decoration: none; }
.error-page { min-height: 50vh; text-align: center; }
.contact-email { font-size: 1.25rem; }

@media (max-width: 900px) {
  .highlights-grid, .featured-grid, .layout-article, .listing-layout, .latest .article-list { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  .nav-toggle { display: inline-flex; gap: 0.4rem; background: var(--bg-elev); border: 0; border-radius: 999px; padding: 0.45rem 0.9rem; font: inherit; }
  .nav-toggle-icon { width: 1rem; height: 2px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); align-self: center; }
  .site-nav { display: none; position: absolute; inset: var(--header-h) 0 auto; background: var(--bg); padding: 0.8rem 1.2rem 1.2rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  .site-header, .site-footer, .ad-slot, .sidebar, .hero-actions { display: none !important; }
  body { background: #fff; }
}

.category-icon { display: inline-flex; margin-bottom: 0.35rem; }
.category-icon svg { display: block; }
