/*
Theme Name: CrafterBy
Theme URI: https://crafterby.com
Author: CrafterBy
Author URI: https://crafterby.com
Description: Official CrafterBy blog theme — warm rustic dark design in the CrafterBy brand (terracotta/copper + forest-green, DM Sans + JetBrains Mono + Dancing Script logo). Built for a multisite network of independent per-market blogs (pt-BR, en, es).
Version: 2.0.4
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: Proprietary
Text Domain: crafterby
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar
*/

/* ============================================================================
   DESIGN TOKENS — CrafterBy brand on a warm rustic DARK ground
   ============================================================================ */
:root {
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --font-script: 'Dancing Script', 'DM Sans', cursive;

  --radius: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.15rem;

  /* CrafterBy terracotta/copper (brand accent, kept from the app) */
  --primary-300: oklch(0.82 0.12 55);
  --primary-400: oklch(0.76 0.16 52);
  --primary-500: oklch(0.68 0.17 48);
  --primary-600: oklch(0.60 0.16 45);
  --primary-700: oklch(0.52 0.14 42);
  --rust: oklch(0.55 0.14 40);
  --rust-600: oklch(0.49 0.13 38);

  /* Forest green (secondary accent, kept from the app) */
  --accent-green-400: oklch(0.68 0.14 158);

  /* Warm espresso neutrals (dark) */
  --bg:        oklch(0.185 0.012 45);
  --bg-band:   oklch(0.150 0.010 42);   /* hero bands + footer, a touch darker */
  --surface:   oklch(0.225 0.014 46);   /* cards / widgets */
  --surface-2: oklch(0.260 0.016 46);   /* hovers / inputs */
  --fg:        oklch(0.945 0.008 78);    /* warm cream */
  --heading:   oklch(0.975 0.006 80);
  --muted-fg:  oklch(0.740 0.013 66);
  --faint-fg:  oklch(0.610 0.012 60);
  --border:    oklch(1 0 0 / 0.09);
  --border-2:  oklch(1 0 0 / 0.14);

  /* Light newsletter panel (deliberate contrast) */
  --panel:     oklch(0.955 0.010 78);
  --panel-2:   oklch(0.915 0.014 74);
  --panel-fg:  oklch(0.255 0.020 45);
  --panel-muted: oklch(0.45 0.02 45);

  --link: var(--primary-400);
  --shadow-card: 0 10px 30px -12px oklch(0 0 0 / 0.55);
  --shadow-glow: 0 0 40px -12px oklch(0.68 0.17 48 / 0.5);

  --container: 75rem;
}

