/* =====================================================================
   METABOLISMO ATIVADO — V2
   Refresh editorial: serif display + sans + mono micro-labels.
   Paleta refinada (oklch): navy + paper + blue + ember.
   ===================================================================== */

:root {
  /* INK + SURFACE */
  --ink:          oklch(0.18 0.04 250);          /* deep navy */
  --ink-2:        oklch(0.24 0.045 250);         /* slightly raised navy */
  --ink-3:        oklch(0.30 0.04 250);          /* hairline on dark */
  --paper:        oklch(0.985 0.005 90);         /* warm off-white */
  --paper-2:      oklch(0.962 0.008 85);         /* sand */
  --paper-3:      oklch(0.93 0.01 80);           /* hairline on paper */

  /* TEXT */
  --text:         oklch(0.22 0.03 250);          /* body on paper */
  --text-mute:    oklch(0.48 0.02 250);          /* secondary on paper */
  --text-faint:   oklch(0.62 0.015 250);
  --text-on-dark: oklch(0.96 0.008 85);
  --text-on-dark-mute: oklch(0.72 0.02 250);

  /* BRAND */
  --blue:         oklch(0.62 0.18 255);          /* primary action */
  --blue-bright:  oklch(0.70 0.20 252);          /* accent on dark */
  --blue-deep:    oklch(0.48 0.18 258);          /* deep accent */
  --blue-wash:    oklch(0.95 0.04 252);          /* tinted bg on paper */

  --ember:        oklch(0.72 0.16 50);           /* warm accent (flame) */
  --ember-deep:   oklch(0.58 0.18 45);
  --ember-wash:   oklch(0.96 0.04 60);

  --leaf:         oklch(0.68 0.14 155);          /* category */
  --leaf-wash:    oklch(0.96 0.04 155);

  --plum:         oklch(0.55 0.16 320);
  --plum-wash:    oklch(0.96 0.04 320);

  --gold:         oklch(0.78 0.13 85);
  --gold-wash:    oklch(0.97 0.03 85);

  --rose:         oklch(0.70 0.15 25);
  --rose-wash:    oklch(0.96 0.03 25);

  /* TYPE */
  --display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --sans:    "Geist", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* legacy alias */
  --serif:   var(--display);

  /* SCALE — tighter for grotesque display */
  --display-1: clamp(44px, 6.6vw, 96px);
  --display-2: clamp(38px, 5.2vw, 72px);
  --h1:        clamp(34px, 4.4vw, 60px);
  --h2:        clamp(28px, 3.4vw, 44px);
  --h3:        clamp(20px, 2vw, 26px);
  --body:      17px;
  --small:     14px;
  --micro:     12px;

  /* SHELL */
  --container: 1240px;
  --container-narrow: 760px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 18px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--paper); -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* =====================================================================
   LABELS / MICRO TYPE
   ===================================================================== */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow.on-dark { color: var(--blue-bright); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253,252,249,0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--paper-3);
}
.site-header.on-dark {
  background: var(--ink);
  border-bottom: 1px solid oklch(0.28 0.045 250);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 36px; width: auto; }
.brand .logo-light { display: none; }
.on-dark .brand .logo-dark { display: none; }
.on-dark .brand .logo-light { display: block; }
.brand-text {
  display: none; /* logo image is enough */
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-main a {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-mute);
  border-radius: 999px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.nav-main a:hover { color: var(--text); }
.nav-main a.active { color: var(--text); }
.nav-main a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--blue);
}

/* Dropdown — Categorias */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-mute);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms var(--ease), background 180ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.nav-dropdown-trigger svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform 200ms var(--ease);
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-expanded="true"] { color: var(--text); }
.nav-dropdown-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  margin-top: 6px;
  padding: 14px 8px 8px;
  min-width: 280px;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(10,22,40,0.25), 0 4px 12px -4px rgba(10,22,40,0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  z-index: 60;
}
.nav-dropdown-menu::before {
  /* invisible hover bridge so moving mouse from trigger to menu doesn't close it */
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: background 160ms var(--ease), color 160ms var(--ease);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--paper-2); color: var(--blue-deep); }
.nav-dropdown-menu a::after { content: none !important; }

.on-dark .nav-main a { color: var(--text-on-dark-mute); }
.on-dark .nav-main a:hover { color: var(--text-on-dark); }
.on-dark .nav-main a.active { color: var(--text-on-dark); }
.on-dark .nav-main a.active::after { background: var(--blue-bright); }

/* Dropdown on dark header */
.on-dark .nav-dropdown-trigger { color: var(--text-on-dark-mute); }
.on-dark .nav-dropdown-trigger:hover,
.on-dark .nav-dropdown-trigger[aria-expanded="true"] { color: var(--text-on-dark); }
.on-dark .nav-dropdown-menu {
  background: var(--ink-2);
  border-color: oklch(0.32 0.045 250);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7);
}
.on-dark .nav-dropdown-menu a { color: var(--text-on-dark); }
.on-dark .nav-dropdown-menu a:hover { background: oklch(1 0 0 / 0.06); color: var(--blue-bright); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--paper-3);
  border-radius: 999px;
  position: relative;
}
.on-dark .menu-toggle { border-color: var(--ink-3); }
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  transition: all 200ms var(--ease);
}
.on-dark .menu-toggle span { background: var(--text-on-dark); }
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }

@media (max-width: 820px) {
  .nav-main { display: none; }
  .menu-toggle { display: block; }
  body.menu-open .nav-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    padding: 12px 20px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-3);
    z-index: 49;
  }
  body.menu-open .nav-main a {
    border-radius: 0;
    padding: 16px 4px;
    border-bottom: 1px solid var(--paper-3);
    font-size: 18px;
  }
  body.menu-open .nav-main .nav-dropdown {
    border-bottom: 1px solid var(--paper-3);
  }
  body.menu-open .nav-main .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    border-radius: 0;
    font-size: 18px;
  }
  body.menu-open .nav-main .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    padding: 4px 0 12px 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  body.menu-open .nav-main .nav-dropdown[data-mobile-open="true"] .nav-dropdown-menu {
    display: block;
  }
  body.menu-open .nav-main .nav-dropdown-menu a {
    padding: 12px 4px;
    font-size: 16px;
  }
  body.menu-open.on-dark-page .nav-main {
    background: var(--ink);
    border-bottom-color: var(--ink-3);
  }
  body.menu-open.on-dark-page .nav-main a { color: var(--text-on-dark); }
  body.menu-open.on-dark-page .nav-main .nav-dropdown-trigger { color: var(--text-on-dark); }
  body.menu-open.on-dark-page .nav-main .nav-dropdown-menu a { color: var(--text-on-dark-mute); }
}

/* =====================================================================
   HERO — Editorial — DESKTOP RESTYLE
   On desktop (≥1024), the hero is a 2-column layout:
   left: tagline + headline + lede
   right: featured article as a tall vertical card
   On tablet/mobile, falls back to the stacked layout below.
   ===================================================================== */
