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

:root {
  --bg: #f7f2e8;
  --bg-soft: #faf6ef;
  --bg-teal: #0d4f4f;
  --bg-teal-deep: #083838;
  --text: #2a2520;
  --text-on-dark: #f7f2e8;
  --muted: #5c564e;
  --muted-on-dark: #c8ddd8;
  --teal: #146565;
  --teal-bright: #1a8585;
  --sand: #e8dcc8;
  --gold: #c9a04a;
  --line: rgba(20, 101, 101, 0.18);
  --line-dark: rgba(247, 242, 232, 0.14);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --layout-max: 1220px;
  --copy-max: 680px;
  --gutter: 32px;
  --section-pad: 56px;
  --section-pad-compact: 44px;
  --header-h: 52px;
  --scroll-offset: 76px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}

section[id] {
  scroll-margin-top: var(--scroll-offset);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--bg-teal);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--bg-teal);
  color: var(--text-on-dark);
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.layout-container {
  width: min(100% - var(--gutter) * 2, var(--layout-max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(42, 37, 32, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.brand span {
  color: var(--teal);
  font-weight: 500;
}

.header-age {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border: 1.5px solid var(--teal);
  border-radius: 4px;
  color: var(--teal);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal);
}

/* Magazine hero */
.magazine-hero {
  position: relative;
  min-height: clamp(340px, 52vw, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-teal-deep);
}

.magazine-hero__media {
  position: absolute;
  inset: 0;
}

.magazine-hero__media picture,
.magazine-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magazine-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 56, 56, 0.15) 0%, rgba(8, 56, 56, 0.55) 45%, rgba(8, 56, 56, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 56, 56, 0.75) 0%, rgba(8, 56, 56, 0.2) 55%, transparent 100%);
}

.magazine-hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - var(--gutter) * 2, var(--layout-max));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  max-width: 780px;
}

.magazine-hero__content .eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.magazine-hero__content h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text-on-dark);
}

.magazine-hero__content .hero-lead {
  margin: 0 0 1.15rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.55;
  color: var(--muted-on-dark);
  max-width: 42em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.9rem;
  padding: 0.68rem 1.4rem;
  background: rgba(247, 242, 232, 0.96);
  color: var(--bg-teal);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(201, 160, 74, 0.45);
  border-radius: 999px;
  box-shadow: 0 2px 14px rgba(8, 56, 56, 0.22);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  background: #faf6ef;
  color: var(--bg-teal-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(8, 56, 56, 0.28);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hero-affiliate-note {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(247, 242, 232, 0.78);
  max-width: 42em;
}

.hero-affiliate-note[hidden] {
  display: none;
}

.magazine-hero__content .hero-byline {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(247, 242, 232, 0.68);
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
}

.section--compact {
  padding: var(--section-pad-compact) 0;
}

.section--tight-top {
  padding-top: var(--section-pad-compact);
}

.section--soft {
  background: var(--bg-soft);
}

.faq-section {
  padding-top: var(--section-pad-compact);
  padding-bottom: var(--section-pad);
}

.section--teal {
  background: var(--bg-teal);
  color: var(--text-on-dark);
}

.section--teal a {
  color: var(--gold);
}

.section--teal h2 {
  color: #faf6ef;
}

.section--teal p {
  color: #ede6d8;
}

.section--teal .section-kicker {
  color: #e8d4a8;
}

.section--teal .section-intro {
  color: #d4e8e4;
}

.section--teal strong {
  color: #f0c96a;
  font-weight: 600;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}

.section-intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: var(--copy-max);
}

#visao-geral.section {
  padding-bottom: var(--section-pad-compact);
}

.section p {
  margin: 0 0 1rem;
  max-width: var(--copy-max);
}

.section p:last-child {
  margin-bottom: 0;
}

/* Editorial columns */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.editorial-split--balanced {
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 3.5vw, 3.25rem);
  align-items: center;
  margin-top: 0.35rem;
}

.editorial-split--reverse .editorial-split__visual {
  order: 2;
}

