/*
Theme Name: 79m Editorial 2026
Theme URI: https://79m.buzz/
Author: 79m.buzz
Description: Tema editorial independente em português do Brasil para o guia 79m.buzz.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: m79-editorial
*/

:root {
  --paper: #f5f0e7;
  --surface: #fffcf7;
  --soft: #ebe2d5;
  --ink: #252321;
  --muted: #6d6861;
  --line: #d7cdbf;
  --accent: #9e3f35;
  --accent-dark: #7f3028;
  --sage: #2f6f62;
  --info: #eaf1ed;
  --warning: #fff1d0;
  --focus: #2f6f62;
  --content: 1160px;
  --reading: 740px;
  --wide: 980px;
  --shadow: 0 10px 28px rgba(60, 45, 30, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  background-image: radial-gradient(rgba(37,35,33,.025) 1px, transparent 1px);
  background-size: 5px 5px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--sage); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.site-header { background: rgba(255,252,247,.97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.masthead, .nav-row { max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.masthead { min-height: 62px; display: flex; align-items: center; }
.brand { color: var(--ink); text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-weight: 800; font-size: 34px; letter-spacing: -.04em; }
.nav-row { min-height: 50px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; }
.site-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--accent); border-color: currentColor; }
.independent-note { color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
main { min-height: 60vh; }
.hero { padding: 82px 24px 48px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-copy { max-width: 880px; margin: 0 auto; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.13; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.35rem, 5.8vw, 4.5rem); letter-spacing: -.035em; }
.dek { max-width: 760px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.55; margin: 24px 0 0; }
.hero-actions, .final-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; }
.button:hover { background: var(--accent-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--accent-dark); }
.button.secondary:hover { background: var(--soft); color: var(--ink); }
.hero-figure { max-width: var(--wide); margin: 44px auto 0; }
.hero-figure img, .section-figure img { border-radius: 8px; box-shadow: var(--shadow); width: 100%; }
figcaption { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 10px; }
.intro { max-width: var(--reading); margin: 0 auto; padding: 48px 24px 0; font-size: 1.08em; }
.content-section { padding: 84px 24px 0; }
.content-section:nth-of-type(even) { background: linear-gradient(to bottom, transparent, rgba(235,226,213,.42), transparent); }
.reading { max-width: var(--reading); margin: 0 auto; }
.wide { max-width: var(--wide); margin: 0 auto; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 28px; padding-top: 16px; border-top: 3px solid var(--accent); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-top: 34px; }
p { margin: 0 0 1.25em; }
.note { padding: 20px 22px; margin: 30px 0; border-left: 4px solid var(--sage); background: var(--info); }
.warning { padding: 20px 22px; margin: 30px 0; border-left: 4px solid #8b5e16; background: var(--warning); }
.section-figure { max-width: var(--wide); margin: 36px auto; }
.table-wrap { max-width: var(--wide); margin: 36px auto; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 16px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 800; }
.faq { max-width: var(--reading); margin: 0 auto; }
.faq details { background: var(--surface); border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; min-height: 56px; padding: 14px 44px 14px 0; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 10px; font-size: 24px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; }
.closing { max-width: var(--wide); margin: 86px auto 0; padding: 38px; background: var(--ink); color: #fff; }
.closing h2 { border-color: #d7ad5d; }
.closing a { color: #fff; }
.page-shell { max-width: var(--reading); margin: 0 auto; padding: 78px 24px 92px; }
.page-shell h1 { margin-bottom: 30px; }
.page-shell .lead { font-size: 1.15em; color: var(--muted); }
.email-text { display: inline-block; padding: 12px 14px; background: var(--info); border: 1px solid var(--line); font-weight: 800; }
.site-footer { margin-top: 92px; background: var(--ink); color: #eee9e0; }
.footer-main, .footer-bottom { max-width: var(--content); margin: 0 auto; padding: 44px 24px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; }
.footer-main p { max-width: 650px; }
.footer-title { font-family: Georgia, serif; font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; }
.footer-bottom { border-top: 1px solid #49443f; padding-top: 20px; padding-bottom: 20px; grid-template-columns: 1fr auto; font-size: 14px; color: #c9c2b8; }

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  body { font-size: 16px; }
  .site-header { min-height: 66px; }
  .masthead { min-height: 66px; justify-content: space-between; padding: 0 16px; }
  .brand { font-size: 29px; }
  .nav-row { border: 0; min-height: 0; padding: 0; }
  .independent-note { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 11px; right: 16px; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 12px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 2px; }
  .site-nav a { width: 100%; min-height: 48px; }
  .hero { padding: 50px 16px 34px; }
  .hero-actions, .final-actions { display: grid; }
  .button { width: 100%; }
  .hero-figure { margin-top: 30px; }
  .hero-figure img, .section-figure img { border-radius: 4px; }
  .intro, .content-section, .page-shell { padding-left: 16px; padding-right: 16px; }
  .intro { padding-top: 32px; }
  .content-section { padding-top: 52px; }
  .section-figure { margin: 28px auto; }
  .closing { margin-top: 56px; padding: 26px 18px; }
  .footer-main, .footer-bottom { grid-template-columns: 1fr; gap: 24px; padding-left: 16px; padding-right: 16px; }
  .footer-bottom { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