.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  isolation: isolate;
}
.hero::before {
  /* subtle radial glow as energy hint */
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, oklch(0.62 0.18 255 / 0.18), transparent 70%);
  z-index: -1;
  filter: blur(20px);
}
.hero::after {
  /* hairline grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.025) 1px, transparent 1px);
  background-size: 96px 100%;
  z-index: -1;
  mask: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* DESKTOP — 2-column layout */
@media (min-width: 1025px) {
  .hero { padding: 96px 0 96px; }
  .site-header .brand img { height: 56px; }
  .site-header .header-inner { height: 96px; gap: 40px; }
  .site-header .nav-main { gap: 6px; }
  .site-header .nav-main a,
  .site-header .nav-dropdown-trigger {
    font-size: 15.5px;
    padding: 12px 18px;
  }
  .site-header .nav-dropdown-trigger svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  .site-header .nav-dropdown-menu {
    min-width: 300px;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
  }
  .hero-main { padding-right: 8px; }

  /* Transform horizontal strip into a magazine-style vertical card */
  .hero-featured-strip {
    display: block !important;
    grid-template-columns: none !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    gap: 0 !important;
    background: linear-gradient(180deg, oklch(0.23 0.045 250) 0%, oklch(0.20 0.04 250) 100%);
    border: 1px solid oklch(0.32 0.05 252);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px -30px oklch(0 0 0 / 0.5), 0 1px 0 0 oklch(1 0 0 / 0.04) inset;
    transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
  }
  .hero-featured-strip::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, oklch(0.62 0.18 255 / 0.5), transparent);
    z-index: 2;
  }
  .hero-featured-strip:hover {
    transform: translateY(-6px);
    border-color: oklch(0.55 0.16 252);
    box-shadow: 0 40px 100px -30px oklch(0 0 0 / 0.6);
  }

  /* Big full-width image at top — 16:9 matches all covers */
  .hero-featured-strip .hf-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 0 !important;
    display: block !important;
    background: var(--ink-2);
    position: relative;
    overflow: hidden;
  }
  .hero-featured-strip .hf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 600ms var(--ease);
  }
  .hero-featured-strip:hover .hf-thumb img { transform: scale(1.03); }

  /* Body below image */
  .hero-featured-strip .hf-body {
    display: block !important;
    padding: 28px 32px 30px;
  }
  .hero-featured-strip .hf-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--blue-bright);
    margin-bottom: 14px;
  }
  .hero-featured-strip .hf-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.028em;
    color: var(--text-on-dark);
    margin: 0;
    text-wrap: balance;
    transition: color 240ms var(--ease);
  }
  .hero-featured-strip:hover .hf-title { color: var(--blue-bright); }
  .hero-featured-strip .hf-meta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid oklch(0.30 0.04 250);
    color: var(--text-on-dark-mute);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .hero-featured-strip .hf-meta::after {
    content: "Ler artigo →";
    color: var(--blue-bright);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 200ms var(--ease);
  }
  .hero-featured-strip:hover .hf-meta::after { color: white; }

  /* Hide the floating arrow on desktop — CTA in meta replaces it */
  .hero-featured-strip .hf-arrow { display: none !important; }

  /* Bigger headline on desktop */
  .hero h1 {
    font-size: clamp(56px, 5.8vw, 92px);
    line-height: 1.0;
  }
  .hero .lede {
    font-size: 20px;
    max-width: 52ch;
  }
}

/* TABLET / MOBILE keep the old horizontal-strip style — original rules below */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.hero-eyebrow .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue-bright);
  opacity: 0.5;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--display-1);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  text-wrap: balance;
  color: var(--text-on-dark);
  font-variation-settings: "wdth" 100, "opsz" 96;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-bright);
  display: inline;
}
.hero h1 .underline-ember {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underline-ember::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.05em;
  height: 0.12em;
  background: var(--ember);
  opacity: 0.55;
  border-radius: 4px;
  z-index: -1;
}
.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-on-dark-mute);
  max-width: 56ch;
  margin: 0 0 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

/* Featured strip */
.hero-featured-strip {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px;
  align-items: center;
  padding-top: 36px;
  border-top: 1px solid var(--ink-3);
}
.hero-featured-strip .hf-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.hero-featured-strip .hf-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin: 6px 0 0;
}
.hero-featured-strip .hf-title a { transition: color 180ms var(--ease); }
.hero-featured-strip .hf-title a:hover { color: var(--blue-bright); }
.hero-featured-strip .hf-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-mute);
}
.hero-featured-strip .hf-thumb {
  width: 200px;
  height: 130px;
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
  background: var(--ink-2);
}
.hero-featured-strip .hf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
}
.hero-featured-strip:hover .hf-thumb img { transform: scale(1.04); }
.hero-featured-strip .hf-arrow {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--ink-3);
  display: grid;
  place-items: center;
  color: var(--text-on-dark);
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.hero-featured-strip .hf-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .hero { padding: 56px 0 72px; }
  .hero-featured-strip { grid-template-columns: 1fr; gap: 16px; }
  .hero-featured-strip .hf-thumb { width: 100%; height: 180px; }
  .hero-featured-strip .hf-arrow { display: none; }
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease), transform 200ms var(--ease);
  white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover { background: var(--blue-deep); }

.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--ink-3);
}
.btn-ghost:hover {
  border-color: var(--text-on-dark);
  background: oklch(1 0 0 / 0.04);
}
.site-header:not(.on-dark) .btn-ghost {
  color: var(--text);
  border-color: var(--paper-3);
}

.btn-block { width: 100%; justify-content: center; }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section {
  padding: 110px 0;
  background: var(--paper);
}
.section.tinted { background: var(--paper-2); }
.section.dark {
  background: var(--ink);
  color: var(--text-on-dark);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--paper-3);
}
.section-head .label { margin-bottom: 16px; display: block; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--h2);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 18ch;
  color: var(--text);
  text-wrap: balance;
}
.section-head .lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-mute);
  max-width: 38ch;
  margin: 0;
}

.section.dark .section-head { border-bottom-color: var(--ink-3); }
.section.dark .section-head h2 { color: var(--text-on-dark); }
.section.dark .section-head .lede { color: var(--text-on-dark-mute); }
.section.dark .label { color: var(--blue-bright); }

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
}

/* =====================================================================
   CATEGORY GRID — 6 trilhas
   ===================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--paper-3);
  border-left: 1px solid var(--paper-3);
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 36px 32px 32px;
  background: var(--paper);
  border-right: 1px solid var(--paper-3);
  border-bottom: 1px solid var(--paper-3);
  transition: background 240ms var(--ease);
  min-height: 260px;
  overflow: hidden;
}
.cat-card:hover { background: var(--paper-2); }
.cat-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}
.cat-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 20px;
  background: var(--blue-wash);
  color: var(--blue-deep);
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-card[data-tone="ember"]  .cat-icon { background: var(--ember-wash); color: var(--ember-deep); }
.cat-card[data-tone="leaf"]   .cat-icon { background: var(--leaf-wash); color: oklch(0.42 0.14 155); }
.cat-card[data-tone="plum"]   .cat-icon { background: var(--plum-wash); color: var(--plum); }
.cat-card[data-tone="gold"]   .cat-icon { background: var(--gold-wash); color: oklch(0.5 0.12 85); }
.cat-card[data-tone="rose"]   .cat-icon { background: var(--rose-wash); color: oklch(0.5 0.15 25); }

.cat-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.cat-card p {
  margin: 8px 0 0;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.5;
}
.cat-cta {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 200ms var(--ease), gap 200ms var(--ease);
}
.cat-card:hover .cat-cta { color: var(--blue-deep); gap: 14px; }

@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   ARTICLE GRID
   ===================================================================== */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
