/* Crafting Charcuterie Boards: site styles
   Brand: walnut / gold / cream, Playfair Display (headings) + Inter (body).
   Shape rule: images and cards 12px radius, buttons and pills full-pill.
   Accent rule: gold is the only accent. Text links use the darker gold for contrast. */

:root {
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --surface-2: #F3EBDD;
  --ink: #2F2219;
  --ink-2: #5A4636;
  --muted: #7A6655;
  --line: #E6DACA;
  --gold: #C9A15A;
  --gold-text: #7A5C24;
  --walnut: #2F2219;
  --on-walnut: #F3EBDD;
  --radius: 12px;
  --shadow: 0 10px 30px rgb(47 34 25 / 0.08);
  --max: 1180px;
  --read: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1712;
    --surface: #271E17;
    --surface-2: #30251C;
    --ink: #F1E8DA;
    --ink-2: #D9CBB7;
    --muted: #B3A18C;
    --line: #3D3026;
    --gold: #D4AF6A;
    --gold-text: #E2C083;
    --walnut: #150F0B;
    --on-walnut: #F1E8DA;
    --shadow: 0 10px 30px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-family: Inter, system-ui, sans-serif; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { background: var(--walnut); color: var(--on-walnut); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-walnut); text-decoration: none; flex-shrink: 0; }
.brand svg { width: 44px; height: 44px; }
.brand-name { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.brand-name em { display: block; font-style: italic; font-weight: 600; color: var(--gold); font-size: 0.95rem; }
.site-nav { margin-left: auto; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--on-walnut); text-decoration: none; font-size: 0.95rem; font-weight: 500; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--on-walnut); }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 10px; }
  .site-nav { margin-left: 0; width: 100%; gap: 18px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--walnut); color: var(--on-walnut); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 14px 26px; border-radius: 999px; transition: transform 0.2s ease, background 0.2s ease; white-space: nowrap; }
.btn:hover { background: #4A3627; color: var(--on-walnut); }
.btn:active { transform: translateY(1px); }
@media (prefers-color-scheme: dark) { .btn { background: var(--gold); color: #1E1712; } .btn:hover { background: #E2C083; color: #1E1712; } }

/* ---------- image slots (until real images exist) ---------- */
.img-slot { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); font-size: 0.9rem; text-align: center; padding: 16px; }
.r-2x3 { aspect-ratio: 2 / 3; }
.r-4x3 { aspect-ratio: 4 / 3; }
.r-1x1 { aspect-ratio: 1 / 1; }
figure { margin: 0; }
figure img, figure .img-slot { border-radius: var(--radius); }
/* real photos in homepage/related slots: fill the slot, crop to the slot's shape */
.hero figure img, .card img, .feature-main img, .mini img, .about-split img { display: block; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; background: var(--surface-2); }
.card img { aspect-ratio: 2 / 3; }
.feature-main img, .about-split img, .related .card img { aspect-ratio: 4 / 3; }
.mini img { aspect-ratio: 1 / 1; }

/* ---------- home ---------- */
.hero { padding: 56px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; margin-bottom: 28px; }
.hero figure { max-width: 420px; justify-self: end; width: 100%; }
@media (max-width: 860px) {
  .hero { padding: 32px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero figure { justify-self: start; max-width: 360px; }
}

.season { padding: 48px 0; border-top: 1px solid var(--line); }
.season-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.season-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* featured layout: one large pillar post + stacked smaller posts */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.feature-main { text-decoration: none; color: inherit; display: grid; gap: 14px; }
.feature-main h3 { font-family: "Playfair Display", Georgia, serif; font-size: 1.7rem; font-weight: 700; }
.feature-list { display: grid; gap: 20px; align-content: start; }
.mini { display: grid; grid-template-columns: 120px 1fr; gap: 16px; text-decoration: none; color: inherit; align-items: center; }
.mini h3 { font-family: "Playfair Display", Georgia, serif; font-size: 1.2rem; margin: 0 0 4px; }
.mini p, .feature-main p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature-main:hover h3, .mini:hover h3, .card:hover h3 { color: var(--gold-text); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* horizontal scroll row of cards */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.card { scroll-snap-align: start; text-decoration: none; color: inherit; display: grid; gap: 10px; }
.card h3 { font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; margin: 0; }

.about-strip { padding: 56px 0; border-top: 1px solid var(--line); }
.about-strip .wrap { max-width: 760px; }
.about-strip ul { padding-left: 1.2em; }

/* category tiles under the hero (square images, label below) */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { text-decoration: none; color: inherit; display: grid; gap: 8px; text-align: center; font-weight: 600; font-size: 0.95rem; }
.tile:hover { color: var(--gold-text); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* latest posts: four portrait cards */
.posts4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .posts4 { grid-template-columns: repeat(2, 1fr); } }

/* about block: image left, text right */
.about-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; gap: 24px; } }

/* browse by occasion: round images, different from the square tiles above */
.occasions { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; }
.occasion { text-decoration: none; color: inherit; display: grid; gap: 10px; justify-items: center; text-align: center; font-weight: 600; font-size: 0.9rem; }
.occasion .img-slot { border-radius: 50%; width: 100%; aspect-ratio: 1 / 1; font-size: 0.75rem; }
.occasion:hover { color: var(--gold-text); }
@media (max-width: 900px) { .occasions { grid-template-columns: repeat(4, 1fr); } }

.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.back-top { display: inline-block; margin-bottom: 20px; }

/* ---------- article ---------- */
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 16px 0 64px; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; gap: 40px; } }
.post-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 24px; }
.post-meta strong { color: var(--ink-2); font-weight: 600; }

