/* =============================================================
   Concept B — Watercolor Living
   Tokens & Theming
   ============================================================= */

:root {
  /* ── Earthy neutral palette ── */
  --bark:      #2E2418;
  --bark-mid:  #4A3828;
  --clay:      #9E6A48;
  --clay-lt:   #BF8E6E;
  --sage:      #7A8A6C;
  --sage-lt:   #A8A894;
  --linen:     #F4EEE2;
  --parchment: #EDE5D4;
  --oatmeal:   #E4DAC8;
  --blush:     #DCCABB;
  --sand:      #CFC0A8;
  --white:     #FAF7F2;
  --text:      #2E2418;
  --text-mid:  #66584A;
  --text-lt:   #978A7C;
  --border:    #D8CDB8;

  /* ── Category accent colours ── */
  --friday-food-accent: #C4783A;

  /* Legacy aliases so any template fallback still works */
  --accent:      var(--clay);
  --accent-dark: var(--bark);
  --tint:        var(--parchment);
  --bg:          var(--linen);
  --text-muted:  var(--text-mid);

  --font-display: 'Cormorant Garamond', serif;
  --font-script:  'Dancing Script', cursive;
  --font-body:    'Nunito', sans-serif;
  --font-ui:      'Nunito', sans-serif;

  --max-width: 1120px;
  --max-post:   720px;
  --gap:        1.5rem;

  /* ── Radii ── */
  --radius-card: 8px;
  --radius-pill: 100px;
  --radius-sm:   6px;

  /* ── Shadows ── */
  --shadow-card-lift: 0 18px 44px rgba(46,36,24,0.10);
  --shadow-post-lift: 0 12px 32px rgba(46,36,24,0.08);
  --shadow-form:      0 6px 28px rgba(46,36,24,0.10);

  /* ── Transitions ── */
  --transition-color:  color 0.2s;
  --transition-bg:     background 0.2s;
  --transition-border: border-color 0.2s;
  --transition-card:   transform 0.25s, box-shadow 0.25s;

  /* ── Spacing & layout ── */
  --sticky-top: 80px;
  --gap-cards:  22px;

  /* ── Typography: weights ── */
  --fw-light:    300;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* ── Typography: size scale ── */
  --fs-xs:      11px;
  --fs-sm:      13px;
  --fs-card:    13.5px;
  --fs-base:    14px;
  --fs-md:      15px;
  --fs-caption: 12px;
  --fs-icon:    28px;
  --fs-ticker:  17px;
  --fs-decor:   80px;
  --fs-subhead: 18px;
  --fs-h-xs:    20px;
  --fs-h-md:    22px;
  --fs-h-sm:    26px;

  /* ── Typography: line heights ── */
  --lh-body:    1.65;
  --lh-heading: 1.15;
  --lh-relaxed: 1.75;
  --lh-loose:   1.7;

  /* ── Typography: letter spacing ── */
  --ls-ui:   0.05em;
  --ls-date: 0.06em;

  /* ── Service card backgrounds ── */
  --card-bg-1: #EBE4D6;
  --card-bg-2: #E4DBD0;
  --card-bg-3: #E8E0D0;
}

/* Per-category theme overrides — earth-tone variants */
.theme-monday-business {
  --accent:      var(--clay);
  --accent-dark: var(--bark);
  --tint:        #EBE4D6;
}

.theme-wednesday-wisdom {
  --accent:      var(--sage);
  --accent-dark: #5A6A50;
  --tint:        #E4EBD8;
}

.theme-friday-food {
  --accent:      var(--friday-food-accent);
  --accent-dark: #A05828;
  --tint:        #EDE0CE;
}

/* =============================================================
   Reset & Base
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--linen);
  line-height: var(--lh-body);
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* =============================================================
   Layout
   ============================================================= */

/* container: max-width + centering + side padding.
   section elements use padding-block only so backgrounds bleed edge-to-edge. */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 48px;
}

#main-content { min-height: 60vh; }

section { padding: 80px 0; }

/* =============================================================
   Navigation
   ============================================================= */

.site-nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--oatmeal);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--fs-h-sm);
  font-weight: var(--fw-bold);
  color: var(--bark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo sup {
  font-family: var(--font-script);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clay);
  vertical-align: super;
  margin-left: 2px;
}