@media (max-width: 980px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .art-grid { grid-template-columns: 1fr; gap: 40px; } }

.art-card { display: flex; flex-direction: column; gap: 18px; }
.art-card .cover {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper-2);
  transition: transform 400ms var(--ease);
}
.art-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
}
.art-card:hover .cover img { transform: scale(1.03); }

.placeholder {
  position: absolute;
  inset: 0;
  background-color: var(--paper-2);
  background-image:
    repeating-linear-gradient(
      135deg,
      oklch(0.93 0.01 80) 0,
      oklch(0.93 0.01 80) 1px,
      transparent 1px,
      transparent 12px
    );
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-align: center;
  padding: 16px;
}

.art-card .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.tag.cat-1 { color: oklch(0.5 0.15 25); }
.tag.cat-2 { color: oklch(0.42 0.14 155); }
.tag.cat-3 { color: var(--blue-deep); }
.tag.cat-4 { color: var(--ember-deep); }
.tag.cat-5 { color: oklch(0.5 0.12 85); }
.tag.cat-6 { color: var(--plum); }

.art-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
.art-card h3 a { transition: color 200ms var(--ease); }
.art-card h3 a:hover { color: var(--blue-deep); }
.art-card .excerpt {
  margin: 0;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.55;
}
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.read-more {
  color: var(--text);
  transition: color 200ms var(--ease);
}
.read-more:hover { color: var(--blue-deep); }

/* =====================================================================
   COMUNIDADE / SOCIAL SECTION + POSTS CAROUSEL
   ===================================================================== */
.social-section {
  padding: 96px 0 0;
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.social-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, oklch(0.62 0.18 255 / 0.12), transparent 70%);
  z-index: -1;
}
.social-section .heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: center;
  margin-bottom: 40px;
}
.social-section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--h2);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.social-section p {
  margin: 0;
  color: var(--text-on-dark-mute);
  font-size: 17px;
}

/* Social row — brand colors */
.social-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 72px;
}
.social-row .social-link {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  border: 0;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), filter 220ms var(--ease);
}
.social-row .social-link svg { width: 26px; height: 26px; }
.social-row .social-link:hover {
  transform: translateY(-4px);
  filter: brightness(1.08);
}
.social-row .social-yt {
  background: #FF0000;
  box-shadow: 0 16px 40px -16px rgba(255, 0, 0, 0.6);
}
.social-row .social-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 16px 40px -16px rgba(220, 39, 67, 0.6);
}
.social-row .social-fb {
  background: #1877F2;
  box-shadow: 0 16px 40px -16px rgba(24, 119, 242, 0.6);
}
.social-row .social-tt {
  background: #000;
  box-shadow: 0 16px 40px -16px rgba(255, 0, 80, 0.5);
}

/* Posts carousel — paged (no autoplay) */
.posts-carousel {
  position: relative;
  margin-top: 0;
  padding: 0 0 96px;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.posts-viewport {
  overflow: hidden;
  padding: 4px 80px; /* room for arrows overlapping the viewport */
}
.posts-track {
  display: flex;
  gap: 24px;
  transition: transform 480ms var(--ease);
  will-change: transform;
}
.post-tile {
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--ink-2);
  border: 1px solid oklch(0.30 0.04 250);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 320ms var(--ease), border-color 320ms var(--ease);
  display: block;
  color: var(--text-on-dark);
}
.post-tile-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink-2);
}
.post-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
}
.post-tile-label {
  padding: 16px 20px 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-on-dark);
  text-align: center;
  text-wrap: balance;
  border-top: 1px solid oklch(0.30 0.04 250);
}
.post-tile:hover {
  transform: translateY(-4px);
  border-color: var(--blue-bright);
}
.post-tile:hover .post-tile-cover img { transform: scale(1.04); }

/* Arrows — circular, centered vertically, overlapping the viewport edges */
.carousel-arrow {
  position: absolute;
  top: calc(50% - 30px); /* offset for label area below image */
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: oklch(0.95 0.01 250);
  border: 1px solid oklch(0.85 0.015 250);
  color: oklch(0.20 0.04 250);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4);
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease), opacity 200ms var(--ease);
}
.carousel-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  transform: translateY(-50%) scale(1.06);
}
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }
.carousel-arrow[disabled],
.carousel-arrow.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: oklch(0.40 0.03 250);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 200ms var(--ease), width 240ms var(--ease);
}
.carousel-dot:hover { background: oklch(0.55 0.05 250); }
.carousel-dot.is-active {
  background: var(--blue-bright);
  width: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .posts-track { transition: none; }
}

@media (max-width: 1024px) {
  /* 2 cards visible on tablet */
  .post-tile { flex: 0 0 calc((100% - 24px) / 2); }
  .posts-viewport { padding: 4px 70px; }
}
@media (max-width: 820px) {
  .social-section { padding: 72px 0 0; }
  .posts-carousel { padding-bottom: 88px; }
  .posts-viewport { padding: 4px 60px; }
  .post-tile { flex: 0 0 calc((100% - 18px) / 2); border-radius: 14px; }
  .posts-track { gap: 18px; }
  .post-tile-label { padding: 14px 16px 16px; font-size: 15px; }
  .carousel-arrow { width: 44px; height: 44px; }
  .carousel-arrow svg { width: 18px; height: 18px; }
  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }
  .carousel-dots { bottom: 32px; }
  .social-row { gap: 14px; margin-bottom: 56px; }
  .social-row .social-link { width: 56px; height: 56px; }
  .social-row .social-link svg { width: 22px; height: 22px; }
}
@media (max-width: 540px) {
  .social-section { padding: 56px 0 0; }
  .posts-carousel { padding-bottom: 76px; }
  .posts-viewport { padding: 4px 50px; }
  .post-tile { flex: 0 0 100%; border-radius: 12px; }
  .posts-track { gap: 14px; }
  .post-tile-label { padding: 12px 14px 14px; font-size: 14px; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow svg { width: 16px; height: 16px; }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
  .carousel-dots { bottom: 26px; gap: 8px; }
  .carousel-dot { width: 8px; height: 8px; }
  .carousel-dot.is-active { width: 22px; }
  .social-row { gap: 12px; margin-bottom: 44px; }
  .social-row .social-link { width: 52px; height: 52px; }
  .social-row .social-link svg { width: 20px; height: 20px; }
}

/* =====================================================================
   NEWSLETTER
   ===================================================================== */
.newsletter {
  padding: 110px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--paper-3);
  border-bottom: 1px solid var(--paper-3);
}
.newsletter .container { max-width: 780px; }
.newsletter .label { display: block; text-align: center; margin-bottom: 20px; }
.newsletter h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--h2);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-align: center;
  color: var(--text);
  text-wrap: balance;
}
.newsletter > .container > p {
  text-align: center;
  margin: 0 0 32px;
  color: var(--text-mute);
  font-size: 17px;
}
.newsletter form {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
}
.newsletter input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid var(--paper-3);
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.newsletter input[type="email"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px oklch(0.62 0.18 255 / 0.12);
}
.newsletter > .container > p.small {
  text-align: center;
  margin: 24px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@media (max-width: 560px) {
  .newsletter form { flex-direction: column; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-mute);
  padding: 84px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ink-3);
}
.footer-brand .brand img { height: 40px; }
.footer-brand .tagline {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  color: var(--text-on-dark);
  margin: 20px 0 0;
  letter-spacing: -0.02em;
}
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue-bright);
  transition: color 180ms var(--ease);
}
.footer-email svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}
.footer-email:hover { color: var(--text-on-dark); }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer-social .social-link {
  width: 40px;
  height: 40px;
}
.footer-social .social-link svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: var(--text-on-dark-mute);
  font-size: 14px;
  transition: color 180ms var(--ease);
}
.footer-col a:hover { color: var(--text-on-dark); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-mute);
}
.footer-bottom a { color: var(--blue-bright); }

