/* OneWorld History mission page. Tokens from the live product stylesheet. */
:root {
  --bg: #0b1020;
  --card: rgba(14, 20, 38, .82);
  --line: rgba(255, 255, 255, .10);
  --text: #e8ecf6;
  --muted: #9aa6c3;
  --accent: #ffb547;
  --accent-ink: #0b1020;
  --link: #ffb547;
  --beta-bg: rgba(255, 181, 71, .10);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 40rem;
  --focus: 2px solid var(--accent);
}
html.theme-light,
body.theme-light {
  --bg: #cfe4f7;
  --card: rgba(255, 253, 246, .90);
  --line: rgba(40, 52, 90, .16);
  --text: #1d2638;
  --muted: #56617d;
  --accent: #e08a00;
  --accent-ink: #0b1020;
  --link: #8a4b00;
  --beta-bg: #fffdf6;
}
@media (prefers-color-scheme: light) {
  html:not(.theme-set):not(.theme-light):not([data-theme="dark"]) {
    /* Head script sets data-theme before paint; this is a fallback if JS is off. */
  }
  html:not([data-theme="dark"]):not([data-theme="light"]) {
    --bg: #cfe4f7;
    --card: rgba(255, 253, 246, .90);
    --line: rgba(40, 52, 90, .16);
    --text: #1d2638;
    --muted: #56617d;
    --accent: #e08a00;
    --accent-ink: #0b1020;
    --link: #8a4b00;
    --beta-bg: #fffdf6;
  }
}

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

html { color-scheme: dark; }
html.theme-light { color-scheme: light; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
body {
  min-height: 100vh;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 10001;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
}
.skip:focus {
  top: 0.75rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  max-width: calc(var(--measure) + 3rem);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.theme-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
}
.theme-seg button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}
.theme-seg button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.theme-seg button:hover {
  color: var(--text);
}
.theme-seg button[aria-pressed="true"]:hover {
  color: var(--accent-ink);
}

main {
  max-width: calc(var(--measure) + 3rem);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}

.hero { margin-bottom: 1.75rem; }
.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.tagline {
  margin: 0 0 1.15rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.lede {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.beta {
  margin: 0 0 2.5rem;
  padding: 0.95rem 1.05rem;
  background: var(--beta-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.beta p { margin: 0; }

section { margin: 0 0 2.6rem; }
h2 {
  margin: 0 0 0.85rem;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 750;
}
section p { margin: 0 0 1rem; }
section p:last-child { margin-bottom: 0; }

#values ul {
  margin: 0;
  padding-left: 1.15rem;
}
#values li { margin: 0 0 0.7rem; }
#values li:last-child { margin-bottom: 0; }

.signoff {
  margin: 1.1rem 0 0.35rem;
  font-weight: 650;
}
.founder-line {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.cta-block p { margin: 0 0 1rem; }
.cta {
  display: inline-block;
  margin-top: 0.15rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  border: 0;
}
.cta:hover { filter: brightness(1.05); }
.cta:focus-visible { outline-offset: 3px; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }
.cta { text-decoration: none; }

.site-footer {
  max-width: calc(var(--measure) + 3rem);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0 0 0.6rem; }
.site-footer p:last-child { margin-bottom: 0; }

/* Login gate — copied from the live product stylesheet so the card matches .com. */
body.preview-locked > :not(#owh-gate):not(script) { visibility: hidden !important; pointer-events: none !important; }
.owh-gate {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(ellipse at 50% 35%, #16213f 0%, var(--bg) 70%);
  color: var(--text); font-family: var(--font);
}
.owh-gate-card {
  width: min(360px, 100%);
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  backdrop-filter: blur(12px);
}
.owh-gate-logo { font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.owh-gate-logo::before {
  content: "";
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 12px var(--accent);
}
.owh-gate-sub { color: var(--muted); font-size: 13px; margin-top: -6px; }
.owh-gate label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.owh-gate input[type=text],
.owh-gate input[type=password] {
  font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 11px; outline: none;
}
.owh-gate input:focus { border-color: var(--accent); }
.owh-gate label.owh-gate-remember {
  flex-direction: row; align-items: center; gap: 8px;
  text-transform: none; letter-spacing: 0; font-size: 13px; cursor: pointer;
}
.owh-gate-remember input { accent-color: var(--accent); }
.owh-gate-err { min-height: 18px; color: #ff7a8a; font-size: 13px; }
.owh-gate-err:empty { min-height: 0; }
.owh-gate button {
  font: inherit; font-weight: 700; font-size: 15px; padding: 10px;
  border: 0; border-radius: 8px;
  background: var(--accent); color: #0b1020; cursor: pointer;
}
.owh-gate button:disabled { opacity: .6; cursor: wait; }
.owh-gate-note {
  color: var(--muted); font-size: 11.5px; line-height: 1.4;
  border-top: 1px solid var(--line); padding-top: 10px;
}
/* Match .com: the gate overlay stays navy even in light mode. */
body.theme-light .owh-gate {
  background: radial-gradient(ellipse at 50% 35%, #16213f 0%, #0b1020 70%);
}

@media (max-width: 420px) {
  body { font-size: 1.0625rem; }
  .header-inner { padding: 0.75rem 1rem; }
  main { padding: 1.6rem 1rem 2.4rem; }
  .site-footer { padding: 1.2rem 1rem 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
