/* ==========================================================================
   Saving Strategist — Guia editorial de história
   Sistema visual: vinho, azul-escuro, bege e branco
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Vinho */
  --wine-900: #360C1C;
  --wine-800: #4A1024;
  --wine-700: #5E162E;
  --wine-600: #7A1B39;
  --wine-500: #8E2245;
  --wine-400: #A8395C;
  --wine-300: #C4708A;
  --wine-100: #F2DFE4;

  /* Azul-escuro */
  --navy-900: #0C1725;
  --navy-800: #122031;
  --navy-700: #1A2E44;
  --navy-600: #26415C;
  --navy-400: #55708C;
  --navy-300: #8FA3B8;

  /* Bege / papel */
  --paper-50: #FCF9F4;
  --paper-100: #F6EFE3;
  --paper-200: #EFE4D2;
  --paper-300: #E2D3BA;
  --paper-400: #CBB795;

  /* Neutros */
  --white: #FFFFFF;
  --ink: #171A20;
  --ink-soft: #3E434D;
  --ink-mute: #666D79;

  /* Semânticos */
  --bg: var(--paper-50);
  --surface: var(--white);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --text-mute: var(--ink-mute);
  --accent: var(--wine-600);
  --accent-strong: var(--wine-800);
  --line: #E3D9C8;
  --line-strong: #CDBFA6;

  /* Tipografia */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.83rem, 0.80rem + 0.14vw, 0.92rem);
  --step-0:  clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
  --step-1:  clamp(1.18rem, 1.11rem + 0.34vw, 1.38rem);
  --step-2:  clamp(1.42rem, 1.29rem + 0.62vw, 1.86rem);
  --step-3:  clamp(1.70rem, 1.47rem + 1.10vw, 2.48rem);
  --step-4:  clamp(2.05rem, 1.63rem + 1.95vw, 3.35rem);
  --step-5:  clamp(2.45rem, 1.70rem + 3.40vw, 4.60rem);

  /* Métrica */
  --shell: 76rem;
  --shell-narrow: 46rem;
  --gutter: clamp(1.15rem, 0.75rem + 1.8vw, 2.75rem);
  --radius-s: 3px;
  --radius-m: 6px;
  --radius-l: 12px;

  --shadow-s: 0 1px 2px rgba(19, 26, 38, 0.06), 0 2px 8px rgba(19, 26, 38, 0.05);
  --shadow-m: 0 2px 6px rgba(19, 26, 38, 0.07), 0 12px 32px rgba(19, 26, 38, 0.09);
  --shadow-l: 0 6px 18px rgba(12, 23, 37, 0.14), 0 28px 64px rgba(12, 23, 37, 0.18);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Textura de papel impresso, gerada no próprio arquivo */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Reset e base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.028;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.014em;
  color: var(--navy-900);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--wine-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--wine-500); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: 0.45em; }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.5rem 0;
}

blockquote { margin: 0; }
figure { margin: 0; }

strong, b { font-weight: 700; color: var(--navy-900); }
em, i { font-style: italic; }

small { font-size: var(--step--1); }

::selection { background: var(--wine-600); color: var(--paper-100); }

:focus-visible {
  outline: 3px solid var(--wine-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Utilidades de layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.shell--narrow { max-width: var(--shell-narrow); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--wine-700);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine-600);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 2px;
  background: var(--wine-600);
  flex: none;
}
.eyebrow--light { color: var(--paper-300); }
.eyebrow--light::before { background: var(--wine-400); }
.eyebrow--center { justify-content: center; }

/* --------------------------------------------------------------------------
   4. Cabeçalho
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: var(--paper-300);
  font-family: var(--font-ui);
  font-size: var(--step--2);
  letter-spacing: 0.055em;
  position: relative;
  z-index: 40;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.35rem;
}
.topbar p { margin: 0; }
.topbar a { color: var(--paper-200); text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar__right { display: none; gap: 1.4rem; }
@media (min-width: 48rem) { .topbar__right { display: flex; } }
/* em telas estreitas a frase quebraria em duas linhas e roubaria altura do topo */
@media (max-width: 47.999rem) {
  .topbar__inner p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 249, 244, 0.93);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.masthead.is-stuck { box-shadow: 0 6px 26px rgba(12, 23, 37, 0.09); }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.brand__mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  filter: drop-shadow(0 2px 5px rgba(94, 22, 46, 0.28));
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.022em;
  color: var(--navy-900);
}
.brand__name em {
  font-style: normal;
  color: var(--wine-600);
}
.brand__tag {
  font-family: var(--font-ui);
  font-size: 0.575rem;
  font-weight: 600;
  letter-spacing: 0.185em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.3rem;
}