.site-nav-bar nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-ui);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav-bar.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav-bar.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-nav-bar.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links a {
  color: var(--bark-mid);
  text-decoration: none;
  transition: var(--transition-color);
}
.nav-links a:hover,
.nav-links a.nav-link--active {
  color: var(--bark);
}

.nav-cta {
  background: var(--bark);
  color: var(--linen);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: var(--transition-bg);
}
.nav-cta:hover { background: var(--bark-mid); color: var(--linen); }

/* =============================================================
   Footer (4-column concept-b style)
   ============================================================= */

.site-footer {
  background: var(--bark);
  color: var(--sage-lt);
  padding: 56px 48px 28px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 46px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-h-sm);
  font-weight: var(--fw-bold);
  color: var(--linen);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: var(--fs-base);
  color: var(--sage-lt);
  line-height: var(--lh-loose);
  max-width: 260px;
  font-weight: var(--fw-light);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--fs-subhead);
  font-weight: var(--fw-bold);
  color: var(--linen);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--sage-lt);
  text-decoration: none;
  font-size: var(--fs-base);
  transition: var(--transition-color);
}
.footer-col a:hover { color: var(--clay-lt); }

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: rgba(168,168,148,0.55);
  font-weight: var(--fw-light);
}

/* =============================================================
   Hero (Home page watercolor wash)
   ============================================================= */

.hero { position: relative; overflow: hidden; }

.hero-left {
  position: relative;
  background:
    radial-gradient(ellipse 90% 60% at 15% 25%, rgba(196,151,122,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 70% 80% at 80% 75%, rgba(122,138,108,0.30) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 55% 45%, rgba(212,192,160,0.25) 0%, transparent 65%),
    radial-gradient(ellipse 80% 40% at 5%  90%, rgba(158,106,72,0.20) 0%, transparent 55%),
    #F0E8D8;
  display: flex;
  align-items: center;
  padding: 100px 10% 80px;
  min-height: 65vh;
}

.hero-text { position: relative; z-index: 1; max-width: 540px; }

.hero-script {
  font-family: var(--font-script);
  font-size: var(--fs-h-md);
  font-weight: var(--fw-semibold);
  color: var(--clay);
  margin-bottom: 8px;
  display: block;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: var(--fw-bold);
  color: var(--bark);
  line-height: 1.05;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.hero h1 em { font-style: italic; color: var(--clay); }

.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--clay), transparent);
  margin: 22px 0;
}

.hero-sub {
  font-size: var(--fs-md);
  color: var(--text-mid);
  max-width: 420px;
  line-height: var(--lh-relaxed);
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; align-items: center; }

.btn-primary {
  background: var(--bark);
  color: var(--linen);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-bg);
}
.btn-primary:hover { background: var(--bark-mid); color: var(--linen); }

/* =============================================================
   Scrolling ticker band
   ============================================================= */

.intro-band {
  background: var(--bark);
  overflow: hidden;
}

.scroll-text {
  display: flex;
  white-space: nowrap;
  padding: 16px 0;
  animation: scrollLeft 28s linear infinite;
  font-family: var(--font-display);
  font-size: var(--fs-ticker);
  font-style: italic;
  color: var(--oatmeal);
  letter-spacing: 0.04em;
}

.scroll-text span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; }
.scroll-text .dot { color: var(--clay-lt); font-style: normal; }

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   Section utilities
   ============================================================= */

.section-tag {
  font-family: var(--font-script);
  font-size: var(--fs-h-xs);
  font-weight: var(--fw-semibold);
  color: var(--clay);
  margin-bottom: 8px;
  display: block;
}

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: var(--fw-bold);
  color: var(--bark);
  line-height: var(--lh-heading);
}

h2.section-title em { font-style: italic; color: var(--clay); }

/* =============================================================
   Services / Topics cards
   ============================================================= */

.services { background: var(--linen); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  border-radius: var(--radius-card);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-card);
  text-decoration: none;
  display: block;
  color: var(--text);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-lift);
  color: var(--text);
}

.service-card::before {
  content: attr(data-emoji);
  position: absolute;
  top: -8px; right: -8px;
  font-size: var(--fs-decor);
  opacity: 0.10;
  pointer-events: none;
}

