:root {
  --bg: #0b0a08;
  --bg-raised: #151310;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2efe6;
  --muted: #a9a497;
  --faint: #6f6b62;
  --brand: #f5ce13;
  --brand-deep: #c9a608;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

/* ---- the landing page: the mark in the dark ---- */

body.splash { position: relative; background: #050504; }

.veil {
  position: relative;
  flex: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 96px;
  overflow: hidden;
  isolation: isolate;
}

.veil-art {
  position: absolute;
  inset: -4%;
  z-index: -2;
  opacity: 0;
  animation: veil-in 4s ease-out 0.4s forwards, drift 60s ease-in-out infinite alternate;
}

.veil-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  filter: grayscale(0.55) contrast(1.05) brightness(0.8);
}

.veil::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 50% 48%, rgba(5, 5, 4, 0.55), rgba(5, 5, 4, 0.93) 72%, #050504 100%),
    linear-gradient(to bottom, rgba(5, 5, 4, 0.6), rgba(5, 5, 4, 0) 35%, rgba(5, 5, 4, 0) 65%, #050504);
}

.veil-mark { margin: 0; }

.veil-mark img {
  display: block;
  width: min(440px, 72vw);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 40px rgba(245, 206, 19, 0.12)) drop-shadow(0 12px 30px rgba(0, 0, 0, 0.8));
  animation: mark-in 2.4s ease-out 0.2s forwards;
}

@keyframes veil-in { to { opacity: 0.6; } }
@keyframes mark-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); } }

@media (prefers-reduced-motion: reduce) {
  .veil-art { animation: none; opacity: 0.6; }
  .veil-mark img { animation: none; opacity: 1; }
}

.site-footer.quiet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 0;
  opacity: 0.55;
  transition: opacity 0.3s;
}

.site-footer.quiet:hover, .site-footer.quiet:focus-within { opacity: 1; }

/* ---- the legal pages ---- */

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 10, 8, 0.92);
}

.topbar-inner {
  max-width: 896px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar img { display: block; height: 44px; width: auto; }

.topbar a.back { color: var(--muted); font-size: 14px; }
.topbar a.back:hover { color: var(--brand); text-decoration: none; }

.legal {
  flex: 1;
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  color: #d4d0c6;
}

.legal h1 {
  margin: 0 0 32px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 56px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
}

.legal p, .legal ul, .legal table { margin: 0 0 24px; }

.legal h2 {
  margin: 40px 0 20px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
}

.legal b { font-weight: 600; color: var(--text); }
.legal u { text-decoration: underline; }
.legal ul { padding-left: 24px; }
.legal li { margin: 0 0 8px; }
.legal li::marker { color: var(--brand); }

.legal .table-wrap { overflow-x: auto; margin: 0 0 24px; }
.legal table { width: 100%; min-width: 480px; border-collapse: collapse; margin: 0; font-size: 15px; }
.legal th, .legal td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { color: var(--text); font-weight: 600; background: var(--bg-raised); }

.legal address { font-style: normal; margin: 0 0 24px; }

@media (max-width: 600px) {
  .topbar-inner { padding: 12px 16px; }
  .topbar img { height: 36px; }
  .legal { padding: 36px 16px 72px; }
}

/* ---- the footer, every page ---- */

.site-footer { border-top: 1px solid var(--line); }

.site-footer-inner {
  max-width: 896px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--brand); text-decoration: none; }
.site-footer small { color: var(--faint); font-size: 12px; letter-spacing: 0.03em; }

@media (max-width: 600px) {
  .site-footer-inner { padding: 28px 16px; flex-direction: column; text-align: center; }
  .site-footer nav { justify-content: center; }
}