/* ============================================================================
   RESET / BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.18; color: var(--heading); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary-500); outline-offset: 2px; border-radius: 4px; }
.tnum { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* Inline icons */
.post-meta svg, .read-more svg, .breadcrumb svg, .post-nav svg, .widget svg { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; flex: none; }
.chip svg { width: 13px; height: 13px; display: inline-block; vertical-align: -1px; }
.btn svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.nav-toggle svg { width: 24px; height: 24px; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; border-radius: var(--radius); z-index: 100; }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; font-size: .875rem; border-radius: var(--radius); padding: .6rem 1.15rem; cursor: pointer; border: 1px solid transparent; transition: all .25s ease; white-space: nowrap; }
.btn--primary { background: var(--primary-500); color: oklch(0.16 0.01 45); }
.btn--primary:hover { background: var(--primary-400); box-shadow: var(--shadow-glow); }
.btn--rust { background: var(--rust); color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.btn--rust:hover { background: var(--rust-600); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { color: var(--primary-400); }
.btn--outline { background: transparent; border-color: var(--border-2); color: var(--fg); }
.btn--outline:hover { border-color: var(--primary-500); color: var(--primary-400); }

/* ============================================================================
   HEADER (dark, script logo)
   ============================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50; width: 100%;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-band) 82%, transparent);
  backdrop-filter: blur(14px);
}
.site-header__inner { display: flex; height: 4.5rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark {
  height: 2.25rem; width: 2.25rem; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--primary-400), var(--primary-600));
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -4px oklch(0.68 0.17 48 / 0.6);
}
.brand__mark svg { width: 1.25rem; height: 1.25rem; color: #fff; }
.brand__word { font-family: var(--font-sans); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
.nav-primary { display: none; align-items: center; gap: 2rem; }
.nav-primary a { font-size: .875rem; font-weight: 500; letter-spacing: .02em; color: var(--muted-fg); transition: color .2s; }
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: var(--primary-400); }
.header-actions { display: none; align-items: center; gap: .75rem; }
.nav-toggle { display: inline-flex; }
@media (min-width: 960px) { .nav-primary, .header-actions { display: flex; } .nav-toggle { display: none; } }

.nav-toggle { padding: .5rem; background: none; border: 0; color: var(--fg); cursor: pointer; }
.nav-mobile { display: none; border-top: 1px solid var(--border); background: var(--bg-band); }
.nav-mobile.is-open { display: block; }
.nav-mobile nav { display: flex; flex-direction: column; gap: .25rem; padding-block: 1rem; }
.nav-mobile a { padding: .625rem .25rem; font-size: .95rem; font-weight: 500; color: var(--muted-fg); }
.nav-mobile a:hover { color: var(--primary-400); }
.nav-mobile .header-actions--mobile { display: flex; flex-direction: column; gap: .5rem; padding-top: .75rem; margin-top: .5rem; border-top: 1px solid var(--border); }

/* ============================================================================
   PAGE HERO BAND (dark, title + breadcrumb)
   ============================================================================ */
.page-hero {
  background-color: var(--bg-band);
  background-size: cover; background-position: center right;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
/* Readability overlay: darken heavily on the left where the title/breadcrumb sit,
   fading toward the imagery on the right. */
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, oklch(0.15 0.01 42 / 0.94) 0%, oklch(0.15 0.01 42 / 0.72) 45%, oklch(0.15 0.01 42 / 0.4) 100%),
    linear-gradient(0deg, oklch(0.15 0.01 42 / 0.55), transparent 60%);
}
.page-hero__inner { position: relative; z-index: 1; padding-block: 4.5rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--primary-400); }
.page-hero .lede { color: var(--muted-fg); font-size: 1.1rem; margin-top: .5rem; max-width: 46rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--faint-fg); font-size: .85rem; margin-top: 1rem; }
.breadcrumb a { color: var(--muted-fg); }
.breadcrumb a:hover { color: var(--primary-400); }
.breadcrumb svg { opacity: .6; }
.breadcrumb .sep { opacity: .5; }

.site-main { min-height: 50vh; }
.section { padding-block: 4rem; }

/* ============================================================================
   3-COLUMN CARD GRID (+ masonry variant)
   ============================================================================ */
.post-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

/* Masonry variant: same cards, CSS columns */
.post-grid--masonry { display: block; column-gap: 2.5rem; }
@media (min-width: 640px)  { .post-grid--masonry { column-count: 2; } }
@media (min-width: 1000px) { .post-grid--masonry { column-count: 3; } }
.post-grid--masonry .pcard { break-inside: avoid; margin-bottom: 2.5rem; }