/* Compact footer variant used on article pages */
.site-footer--compact .footer-top {
  grid-template-columns: 1.4fr 1fr 1fr;
}
.footer-social-col .footer-social-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.f-soc {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 200ms var(--ease), filter 200ms var(--ease);
  width: max-content;
  max-width: 100%;
}
.f-soc:hover { transform: translateY(-1px); filter: brightness(1.08); color: white; }
.f-soc svg { width: 16px; height: 16px; flex-shrink: 0; }
.f-soc.yt { background: #FF0000; }
.f-soc.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.f-soc.fb { background: #1877F2; }

/* Rich footer-bottom — Navegação + Legal as inline links */
.footer-bottom--rich {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding-top: 24px;
}
.footer-bottom--rich .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-on-dark-mute);
}
.footer-bottom--rich .footer-links a {
  color: var(--text-on-dark-mute);
  transition: color 180ms var(--ease);
}
.footer-bottom--rich .footer-links a:hover { color: var(--text-on-dark); }
.footer-bottom--rich .footer-links .dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--text-on-dark-mute);
  opacity: 0.5;
}
.footer-bottom--rich .footer-links--legal {
  font-size: 12px;
}
.footer-bottom--rich .footer-copy {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-mute);
  border-top: 1px solid var(--ink-3);
  padding-top: 16px;
}

@media (max-width: 820px) {
  .site-footer--compact .footer-top { grid-template-columns: 1fr 1fr; }
  .site-footer--compact .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .site-footer--compact .footer-top { grid-template-columns: 1fr; }
  .site-footer--compact .footer-col { display: block !important; }
  .footer-bottom--rich .footer-links { font-size: 12px; }
  .footer-bottom--rich .footer-links--legal { font-size: 11px; }
}

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

/* =====================================================================
   COOKIE BANNER
   ===================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  padding: 22px 22px 18px;
  border-radius: var(--radius-l);
  background: oklch(0.16 0.04 250 / 0.94);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--ink-3);
  color: var(--text-on-dark);
  z-index: 100;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner.hide { transform: translateY(20px); opacity: 0; pointer-events: none; }
.cookie-banner p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-on-dark-mute);
}
.cookie-banner p a { color: var(--blue-bright); }
.cookie-banner .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 9px 14px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--ink-3);
  background: transparent;
  color: var(--text-on-dark);
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}
.cookie-banner .btn-accept {
  background: var(--blue);
  border-color: var(--blue);
}
.cookie-banner .btn-accept:hover { background: var(--blue-deep); }
.cookie-banner .btn-essential:hover { background: oklch(1 0 0 / 0.06); }
.cookie-banner .btn-refuse { color: var(--text-on-dark-mute); border-color: transparent; }
.cookie-banner .btn-refuse:hover { color: var(--text-on-dark); }

/* =====================================================================
   ARTICLE PAGE
   ===================================================================== */
.article-page { background: var(--paper); padding: 0 0 80px; }

.article-hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.article-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(closest-side, oklch(0.62 0.18 255 / 0.14), transparent 70%);
  z-index: -1;
}
.article-hero .container { max-width: 880px; }
.article-hero .breadcrumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.article-hero .breadcrumbs .sep { opacity: 0.4; }
.article-hero .breadcrumbs a { color: var(--text-on-dark-mute); transition: color 180ms var(--ease); }
.article-hero .breadcrumbs a:hover { color: var(--blue-bright); }
.article-hero .breadcrumbs span:last-child { color: var(--text-on-dark); }

.article-hero .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 20px;
  display: inline-block;
}
.article-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  text-wrap: balance;
  color: var(--text-on-dark);
}
.article-hero h1 em {
  font-style: normal;
  color: var(--blue-bright);
}
.article-hero .lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-on-dark-mute);
  margin: 0 0 36px;
  max-width: 60ch;
}
.meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-mute);
}
.meta-bar strong { color: var(--text-on-dark); font-weight: 500; }
.meta-bar .dot {
  width: 3px; height: 3px; border-radius: 999px;
  background: var(--text-on-dark-mute);
  opacity: 0.5;
}
.meta-bar .avatar {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--ember) 100%);
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}

.article-cover {
  margin: -40px 0 0;
  position: relative;
  z-index: 1;
}
.article-cover .container { max-width: 1080px; }
.article-cover .cover {
  aspect-ratio: 16/9;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.4);
}
.article-cover .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article layout: prose + sidebar */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  padding-top: 72px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 48px; }
}

/* Prose */
.prose {
  font-size: 18px;
  line-height: 1.72;
  color: var(--text);
  max-width: 68ch;
}
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin-top: 2em;
  text-wrap: balance;
}
.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.022em;
  margin-top: 1.6em;
}
.prose strong { font-weight: 600; color: oklch(0.14 0.04 250); }
.prose em { font-style: italic; }
.prose ul, .prose ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 32px;
  margin-top: 12px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 999px;
}
.prose ol { counter-reset: li; }
.prose ol li::before {
  counter-increment: li;
  content: counter(li, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue-deep);
  font-weight: 500;
}
.prose blockquote {
  margin: 2em 0;
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--blue);
  font-family: var(--display);
  font-weight: 500;
  font-style: normal;
  font-size: 24px;
  line-height: 1.28;
  color: var(--text);
  letter-spacing: -0.022em;
}
.prose blockquote strong { font-weight: 600; }

/* Product recommendation card */
.product-rec {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  padding: 24px;
  margin: 2.4em 0;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-l);
  position: relative;
  overflow: hidden;
}
.product-rec .p-img {
  position: relative;
  display: block;
  width: 220px;
  max-width: 100%;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, oklch(0.96 0.008 85) 100%);
  border: 1px solid var(--paper-3);
  aspect-ratio: 1 / 1;
}
.product-rec .p-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  display: block;
  transition: transform 500ms var(--ease);
}
.product-rec .p-img:hover img { transform: scale(1.05); }
.product-rec .p-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
}
.product-rec .p-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.product-rec h4 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
  line-height: 1.15;
  text-wrap: balance;
}
.product-rec .p-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mute);
}
.product-rec .p-content .btn {
  align-self: flex-start;
  margin-top: 6px;
}
@media (max-width: 720px) {
  .product-rec {
    grid-template-columns: 140px 1fr;
    gap: 18px;
    padding: 18px;
  }
  .product-rec h4 { font-size: 20px; }
  .product-rec .p-desc { font-size: 14px; }
  .product-rec .p-content .btn { align-self: stretch; justify-content: center; }
}
@media (max-width: 480px) {
  .product-rec {
    grid-template-columns: 1fr;
  }
  .product-rec .p-img { aspect-ratio: 4 / 3; }
}