.nav { display: none; }
@media (min-width: 62rem) { .nav { display: block; } }
.nav__list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  font-family: var(--font-ui);
  font-size: 0.855rem;
  font-weight: 500;
  letter-spacing: 0.012em;
  color: var(--navy-800);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.1rem;
  height: 2px;
  background: var(--wine-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--wine-700); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--wine-700); font-weight: 600; }

.masthead__actions { display: flex; align-items: center; gap: 0.55rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 50%;
  color: var(--navy-800);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.icon-btn:hover { background: var(--navy-900); color: var(--paper-100); border-color: var(--navy-900); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 62rem) { .icon-btn--menu { display: none; } }

/* Menu móvel */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
}
.drawer[data-open="true"] { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 37, 0.55);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}
.drawer[data-open="true"] .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(21rem, 88vw);
  background: var(--navy-900);
  color: var(--paper-100);
  padding: 1.5rem 1.6rem 2.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.36s var(--ease);
  box-shadow: var(--shadow-l);
}
.drawer[data-open="true"] .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(226, 211, 186, 0.2);
  margin-bottom: 1.3rem;
}
.drawer__title {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-400);
}
.drawer .icon-btn {
  background: transparent;
  border-color: rgba(226, 211, 186, 0.3);
  color: var(--paper-200);
  width: 2.3rem; height: 2.3rem;
}
.drawer .icon-btn:hover { background: var(--wine-700); border-color: var(--wine-700); color: var(--white); }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list li { margin: 0; border-bottom: 1px solid rgba(226, 211, 186, 0.13); }
.drawer__list a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--paper-100);
  text-decoration: none;
  transition: color 0.22s var(--ease), padding-left 0.22s var(--ease);
}
.drawer__list a:hover { color: var(--wine-300); padding-left: 0.4rem; }
.drawer__group {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine-300);
  margin: 1.9rem 0 0.6rem;
}

/* Busca sobreposta */
.searchlayer {
  position: fixed;
  inset: 0;
  z-index: 95;
  visibility: hidden;
  pointer-events: none;
}
.searchlayer[data-open="true"] { visibility: visible; pointer-events: auto; }
.searchlayer__scrim {
  position: absolute; inset: 0;
  background: rgba(12, 23, 37, 0.72);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.searchlayer[data-open="true"] .searchlayer__scrim { opacity: 1; }
.searchlayer__panel {
  position: relative;
  max-width: 46rem;
  margin: min(12vh, 7rem) auto 0;
  background: var(--paper-50);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  transform: translateY(-14px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  max-height: min(70vh, 40rem);
  display: flex;
  flex-direction: column;
}
.searchlayer[data-open="true"] .searchlayer__panel { transform: translateY(0); opacity: 1; }
.searchlayer__field {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.searchlayer__field svg { width: 1.15rem; height: 1.15rem; stroke: var(--wine-600); fill: none; stroke-width: 2; flex: none; }
.searchlayer__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy-900);
  outline: none;
  min-width: 0;
}
.searchlayer__input::placeholder { color: var(--ink-mute); font-weight: 400; }
.searchlayer__results { overflow-y: auto; padding: 0.5rem; }
.searchlayer__hint {
  padding: 1.6rem 1.4rem 2rem;
  font-size: var(--step--1);
  color: var(--text-mute);
  font-family: var(--font-ui);
  text-align: center;
}
.sresult {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-m);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s var(--ease);
}
.sresult:hover, .sresult:focus-visible { background: var(--paper-200); color: inherit; }
.sresult__cat {
  font-family: var(--font-ui);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine-600);
}
.sresult__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0.18rem 0 0.18rem;
  line-height: 1.3;
}
.sresult__meta {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: var(--text-mute);
}

