:root {
  color-scheme: light;
  --night: #12272e;
  --dark: #18343b;
  --ink: #162d34;
  --muted: #496166;
  --rule: #d7e2dd;
  --paper: #f2f5f2;
  --white: #fff;
  --mint: #c2e2d6;
  --orange: #ffa971;
  --red: #922e32;
  --soft-red: #f8e6e3;
  --shell: 1240px;
  font: 16px/1.58 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #d36028; outline-offset: 4px; }
.sr-only, .skip:not(:focus) {
  position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0);
  width: 1px; height: 1px; white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 10; top: 8px; left: 10px; background: var(--white); padding: .75rem; }
.shell { width: min(var(--shell), calc(100% - 5rem)); margin-inline: auto; }
.topbar { background: var(--night); color: var(--white); border-bottom: 1px solid #3b5559; }
.topbar-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand, .footer-author { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand strong, .brand small, .footer-author strong, .footer-author a { display: block; }
.brand strong { font-size: .99rem; line-height: 1.25; letter-spacing: .02em; }
.brand small { font-size: .68rem; color: var(--mint); letter-spacing: .13em; margin-top: 5px; }
.monogram {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--orange); border-radius: 8px; font-weight: 850;
  color: var(--orange); line-height: 1; letter-spacing: -.04em;
}
.topnav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.3rem); }
.topnav a { color: #e3efea; font-size: .94rem; font-weight: 620; text-decoration: none; padding-block: .65rem; }
.topnav a:is(:hover, [aria-current]) { color: var(--orange); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .55rem 1rem;
  border: 1px solid transparent; border-radius: 8px;
  text-decoration: none; font-weight: 740; line-height: 1.2;
  white-space: nowrap; transition: background-color .16s, border-color .16s;
}
.button-primary { color: #212922; background: var(--orange); }
.button-primary:hover { background: #ffc19a; }
.button-outline { color: #f6faf7; border-color: #bdd8d099; }
.button-outline:hover { background: #c2e2d61c; border-color: var(--mint); }
.button-light { color: #1b4147; background: var(--white); border-color: #bfd0c8; }
.button-light:hover { background: #e0eee7; }
.button-small { min-height: 38px; padding-inline: .8rem; font-size: .875rem; }
.button:disabled { opacity: .62; cursor: default; }

.hero { position: relative; isolation: isolate; color: var(--white); background: var(--night); overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0 0 0 26%; z-index: -2;
  background: url("./assets/gol-decolagem.webp") center 51% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, #12272e 2%, #12272e00 38%),
    linear-gradient(90deg, #12272e 21%, #12272ef6 31%, #12272eb8 43%, #12272e17 73%, #12272e25 100%);
}
.hero-layout { min-height: 502px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-copy { padding-top: clamp(3rem, 6vw, 5.7rem); max-width: 625px; }
.eyebrow, .section-kicker {
  font-weight: 780; font-size: .77rem; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.4;
}
.eyebrow { display: flex; align-items: center; gap: .72rem; color: var(--orange); }
.eyebrow span { width: 26px; height: 2px; background: var(--orange); }
.hero h1 { margin-top: .65rem; font-size: clamp(3.15rem, 7.15vw, 6.25rem); font-weight: 850; line-height: .98; letter-spacing: -.068em; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-summary { margin-top: 1.15rem; width: min(48ch, 100%); color: #e0eeea; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-actions { margin-top: 1.45rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.overview { margin-top: 2.7rem; display: flex; gap: 0; align-self: flex-start; padding-block: 1.1rem 1.45rem; }
.overview div { display: flex; align-items: center; flex-direction: row-reverse; gap: .63rem; padding-inline: 1.2rem; border-left: 1px solid #6581848a; }
.overview div:first-child { border: 0; padding-left: 0; }
.overview dd { color: var(--mint); font-size: 1.43rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.overview dt { font-size: .86rem; color: #e6eeeb; line-height: 1.18; }

.section { scroll-margin-top: 16px; padding-block: clamp(2.4rem, 5vw, 4.4rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.45rem; margin-bottom: 1.65rem; }
.section-kicker { color: #39635d; margin-bottom: .42rem; }
.section h2, .sources-area h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; font-weight: 830; letter-spacing: -.048em; }
.section-note { color: var(--muted); max-width: 40ch; }
.search-field { width: min(100%, 365px); }
.search-field label { display: block; margin-bottom: .28rem; font-size: .85rem; color: #304d50; font-weight: 720; }
.search-field input, .search-field select {
  display: block; width: 100%; padding: .65rem .78rem; min-height: 44px;
  background: var(--white); color: var(--ink); border: 1px solid #b8cbc4; border-radius: 8px;
}
.search-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #305054 50%), linear-gradient(135deg, #305054 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem;
}
.search-status { margin: 0 0 1rem; color: var(--muted); }
.chapter-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .94rem; }
.chapter-card {
  display: flex; flex-direction: column; gap: .48rem; min-height: 158px; padding: 1.05rem 1.2rem;
  background: var(--white); border: 1px solid var(--rule); border-radius: 11px;
  text-decoration: none; transition: border-color .16s, background-color .16s;
}
.chapter-card:hover { border-color: #6a9f92; background: #f9fdfb; }
.chapter-tag { align-self: start; color: #276052; background: #e1f0ea; font-size: .75rem; padding: .19rem .44rem; border-radius: 4px; font-weight: 800; letter-spacing: .04em; }
.chapter-card h3 { font-size: clamp(1.15rem, 1.9vw, 1.37rem); line-height: 1.21; letter-spacing: -.025em; }
.chapter-card p { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.chapter-card .chapter-meta { color: #3e695f; font-size: .82rem; font-weight: 720; margin-top: auto; padding-top: .35rem; }
.chapter-card:last-child { background: #e3ece5; }

.reader-back { color: #376656; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.reader-head {
  margin-block: .92rem 1.35rem; padding: clamp(1.28rem, 4vw, 2.3rem);
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  color: var(--white); background: var(--night); border-radius: 12px;
}
.reader-head .section-kicker { color: var(--orange); }
.reader-head p:last-child { color: var(--mint); margin-top: .55rem; }
.reader-layout { display: grid; grid-template-columns: minmax(195px, 255px) minmax(0, 1fr); gap: 1.7rem; align-items: start; }
.reader-nav { display: grid; gap: .23rem; position: sticky; top: 1rem; background: var(--white); border-radius: 10px; border: 1px solid var(--rule); padding: .7rem; }
.reader-nav strong { padding: .38rem .55rem; font-size: .85rem; }
.reader-nav a { text-decoration: none; color: #264d4b; padding: .45rem .55rem; border-radius: 5px; font-size: .91rem; line-height: 1.4; }
.reader-nav a:hover { background: #e4eee8; }
.lesson {
  background: var(--white); border: 1px solid var(--rule); border-radius: 11px;
  padding: clamp(1rem, 3vw, 2rem); margin-bottom: 1rem; scroll-margin-top: 1rem;
}
.lesson > h3 { font-size: clamp(1.35rem, 3vw, 2.15rem); line-height: 1.12; letter-spacing: -.043em; }
.lesson > .deck { margin-top: .38rem; color: var(--muted); }
.priority {
  display: inline-block; margin-top: .85rem; padding: .34rem .55rem;
  border-left: 3px solid var(--red); background: var(--soft-red); color: #6e2024;
  font-size: .81rem; line-height: 1.35; font-weight: 730; border-radius: 3px;
}
.method, .recall {
  padding: .78rem .95rem; margin-top: .92rem; border-radius: 7px; background: #e4f0ea;
  border-left: 3px solid #4f8a77; color: #253f3d;
}
.method strong, .recall strong { display: block; font-size: .85rem; margin-bottom: .23rem; color: #306451; }
.notes-grid { margin-block: 1.14rem; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.05rem; }
.note { border-top: 1px solid var(--rule); padding-top: .55rem; }
.note h4 { font-size: 1.02rem; margin-bottom: .23rem; line-height: 1.27; }
.note p, .recall p, .method p { font-size: .96rem; line-height: 1.56; }
.source-note { color: var(--muted); font-size: .81rem; margin-top: 1rem; }

.map-grid, .question-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.map-figure { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.map-image-link { display: block; }
.map-image-link img { width: 100%; height: auto; }
.map-caption { padding: 1rem 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.map-caption a { color: #245951; font-weight: 720; font-size: .88rem; text-underline-offset: 3px; }
.reader-content > .map-figure { margin-bottom: 1.05rem; }
.practice-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.1rem; }
.practice-bar p { color: #36564f; font-weight: 700; }
.quiz {
  padding: 1rem 1.15rem; border: 1px solid #b6c8c2; background: #eff5f0; border-radius: 10px;
  min-width: 0;
}
.quiz .quiz-context { font-size: .79rem; font-weight: 750; color: #397058; margin-bottom: .35rem; }
.quiz fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz legend { display: block; font-weight: 770; color: var(--ink); line-height: 1.43; padding: 0; margin: 0 0 .65rem; }
.quiz-option {
  display: flex; align-items: baseline; gap: .55rem; min-height: 43px;
  padding: .42rem .55rem; margin-bottom: .35rem;
  border: 1px solid #cbdbd2; background: var(--white); border-radius: 6px;
  font-size: .93rem; cursor: pointer;
}
.quiz-option:hover, .quiz-option:has(input:checked) { border-color: #669689; }
.quiz-option input { accent-color: #35725d; cursor: inherit; }
.quiz-option.is-correct { background: #d9efe0; border-color: #50936d; }
.quiz-option.is-wrong { background: #f7e4e4; border-color: #aa5c62; }
.quiz-option b { font-size: .85rem; }
.quiz .button { margin-top: .45rem; }
.quiz-feedback { margin-top: .65rem; color: #284b41; font-size: .94rem; }
.quiz-feedback strong { display: block; }
.quiz-feedback .wrong-heading { color: #862c34; }

.sources-area { background: #e3ece6; border-top: 1px solid #cbd9d1; padding-block: clamp(2.5rem, 5vw, 4rem); }
.sources-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: start; }
.sources-area h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); }
.sources-area p { margin-top: .72rem; color: #2e4747; max-width: 70ch; }
.official-links { display: flex; flex-wrap: wrap; gap: .45rem 1.15rem; margin-top: .9rem; }
.official-links a { font-size: .9rem; color: #245951; font-weight: 720; text-underline-offset: 3px; }
.sources-area blockquote { margin: 0; padding: .85rem 1.2rem 1rem; border-left: 2px solid #b46946; background: #edf3ee; border-radius: 6px; }
.sources-area blockquote p { margin: 0; font: italic clamp(1.08rem, 2vw, 1.29rem)/1.5 Georgia, serif; }
.sources-area blockquote cite { display: block; color: #5d5142; margin-top: .44rem; font-size: .82rem; font-style: normal; }
.site-footer { color: #e7f1ea; background: var(--night); }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.35rem; }
.footer-author strong { font-size: .94rem; }
.footer-author a { color: var(--mint); font-size: .85rem; text-underline-offset: 2px; }
.traffic { display: flex; gap: 1.25rem; }
.traffic div { display: grid; }
.traffic strong { color: var(--mint); font-size: 1.18rem; font-variant-numeric: tabular-nums; line-height: 1.28; }
.traffic span { color: #dbe8e2; font-size: .79rem; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 2.5rem); }
  .topbar-inner { gap: .8rem; min-height: 72px; }
  .topnav { gap: 1rem; }
  .hero-photo { left: 11%; background-position: 58% 50%; }
  .hero::after { background: linear-gradient(0deg, #12272e 1%, #12272e00 40%), linear-gradient(90deg, #12272e 12%, #12272ed4 41%, #12272e27 100%); }
  .hero-layout { min-height: 470px; }
  .chapter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reader-layout { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .reader-nav { position: static; }
  .sources-layout { gap: 1.4rem; }
}
@media (max-width: 575px) {
  .shell { width: calc(100% - 2rem); }
  .topbar-inner { padding-block: .65rem .25rem; display: grid; grid-template-columns: 1fr auto; gap: .55rem; }
  .topbar .pdf-link { grid-column: 2; grid-row: 1; }
  .topnav { grid-column: 1 / -1; justify-content: space-between; gap: .28rem; }
  .topnav a { flex: 1; text-align: center; padding-block: .45rem; font-size: .88rem; }
  .monogram { width: 36px; height: 36px; }
  .hero-photo { inset: 0 0 auto; height: 254px; background-position: center 61%; }
  .hero::after { background: linear-gradient(0deg, #12272e 50%, #12272ed0 70%, #12272e15 100%); }
  .hero-layout { min-height: auto; }
  .hero-copy { padding-top: 10rem; }
  .hero h1 { font-size: clamp(3.15rem, 12.3vw, 4.7rem); }
  .hero-actions { gap: .5rem; }
  .hero-actions .button { font-size: .88rem; padding-inline: .78rem; }
  .overview { margin-top: 1.15rem; width: 100%; justify-content: space-between; }
  .overview div { gap: .3rem; padding-inline: .5rem; }
  .overview dt { font-size: .74rem; }
  .overview dd { font-size: 1.17rem; }
  .section-head { display: grid; align-items: start; gap: 1rem; }
  .chapter-grid, .map-grid, .question-grid, .sources-layout, .notes-grid { grid-template-columns: minmax(0, 1fr); }
  .chapter-card { min-height: 128px; }
  .reader-head { flex-direction: column; align-items: start; }
  .map-caption { padding: .8rem; }
  .footer-layout { flex-direction: column; align-items: flex-start; }
  .traffic { padding-top: .55rem; border-top: 1px solid #57716e; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.lesson-practice { margin-top: 1rem; }
