/* Paleta do site principal para Um Ano de Presença. */
:root {
  color-scheme: light;
  --bg: #f7f3eb;
  --surface: #fffdf8;
  --card: #e6ebdf;
  --gold: #46533f;
  --text: #27312b;
  --muted: #4f5b50;
  --line: #d5d9ce;
  --focus: #795d2a;
  --control-line: #798475;
  --button-bg: #46533f;
  --button-hover: #28312d;
  --button-ink: #fffdf8;
  --hero-bg: #e6ebdf;
  --star: #805516;
  --error: #9b362c;
}

html.contrast {
  color-scheme: dark;
  --bg: #111b15;
  --surface: #1a261e;
  --card: #24362b;
  --gold: #efd59b;
  --text: #fffdf3;
  --muted: #d6e3d7;
  --line: #52685a;
  --focus: #ffe7a8;
  --control-line: #a0b5a4;
  --button-bg: #efd59b;
  --button-hover: #ffe7a8;
  --button-ink: #18241b;
  --hero-bg: #1a2920;
  --star: #efd59b;
  --error: #ffaca3;
}

.top { background: var(--surface); }
.brand small { letter-spacing: .15em; }
.mark { background: var(--card); border-color: var(--control-line); }
.nav-sign, .journey-access button, button:not(.button), .ghost,
input, textarea, select { border-color: var(--control-line); }

.button, .skip, .portal-float {
  background: var(--button-bg);
  color: var(--button-ink);
  border-color: var(--button-bg);
}
.button:hover, .portal-float:hover {
  background: var(--button-hover);
  color: var(--button-ink);
  border-color: var(--button-hover);
}
.portal-float, .product img { box-shadow: 0 .55rem 1.7rem #17241e33; }
.flash.error { border-color: var(--error); }
.journey article {
  border-block-start: 3px solid var(--gold);
}

.hero {
  background: var(--hero-bg);
  border-block: 1px solid var(--line);
  display: block;
  min-height: 0;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  width: min(var(--measure), 100%);
  margin-inline: auto;
  padding: clamp(1.25rem, 4.8vw, 4rem) clamp(1rem, 3vw, 1.75rem);
}
.hero .hero-inner {
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.hero h1 {
  color: var(--text);
  font-size: clamp(2.5rem, 6.3vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.hero .hero-photo {
  position: static;
  aspect-ratio: 4 / 4.4;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 34%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 .6rem 1.75rem #1c2a2433;
  opacity: 1;
  z-index: auto;
}
.hero .hero-meta { margin-top: 1.2rem; }
.hero .hero-meta span::before { color: var(--star); }

@media (max-width: 700px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero .hero-photo {
    aspect-ratio: 16 / 10;
    object-position: center 33%;
  }
}

.pixel-window .pixel-play {
  color: #fffdf3;
  background: #27352b;
  border-color: #bdcbbd;
}
.pixel-window .pixel-play:hover { border-color: #efd59b; }
.pixel-action { box-shadow: 0 3px 0 var(--control-line); }
.portrait-scene .pixel-window video { image-rendering: auto; object-position: center; }
.portrait-scene .pixel-scene-caption { background: linear-gradient(transparent, #111d17f5); }
.portrait-scene .pixel-title { font: 650 clamp(.95rem, 2.7vw, 1.3rem)/1.25 system-ui, sans-serif; text-shadow: 0 1px 4px #0d140e; }

.lesson-stars input:checked + label,
.lesson-stars label:has(~ input:checked),
.lesson-stars label:hover,
.lesson-stars label:has(~ label:hover) { color: var(--star); }

.admin-home { padding-top: clamp(1.35rem, 4vw, 2.8rem); }
.admin-home > h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.4rem); }
.admin-nav.admin-nav-grouped {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  align-items: start;
  gap: .6rem;
  margin: 0 0 1rem;
}
.admin-nav-grouped > details {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--card);
}
.admin-nav-grouped > .admin-group-current { border-color: var(--gold); }
.admin-nav-grouped summary {
  padding: .65rem .75rem;
  font-weight: 650;
  cursor: pointer;
}
.admin-nav-grouped ul {
  list-style: none;
  margin: 0;
  padding: .35rem;
  border-top: 1px solid var(--line);
}
.admin-nav-grouped a {
  display: block;
  overflow-wrap: anywhere;
}
.admin-nav-grouped a[aria-current="page"] { font-weight: 750; }
.admin-current-section {
  margin: 0 0 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}
@media (min-width: 50rem) {
  .admin-nav-grouped ul {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 5;
    border: 1px solid var(--line);
    border-radius: .45rem;
    background: var(--card);
    box-shadow: 0 .75rem 1.5rem rgb(0 0 0 / .18);
  }
}
