/* Public pages on facts.didja.dk: front page, privacy and support. Didja tokens, dark only. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #1b1f3b;
  --surface: #2a2f55;
  --border: #3a4070;
  --text: #f4f1ea;
  --muted: #b9bcd4;
  --yellow: #ffd23f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--yellow);
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: max(32px, env(safe-area-inset-top)) 20px 48px;
}

h1,
h2 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}

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

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--surface);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 20px;
}

.mark span {
  color: var(--yellow);
}

.hero {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 24px;
}

.badge {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

.badge-soon {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 20px max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

footer a {
  color: var(--muted);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

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