.pcard { display: flex; flex-direction: column; }
.pcard__media { position: relative; display: block; }
.pcard__img { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.pcard__img img { width: 100%; height: auto; display: block; transition: transform .6s ease; }
/* Show the FULL thumbnail — never crop (covers are tall infographics). */
.post-grid:not(.post-grid--masonry) .pcard__img { aspect-ratio: 4 / 3; }
.post-grid:not(.post-grid--masonry) .pcard__img img { height: 100%; object-fit: contain; background: var(--surface); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.date-pill {
  position: absolute; left: 1rem; bottom: -0.9rem;
  background: var(--primary-500); color: oklch(0.16 0.01 45);
  font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 999px; box-shadow: 0 6px 16px -6px oklch(0 0 0 / .6);
  display: inline-flex; align-items: center; gap: .35rem;
}
.date-pill .tnum { font-family: var(--font-mono); }
.pcard__body { padding-top: 1.15rem; }
.pcard__title { font-size: 1.4rem; line-height: 1.25; margin-bottom: .6rem; }
.pcard__title a { transition: color .2s; }
.pcard:hover .pcard__title a { color: var(--primary-400); }
.pcard__excerpt { color: var(--muted-fg); font-size: .95rem; margin-bottom: 1rem; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .78rem; color: var(--primary-400); }
.pcard__meta a { color: var(--primary-400); }
.pcard__meta a:hover { text-decoration: underline; }
.pcard__meta .dot { color: var(--faint-fg); }
.pcard__meta .m-cat { text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

.read-more { color: var(--primary-400); font-weight: 600; font-size: .875rem; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.read-more:hover { color: var(--primary-300); }

.pagination { margin-top: 3.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .6rem; border: 1px solid var(--border-2); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--fg); }
.pagination .page-numbers.current { background: var(--primary-500); color: oklch(0.16 0.01 45); border-color: var(--primary-500); }
.pagination a.page-numbers:hover { border-color: var(--primary-500); color: var(--primary-400); }

/* ============================================================================
   SINGLE POST — content left, sidebar right
   ============================================================================ */
.single-layout { display: grid; gap: 3.5rem; grid-template-columns: 1fr; padding-block: 3.5rem; }
@media (min-width: 1024px) { .single-layout { grid-template-columns: minmax(0, 1fr) 20rem; } }

.post-hero-img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 2rem; background: var(--surface); }

/* Prose */
.prose { color: var(--fg); font-size: 1.075rem; line-height: 1.8; max-width: 44rem; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-size: 1.65rem; margin-top: 2.2em; margin-bottom: .5em; color: var(--heading); }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; margin-bottom: .4em; color: var(--heading); }
.prose a { color: var(--primary-400); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary-300); }
.prose strong { color: var(--heading); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .4em 0; }
.prose ul > li::marker { color: var(--primary-500); }
.prose img, .prose figure img { border-radius: var(--radius-lg); border: 1px solid var(--border); margin-inline: auto; }
.prose figure { margin: 1.9em 0; }
.prose figcaption { text-align: center; font-size: .82rem; color: var(--faint-fg); margin-top: .6rem; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: oklch(0.13 0.008 45); color: var(--fg); padding: 1rem 1.25rem; border-radius: var(--radius-lg); overflow-x: auto; border: 1px solid var(--border); }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; }
.prose th, .prose td { border: 1px solid var(--border); padding: .55rem .8rem; text-align: left; }
.prose th { background: var(--surface); }

/* Pull-quote (rust panel, Craftis-style) */
.prose blockquote {
  background: var(--rust); color: #fff; border: 0;
  border-radius: var(--radius-lg); padding: 1.75rem 2rem 1.75rem 3.25rem;
  position: relative; font-size: 1.05rem; font-style: normal;
  box-shadow: var(--shadow-card);
}
.prose blockquote::before {
  content: '\201C'; position: absolute; left: 1rem; top: .3rem;
  font-family: Georgia, serif; font-size: 3.2rem; line-height: 1; color: oklch(1 0 0 / 0.55);
}
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: .6rem; font-size: .85rem; color: oklch(1 0 0 / 0.8); font-style: normal; }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }

/* Tag pills */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.tag-list a, .tagcloud a { font-size: .8rem !important; color: var(--muted-fg); background: var(--surface); border: 1px solid var(--border); padding: .3rem .75rem; border-radius: 999px; transition: all .2s; }
.tag-list a::before, .tagcloud a::before { content: '#'; color: var(--primary-500); }
.tag-list a:hover, .tagcloud a:hover { color: var(--primary-400); border-color: var(--primary-500); }

/* Author box */
.author-box { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 3rem; padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.author-box img { width: 64px; height: 64px; border-radius: 999px; flex: none; }
.author-box .a-name { font-size: 1.05rem; font-weight: 700; }
.author-box .a-bio { color: var(--muted-fg); font-size: .92rem; margin: .35rem 0 .6rem; }
.author-box .a-link { color: var(--primary-400); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

/* Prev / next */
.post-nav { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1.5rem; }
.post-nav a { color: var(--fg); font-size: .95rem; max-width: 45%; }
.post-nav a:hover { color: var(--primary-400); }
.post-nav .pn-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-500); margin-bottom: .25rem; }
.post-nav .pn-next { text-align: right; margin-left: auto; }