/* tags row at article bottom */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--paper-3);
}
.tag-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--paper-3);
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}
.tag-pill:hover { color: var(--blue-deep); border-color: var(--blue); background: var(--blue-wash); }

/* Reading progress bar */
.read-progress {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 49;
}
.read-progress .bar {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 80ms linear;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.sb-block h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--paper-3);
  font-weight: 500;
}
.sb-search {
  display: flex;
  border: 1px solid var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.sb-search input {
  flex: 1;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.sb-search button {
  border: 0;
  background: transparent;
  padding: 0 16px;
  color: var(--text-mute);
}
.sb-list { list-style: none; margin: 0; padding: 0; }
.sb-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-3);
}
.sb-list li a { font-size: 14px; transition: color 180ms var(--ease); }
.sb-list li a:hover { color: var(--blue-deep); }
.sb-list .count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}
.sb-popular { list-style: none; margin: 0; padding: 0; }
.sb-popular li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-3);
  align-items: start;
}
.sb-popular .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
}
.sb-popular li a {
  font-size: 14px;
  line-height: 1.4;
  transition: color 180ms var(--ease);
}
.sb-popular li a:hover { color: var(--blue-deep); }
.sb-news {
  padding: 24px;
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--radius-m);
}

/* Sidebar — Social block (substitui busca + newsletter) */
.sb-social {
  padding: 20px 20px 22px;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-m);
}
.sb-social h3 {
  margin-bottom: 6px;
  padding-bottom: 0;
  border: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.sb-social p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.55;
}
.sb-social-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-soc {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: white;
  transition: transform 200ms var(--ease), filter 200ms var(--ease);
}
.sb-soc:hover { transform: translateY(-1px); filter: brightness(1.08); }
.sb-soc svg { width: 16px; height: 16px; flex-shrink: 0; }
.sb-soc.yt { background: #FF0000; }
.sb-soc.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sb-soc.fb { background: #1877F2; }

/* Sidebar — Social icons (compact icon row) */
.sb-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.sb-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  transition: transform 200ms var(--ease), filter 200ms var(--ease);
}
.sb-icon:hover { transform: translateY(-2px); filter: brightness(1.08); }
.sb-icon svg { width: 18px; height: 18px; }
.sb-icon.yt { background: #FF0000; }
.sb-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sb-icon.fb { background: #1877F2; }

/* Product card — gallery variant (extra thumbnail under description) */
.product-rec .p-thumbs {
  margin: 12px 0 4px;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--paper-3);
}
.product-rec .p-thumbs img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 280px;
  object-fit: contain;
  padding: 10px;
}

/* Product card — eBook variant */
.product-rec--ebook .p-img {
  background: linear-gradient(180deg, oklch(0.94 0.03 80) 0%, oklch(0.88 0.05 60) 100%);
  aspect-ratio: 2 / 3;
}
.product-rec--ebook .p-img img {
  object-fit: contain;
  padding: 10px;
  filter: drop-shadow(0 10px 24px rgba(10, 22, 40, 0.25));
}
.product-rec .p-kind {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-wash);
  border-radius: 999px;
  vertical-align: middle;
}
.product-rec .p-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-rec .p-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}
.product-rec .p-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: oklch(0.55 0.18 145);
  font-weight: 700;
  font-size: 12px;
}

/* Product card — image gallery row (2 thumbs side by side) */
.product-rec .p-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 16px;
}
.product-rec .p-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  padding: 10px;
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: 10px;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease);
}
.product-rec .p-gallery img:hover {
  transform: scale(1.02);
  border-color: var(--blue);
}

/* Product card — triptych variant (3 images side by side, full width on top) */
.product-rec--triptych {
  display: block;
  padding: 24px;
}
.product-rec--triptych .p-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.product-rec--triptych .p-strip-img {
  display: block;
  position: relative;
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease);
}
.product-rec--triptych .p-strip-img:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}
.product-rec--triptych .p-strip-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  display: block;
  transition: transform 400ms var(--ease);
}
.product-rec--triptych .p-strip-img:hover img { transform: scale(1.04); }
.product-rec--triptych .p-strip-main {
  position: relative;
}
.product-rec--triptych .p-strip-main .p-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.product-rec--triptych .p-body {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.product-rec--triptych .p-body h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--text);
  text-wrap: balance;
}
.product-rec--triptych .p-desc {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mute);
}
.product-rec--triptych .btn { display: inline-flex; }

@media (max-width: 720px) {
  .product-rec--triptych { padding: 18px; }
  .product-rec--triptych .p-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .product-rec--triptych .p-strip-img:nth-child(3) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .product-rec--triptych .p-body h4 { font-size: 20px; }
}
@media (max-width: 480px) {
  .product-rec--triptych .p-strip { grid-template-columns: 1fr; }
  .product-rec--triptych .p-strip-img:nth-child(3) {
    grid-column: auto;
    aspect-ratio: 1 / 1;
  }
}
@media (max-width: 540px) {
  .product-rec .p-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-rec .p-gallery img { padding: 6px; }
}
.sb-news h3 { color: var(--text-on-dark); border-bottom-color: var(--ink-3); }
.sb-news p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-on-dark-mute);
}
.sb-news input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--ink-3);
  background: oklch(1 0 0 / 0.04);
  color: var(--text-on-dark);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.sb-news input::placeholder { color: var(--text-on-dark-mute); }
.sb-news input:focus { border-color: var(--blue-bright); }

/* Related */
.related { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--paper-3); }
.related h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin: 0 0 40px;
}
.related .art-grid { gap: 32px 24px; }
.related .art-card h3 { font-size: 20px; }

/* Anchor/scroll */
[id] { scroll-margin-top: 96px; }

/* Toast for newsletter */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
  z-index: 200;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   RESPONSIVE — comprehensive mobile + tablet pass
   Breakpoints:
   1240    desktop container max
   1024    tablet wide
   860     tablet
   640     phablet
   480     phone
   380     small phone
   ===================================================================== */

/* TABLET WIDE — 1024 and down */
@media (max-width: 1024px) {
  :root {
    --display-1: clamp(40px, 7vw, 76px);
    --display-2: clamp(34px, 5.4vw, 60px);
    --h2:        clamp(26px, 3.8vw, 40px);
  }
  .container { padding: 0 24px; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 44px; padding-bottom: 22px; }
  .hero { padding: 72px 0 88px; }
  .hero-ctas { margin-bottom: 48px; }
  .art-grid { gap: 40px 24px; }
  .article-layout { gap: 48px; padding-top: 56px; }
}

