/* ===== Portal Ribal — tokens e base (cores amostradas dos mockups em site-ribal/conceitos) ===== */
:root {
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
  --accent: #f6a038;
  --radius: 12px;

  /* tema escuro (padrão) */
  color-scheme: dark;
  --bg: #030404;
  --sidebar: #141518;
  --sidebar-edge: #030303;
  --topbar: #0e0f10;
  --surface: #131616;
  --field: #1f2022;
  --field-border: #2a2b2e;
  --line: rgba(255, 255, 255, .10);
  --text: #fcfcfc;
  --muted: #8f959c;
  --soft: #c9ced4;
  --nav-active: #2c2f33;
  --btn-bg: #fdfdfd;
  --btn-text: #0b0b0c;
  --btn-border: transparent;
  --icon: #c5c9ce;
  --panel: linear-gradient(180deg, #121214 0%, #030304 100%);
  --logo-ink: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

:root[data-theme="light"] {
  color-scheme: light;
  --accent: #f29a14;
  --bg: #f8f7f7;
  --sidebar: #fefefe;
  --sidebar-edge: #ececee;
  --topbar: #fafafa;
  --surface: #ffffff;
  --field: #ffffff;
  --field-border: #d5d8dc;
  --line: #e4e6e9;
  --text: #0d0d0e;
  --muted: #6a7078;
  --soft: #41464c;
  --nav-active: #f1f2f3;
  --btn-bg: #ffffff;
  --btn-text: #0b0b0c;
  --btn-border: #1a1a1c;
  --icon: #2a2d31;
  --panel: #fafafb;
  --logo-ink: #0b0b0c;
  --shadow: 0 10px 28px rgba(20, 24, 30, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--btn-bg); color: var(--btn-text); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* lema em caixa alta com espaçamento largo, usado nos dois layouts */
.motto {
  font-weight: 500; font-size: 12.5px; line-height: 1.75;
  letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
}
.motto--rule { padding-left: 22px; border-left: 2px solid var(--accent); }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--icon);
  font-size: 20px;
  transition: background .2s, color .2s;
}
.theme-toggle:hover { background: var(--nav-active); color: var(--text); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

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