/* --------------------------------------------------------------------------
   5. Hero da página inicial
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--paper-100);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.5;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 78% 18%, rgba(122, 27, 57, 0.55), transparent 62%),
    radial-gradient(90% 70% at 8% 92%, rgba(26, 46, 68, 0.85), transparent 58%),
    linear-gradient(178deg, rgba(12, 23, 37, 0.55) 0%, rgba(12, 23, 37, 0.88) 62%, rgba(12, 23, 37, 0.97) 100%);
}
.hero__inner {
  padding-block: clamp(3.5rem, 2rem + 8vw, 8rem) clamp(3rem, 1.6rem + 7vw, 7rem);
  display: grid;
  gap: clamp(2.5rem, 1rem + 6vw, 5rem);
}
@media (min-width: 64rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; }
}
.hero h1 {
  color: var(--white);
  font-size: var(--step-5);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-bottom: 1.1rem;
  max-width: 16ch;
}
.hero h1 span {
  display: block;
  color: var(--wine-300);
  font-style: italic;
  font-weight: 600;
}
.hero__lead {
  font-size: var(--step-1);
  color: rgba(246, 239, 227, 0.86);
  max-width: 54ch;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__facts {
  border-left: 2px solid rgba(196, 112, 138, 0.4);
  padding-left: clamp(1.2rem, 0.6rem + 1.6vw, 2rem);
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 34rem) and (max-width: 63.99rem) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 2px solid rgba(196, 112, 138, 0.4); padding-left: 0; padding-top: 1.6rem; }
}
.fact__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.7rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}
.fact__label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(226, 211, 186, 0.78);
  margin-top: 0.45rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   6. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-s);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2; }
.btn--primary {
  background: var(--wine-600);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(94, 22, 46, 0.32);
}
.btn--primary:hover {
  background: var(--wine-500);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94, 22, 46, 0.36);
}
.btn--ghost {
  border-color: rgba(226, 211, 186, 0.45);
  color: var(--paper-100);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--paper-200); color: var(--white); transform: translateY(-2px); }
.btn--outline {
  border-color: var(--line-strong);
  color: var(--navy-800);
  background: var(--white);
}
.btn--outline:hover { border-color: var(--wine-600); color: var(--wine-700); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   7. Seções
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3rem, 1.8rem + 5vw, 6rem); }
.section--paper { background: var(--paper-100); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-900); color: var(--paper-200); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
}
@media (min-width: 52rem) {
  .section__head--split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
  }
}
.section__head h2 { margin-bottom: 0.35rem; }
.section__intro {
  color: var(--text-soft);
  max-width: 62ch;
  font-size: var(--step-0);
  margin: 0;
}
.section--navy .section__intro { color: rgba(226, 211, 186, 0.8); }

.textlink {
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--wine-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.textlink:hover { border-color: var(--wine-600); gap: 0.75rem; }
.textlink svg { width: 0.95rem; height: 0.95rem; stroke: currentColor; fill: none; stroke-width: 2.2; }
.section--navy .textlink { color: var(--wine-300); }
.section--navy .textlink:hover { border-color: var(--wine-300); }

/* --------------------------------------------------------------------------
   8. Cartões de guia
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.35rem, 0.9rem + 1.6vw, 2.1rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wine-700), var(--wine-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: 3;
}
.card:hover, .card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: var(--line-strong);
}
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-800);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(178deg, rgba(12, 23, 37, 0) 45%, rgba(12, 23, 37, 0.45) 100%);
}

.tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.145em;
  text-transform: uppercase;
  color: var(--wine-700);
  background: var(--wine-100);
  padding: 0.32rem 0.6rem;
  border-radius: 2px;
  text-decoration: none;
}
.tag--onmedia {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  background: rgba(252, 249, 244, 0.94);
  color: var(--wine-700);
}
a.tag:hover { background: var(--wine-600); color: var(--white); }

.card__body {
  padding: 1.3rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.7rem;
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--navy-900);
  letter-spacing: -0.012em;
}
.card__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--wine-600), var(--wine-600));
  background-size: 0 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease), color 0.25s var(--ease);
}
.card__title a:hover { color: var(--wine-700); background-size: 100% 1.5px; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }

.card__excerpt {
  font-size: var(--step--1);
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}
.card__meta {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.card__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.card__meta span + span::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  margin-right: 0.5rem;
}

/* Destaque editorial */
.feature {
  display: grid;
  gap: clamp(1.5rem, 0.8rem + 2.6vw, 3rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
}
@media (min-width: 58rem) {
  .feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.feature__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-800);
}
@media (min-width: 58rem) { .feature__media { aspect-ratio: auto; height: 100%; min-height: 24rem; } }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.045); }
.feature__body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(1.35rem, 1rem + 1.8vw, 2.75rem); }
.feature__body h3 {
  font-size: var(--step-3);
  margin: 0.85rem 0 0.9rem;
  letter-spacing: -0.02em;
}
.feature__body h3 a { color: inherit; text-decoration: none; }
.feature__body h3 a:hover { color: var(--wine-700); }
.feature__body p { color: var(--text-soft); margin-bottom: 1.4rem; }