/* TABLET — 860 and down */
@media (max-width: 860px) {
  .container { padding: 0 22px; }
  .section { padding: 72px 0; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 36px;
  }
  .section-head .lede { max-width: 56ch; }

  .hero { padding: 56px 0 72px; }
  .hero h1 { margin-bottom: 22px; }
  .hero .lede { font-size: 18px; margin-bottom: 28px; }
  .hero-ctas { margin-bottom: 40px; gap: 12px; }

  /* hero featured strip — stack on tablet */
  .hero-featured-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 28px;
  }
  .hero-featured-strip .hf-thumb {
    width: 100%;
    height: 200px;
  }
  .hero-featured-strip .hf-arrow {
    position: absolute;
    right: 0;
    top: 28px;
    width: 44px;
    height: 44px;
  }
  .hero-featured-strip { position: relative; }
  .hero-featured-strip .hf-title { font-size: 22px; padding-right: 56px; }

  /* cats: 2 cols */
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { padding: 28px 24px 24px; min-height: 220px; }

  /* arts: 2 cols */
  .art-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 22px; }
  .art-card .cover { aspect-ratio: 4/3; }

  /* footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    padding-bottom: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding: 64px 0 24px; }

  /* article */
  .article-hero { padding: 48px 0 64px; }
  .article-hero h1 { margin-bottom: 22px; }
  .article-hero .lede { font-size: 18px; margin-bottom: 28px; }
  .article-cover { margin-top: -28px; }
  .article-cover .cover { aspect-ratio: 16/10; border-radius: 14px; }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 48px;
  }
  .prose { font-size: 17px; line-height: 1.68; }
  .prose h2 { font-size: 28px; }
  .prose h3 { font-size: 20px; }
  .prose blockquote { font-size: 21px; padding-left: 22px; }

  .related { margin-top: 56px; padding-top: 36px; }
  .related h2 { font-size: 24px; margin-bottom: 28px; }

  /* sidebar shows full-width — limit it */
  .sidebar { max-width: 560px; }

  /* newsletter */
  .newsletter { padding: 72px 0; }
  .newsletter h2 { font-size: clamp(26px, 5vw, 38px); }

  /* social */
  .social-section { padding: 72px 0; }
  .social-section h2 { font-size: clamp(26px, 5vw, 38px); }
}

/* PHABLET — 640 and down */
@media (max-width: 640px) {
  :root {
    --display-1: clamp(34px, 9.2vw, 56px);
    --h2:        clamp(24px, 6.6vw, 34px);
  }
  .container { padding: 0 18px; }
  .header-inner { height: 64px; gap: 16px; }
  .brand img { height: 30px; }
  .read-progress { top: 64px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; padding-bottom: 18px; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { line-height: 1.0; letter-spacing: -0.028em; }
  .hero .lede { font-size: 16px; }

  .hero-featured-strip .hf-thumb { height: 170px; }
  .hero-featured-strip .hf-title { font-size: 19px; padding-right: 48px; line-height: 1.22; }
  .hero-featured-strip .hf-arrow { width: 40px; height: 40px; top: 20px; }
  .hero-featured-strip .hf-arrow svg { width: 16px; height: 16px; }

  /* CTAs stack full-width */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn { justify-content: center; padding: 14px 20px; }

  /* cats: 1 col */
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: auto; padding: 28px 22px 26px; }
  .cat-card h3 { font-size: 22px; }
  .cat-card p { font-size: 14px; }

  /* arts: 1 col with horizontal first card optional — keeping 1col simple */
  .art-grid { grid-template-columns: 1fr; gap: 36px; }
  .art-card { gap: 14px; }
  .art-card h3 { font-size: 20px; }
  .art-card .cover { aspect-ratio: 16/10; }

  /* article */
  .article-hero { padding: 36px 0 52px; }
  .article-hero .breadcrumbs { font-size: 10px; margin-bottom: 22px; }
  .article-hero .tag { font-size: 10px; margin-bottom: 14px; }
  .article-hero h1 { letter-spacing: -0.028em; }
  .article-hero .lede { font-size: 17px; max-width: none; }
  .meta-bar { gap: 10px 14px; padding-top: 20px; font-size: 11px; }
  .meta-bar .dot { display: none; }

  .article-cover { margin-top: -20px; }
  .article-cover .cover { aspect-ratio: 4/3; border-radius: 12px; }

  .article-layout { padding-top: 36px; gap: 44px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 19px; }
  .prose blockquote { font-size: 19px; padding-left: 18px; }
  .prose ul li, .prose ol li { padding-left: 28px; }

  .product-rec { padding: 18px; gap: 14px; }
  .product-rec .btn { width: 100%; justify-content: center; }

  /* newsletter form */
  .newsletter { padding: 56px 0; }
  .newsletter form { flex-direction: column; gap: 10px; }
  .newsletter .btn { justify-content: center; }
  .newsletter input[type="email"] { padding: 14px 18px; }
  .newsletter > .container > p { font-size: 16px; margin-bottom: 24px; }

  /* social */
  .social-section { padding: 56px 0; }
  .social-section .heading { margin-bottom: 36px; }
  .social-link { width: 48px; height: 48px; }
  .social-link svg { width: 18px; height: 18px; }

  /* footer */
  .site-footer { padding: 56px 0 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 10px;
  }

  /* cookie banner — full-width on phones */
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 18px 18px 16px;
    border-radius: 14px;
  }
  .cookie-banner p { font-size: 12.5px; }
  .cookie-banner .actions { gap: 6px; }
  .cookie-banner button { padding: 10px 12px; font-size: 11px; }

  /* tag pill */
  .tag-pill { padding: 5px 12px; font-size: 10px; }
  .tags-row { gap: 6px; }

  /* sidebar tighter */
  .sb-block h3 { margin-bottom: 12px; padding-bottom: 10px; }
  .sb-news { padding: 20px; }
}

/* PHONE — 480 and down */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { height: 60px; }
  .brand img { height: 26px; }
  .read-progress { top: 60px; }
  [id] { scroll-margin-top: 76px; }

  /* mobile menu drawer */
  body.menu-open .nav-main { top: 60px; padding: 8px 16px 20px; }
  body.menu-open .nav-main a { font-size: 16px; padding: 14px 4px; }

  .hero { padding: 32px 0 48px; }
  .hero h1 { letter-spacing: -0.03em; }
  .hero .lede { line-height: 1.5; }

  .btn { padding: 12px 18px; font-size: 13px; }

  .section { padding: 48px 0; }
  .section-head h2 { letter-spacing: -0.032em; }
  .section-head .lede { font-size: 15px; }

  .cat-card { padding: 24px 20px 22px; }
  .cat-icon { width: 38px; height: 38px; margin-bottom: 14px; border-radius: 10px; }
  .cat-icon svg { width: 18px; height: 18px; }

  .meta-row { font-size: 10px; padding-top: 12px; }

  .article-hero { padding: 28px 0 44px; }
  .article-hero .breadcrumbs { gap: 4px; }

  .prose { font-size: 16.5px; line-height: 1.65; }
  .prose blockquote { font-size: 18px; padding-left: 16px; }

  .product-rec .p-img { width: auto; }

  .newsletter h2 { font-size: 26px; }
  .newsletter .small { font-size: 10px; letter-spacing: 0.1em; }

  .footer-brand .tagline { font-size: 18px; }
  .footer-col h4 { margin-bottom: 14px; }
  .footer-col ul { gap: 10px; }
  .footer-col a { font-size: 13.5px; }

  .toast {
    left: 12px;
    right: 12px;
    transform: translateY(20px);
    text-align: center;
  }
  .toast.show { transform: translateY(0); }

  .sidebar { max-width: none; }
}

/* SMALL PHONE — 380 and down */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 30px; line-height: 1.04; }
  .section-head h2 { font-size: 22px; }
  .hero-featured-strip .hf-thumb { height: 150px; }
  .hero-featured-strip .hf-title { font-size: 17px; }
  .cookie-banner .actions { flex-direction: column; align-items: stretch; }
  .cookie-banner button { width: 100%; }
}

/* SAFE AREA INSETS — iOS notch / dynamic island */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(env(safe-area-inset-left), 18px);
    padding-right: max(env(safe-area-inset-right), 18px);
  }
  .cookie-banner {
    margin-bottom: env(safe-area-inset-bottom);
  }
}

