@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0c0b0a;
  --bg-2: #14120f;
  --card: #1a1814;
  --line: rgba(201, 162, 74, .18);
  --line-soft: rgba(255, 255, 255, .07);
  --gold: #c9a24a;
  --gold-2: #e3c579;
  --text: #ede7da;
  --muted: #a39b8b;
  --good: #6fbf73;
  --warn: #e0a84a;
  --bad: #e06a5a;
  --radius: 14px;
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* header */
.site-head { border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 10; background: rgba(12, 11, 10, .92); backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 800 19px 'Fraunces', serif; letter-spacing: .3px; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; }
.head-right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; background: var(--bg-2); }
.lang a { font: 700 12.5px 'Inter'; letter-spacing: 1px; color: var(--muted); padding: 5px 11px; border-radius: 99px; }
.lang a:hover { color: var(--gold-2); text-decoration: none; }
.lang a.on { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #9c7a33); color: #15120c; }
.nav { display: flex; gap: 20px; font-size: 14.5px; font-weight: 500; margin-left: auto; margin-right: 18px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.on { color: var(--gold-2); text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; }

@media (max-width: 1040px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line-soft); }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line-soft); }
  .nav.open { display: flex; }
  .nav { margin: 0; }
  .menu-btn { display: block; }
}

/* type */
.kicker { font: 600 12.5px 'Inter'; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 800; line-height: 1.15; color: #fff; }
h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.5px; }
h2 { font-size: clamp(24px, 3vw, 30px); margin: 44px 0 14px; }
h2::after { content: ''; display: block; width: 56px; height: 2px; margin-top: 12px; background: linear-gradient(90deg, var(--gold-2), transparent); }
h3 { font-size: 19px; margin: 26px 0 8px; font-weight: 600; }
p { margin: 0 0 16px; }
.lead { font-size: 18px; color: #d9d2c3; }
.muted { color: var(--muted); }
strong { color: #fff; }
ul.list, ol.list { margin: 0 0 18px 22px; }
ul.list li, ol.list li { margin: 6px 0; }

/* hero */
.hero { padding: 44px 0 84px; border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 360px at 85% 0%, rgba(201, 162, 74, .13), transparent 70%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -26px; height: 110px; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23c9a24a' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23e3c579'/%3E%3Cstop offset='1' stop-color='%23c9a24a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)'%3E%3Cpath stroke-width='1.2' d='M0 150 C 240 90, 480 210, 720 150 S 1200 90, 1440 150'/%3E%3Cpath stroke-width='.8' d='M0 172 C 260 112, 500 232, 740 170 S 1220 112, 1440 172'/%3E%3Cpath stroke-width='.5' d='M0 194 C 280 134, 520 254, 760 190 S 1240 134, 1440 194'/%3E%3C/g%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.hero .wrap, .page-hero .wrap { position: relative; z-index: 1; }
.hero h1 em, .gold-text { font-style: normal; background: linear-gradient(100deg, #f3dc9c, var(--gold) 45%, #a8822f 75%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero { position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 260px at 90% 0%, rgba(201, 162, 74, .10), transparent 70%); }
.hero .lead { margin-top: 14px; max-width: 720px; }
.page-hero { padding: 40px 0 20px; }
.page-hero h1 { font-size: clamp(28px, 3.8vw, 40px); }
.meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--text); font-weight: 600; }

/* cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 20px 0; }
.card { background: linear-gradient(180deg, rgba(201, 162, 74, .045), transparent 60%), var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; position: relative; }
.card::before { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 197, 121, .55), transparent); }
a.card { color: var(--text); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: rgba(201, 162, 74, .6); text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(201, 162, 74, .35); }
.card .tag { font: 600 11.5px 'Inter'; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }
.card .go { margin-top: auto; padding-top: 12px; color: var(--gold-2); font-weight: 600; font-size: 14.5px; }

/* callouts */
.answer { background: linear-gradient(135deg, rgba(227, 197, 121, .16), rgba(201, 162, 74, .05) 55%, rgba(201, 162, 74, .02)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.answer .kicker { margin-bottom: 8px; display: block; }
.answer p:last-child { margin: 0; }
.disclosure { border-left: 3px solid var(--gold); background: var(--bg-2); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: 14.5px; color: #cfc7b6; margin: 20px 0; }
.note { font-size: 14px; color: var(--muted); }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); margin: 22px 0; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14.5px; }
th, td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
th { background: var(--bg-2); font-weight: 600; color: var(--gold-2); font-size: 13px; letter-spacing: .4px; }
td:first-child { font-weight: 600; color: #fff; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.y { color: var(--good); font-weight: 600; }
.n { color: var(--muted); }
.p { color: var(--warn); }

/* forms / tools */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 26px 0; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
input[type=number], input[type=text], select {
  width: 100%; background: var(--bg); border: 1px solid rgba(255,255,255,.14); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font: 500 16px 'Inter', system-ui, sans-serif; outline: none;
}
input:focus, select:focus { border-color: var(--gold); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.btn { display: inline-block; background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #a8822f); color: #15120c; border: 0; border-radius: 10px; padding: 13px 22px; font: 700 15.5px 'Inter'; cursor: pointer; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--gold-2); border: 1px solid var(--line); }

.result { display: none; margin-top: 24px; border-top: 1px solid var(--line-soft); padding-top: 22px; }
.result.show { display: block; }
.big { font: 800 52px/1 'Fraunces', serif; color: #fff; }
.big small { font-size: 22px; color: var(--muted); font-weight: 600; }
.bar { height: 10px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.bar > span { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .5s; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0; }
.stat { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px; }
.stat .v { font: 800 28px 'Fraunces', serif; color: #fff; }
.stat .l { font-size: 13px; color: var(--muted); }

/* quiz */
.q { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.q:last-child { border-bottom: 0; }
.q p { font-weight: 500; margin-bottom: 10px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale label { text-align: center; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: 9px 4px; font-size: 13px; color: var(--muted); cursor: pointer; }
.scale input { display: none; }
.scale input:checked + span { color: #15120c; }
.scale label:has(input:checked) { background: var(--gold); border-color: var(--gold); color: #15120c; font-weight: 700; }
@media (max-width: 600px) { .scale { grid-template-columns: repeat(5, 1fr); } .scale label { font-size: 11.5px; padding: 8px 2px; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.chips button { background: var(--bg); color: var(--text); border: 1px solid rgba(255,255,255,.14); border-radius: 99px; padding: 9px 16px; font: 500 14.5px 'Inter'; cursor: pointer; }
.chips button.on { background: var(--gold); color: #15120c; border-color: var(--gold); font-weight: 700; }
.qlist { counter-reset: q; list-style: none; }
.qlist li { counter-increment: q; padding: 12px 0 12px 42px; position: relative; border-bottom: 1px solid var(--line-soft); }
.qlist li::before { content: counter(q); position: absolute; left: 0; top: 11px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); font: 700 13px/26px 'Inter'; text-align: center; }

/* faq */
details { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; color: #fff; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+ '; color: var(--gold); }
details[open] summary::before { content: '– '; }
details p { margin: 10px 0 0; color: #d0c8b8; }

/* author */
.author { display: flex; gap: 16px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; margin: 40px 0; }
.author .av { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, #6b5525); flex: none; display: flex; align-items: center; justify-content: center; font: 800 20px 'Fraunces', serif; color: #15120c; }
.author p { margin: 0; font-size: 14.5px; color: var(--muted); }
.author b { color: #fff; }

/* footer */
.site-foot { margin-top: 56px; padding: 0 0 44px; font-size: 14px; color: var(--muted); }
.wave-line { height: 60px; margin-bottom: 26px; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23c9a24a' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23e3c579'/%3E%3Cstop offset='1' stop-color='%23c9a24a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)'%3E%3Cpath stroke-width='1' d='M0 30 C 360 0, 720 60, 1080 30 S 1440 10, 1440 30'/%3E%3Cpath stroke-width='.5' d='M0 40 C 360 10, 720 70, 1080 40 S 1440 20, 1440 40'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* citação científica */
.science { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 22px 0; background: linear-gradient(135deg, rgba(201, 162, 74, .08), transparent 60%), var(--bg-2); }
.science p:last-of-type { margin-bottom: 0; }
.science .src { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.science .src b { color: var(--gold-2); font-weight: 600; }
.pull { font: 600 24px/1.35 'Fraunces', serif; color: #fff; border-left: 2px solid var(--gold); padding: 4px 0 4px 20px; margin: 30px 0; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
.site-foot .managed { color: var(--text); font-weight: 600; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot nav a { color: var(--muted); }

section { padding-bottom: 8px; }

.grid.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .grid.g2 { grid-template-columns: 1fr; } }
.brand { white-space: nowrap; }
@media (max-width: 480px) { .brand { font-size: 16px; gap: 8px; } .brand-logo { width: 28px; height: 28px; } .lang a { padding: 5px 9px; } }

/* leão em destaque na home */
.hero-grid { display: grid; grid-template-columns: 1fr 210px; gap: 40px; align-items: center; }
.hero-lion { display: flex; justify-content: center; }
.hero-lion img { width: 150px; height: auto; filter: drop-shadow(0 4px 14px rgba(201, 162, 74, .18)); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 4px; }
  .hero-lion { order: -1; justify-content: flex-start; }
  .hero-lion img { width: 110px; }
}

.grid.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.g4 { grid-template-columns: 1fr; } }
.home-sec h2 { margin-top: 32px; }
.card h3 { font-size: 18px; }
.field.half { max-width: 50%; }
@media (max-width: 600px) { .field.half { max-width: none; } }

/* selo do clube */
.seal { width: 200px; height: 200px; display: block; filter: drop-shadow(0 4px 14px rgba(201, 162, 74, .14)); }
.seal text { text-transform: uppercase; }
.motto { margin: 14px 0 0; font: italic 600 17px 'Fraunces', serif; letter-spacing: .3px;
  background: linear-gradient(100deg, #f3dc9c, var(--gold) 50%, #a8822f); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) { .seal { width: 130px; height: 130px; } }

/* layout em duas colunas nas páginas internas */
.page-layout { display: grid; grid-template-columns: minmax(0, 820px) 300px; gap: 56px; justify-content: space-between; align-items: start; }
.page-main .wrap, .page-main .narrow { max-width: none; padding: 0; margin: 0; }
.page-main .page-hero::before { display: none; }
.page-aside { padding-top: 44px; }
.aside-sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.aside-box { background: linear-gradient(180deg, rgba(201, 162, 74, .05), transparent 70%), var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 18px; }
.aside-t { font: 700 11.5px 'Inter'; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.toc { list-style: none; counter-reset: t; margin: 0; }
.toc li { counter-increment: t; font-size: 14px; line-height: 1.4; padding: 6px 0 6px 22px; position: relative; border-top: 1px solid var(--line-soft); }
.toc li:first-child { border-top: 0; }
.toc li::before { content: counter(t); position: absolute; left: 0; color: var(--gold); font-weight: 700; font-size: 12.5px; }
.toc a, .aside-links a { color: #d6cfbf; }
.toc a:hover, .aside-links a:hover { color: var(--gold-2); text-decoration: none; }
.aside-links { list-style: none; margin: 0; }
.aside-links li { font-size: 14px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.aside-links li:first-child { border-top: 0; }
.aside-links li a::before { content: '→ '; color: var(--gold); }
.aside-author { display: flex; gap: 12px; align-items: flex-start; }
.aside-author img { flex: none; }
.aside-author p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.aside-author .aside-t { margin-bottom: 6px; }
h2[id] { scroll-margin-top: 84px; }
@media (max-width: 1100px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
  .page-aside { padding-top: 0; }
  .page-aside .aside-box:first-child:not(:only-child) { display: none; }
}
