/*
Theme Name: 95r Guia Editorial
Theme URI: https://95r.buzz/
Author: 95r.buzz
Description: Tema editorial independente para o guia 95r.buzz.
Version: 1.0.1
Text Domain: r95-guide
*/

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-2); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 8px; left: 8px; width: auto; height: auto; margin: 0; padding: 10px 14px; clip: auto; background: var(--surface); color: var(--ink); }
.site-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header { background: rgba(245,240,231,.97); border-bottom: 1px solid var(--line); }
.masthead { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: var(--ink); text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.04em; }
.site-brand span { color: var(--accent); }
.site-tagline { color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.nav-bar { border-top: 1px solid var(--line); }
.nav-inner { min-height: 52px; display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-menu a { display: flex; min-height: 44px; align-items: center; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--accent); border-bottom-color: var(--accent); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; }

.site-main { min-height: 60vh; }
.page-frame { padding-block: 64px 96px; }
.entry-content { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content > section { margin-block: 72px; scroll-margin-top: 24px; }
.entry-content > .wide, .entry-content section.wide { width: min(calc(100vw - 40px), var(--wide)); margin-left: 50%; transform: translateX(-50%); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: 0 0 28px; font-size: clamp(40px, 5.8vw, 72px); }
.subpage h1 { font-size: clamp(38px, 5vw, 62px); }
h2 { margin-top: 0; padding-top: 10px; border-top: 3px solid var(--accent); font-size: clamp(30px, 4vw, 44px); }
h3 { margin-top: 2em; font-size: clamp(23px, 3vw, 30px); }
p, li { max-width: 72ch; }
.lead { max-width: 760px; color: #35312d; font-size: clamp(19px, 2vw, 23px); line-height: 1.65; }
.eyebrow { margin-bottom: 14px; color: var(--accent); font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero { width: min(calc(100vw - 40px), var(--max)); margin: 0 50% 82px; padding-top: 72px; transform: translateX(-50%); }
.hero-copy { max-width: 900px; }
.hero-media { margin: 42px 0 0; }
.hero-media img, .editorial-figure img { width: 100%; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.editorial-figure { width: min(calc(100vw - 40px), var(--wide)); margin: 36px 50% 52px; transform: translateX(-50%); }
.note { margin-block: 30px; padding: 22px 24px; border-left: 5px solid var(--accent-2); background: var(--info); }
.warning { border-left-color: var(--gold); background: var(--warning); color: var(--warning-ink); }
.task-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; width: min(calc(100vw - 40px), var(--wide)); margin: 36px 50%; transform: translateX(-50%); }
.task-links a { min-height: 92px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 800; text-decoration: none; }
.task-links a span { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
ol.steps { counter-reset: steps; padding: 0; list-style: none; }
ol.steps li { position: relative; min-height: 58px; margin-bottom: 18px; padding-left: 64px; }
ol.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: 0; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; line-height: 1; }
.checklist { padding: 22px 26px 22px 50px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.checklist li::marker { color: var(--accent-2); }
.table-wrap { width: min(calc(100vw - 40px), var(--wide)); margin: 34px 50%; overflow-x: auto; transform: translateX(-50%); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { background: var(--muted-surface); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
.faq { margin-top: 72px; }
.faq details { margin-bottom: 10px; border: 1px solid var(--line); background: var(--surface); }
.faq summary { min-height: 52px; padding: 12px 18px; cursor: pointer; font-weight: 800; }
.faq details p { padding: 0 18px 18px; }

.site-footer { background: #292622; color: #f7f1e8; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-block: 56px 42px; }
.site-footer h2 { padding: 0; border: 0; font-size: 24px; }
.site-footer p { color: #d8d0c6; font-size: 15px; }
.footer-nav { margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; color: #fff; }
.footer-bottom { padding-block: 22px; border-top: 1px solid #4a4540; color: #cfc6bb; font-size: 14px; }
.error-page { padding-block: 100px; text-align: center; }

@media (max-width: 780px) {
  body { font-size: 16px; }
  .site-shell { width: min(calc(100% - 32px), var(--max)); }
  .site-tagline, .nav-bar { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-bar.is-open { display: block; }
  .nav-inner { padding-block: 10px; }
  .nav-menu { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu a { min-height: 48px; }
  .page-frame { padding-block: 42px 64px; }
  .entry-content { width: calc(100% - 32px); }
  .hero { width: calc(100vw - 32px); padding-top: 46px; margin-bottom: 52px; }
  .hero-media { margin-top: 28px; }
  .entry-content > section { margin-block: 50px; }
  .entry-content > .wide, .entry-content section.wide, .editorial-figure, .table-wrap, .task-links { width: calc(100vw - 32px); }
  .task-links { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap th, .table-wrap td, .table-wrap tr { display: block; }
  .table-wrap thead { position: absolute; left: -9999px; }
  .table-wrap tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table-wrap td { padding: 7px 0; border: 0; }
  .table-wrap td::before { content: attr(data-label); display: block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
}

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