/* Contas na Mesa — estilos globais */
:root {
  --bg: #faf6ee;
  --surface: #ffffff;
  --ink: #1d2a2a;
  --muted: #5b6b6b;
  --line: #e4dccb;
  --brand: #0f3d3e;
  --brand-ink: #ffffff;
  --accent: #e8a317;
  --accent-ink: #231a00;
  --alert: #c8553d;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 61, 62, 0.08);
  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1a1a;
    --surface: #142626;
    --ink: #eef2ee;
    --muted: #9fb2b0;
    --line: #243d3c;
    --brand: #f0b429;
    --brand-ink: #1d1500;
    --accent: #f0b429;
    --accent-ink: #1d1500;
    --alert: #ef8a72;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1a1a;
  --surface: #142626;
  --ink: #eef2ee;
  --muted: #9fb2b0;
  --line: #243d3c;
  --brand: #f0b429;
  --brand-ink: #1d1500;
  --accent: #f0b429;
  --accent-ink: #1d1500;
  --alert: #ef8a72;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-title); font-weight: 800; font-size: 1.25rem; color: var(--brand); }
.logo svg { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 720px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--brand); }

/* Hero */
.hero { background: #0f3d3e; color: #ffffff; position: relative; overflow: hidden; }
.hero .container { padding-block: clamp(48px, 9vw, 104px); display: grid; gap: 28px; }
.hero .kicker { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--accent); }
.hero h1 { max-width: 18ch; }
.hero p.lead { font-size: 1.2rem; max-width: 56ch; opacity: .92; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn.ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.6); }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 38%, transparent 39%); opacity: .18; }

/* Sections */
section.block { padding-block: clamp(40px, 7vw, 76px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-head a { font-weight: 700; color: var(--brand); }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .cover { aspect-ratio: 16/9; display: grid; place-items: center; padding: 18px; font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; text-align: center; line-height: 1.15; }
.cover.c1 { background: var(--brand); color: #fff; }
.cover.c2 { background: var(--accent); color: var(--accent-ink); }
.cover.c3 { background: var(--alert); color: #fff; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--alert); }
.card h3 { margin: 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.meta { font-size: .85rem; color: var(--muted); margin-top: auto; padding-top: 6px; }

/* Videos */
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lite-yt { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); cursor: pointer; }
.lite-yt button { all: unset; position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; background: linear-gradient(135deg, var(--brand), #08292a); color: #fff; text-align: center; padding: 16px; }
.lite-yt .play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 10px; }
.lite-yt .play::before { content: ""; border-left: 20px solid var(--accent-ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 10px; font-weight: 600; }
.notice { border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; color: var(--muted); font-size: .95rem; margin-top: 18px; }

/* Newsletter / about strip */
.strip { background: var(--surface); border-block: 1px solid var(--line); }
.two-col { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1.1fr 1fr; } }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.pill-list li { border: 1px solid var(--line); background: var(--bg); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; }

/* Article */
.article { width: min(720px, 100% - 32px); margin-inline: auto; padding-block: 40px 72px; }
.article header { margin-bottom: 28px; }
.article .tag { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--alert); }
.article h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-top: .3em; }
.article .meta { margin-top: 0; }
.article h2 { margin-top: 1.8em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .5em; }
.callout { background: var(--surface); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 1.6em 0; box-shadow: var(--shadow); }
.callout strong { font-family: var(--font-title); }
.article table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .97rem; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article th { background: var(--surface); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 1.6em; }
.toc ol { margin: 6px 0 0; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 700; color: var(--brand); text-decoration: none; }

/* Footer */
.site-footer { background: #0f3d3e; color: #ffffff; padding-block: 40px; margin-top: 40px; }
.site-footer .row { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .row { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { text-decoration: none; opacity: .9; }
.site-footer a:hover { text-decoration: underline; opacity: 1; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer small { opacity: .75; display: block; margin-top: 24px; }
.site-footer .logo { color: #ffffff; }

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