/* You may also like */
.related { margin-top: 3.5rem; }
.related__head { font-size: 1.5rem; margin-bottom: 1.5rem; }
.related__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .related__grid { grid-template-columns: 1fr 1fr; } }
.related__item { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; min-height: 190px; box-shadow: var(--shadow-card); }
.related__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.related__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.15 0.01 45 / .1), oklch(0.12 0.008 45 / .9)); }
.related__cap { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 1.1rem 1.25rem; }
.related__cap .r-date { display: inline-block; background: var(--primary-500); color: oklch(0.16 0.01 45); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.related__cap h3 { font-size: 1.05rem; color: #fff; }

/* ============================================================================
   SIDEBAR WIDGETS (right)
   ============================================================================ */
.sidebar { display: grid; gap: 2.25rem; align-content: start; }
@media (min-width: 1024px) { .sidebar { position: sticky; top: 5.5rem; } }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
.widget__title { font-size: 1.05rem; font-weight: 700; color: var(--heading); margin-bottom: 1rem; position: relative; padding-bottom: .6rem; }
.widget__title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 2.25rem; height: 3px; border-radius: 3px; background: var(--primary-500); }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.widget--links li { display: flex; align-items: center; gap: .5rem; color: var(--muted-fg); font-size: .92rem; }
.widget--links li::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--primary-500); flex: none; }
.widget--links a { color: var(--muted-fg); }
.widget--links a:hover { color: var(--primary-400); }
.widget--featured li { display: flex; gap: .75rem; align-items: center; }
.widget--featured img { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; flex: none; }
.widget--featured .f-title { font-size: .88rem; font-weight: 600; color: var(--fg); line-height: 1.3; }
.widget--featured .f-title:hover { color: var(--primary-400); }
.widget--featured .f-date { font-size: .72rem; color: var(--faint-fg); margin-top: .2rem; }
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: .6rem .8rem; border: 1px solid var(--border-2); border-radius: var(--radius); font: inherit; font-size: .9rem; background: var(--surface-2); color: var(--fg); }
.search-form input::placeholder { color: var(--faint-fg); }
.search-form button { padding: .6rem .9rem; }
.tagcloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.recent-comments li { font-size: .88rem; color: var(--muted-fg); }
.recent-comments a { color: var(--primary-400); }
.recent-comments .rc-author { color: var(--fg); font-weight: 600; }

/* Calendar */
.widget_calendar table { width: 100%; border-collapse: collapse; font-size: .82rem; color: var(--muted-fg); }
.widget_calendar caption { font-weight: 700; color: var(--heading); padding-bottom: .5rem; text-align: left; }
.widget_calendar th { color: var(--faint-fg); font-weight: 600; padding: .3rem 0; }
.widget_calendar td { text-align: center; padding: .3rem 0; }
.widget_calendar td a { color: var(--primary-400); font-weight: 700; }
.widget_calendar #today { background: var(--primary-500); color: oklch(0.16 0.01 45); border-radius: 999px; }
.widget_calendar #today a { color: inherit; }
.widget_calendar tfoot a { color: var(--primary-400); }
.widget_calendar nav { display:flex; justify-content: space-between; }

/* ============================================================================
   COMMENTS (dark)
   ============================================================================ */