.service-card.c1 { background: var(--card-bg-1); }
.service-card.c2 { background: var(--card-bg-2); }
.service-card.c3 { background: var(--card-bg-3); }

.service-icon { font-size: var(--fs-icon); margin-bottom: 14px; display: block; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h-md);
  font-weight: var(--fw-bold);
  color: var(--bark);
  margin-bottom: 10px;
  line-height: 1.2;
}

.service-card p { font-size: var(--fs-base); color: var(--text-mid); line-height: var(--lh-loose); margin-bottom: 18px; }

.service-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--bark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
  transition: var(--transition-border);
}
.service-link:hover { border-color: var(--clay); }

/* =============================================================
   Blog grid & cards
   ============================================================= */

.blog { background: var(--linen); }

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--gap-cards);
}

.blog-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition-card);
  text-decoration: none;
  display: block;
  color: var(--text);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-lift);
  color: var(--text);
}

.blog-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.blog-card.featured-card .blog-thumb { height: 260px; }

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Earthy category thumb gradients */
.thumb-monday-business,
.thumb-home {
  background:
    radial-gradient(ellipse 65% 55% at 55% 30%, rgba(180,130,80,0.45) 0%, transparent 65%),
    linear-gradient(145deg, #3E2E18 0%, #6A5030 60%, #8A7050 100%);
}

.thumb-wednesday-wisdom,
.thumb-garden {
  background:
    radial-gradient(ellipse 65% 55% at 45% 45%, rgba(150,160,110,0.45) 0%, transparent 65%),
    linear-gradient(145deg, #485038 0%, #6A7050 60%, #8A9068 100%);
}

.thumb-friday-food,
.thumb-kitchen {
  background:
    radial-gradient(ellipse 65% 55% at 40% 55%, rgba(200,155,100,0.45) 0%, transparent 65%),
    linear-gradient(145deg, #7A4820 0%, #A87040 60%, #C49060 100%);
}

.blog-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(250,247,242,0.88);
  color: var(--bark);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.blog-body { padding: 22px; }

.blog-date {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-lt);
  letter-spacing: var(--ls-date);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h-md);
  font-weight: var(--fw-bold);
  color: var(--bark);
  line-height: 1.25;
  margin-bottom: 10px;
}

.blog-card.featured-card h3 { font-size: var(--fs-h-sm); }

.blog-card p { font-size: var(--fs-card); color: var(--text-mid); line-height: var(--lh-body); margin-bottom: 14px; }

.card-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--bark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1.5px solid var(--sand);
  padding-bottom: 1px;
  transition: var(--transition-border);
}
.card-link:hover { border-color: var(--clay); }

/* =============================================================
   Newsletter section (home page)
   ============================================================= */

.newsletter-section {
  background:
    radial-gradient(ellipse 75% 65% at 15% 30%, rgba(196,151,122,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 65% 75% at 85% 70%, rgba(122,138,108,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(212,192,160,0.20) 0%, transparent 70%),
    #ECE4D4;
  text-align: center;
}

.newsletter-section .section-tag { text-align: center; }

.newsletter-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: var(--fw-bold);
  color: var(--bark);
  margin-bottom: 14px;
  line-height: 1.1;
}

.newsletter-section h2 em { font-style: italic; color: var(--clay); }

.newsletter-section > .container > p {
  color: var(--text-mid);
  font-size: var(--fs-md);
  max-width: 450px;
  margin: 0 auto 32px;
  line-height: var(--lh-loose);
}

.email-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 24px;
  box-shadow: var(--shadow-form);
}

.email-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: var(--fs-base);
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
}

.email-form input::placeholder { color: var(--text-lt); }

.email-form button {
  background: var(--bark);
  color: var(--linen);
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-bg);
}

.email-form button:hover { background: var(--bark-mid); }

/* =============================================================
   Category badge (pill)
   ============================================================= */

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition-bg);
}

.category-badge:hover { background: var(--accent-dark); color: var(--white); }

.book-format-links {
  display: inline-flex;
  gap: 8px;
  margin: 4px 0 6px;
}

.book-format-btn {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--white);
  background: var(--clay);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.book-format-btn:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.want-to-read {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clay);
  border: 1px solid var(--clay);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  vertical-align: middle;
  white-space: nowrap;
}