/* --------------------------------------------------------------------------
   9. Eixos temáticos
   -------------------------------------------------------------------------- */
.axes { display: grid; gap: 1px; background: rgba(226, 211, 186, 0.18); border: 1px solid rgba(226, 211, 186, 0.18); }
@media (min-width: 40rem) { .axes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .axes { grid-template-columns: repeat(4, 1fr); } }

.axis {
  position: relative;
  background: var(--navy-900);
  padding: 1.75rem 1.5rem 1.6rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 12.5rem;
  overflow: hidden;
  transition: background 0.4s var(--ease);
}
.axis::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--wine-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.axis:hover { background: var(--navy-800); }
.axis:hover::after { transform: scaleX(1); }
.axis__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--wine-300);
}
.axis__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.24;
  margin: 0.15rem 0 0;
  letter-spacing: -0.012em;
}
.axis__desc {
  font-size: 0.86rem;
  color: rgba(226, 211, 186, 0.72);
  line-height: 1.6;
  margin: 0;
}
.axis__count {
  margin-top: auto;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper-400);
  padding-top: 0.9rem;
}
/* eixos ainda sem guias publicados recuam um passo na hierarquia */
.axis.is-empty .axis__name, .axis.is-empty .axis__desc { opacity: 0.62; }
.axis.is-empty .axis__count { color: var(--navy-300); }

/* --------------------------------------------------------------------------
   10. Filtros e índice de guias
   -------------------------------------------------------------------------- */
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.6rem);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-s);
}
.filters__row { display: grid; gap: 1rem; }
@media (min-width: 46rem) { .filters__row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .filters__row { grid-template-columns: 1.6fr repeat(3, 1fr); } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field__label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input[type="search"],
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--navy-900);
  background: var(--paper-50);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E162E' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
  cursor: pointer;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--wine-600);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 27, 57, 0.13);
}
.field textarea { min-height: 9rem; resize: vertical; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; }

.filters__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1.05rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}
.filters__count {
  font-family: var(--font-ui);
  font-size: 0.83rem;
  color: var(--text-soft);
}
.filters__count strong { color: var(--wine-700); font-family: var(--font-display); font-size: 1.05rem; }
.btn--tiny { padding: 0.5rem 1rem; font-size: 0.78rem; }

.emptystate {
  padding: clamp(1.9rem, 1.3rem + 2vw, 2.9rem) clamp(1.4rem, 1rem + 2vw, 2.6rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine-600);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  box-shadow: var(--shadow-s);
}
.emptystate h3 { font-size: var(--step-1); margin-bottom: 0.55rem; color: var(--navy-900); }
.emptystate p { color: var(--text-soft); max-width: 54ch; margin: 0; }
.emptystate .textlink { margin-top: 1.25rem; }
.emptystate[hidden] { display: none; }

/* --------------------------------------------------------------------------
   11. Cabeçalho de página e trilha
   -------------------------------------------------------------------------- */