/* TOUCH DEVICES — bigger hit targets, no hover transforms */
@media (hover: none) {
  .art-card .cover:hover { transform: none; }
  .hero-featured-strip .hf-arrow:hover { transform: none; }
  .social-link:hover { transform: none; }
  .btn:hover .arrow { transform: none; }
  .nav-main a { padding: 12px 16px; }
}

/* PREVENT HORIZONTAL OVERFLOW */
html, body { overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }
.prose pre, .prose table { max-width: 100%; overflow-x: auto; }

/* =====================================================================
   RESPONSIVE — comprehensive pass for all phones + tablets
   Tested against: iPhone SE/12/15 (375–430), Android phones 360–414,
   iPad mini/Air/Pro portrait (744–1024), iPad Pro landscape (1024–1366),
   Galaxy Fold (280), large phones landscape.
   ===================================================================== */

/* TABLET LANDSCAPE — 1024–1280 — keep desktop layout but tighten paddings */
@media (max-width: 1180px) {
  .container { padding: 0 28px; }
  .article-layout { gap: 56px; }
}

/* TABLET PORTRAIT — 768–1024 (iPad Air/Pro portrait) */
@media (max-width: 1024px) and (min-width: 821px) {
  .container { padding: 0 32px; }
  .hero { padding: 64px 0 80px; }
  .hero-inner { gap: 32px; }
  .hero h1 { font-size: clamp(40px, 6vw, 64px); }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  /* Cat grid still 3 cols but card padding tighter */
  .cat-card { padding: 30px 26px 26px; min-height: 240px; }
  .cat-card h3 { font-size: 24px; }
  /* Art grid stays 3 cols at this size — fine */
  .art-grid { gap: 36px 24px; }
  .art-card h3 { font-size: 20px; }
  /* Article body still 2 col but sidebar narrower */
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding-top: 56px; }
  .prose { font-size: 17.5px; }
  /* Hero featured strip stays horizontal */
  .hero-featured-strip { grid-template-columns: 180px 1fr auto; gap: 24px; }
  .hero-featured-strip .hf-thumb { width: 180px; height: 120px; }
}

/* TABLET MOBILE BREAK — 820px (handled in main media block) */
/* PHABLET TABLET PORTRAIT — 768 and down */
@media (max-width: 768px) {
  .container { padding: 0 22px; }

  /* Header tighter */
  .header-inner { height: 68px; gap: 12px; }
  .brand img { height: 32px; }
  .read-progress { top: 68px; }
  [id] { scroll-margin-top: 84px; }

  /* Hero */
  .hero { padding: 48px 0 64px; }
  .hero h1 { line-height: 0.98; letter-spacing: -0.028em; }
  .hero .lede { font-size: 17px; max-width: 60ch; }
  .hero-ctas { gap: 12px; margin-bottom: 36px; }

  /* Article body */
  .article-hero { padding: 44px 0 56px; }
  .article-hero h1 { font-size: clamp(32px, 6vw, 48px); }
  .article-hero .lede { font-size: 18px; }
  .article-cover { margin-top: -24px; }
  .article-cover .cover { aspect-ratio: 16/9; border-radius: 12px; }
  .article-layout { padding-top: 48px; gap: 44px; }
  .prose { font-size: 17px; line-height: 1.7; }
  .prose h2 { font-size: 26px; margin-top: 1.6em; }
  .prose h3 { font-size: 20px; }
  .prose blockquote { font-size: 20px; padding: 6px 0 6px 22px; }

  /* Cat + Art grid */
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }

  /* Newsletter and social */
  .newsletter { padding: 64px 0; }
  .newsletter h2 { font-size: clamp(24px, 5vw, 34px); }
  .social-section { padding: 64px 0; }

  /* Contact page — already responsive via inline CSS, but reinforce */
  .contact-grid { gap: 32px; }
  .contact-card { padding: 24px; }
}

/* PHONE LARGE — 540 and down — most modern phones in portrait */
@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .header-inner { height: 60px; }
  .brand img { height: 28px; }
  .read-progress { top: 60px; }
  [id] { scroll-margin-top: 76px; }

  /* Hero */
  .hero { padding: 36px 0 48px; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); line-height: 1.0; }
  .hero .lede { font-size: 15px; line-height: 1.5; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 32px; }
  .hero-ctas .btn { justify-content: center; padding: 13px 18px; font-size: 14px; }

  /* Hero featured strip — vertical stack */
  .hero-featured-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 24px;
    position: relative;
  }
  .hero-featured-strip .hf-thumb { width: 100%; height: 200px; }
  .hero-featured-strip .hf-arrow {
    position: absolute;
    top: 32px;
    right: 0;
    width: 40px;
    height: 40px;
  }
  .hero-featured-strip .hf-arrow svg { width: 16px; height: 16px; }
  .hero-featured-strip .hf-title { font-size: 19px; line-height: 1.22; padding-right: 50px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; padding-bottom: 16px; }
  .section-head h2 { font-size: clamp(24px, 7vw, 32px); }
  .section-head .lede { font-size: 15px; }

  /* Cat grid 1 col */
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: auto; padding: 24px 20px 22px; }
  .cat-card h3 { font-size: 22px; }
  .cat-card p { font-size: 14px; }
  .cat-icon { width: 38px; height: 38px; margin-bottom: 14px; border-radius: 10px; }
  .cat-icon svg { width: 18px; height: 18px; }

  /* Art grid 1 col */
  .art-grid { grid-template-columns: 1fr; gap: 32px; }
  .art-card { gap: 12px; }
  .art-card .cover { aspect-ratio: 16/9; }
  .art-card h3 { font-size: 19px; line-height: 1.2; }
  .art-card .excerpt { font-size: 14px; }

  /* Article hero */
  .article-hero { padding: 32px 0 48px; }
  .article-hero .breadcrumbs { font-size: 10px; gap: 4px; margin-bottom: 18px; }
  .article-hero .tag { font-size: 10px; margin-bottom: 12px; }
  .article-hero h1 { font-size: clamp(26px, 8vw, 38px); line-height: 1.05; }
  .article-hero .lede { font-size: 16px; max-width: none; margin-bottom: 24px; }
  .meta-bar { gap: 8px 12px; padding-top: 18px; font-size: 10px; }
  .meta-bar .dot { display: none; }
  .meta-bar .avatar { display: none; }

  .article-cover { margin-top: -18px; }
  .article-cover .cover { aspect-ratio: 4/3; border-radius: 10px; }

  .article-layout { padding-top: 32px; gap: 36px; }
  .prose { font-size: 16.5px; line-height: 1.65; }
  .prose h2 { font-size: 22px; }
  .prose h3 { font-size: 18px; }
  .prose blockquote { font-size: 18px; padding-left: 16px; }
  .prose ul li, .prose ol li { padding-left: 26px; }

  /* Product affiliate card */
  .product-rec {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .product-rec .p-img { width: 100%; aspect-ratio: 16/10; }
  .product-rec h4 { font-size: 19px; }
  .product-rec .p-content .btn { width: 100%; justify-content: center; }

  /* Lista editorial — narrow num column */
  .prose .lista-editorial li { padding-left: 36px; }

  /* Destaque box */
  .destaque-box { padding: 16px 18px; }

  /* Newsletter */
  .newsletter { padding: 48px 0; }
  .newsletter form { flex-direction: column; gap: 10px; }
  .newsletter input[type="email"] { padding: 13px 16px; }
  .newsletter h2 { font-size: 22px; }
  .newsletter > .container > p { font-size: 15px; }

  /* Social */
  .social-section { padding: 48px 0; }
  .social-section .heading { margin-bottom: 28px; }
  .social-link { width: 46px; height: 46px; }
  .social-link svg { width: 18px; height: 18px; }

  /* Footer — mobile compact: hide redundant Navegação/Categorias (already in header menu) */
  .site-footer { padding: 48px 0 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 24px; }
  .footer-col:nth-child(2),
  .footer-col:nth-child(3) { display: none; }
  .footer-brand .tagline { font-size: 18px; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-col ul { gap: 8px; }
  .footer-col a { font-size: 13.5px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 10px;
    padding-top: 18px;
  }

  /* Page hero (legal/sobre/contato/categoria) */
  .page-hero { padding: 48px 0 56px; }
  .page-hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .page-hero p { font-size: 17px; }
  .page-body { padding: 40px 0 56px; }
  .page-content { font-size: 16px; line-height: 1.7; }
  .page-content h2 { font-size: 22px; }
  .disclaimer-banner { padding: 14px 16px; font-size: 14px; }

  /* Contact page */
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-card { padding: 22px 20px 24px; }
  .contact-card h3 { font-size: 19px; }
  .email-big { font-size: 13px; padding: 11px 14px; }

  /* Sidebar */
  .sidebar { max-width: none; gap: 28px; }
  .sb-news { padding: 18px; }

  /* Cookie banner */
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    padding: 16px 16px 14px;
    border-radius: 12px;
  }
  .cookie-banner p { font-size: 12px; line-height: 1.45; margin-bottom: 12px; }
  .cookie-banner .actions { gap: 6px; }
  .cookie-banner button { padding: 9px 12px; font-size: 10.5px; flex: 1; }

  /* Toast */
  .toast {
    left: 14px;
    right: 14px;
    transform: translateY(20px);
    font-size: 11px;
    padding: 12px 18px;
  }
  .toast.show { transform: translateY(0); }
}