/* =============================================================
   Post content
   ============================================================= */

/* When .post and .container appear together on an article,
   the higher-specificity rule constrains to reading width */
article.post.container {
  max-width: var(--max-post);
  padding: 3rem 1.5rem;
}

.post-header { margin-bottom: 2rem; }

.post-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  margin-block: 0.75rem 0.5rem;
  color: var(--bark);
  letter-spacing: -0.01em;
}

.post-meta,
.recipe-meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-mid);
}

.post-image {
  margin-block: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.post-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: var(--font-display);
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  color: var(--bark);
  font-weight: var(--fw-bold);
}

.post-body h2 { font-size: clamp(22px, 3vw, 32px); }
.post-body h3 { font-size: clamp(18px, 2.5vw, 24px); }

.post-body p { margin-bottom: 1.25rem; }

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-body li { margin-bottom: 0.35rem; }

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.post-body th,
.post-body td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.post-body th {
  background: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  color: var(--bark);
}

/* Ingredient tables inside The Recipe section — plain list style, no borders */
#the-recipe ~ * table,
#the-recipe + * table {
  border: none;
  margin-bottom: 0.5rem;
}

#the-recipe ~ * th,
#the-recipe ~ * td,
#the-recipe + * th,
#the-recipe + * td {
  border: none;
  padding: 0.1rem 0.75rem 0.1rem 0;
  vertical-align: top;
}

#the-recipe ~ * th,
#the-recipe + * th {
  display: none;
}

#the-recipe ~ * td:first-child,
#the-recipe + * td:first-child {
  width: 6.5rem;
  color: var(--text-mid);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.post-body blockquote {
  border-left: 3px solid var(--clay);
  padding-left: 1.25rem;
  margin-inline: 0;
  margin-bottom: 1.25rem;
  color: var(--text-mid);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.1em;
}

.post-body code {
  font-size: 0.875em;
  background: var(--parchment);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-family: monospace;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--oatmeal);
  margin-block: 2.5rem;
}

.post-body a { color: var(--clay); }
.post-body a:hover { color: var(--bark); }

/* =============================================================
   Recipe header row (meta + print button)
   ============================================================= */

.recipe-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--bark);
  background: transparent;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.print-btn:hover {
  border-color: var(--clay);
  background: var(--parchment);
}

.card-size-toggle {
  display: inline-flex;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.card-size-btn {
  background: none;
  border: none;
  padding: 6px 11px;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  color: var(--text-mid);
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.card-size-btn.active {
  background: var(--clay);
  color: var(--white);
}

.card-size-btn:hover:not(.active) {
  background: var(--parchment);
}

/* =============================================================
   Print styles — minimal fallback for direct Ctrl+P.
   The Print recipe button opens a targeted window via JS instead.
   ============================================================= */

@media print {
  .site-nav-bar,
  .site-footer,
  .print-btn {
    display: none !important;
  }

  body { background: #fff; color: #000; }

  article.post.container { max-width: 100%; padding: 0; margin: 0; }

  .category-badge { background: none; color: #555; padding: 0; border-radius: 0; }

  .post-title { color: #000; }

  .post-body h2, .post-body h3, .post-body h4 { color: #000; }

  .post-body th { background: #eee; color: #000; }

  a::after { content: none !important; }

  /* Site URL watermark at bottom */
  article.post::after {
    content: "jeanius.cc";
    display: block;
    margin-top: 2rem;
    font-size: 9pt;
    color: #999;
    text-align: right;
  }
}

/* =============================================================
   Category index page
   ============================================================= */

.category-index {
  background: var(--linen);
  min-height: 60vh;
}

.category-index-header {
  padding-block: 3rem 2rem;
  border-bottom: 1px solid var(--oatmeal);
}

.category-index-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: var(--fw-bold);
  color: var(--bark);
  margin-block: 0.5rem;
  line-height: var(--lh-heading);
}

.category-index-description {
  color: var(--text-mid);
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  max-width: 540px;
}

.post-list {
  padding-block: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-cards);
}

/* =============================================================
   Index search bar
   ============================================================= */

.index-search-bar {
  padding-block: 1.5rem 0;
}

.post-search-input {
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--bark);
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-pill);
  outline: none;
  transition: var(--transition-border);
}

.post-search-input:focus {
  border-color: var(--clay);
}

/* =============================================================
   Index layout: sidebar + post grid
   ============================================================= */

.index-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  padding-block: 2rem;
}

.index-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: var(--sticky-top);
}

.sidebar-filter {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text-mid);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  line-height: 1.3;
}