.pagehead {
  background: var(--navy-900);
  color: var(--paper-100);
  padding-block: clamp(2.25rem, 1.4rem + 3.5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.pagehead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 88% 0%, rgba(122, 27, 57, 0.5), transparent 66%);
  pointer-events: none;
}
.pagehead > * { position: relative; z-index: 2; }
.pagehead h1 { color: var(--white); max-width: 22ch; margin-bottom: 0.85rem; }
.pagehead__lead {
  color: rgba(246, 239, 227, 0.82);
  max-width: 62ch;
  font-size: var(--step-1);
  line-height: 1.6;
  margin: 0;
}

.crumbs {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.15rem;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 0.4rem; }
.crumbs li + li::before { content: "/"; color: var(--paper-400); opacity: 0.6; }
.crumbs a { color: var(--paper-300); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs [aria-current="page"] { color: rgba(246, 239, 227, 0.62); }

.crumbs--light a { color: var(--wine-700); }
.crumbs--light a:hover { color: var(--wine-500); }
.crumbs--light li + li::before { color: var(--line-strong); }
.crumbs--light [aria-current="page"] { color: var(--text-mute); }

/* --------------------------------------------------------------------------
   12. Artigo
   -------------------------------------------------------------------------- */
.article-shell {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-block: clamp(2rem, 1.2rem + 3vw, 3.5rem) clamp(3rem, 2rem + 4vw, 5rem);
}
@media (min-width: 68rem) {
  .article-shell { grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr); }
}

.toc { position: relative; }
@media (max-width: 67.999rem) {
  .toc { margin-block: 2.2rem 2.6rem; }
}
@media (min-width: 68rem) {
  .toc { position: sticky; top: 6rem; align-self: start; max-height: calc(100vh - 8rem); overflow-y: auto; }
}
.toc__inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine-600);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  padding: 1.15rem 1.25rem 1.3rem;
}
.toc__title {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine-700);
  margin: 0 0 0.85rem;
}
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc__list li { margin: 0; counter-increment: toc; }
.toc__list a {
  display: flex;
  gap: 0.6rem;
  padding: 0.42rem 0;
  font-family: var(--font-ui);
  font-size: 0.815rem;
  line-height: 1.45;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease);
}
.toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--paper-400);
  padding-top: 0.16rem;
  flex: none;
  transition: color 0.2s var(--ease);
}
.toc__list a:hover { color: var(--wine-700); }
.toc__list a:hover::before { color: var(--wine-500); }
.toc__list a.is-active { color: var(--wine-700); font-weight: 600; }
.toc__list a.is-active::before { color: var(--wine-600); }

.article { max-width: 44rem; }

.article__head { margin-bottom: 2rem; }
.article__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.article h1 {
  font-size: var(--step-4);
  letter-spacing: -0.026em;
  margin-bottom: 1rem;
  max-width: 20ch;
}
.article__standfirst {
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--text-soft);
  font-style: italic;
  border-left: 3px solid var(--paper-300);
  padding-left: 1.1rem;
  margin-bottom: 1.6rem;
}
.article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.79rem;
  color: var(--text-mute);
  padding-block: 0.95rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article__byline strong { color: var(--navy-800); font-weight: 600; font-family: var(--font-ui); }
.article__byline time { white-space: nowrap; }

