/* Obra em Corte — shared tokens and components (sales page, login, members area).
   The page reads as a cut-away of the ground: sky, grass, soils, gravel, rock, groundwater.
   Colours come from the series' "vivo" look; Nunito is the series' caption font. */

:root {
  --sky: #3e8ede;
  --sky-deep: #2a6fbd;
  --sky-pale: #e3f0fc;
  --grass: #5db33a;
  --grass-deep: #3f8a24;
  --topsoil: #6b3420;
  --soil: #c2602f;
  --soil-light: #d9844f;
  --gravel: #b9b4a8;
  --gravel-light: #dcd8cf;
  --rock: #4a4744;
  --water: #bfe6ef;
  --water-deep: #2b8fa6;
  --caption: #ffd23f;
  --ink: #23170f;
  --ink-soft: #4e3f35;
  --paper: #ffffff;
  --line: rgba(35, 23, 15, 0.16);
  --ok: #2f8f3a;
  --danger: #b3261e;
  --focus: #ffd23f;

  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;
  --measure: 66ch;
  --gutter: 16px;
  --radius-sign: 6px;
  --radius-panel: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern", "liga";
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--sky-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--caption); color: var(--ink); padding: 8px 12px; border-radius: 6px; font-weight: 800;
}
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 680px); margin-inline: auto; }

/* The caption treatment: heavy rounded type with a dark outline, like the reels' one-word captions. */
.caption-type {
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.05;
  -webkit-text-stroke: 0.06em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0 var(--ink);
}
.caption-type mark,
mark.hl {
  background: none;
  color: var(--caption);
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 900; letter-spacing: -0.01em; }
h1 { font-size: clamp(var(--step-4), 9vw, var(--step-5)); }
h2 { font-size: clamp(var(--step-3), 6.5vw, var(--step-4)); }
h3 { font-size: var(--step-1); font-weight: 800; }
p { margin: 0 0 1em; }

/* Buttons: a construction-site sign, yellow and solid. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0.7em 1.4em;
  font: inherit; font-weight: 900; font-size: var(--step-1); line-height: 1.1; text-decoration: none;
  color: var(--ink); background: var(--caption);
  border: 3px solid var(--ink); border-radius: var(--radius-sign);
  box-shadow: 0 5px 0 var(--ink);
  cursor: pointer; transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { color: var(--ink); background: #ffdc66; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn--ghost { background: #fff; }
.btn--small { min-height: 40px; font-size: var(--step-0); padding: 0.45em 1em; box-shadow: 0 3px 0 var(--ink); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Signs: the in-world placards ("EM BREVE: POSTO") used for proof and labels. */
.sign {
  display: inline-block; background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: var(--radius-sign);
  padding: 0.5em 0.8em; font-weight: 800;
  box-shadow: 0 4px 0 rgba(35, 23, 15, 0.35);
}
.sign__head { display: block; font-size: var(--step--1); font-weight: 900; color: var(--soil); }

/* Panels for long reading (members area, FAQ): white, quiet. */
.panel {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-panel);
  border: 2px solid var(--line);
  padding: clamp(18px, 4vw, 32px);
}

/* Callouts inside lessons. */
.note { border-left: 6px solid var(--sky); background: var(--sky-pale); padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 1.2em 0; }
.note--warn { border-color: var(--soil); background: #fbe9df; }
.note--ok { border-color: var(--grass); background: #e8f5e1; }
.note > :last-child { margin-bottom: 0; }

/* A copyable prompt or template. */
.prompt {
  position: relative; margin: 1.2em 0; background: #1f2a33; color: #f3f6f8;
  border-radius: 12px; padding: 44px 16px 16px;
  font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.prompt__copy {
  position: absolute; top: 8px; right: 8px;
  font: inherit; font-weight: 800; font-size: var(--step--1);
  background: var(--caption); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px;
  padding: 4px 10px; cursor: pointer;
}
.prompt__label { position: absolute; top: 12px; left: 16px; font-weight: 800; font-size: var(--step--1); color: #9fb4c4; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 800; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

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