/*
 * PREJUDGE site. Same tokens as the app (src/ui/theme.ts): black, one accent (#C8102E), 1px borders, radius 7,
 * spacing on the 8 / 16 / 24 / 32 scale.
 * Barlow Condensed for headings, Barlow for body. Flat surfaces, hard edges, nothing soft behind the type.
 */

:root {
  --black: #080808;
  --black2: #111111;
  --black3: #181818;
  --white: #f2f2f2;
  --gray-light: #9a9a9a;
  --gray-brand: #686868;
  --red: #C8102E;
  --border: rgba(255, 255, 255, 0.065);
  --border-strong: #262626;
  --radius: 7px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Barlow, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

/* Headings: condensed, uppercase, letterspaced, like the app. */
h1, h2, h3, .wordmark {
  font-family: 'Barlow Condensed', Barlow, system-ui, sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: 56px; letter-spacing: 1px; }
h2 { font-size: 26px; letter-spacing: 2px; font-weight: 700; margin-top: 32px; }
h3 { font-size: 20px; letter-spacing: 1.5px; font-weight: 700; margin-top: 24px; }

p { margin: 16px 0; }

a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--red); }

/* Header and footer. On a phone the nav drops under the wordmark instead of breaking across two ragged lines. */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-size: 24px;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--white);
}

.wordmark:hover { color: var(--white); }

.top nav { margin-left: auto; }

.top nav a {
  font-family: 'Barlow Condensed', Barlow, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--gray-light);
  margin-left: 16px;
}

.top nav a:hover { color: var(--red); }

footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--gray-brand);
  font-size: 15px;
}

footer a { color: var(--gray-light); }

footer nav a { margin-right: 16px; }

/* Landing */
.hero { padding: 32px 0 24px; }

.lead {
  font-size: 22px;
  color: var(--white);
  margin: 16px 0 0;
}

.rule {
  width: 64px;
  height: 3px;
  background: var(--red);
  border: 0;
  margin: 24px 0 0;
}

ul.features {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

ul.features li {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  font-size: 18px;
}

ul.features li:last-child { border-bottom: 1px solid var(--border); }

.status {
  margin-top: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--black2);
  padding: 24px 16px;
}

.status strong {
  font-family: 'Barlow Condensed', Barlow, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 20px;
  font-weight: 700;
  display: block;
}

.status p { margin: 8px 0 0; color: var(--gray-light); }

.accent { color: var(--red); }

/* Text pages */
.note {
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--black2);
  padding: 16px;
  margin: 24px 0;
}

.note strong { color: var(--red); }

.meta { color: var(--gray-brand); font-size: 15px; }

main ul, main ol { padding-left: 24px; }

main li { margin: 8px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 16px;
}

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

th {
  font-family: 'Barlow Condensed', Barlow, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-light);
  font-weight: 700;
  background: var(--black3);
}

.faq { border-top: 1px solid var(--border); padding-top: 8px; }

.faq:last-of-type { border-bottom: 1px solid var(--border); padding-bottom: 16px; }

@media (max-width: 420px) {
  .top nav { margin-left: 0; width: 100%; }
  .top nav a { margin: 0 16px 0 0; }
}

@media (min-width: 640px) {
  .wrap { padding: 32px 32px 32px; }
  h1 { font-size: 72px; }
  body { font-size: 18px; }
}