.sidebar-filter:hover {
  background: var(--oatmeal);
  color: var(--bark);
}

.sidebar-filter.active {
  background: var(--clay);
  color: var(--white);
  font-weight: var(--fw-semibold);
}

/* Inside index-layout, post-list loses its container padding */
.index-layout .post-list {
  padding-block: 0;
}

.post-subcategory-tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-ui);
  color: var(--clay);
  margin-bottom: 4px;
}

.no-results {
  text-align: center;
  color: var(--text-mid);
  padding: 2rem;
  font-size: var(--fs-md);
}

/* post-card: styled as blog-card for category index pages */
.post-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition-card);
  text-decoration: none;
  display: block;
  color: var(--text);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-post-lift);
  color: var(--text);
}

.post-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-h-xs);
  font-weight: var(--fw-bold);
  color: var(--bark);
  padding: 20px 20px 4px;
  line-height: 1.25;
}

.post-card-meta {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-lt);
  letter-spacing: var(--ls-date);
  text-transform: uppercase;
  padding: 0 20px 8px;
}

.post-card-description {
  font-size: var(--fs-card);
  color: var(--text-mid);
  line-height: var(--lh-body);
  padding: 0 20px 20px;
}

/* =============================================================
   Static pages (About, Newsletter)
   ============================================================= */

.page {
  max-width: var(--max-post);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: var(--fw-bold);
  color: var(--bark);
  margin-bottom: 1.5rem;
  line-height: var(--lh-heading);
}

.page-body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h-sm);
  font-weight: var(--fw-bold);
  color: var(--bark);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.page-body p {
  margin-bottom: 1.25rem;
  color: var(--text-mid);
  line-height: var(--lh-relaxed);
}

.newsletter-embed {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px dashed var(--sand);
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-size: 0.9rem;
  background: var(--parchment);
}

/* Newsletter static page — watercolor treatment */
.newsletter-page {
  background:
    radial-gradient(ellipse 75% 65% at 15% 30%, rgba(196,151,122,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 65% 75% at 85% 70%, rgba(122,138,108,0.15) 0%, transparent 60%),
    var(--linen);
  padding: 80px 48px;
  min-height: 60vh;
}

.newsletter-page .page-title {
  font-size: clamp(32px, 4.5vw, 52px);
  text-align: center;
}

.newsletter-page .page-body {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

/* ── Speaking page ── */

.speaking-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.speaking-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}

.speaking-intro p {
  font-size: var(--fs-md);
  color: var(--text-mid);
  line-height: var(--lh-relaxed);
  margin-bottom: 1rem;
}

/* Jump nav */
.speaking-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.speaking-nav-link {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.speaking-nav-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(46, 36, 24, 0.08);
}

.speaking-nav-link.active {
  border-color: var(--clay);
  box-shadow: 0 4px 16px rgba(46, 36, 24, 0.10);
  background: var(--linen);
}

.speaking-nav-icon {
  font-size: var(--fs-icon);
}

.speaking-nav-label {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-subhead);
  color: var(--bark);
}

.speaking-nav-count {
  font-size: var(--fs-caption);
  color: var(--text-lt);
}

/* Collapsible track sections */
.talk-track {
  margin-bottom: 3rem;
  scroll-margin-top: var(--sticky-top);
}

.talk-track-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  list-style: none;
}

.talk-track-header::-webkit-details-marker {
  display: none;
}

.talk-track-header::marker {
  content: "";
}

.talk-track-icon {
  font-size: var(--fs-icon);
  line-height: 1;
  flex-shrink: 0;
}

.talk-track-header h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--bark);
  margin: 0;
}

.talk-track-header p {
  font-size: var(--fs-base);
  color: var(--text-mid);
  margin: 0.25rem 0 0;
  line-height: 1.5;
}

.talk-track-toggle {
  margin-left: auto;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  top: 4px;
}

.talk-track-toggle::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-lt);
  border-bottom: 2px solid var(--text-lt);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