/* SMALL PHONE — 380 and down (iPhone SE 1, Galaxy S8) */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 28px; line-height: 1.05; }
  .section-head h2 { font-size: 22px; }
  .article-hero h1 { font-size: 24px; }
  .prose h2 { font-size: 20px; }
  .product-rec { padding: 14px; }
  .cookie-banner .actions { flex-direction: column; align-items: stretch; }
  .cookie-banner button { width: 100%; }
  .hero-featured-strip .hf-thumb { height: 160px; }
  .hero-featured-strip .hf-title { font-size: 17px; padding-right: 44px; }
  .nav-dropdown-menu { min-width: 240px; }
}

/* GALAXY FOLD / ULTRA NARROW — 320 and down */
@media (max-width: 320px) {
  .container { padding: 0 12px; }
  .header-inner { height: 56px; gap: 8px; }
  .brand img { height: 24px; }
  .hero h1 { font-size: 24px; }
  .article-hero h1 { font-size: 22px; }
  .btn { padding: 11px 14px; font-size: 12.5px; }
}

/* LANDSCAPE PHONES — short height */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 24px 0 32px; }
  .hero h1 { font-size: clamp(24px, 5vw, 36px); }
  .hero .lede { margin-bottom: 16px; }
  .hero-ctas { margin-bottom: 20px; }
  .article-hero { padding: 24px 0 32px; }
  .section { padding: 36px 0; }
}

/* TOUCH DEVICES — bigger targets, kill hover effects */
@media (hover: none) and (pointer: coarse) {
  .art-card .cover:hover img,
  .hero-featured-strip:hover .hf-thumb img { transform: none; }
  .social-link:hover { transform: none; }
  .btn:hover .arrow { transform: none; }
  .hero-featured-strip .hf-arrow:hover { transform: none; background: var(--ink-2); border-color: var(--ink-3); }
  .nav-main a { padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-dropdown-trigger { min-height: 44px; }
  .nav-dropdown-menu a { padding: 14px 14px; min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 44px; }
  .social-link { min-width: 44px; min-height: 44px; }
  /* Disable hover-show dropdown — use tap instead (handled by JS) */
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .nav-dropdown-menu[data-open="true"],
  .nav-dropdown[data-mobile-open="true"] .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* HIGH-DPI screens — sharper edges */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .placeholder { background-size: cover; }
}

/* PREFERS REDUCED MOTION — kill non-essential animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* DARK MODE — keep light by default (brand is light/dark mixed) */
/* Could add @media (prefers-color-scheme: dark) but our design is already dark-themed at the top */

/* SAFE AREA INSETS — iOS notch / dynamic island / Android navigation bar */
@supports (padding: max(0px)) {
  .site-header .container {
    padding-left: max(env(safe-area-inset-left), 18px);
    padding-right: max(env(safe-area-inset-right), 18px);
  }
  .cookie-banner {
    margin-bottom: max(env(safe-area-inset-bottom), 0px);
  }
  .toast {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* =====================================================================
   LEGAL / STATIC PAGES (Privacidade, Termos, Afiliados, Aviso Médico)
   ===================================================================== */
.page-hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(closest-side, oklch(0.62 0.18 255 / 0.16), transparent 70%);
  z-index: -1;
}
.page-hero .container { max-width: 880px; }
.page-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 22px;
  display: inline-block;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
  color: var(--text-on-dark);
}
.page-hero p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-on-dark-mute);
  margin: 0;
  max-width: 62ch;
}

.page-body {
  background: var(--paper);
  padding: 72px 0 96px;
}
.page-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
}
.page-content > * + * { margin-top: 1.1em; }
.page-content .updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--paper-3);
}
.page-content h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-top: 2em;
  margin-bottom: 0.4em;
  color: var(--text);
}
.page-content h2:first-of-type { margin-top: 1.2em; }
.page-content p { margin: 0; }
.page-content strong { font-weight: 600; color: oklch(0.14 0.04 250); }
.page-content em { font-style: italic; }
.page-content a {
  color: var(--blue-deep);
  border-bottom: 1px solid oklch(0.62 0.18 255 / 0.3);
  transition: border-color 180ms var(--ease);
}
.page-content a:hover { border-bottom-color: var(--blue-deep); }
.page-content ul, .page-content ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.page-content ul li, .page-content ol li {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
}
.page-content ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 999px;
}
.page-content ul.x-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  color: oklch(0.55 0.18 25);
  font-weight: 700;
  font-size: 14px;
}
.page-content ol { counter-reset: li; }
.page-content ol li::before {
  counter-increment: li;
  content: counter(li, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue-deep);
}
.page-content code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--paper-3);
}

.disclaimer-banner {
  margin: 2em 0;
  padding: 20px 22px;
  background: var(--blue-wash);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.disclaimer-banner strong { color: var(--blue-deep); font-weight: 600; }

@media (max-width: 640px) {
  .page-hero { padding: 56px 0 64px; }
  .page-body { padding: 48px 0 64px; }
  .page-content { font-size: 16px; }
  .page-content h2 { font-size: 22px; }
  .disclaimer-banner { padding: 16px 18px; font-size: 14px; }
}