.article__figure { margin: 0 0 2rem; }
.article__figure img { width: 100%; border-radius: var(--radius-m); }
.article__figure figcaption {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: var(--text-mute);
  line-height: 1.55;
  padding-top: 0.7rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.prose { font-size: 1.075rem; line-height: 1.78; color: #24272E; }
.prose > h2 {
  font-size: var(--step-2);
  margin-top: 2.9rem;
  margin-bottom: 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  letter-spacing: -0.018em;
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose > h3 {
  font-size: var(--step-1);
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  color: var(--wine-800);
}
.prose p { margin-bottom: 1.3em; }
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.35em;
  line-height: 0.84;
  font-weight: 800;
  color: var(--wine-700);
  /* o recuo superior abre espaço para letras acentuadas não tocarem o título acima */
  padding: 0.16em 0.11em 0 0;
}
@media (max-width: 44rem) {
  .prose > p:first-of-type::first-letter { font-size: 2.85em; line-height: 0.88; }
}
.prose ul, .prose ol { margin-bottom: 1.5em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.6em; padding-left: 0.2em; }
.prose li::marker { color: var(--wine-600); }
.prose a { color: var(--wine-700); text-decoration: underline; text-decoration-color: rgba(122, 27, 57, 0.35); }
.prose a:hover { text-decoration-color: var(--wine-600); }

.pull {
  margin: 2.2rem 0;
  padding: 0 0 0 1.6rem;
  border-left: 4px solid var(--wine-600);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.38;
  color: var(--navy-800);
  letter-spacing: -0.014em;
}
.pull cite {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.79rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  margin-top: 0.8rem;
}

.note {
  margin: 2rem 0;
  background: var(--paper-100);
  border: 1px solid var(--paper-300);
  border-radius: var(--radius-m);
  padding: 1.3rem 1.4rem;
  font-size: 0.98rem;
  line-height: 1.68;
}
.note__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--wine-700);
  margin-bottom: 0.55rem;
}
.note p:last-child { margin-bottom: 0; }
.note--navy { background: var(--navy-900); border-color: var(--navy-700); color: rgba(246, 239, 227, 0.86); }
.note--navy .note__label { color: var(--wine-300); }
.note--navy strong { color: var(--white); }

.mythlist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.mythlist li {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.15rem 1.25rem;
}
.mythlist b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--wine-800);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.mythlist span { display: block; font-size: 0.97rem; color: var(--text-soft); line-height: 1.66; }

.factbox {
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--white);
}
.factbox__head {
  background: var(--navy-900);
  color: var(--paper-200);
  padding: 0.75rem 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.factbox dl { margin: 0; display: grid; }
@media (min-width: 34rem) { .factbox dl { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); } }
.factbox dt {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wine-700);
  padding: 0.75rem 1.2rem 0.15rem;
  border-top: 1px solid var(--line);
}
.factbox dd {
  margin: 0;
  padding: 0.15rem 1.2rem 0.8rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}
@media (min-width: 34rem) {
  .factbox dt { padding: 0.85rem 0.6rem 0.85rem 1.2rem; }
  .factbox dd { padding: 0.85rem 1.2rem 0.85rem 0; border-top: 1px solid var(--line); }
}
.factbox dt:first-of-type, .factbox dl > :nth-child(-n+2) { border-top: 0; }

.sources { list-style: none; padding: 0; margin: 1.4rem 0 0; counter-reset: src; display: grid; gap: 0.9rem; }
.sources li {
  counter-increment: src;
  margin: 0;
  padding-left: 2.4rem;
  position: relative;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--text-soft);
}
.sources li::before {
  content: counter(src);
  position: absolute;
  left: 0; top: 0.1rem;
  width: 1.6rem; height: 1.6rem;
  display: grid;
  place-items: center;
  background: var(--paper-200);
  color: var(--wine-800);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
}
.sources cite { font-style: italic; color: var(--navy-800); }
.sources em { color: var(--navy-800); }

.article__foot {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 2px solid var(--navy-900);
  display: grid;
  gap: 1.4rem;
}
.stamp {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-mute);
  line-height: 1.65;
}
.stamp strong { color: var(--navy-800); }

.tagrow { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* --------------------------------------------------------------------------
   13. Relacionados
   -------------------------------------------------------------------------- */
.related { background: var(--paper-100); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); }

/* --------------------------------------------------------------------------
   14. Conteúdo estático (páginas institucionais)
   -------------------------------------------------------------------------- */