.comments { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments__title { font-size: 1.4rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.comment-list .children { list-style: none; margin: 1.25rem 0 0; padding-left: 1.25rem; border-left: 2px solid var(--border); display: grid; gap: 1.25rem; }
.comment-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.35rem; }
.comment-meta { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.comment-author { font-weight: 700; font-size: .95rem; color: var(--heading); }
.comment-metadata { color: var(--faint-fg); font-size: .74rem; }
.comment-content { color: var(--muted-fg); font-size: .95rem; }
.comment-content p { margin: .4em 0; }
.reply a { font-size: .78rem; color: var(--primary-400); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.avatar { border-radius: 999px; }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.15rem; margin-bottom: 1rem; }
.comment-form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.comment-form .comment-form-comment, .comment-form .comment-form-cookies-consent, .comment-form .form-submit, .comment-form .comment-notes { grid-column: 1 / -1; }
.comment-form p { margin: 0; display: grid; gap: .4rem; }
.comment-form label { font-size: .8rem; font-weight: 600; color: var(--muted-fg); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--border-2); border-radius: var(--radius); font: inherit; font-size: .95rem; background: var(--surface-2); color: var(--fg);
}
.comment-form textarea { min-height: 8rem; resize: vertical; }
.comment-notes, .comment-form-cookies-consent { font-size: .8rem; color: var(--faint-fg); }

/* ============================================================================
   CTA — sidebar card + in-content banner (images generated for the brand)
   ============================================================================ */
.cta-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; background-size: cover; background-position: center; box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.cta-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, oklch(0.12 0.01 45 / 0.96)); }
.cta-card__body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 1.4rem; display: grid; gap: .55rem; justify-items: start; }
.cta-card__eyebrow { font-family: var(--font-script); font-size: 1.4rem; line-height: 1; color: var(--primary-400); }
.cta-card__title { color: #fff; font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.cta-card:hover .btn--rust { background: var(--rust-600); }

.cta-banner { position: relative; margin: 2.5rem 0; border-radius: var(--radius-lg); overflow: hidden; padding: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; background-size: cover; background-position: center; box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(0.14 0.01 45 / 0.95) 42%, oklch(0.14 0.01 45 / 0.5)); }
.cta-banner__text { position: relative; z-index: 1; flex: 1 1 58%; min-width: 15rem; }
.cta-banner__text strong { display: block; color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: .35rem; }
.cta-banner__text p { color: var(--muted-fg); font-size: .92rem; margin: 0; }
.cta-banner__btn { position: relative; z-index: 1; }

/* ============================================================================
   NEWSLETTER BAND (light panel)
   ============================================================================ */
.newsletter { position: relative; margin-top: 4rem; }
.newsletter__panel {
  background:
    radial-gradient(120% 140% at 100% 50%, oklch(0.86 0.06 150 / .5), transparent 55%),
    var(--panel);
  border-radius: var(--radius-xl); overflow: hidden;
  padding: 2.75rem clamp(1.5rem, 4vw, 3.5rem);
  display: grid; gap: 1.25rem; align-items: center;
}
.newsletter__panel::before {
  content: ''; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: radial-gradient(oklch(0.3 0.02 45) 1px, transparent 1px); background-size: 7px 7px;
}
.newsletter h2 { color: var(--panel-fg); font-size: clamp(1.5rem, 3vw, 2rem); position: relative; }
.newsletter p { color: var(--panel-muted); position: relative; }
.newsletter form { display: flex; flex-wrap: wrap; gap: .75rem; position: relative; max-width: 34rem; }
.newsletter input[type="email"] { flex: 1; min-width: 12rem; padding: .8rem 1rem; border: 1px solid var(--panel-2); border-radius: var(--radius); background: #fff; color: var(--panel-fg); font: inherit; }
.newsletter .consent { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--panel-muted); position: relative; }

/* ============================================================================
   FOOTER (dark)
   ============================================================================ */
.site-footer { background: var(--bg-band); border-top: 1px solid var(--border); padding-block: 3.5rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted-fg); font-size: .9rem; max-width: 22rem; }
.footer-col h3 { font-size: .95rem; margin-bottom: 1rem; color: var(--heading); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-col a { color: var(--muted-fg); font-size: .9rem; }
.footer-col a:hover { color: var(--primary-400); }
.footer-bottom { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; color: var(--faint-fg); font-size: .85rem; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.stars { display: inline-flex; align-items: center; gap: .15rem; }
.stars svg { width: 1rem; height: 1rem; color: var(--primary-500); fill: var(--primary-500); }

/* Notices / empty */
.notice { text-align: center; padding-block: 4rem; color: var(--muted-fg); }
.notice h1 { font-size: 2rem; margin-bottom: .75rem; color: var(--heading); }
