/* Rebirth Online site: one stylesheet, system fonts only, no third-party anything.
   Palette from the game's UI (Docs/Plan: UI palette): deep navy #16234A, gold #F0BB1E, cream #F3E6C8, blue #2E90F0.
   Text colours are checked for at least 4.5:1 contrast in both themes. */

:root {
  color-scheme: light dark;
  --navy: #16234A;
  --gold: #F0BB1E;
  --cream: #F3E6C8;
  --blue: #2E90F0;

  --bg: #FBF7EE;
  --surface: #FFFFFF;
  --text: #16234A;
  --muted: #4A5675;
  --link: #1A5FA8;
  --rule: #E4D7B5;
  --accent: #8A6A00;
  --th: #F3E6C8;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1834;
    --surface: #16234A;
    --text: #F3E6C8;
    --muted: #C9BFA6;
    --link: #8CC4FF;
    --rule: #2B3B6B;
    --accent: #F0BB1E;
    --th: #1D2D5C;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-wrap: break-word;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Skip link: hidden until focused. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy);
}

/* Header: the game's navy band with a gold edge, in both themes. */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-decoration: none;
}

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  display: inline-block;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover {
  border-bottom-color: var(--cream);
}

.site-header nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* The studio emblem beside the wordmark (owner, 2026-10-13). It is drawn on the header's navy in both themes, so it needs
   no backing. The width and height attributes keep its square, and the stylesheet sets the size. */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-emblem {
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
}

@media (min-width: 720px) {
  .brand-emblem {
    width: 64px;
    height: 64px;
  }
}

main {
  padding-top: 20px;
  padding-bottom: 48px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin: 0.4em 0 0.4em;
}

h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.5em;
  padding-top: 0.6em;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.15rem;
  margin: 1.6em 0 0.4em;
}

p {
  margin: 0.8em 0;
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin: 0.35em 0;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

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

strong {
  font-weight: 650;
}

/* The effective date and seller line at the top of each legal page. */
.meta {
  margin: 0.2em 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.meta strong {
  color: var(--text);
}

.byline {
  margin-top: 0;
  font-weight: 600;
  color: var(--accent);
}

/* "On this page" */
.toc {
  margin: 24px 0;
  padding: 12px 16px 8px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.toc-title {
  margin: 0 0 0.3em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.toc ol {
  margin: 0 0 0.4em;
}

.toc li {
  margin: 0.2em 0;
}

/* Tables: two columns, readable on a phone; the wrapper scrolls on its own if ever needed, never the page. */
.table-wrap {
  margin: 1em 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--rule);
}

thead th {
  background: var(--th);
}

tbody th {
  width: 45%;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 20px 0 32px;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.site-footer p {
  margin: 0.3em 0;
}

/* A small emblem on its own row below the footer's links. It is decorative (alt=""), because the header already names it,
   and it stays apart from the seller line so the alias never reads as the seller (legal-review-checklist B1). The 404 page's
   footer is the seller line alone, so it has none. */
.footer-mark {
  margin: 12px 0 0;
}

.footer-emblem {
  display: block;
  width: 28px;
  height: 28px;
}

/* Home page */
.hero {
  padding: 28px 0 4px;
}

.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.home h1 {
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  margin: 0.15em 0 0.3em;
}

.lede {
  max-width: 34em;
  font-size: 1.15rem;
}

.status {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.cards li {
  margin: 0;
}

.card {
  display: block;
  height: 100%;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
}

.card:hover {
  border-color: var(--link);
  border-top-color: var(--gold);
}

.card-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--link);
}

.card-text {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  th,
  td {
    padding: 8px 10px;
  }
}

@media print {
  .skip,
  .site-header nav,
  .toc {
    display: none;
  }

  .site-header {
    background: none;
    border-bottom: 1px solid #000;
  }

  .brand {
    color: #000;
  }

  body {
    background: #fff;
    color: #000;
  }
}