.doc { padding-block: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); }
.doc__body { max-width: 44rem; font-size: 1.05rem; line-height: 1.78; }
.doc__body h2 {
  font-size: var(--step-2);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.doc__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc__body h3 { font-size: var(--step-1); margin-top: 1.9rem; color: var(--wine-800); }
.doc__body ul li::marker { color: var(--wine-600); }

/* Glossário */
.glossary-shell { display: grid; gap: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
@media (min-width: 68rem) {
  .glossary-shell { grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); }
  .glossary-shell .alphabar { position: sticky; top: 6rem; align-self: start; margin-bottom: 0; }
  .glossary-shell .glossary { max-width: 46rem; }
}

.alphabar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine-600);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}
.alphabar a {
  display: grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  border-radius: var(--radius-s);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.alphabar a:hover { background: var(--wine-600); color: var(--white); }

.glossary { display: grid; gap: 2.25rem; }
.glossary__group h2 {
  font-size: var(--step-3);
  color: var(--wine-700);
  border-bottom: 2px solid var(--wine-600);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
}
.glossary dl { margin: 0; display: grid; gap: 1.1rem; }
.glossary dt {
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--navy-900);
}
.glossary dd {
  margin: 0.3rem 0 0;
  font-size: 0.99rem;
  line-height: 1.7;
  color: var(--text-soft);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.glossary dd:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   15. Rodapé
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: rgba(226, 211, 186, 0.72);
  padding-block: clamp(2.75rem, 1.8rem + 4vw, 4.5rem) 2rem;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}
.footer__top {
  display: grid;
  gap: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(226, 211, 186, 0.16);
}
@media (min-width: 52rem) { .footer__top { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .footer__top { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); } }

.footer .brand__name { color: var(--white); }
.footer .brand__tag { color: var(--paper-400); }
.footer__about { max-width: 42ch; margin-top: 1.1rem; line-height: 1.7; }
.footer__col h3 {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine-300);
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 0.55rem; }
.footer__col a {
  color: rgba(226, 211, 186, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
  display: inline-block;
}
.footer__col a:hover { color: var(--white); padding-left: 0.25rem; }

.footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.79rem;
  font-family: var(--font-ui);
  color: rgba(226, 211, 186, 0.55);
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.15rem; }
.footer__legal a { color: rgba(226, 211, 186, 0.68); text-decoration: none; }
.footer__legal a:hover { color: var(--white); text-decoration: underline; }

/* --------------------------------------------------------------------------
   16. Aviso de cookies
   -------------------------------------------------------------------------- */
.cookiebar {
  position: fixed;
  left: 50%;
  bottom: 1.15rem;
  transform: translate(-50%, 140%);
  width: min(58rem, calc(100vw - 2rem));
  z-index: 80;
  background: var(--navy-900);
  color: rgba(246, 239, 227, 0.88);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.86rem;
  line-height: 1.6;
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.cookiebar[data-visible="true"] {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.45s var(--ease), visibility 0s;
}
.cookiebar p { margin: 0; flex: 1 1 22rem; }
.cookiebar a { color: var(--wine-300); }
.cookiebar__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   17. Página 404
   -------------------------------------------------------------------------- */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
  background: var(--navy-900);
  color: var(--paper-200);
  position: relative;
  overflow: hidden;
}
.notfound::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 20%, rgba(122, 27, 57, 0.5), transparent 65%);
}
.notfound > * { position: relative; z-index: 2; }
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 12vw, 11rem);
  font-weight: 900;
  line-height: 0.85;
  color: rgba(196, 112, 138, 0.28);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.notfound h1 { color: var(--white); max-width: 18ch; margin-inline: auto; }
.notfound p { color: rgba(246, 239, 227, 0.78); max-width: 50ch; margin-inline: auto; margin-bottom: 1.9rem; }

/* --------------------------------------------------------------------------
   18. Contato
   -------------------------------------------------------------------------- */
.contactgrid { display: grid; gap: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
@media (min-width: 58rem) { .contactgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); } }
.contactcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.15rem;
}
.contactcard h2, .contactcard h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.contactcard p { font-size: 0.95rem; color: var(--text-soft); margin-bottom: 0.6rem; }
.contactcard a { font-family: var(--font-ui); font-weight: 600; font-size: 0.92rem; }

.form { display: grid; gap: 1.15rem; }
.form__note {
  font-family: var(--font-ui);
  font-size: 0.79rem;
  color: var(--text-mute);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   19. Animação de entrada
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Impressão
   -------------------------------------------------------------------------- */
@media print {
  .masthead, .topbar, .footer, .toc, .related, .cookiebar, .drawer, .searchlayer { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
  .article { max-width: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