.editorial-split__visual {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.editorial-split--balanced .editorial-split__visual {
  max-width: 480px;
  width: 100%;
  justify-self: center;
}

.editorial-split__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.editorial-split--balanced .editorial-split__visual img {
  aspect-ratio: 5 / 4;
}

.editorial-split__body {
  max-width: var(--copy-max);
}

.editorial-split--balanced .editorial-split__body {
  max-width: none;
}

/* Fact strip */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 0.25rem;
  border-top: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  background: var(--bg-soft);
}

.fact-strip__item {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.fact-strip__item:last-child {
  border-right: none;
}

.fact-strip__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

.fact-strip__value {
  display: block;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* Mechanics list */
.mechanics-flow {
  display: grid;
  gap: 0;
  border-left: 3px solid var(--teal);
  margin: 1.5rem 0 0;
  max-width: 720px;
}

.mechanics-step {
  padding: 1rem 0 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.mechanics-step:last-child {
  border-bottom: none;
}

.mechanics-step strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--bg-teal);
}

.mechanics-step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Modifiers editorial */
.modifier-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}

.modifier-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.modifier-list li:last-child {
  border-bottom: none;
}

.modifier-num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
}

.modifier-list strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.modifier-list p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: none;
}

.modifier-heading {
  margin: 2rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

/* Gold Fever progression */
.fever-progress {
  margin-top: 1.5rem;
}

.fever-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.fever-stage {
  flex: 1;
  min-width: 88px;
  text-align: center;
  position: relative;
}

.fever-stage::before {
  content: "";
  display: block;
  height: 4px;
  background: rgba(247, 242, 232, 0.22);
  margin-bottom: 0.75rem;
}

.fever-stage.is-active::before {
  background: linear-gradient(90deg, rgba(232, 212, 168, 0.55), var(--gold));
}

.fever-threshold {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b8d4d0;
  margin-bottom: 0.2rem;
}

.fever-mult {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #f0c96a;
}

.fever-stage.is-max .fever-mult {
  color: #f5d578;
}

.section--teal .fever-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(247, 242, 232, 0.08);
  border-left: 3px solid var(--gold);
  font-size: 0.92rem;
  color: #ede6d8;
  max-width: 720px;
}

/* Technical snapshot */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.25rem;
}

.tech-cell {
  background: var(--bg-soft);
  padding: 1.15rem 1rem;
}

.tech-cell dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.3rem;
}

.tech-cell dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

/* Suitability */
.suitability-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 0.5rem;
}

.suitability-col h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.suitability-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.suitability-col li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.suitability-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.suitability-col--caution li::before {
  background: var(--gold);
}

/* Version table */
.version-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.version-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.version-table th,
.version-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.version-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(20, 101, 101, 0.05);
}

.version-table td {
  color: var(--muted);
}

/* Demo block */
.demo-editorial {
  max-width: 720px;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.demo-editorial h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

/* Sources inline */
.sources-inline {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 720px;
}

.sources-inline li {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.sources-inline a {
  font-weight: 600;
  text-decoration: none;
}

.sources-inline a:hover {
  text-decoration: underline;
}

.sources-inline p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  max-width: 960px;
  margin-top: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border: none;
  background: none;
  font: inherit;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.faq-q::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

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

/* Footer */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.75rem;
}

.footer-editorial {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.footer-meta {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 36em;
}

.footer-age {
  display: inline-block;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border: 1.5px solid var(--teal);
  border-radius: 4px;
  color: var(--teal);
  flex-shrink: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.75rem;
  align-content: start;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--teal);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .fact-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact-strip__item:nth-child(3) {
    border-right: none;
  }

  .fact-strip__item:nth-child(4),
  .fact-strip__item:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .editorial-split,
  .editorial-split--balanced {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .editorial-split--balanced .editorial-split__visual {
    max-width: 420px;
    justify-self: start;
  }

  .editorial-split--reverse .editorial-split__visual {
    order: 0;
  }

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

  .footer-editorial {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem var(--gutter) 1rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
  }

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

  .site-header {
    position: relative;
  }

  .hero-cta {
    width: 100%;
    max-width: 300px;
  }

  .editorial-split--balanced .editorial-split__visual {
    max-width: none;
    justify-self: stretch;
  }

  .fact-strip {
    grid-template-columns: 1fr 1fr;
  }

  .fact-strip__item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .fact-strip__item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

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

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

  .footer-nav {
    grid-template-columns: 1fr;
  }
}