/* Mediavine rule: entry-content children stay flat siblings (h2, figure, p, h3, ul, ol). No wrappers per item. */
.entry-content { max-width: var(--read); }
.entry-content > h2 { margin-top: 2.2em; scroll-margin-top: 20px; }
.entry-content > h3 { margin-top: 1.4em; margin-bottom: 0.4em; }
.entry-content > figure { margin: 1.2em 0 1.4em; max-width: 520px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content > .hook { font-size: 1.05rem; color: var(--ink-2); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 8px 0 28px; }
.toc p { font-weight: 600; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; font-size: 0.95rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.note { background: var(--surface); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }

.sidebar { display: grid; gap: 28px; align-content: start; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-box h2 { font-size: 1.2rem; }
.side-box p { font-size: 0.95rem; color: var(--ink-2); }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.side-list a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }

.related { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 48px; max-width: var(--read); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- draft-only helpers (never present in live builds) ---------- */
.draft-banner { background: #FFF3C4; color: #4A3A00; text-align: center; font-size: 0.9rem; font-weight: 600; padding: 8px 16px; }
.draft-prompt { border: 2px dashed #D9A400; background: #FFFBEA; color: #3B2F00; border-radius: var(--radius); padding: 12px 14px; margin: 0 0 1.6em; }
.draft-prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 0.9rem; }
.draft-prompt pre { white-space: pre-wrap; font-family: Inter, system-ui, sans-serif; font-size: 0.85rem; line-height: 1.5; margin: 0; max-height: 220px; overflow: auto; }
.draft-status { font-size: 0.85rem; font-weight: 600; margin: -0.8em 0 1em; }
.draft-status.wait { color: #9A5B00; }
.draft-status.ok { color: #2F6B2F; }
.draft-alt { font-size: 0.85rem; margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #D9A400; }
.copy-btn { background: #3B2F00; color: #FFFBEA; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; }
.copy-btn:active { transform: translateY(1px); }

/* ---------- plain pages ---------- */
.page { max-width: 760px; padding: 32px 20px 64px; }
.page ul { padding-left: 1.3em; }
.page li { margin-bottom: 0.4em; }
.contact-email { font-size: 1.2rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--walnut); color: var(--on-walnut); padding: 40px 0; font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.site-footer a { color: var(--on-walnut); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer p { margin: 0; opacity: 0.85; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

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