details[open] > .talk-track-header .talk-track-toggle::before {
  transform: rotate(-135deg);
}

.talk-grid {
  padding-top: 1.5rem;
}

.talk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-cards);
}

.talk-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.talk-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-post-lift);
}

.talk-card h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h-xs);
  color: var(--bark);
  margin: 0.75rem 0 0.5rem;
  line-height: 1.3;
}

.talk-card p {
  font-size: var(--fs-card);
  color: var(--text-mid);
  line-height: var(--lh-body);
  margin: 0 0 0.75rem;
}

.talk-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.talk-format {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-ui);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--parchment);
  color: var(--text-mid);
}

.talk-format--keynote {
  background: var(--clay);
  color: var(--white);
}

.talk-format--lightning {
  background: var(--sage);
  color: var(--white);
}

.talk-format--workshop {
  background: var(--friday-food-accent);
  color: var(--white);
}

.talk-audience {
  font-size: var(--fs-caption);
  color: var(--text-lt);
  font-style: italic;
}

.speaking-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.speaking-cta h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--bark);
  margin: 0 0 0.75rem;
}

.speaking-cta p {
  font-size: var(--fs-md);
  color: var(--text-mid);
  margin: 0 0 1.5rem;
}

.speaking-cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* =============================================================
   Equipment Guide page
   ============================================================= */

.equipment-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.equipment-page .page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: var(--fw-bold);
  color: var(--bark);
  margin-bottom: 1.5rem;
  line-height: var(--lh-heading);
}

.equipment-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2.5rem;
  align-items: start;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.equipment-sidebar {
  position: sticky;
  top: var(--sticky-top);
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-right: 2px solid var(--border);
  padding-right: 1.25rem;
}

.equipment-sidebar h3 {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-lt);
  padding: 0 4px 10px;
  margin-bottom: 2px;
}

.equipment-sidebar a {
  display: block;
  padding: 7px 8px;
  font-size: var(--fs-card);
  color: var(--text-mid);
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.equipment-sidebar a:hover {
  background: var(--oatmeal);
  color: var(--bark);
}

.equipment-main h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h-sm);
  font-weight: var(--fw-bold);
  color: var(--bark);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  scroll-margin-top: 90px;
}

.equipment-main h2:first-child {
  margin-top: 0;
}

.equipment-main h3 {
  font-family: var(--font-display);
  font-size: var(--fs-subhead);
  font-weight: var(--fw-bold);
  color: var(--bark-mid);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.equipment-main p {
  margin-bottom: 1.25rem;
  color: var(--text-mid);
  line-height: var(--lh-relaxed);
}

.equipment-main ul,
.equipment-main ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-mid);
}

.equipment-main li {
  margin-bottom: 0.4rem;
  line-height: var(--lh-body);
}

.equipment-main hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* =============================================================
   Nav: hamburger menu (max-width: 960px)
   ============================================================= */

@media (max-width: 960px) {
  .site-nav-bar {
    padding: 18px 24px;
  }

  .nav-hamburger {
    display: flex;
  }

  .site-nav-bar nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 2px solid var(--oatmeal);
    padding: 8px 24px 24px;
    box-shadow: var(--shadow-post-lift);
  }

  .site-nav-bar.nav-open nav {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: var(--fs-base);
    letter-spacing: normal;
    border-bottom: 1px solid var(--oatmeal);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-cta {
    display: block;
    margin-top: 20px;
    text-align: center;
  }
}

/* =============================================================
   Mobile (max-width: 700px) — all responsive overrides
   ============================================================= */

@media (max-width: 700px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .index-layout {
    grid-template-columns: 1fr;
  }

  .index-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    gap: 6px;
  }

  .sidebar-filter {
    width: auto;
    white-space: nowrap;
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
  }

  .sidebar-filter.active {
    border-color: var(--clay);
  }

  .equipment-layout {
    grid-template-columns: 1fr;
    border-top: none;
    padding-top: 0;
  }

  .equipment-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
  }

  .equipment-sidebar h3 {
    width: 100%;
    margin-bottom: 2px;
  }

  .equipment-sidebar a {
    white-space: nowrap;
    overflow: visible;
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-size: var(--fs-caption);
  }

  .equipment-sidebar a:hover {
    border-color: var(--clay);
    background: none;
  }
}
