/* One stylesheet for every page. Light mode follows the auth emails
   (supabase/functions/send-email/templates/base.ts); dark mode follows the
   app's dark theme. Orbitron is self-hosted: loading it from Google Fonts
   would hand every visitor's IP to Google. */

@font-face {
  font-family: "Orbitron";
  src: url("assets/orbitron.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #f3f1ec;
  --card: #ffffff;
  --line: #e2e5de;
  --panel: #f2f7ef;
  --ink: #202820;
  --text: #354135;
  --muted: #5f6b5e;
  --link: #8b4b00;
  --accent: #ee8700;
  --on-accent: #172017;
  --techno: "Orbitron", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --card: #121212;
    --line: #2b2f2a;
    --panel: #1a2019;
    --ink: #f2f2f2;
    --text: #e0e0e0;
    --muted: #a3aba0;
    --link: #ffb453;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  border-top: 5px solid var(--accent);
  background: var(--page);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--link);
  overflow-wrap: anywhere;
}

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

/* Header */

.top {
  padding-top: 28px;
  text-align: center;
}

/* The wordmark PNG (shared with the emails) has an opaque white background and
   black outlines, so it sits on a white plate in both themes. */
.logo img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ffffff;
}

.tagline {
  margin: 10px 0 0;
  color: var(--muted);
  font: 600 11px/1.6 var(--techno);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin: 18px 0 24px;
  font: 600 12px/2 var(--techno);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

nav a {
  color: var(--ink);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Content */

.card {
  margin-bottom: 20px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--techno);
  line-height: 1.3;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(20px, 5.5vw, 26px);
}

h2 {
  margin: 32px 0 10px;
  font-size: 17px;
}

h3 {
  margin: 22px 0 6px;
  font-size: 14px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 4px;
}

/* Home */

.hero {
  text-align: center;
}

.wallet {
  display: block;
  width: 168px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 12px;
}

.hero h1 {
  font-size: clamp(17px, 4.8vw, 22px);
  line-height: 1.45;
}

.soon {
  margin: 0;
  color: var(--ink);
  font: 700 13px/1.6 var(--techno);
  letter-spacing: 0.6px;
}

/* Panels: deletion options, support contacts */

.options,
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
  margin: 22px 0;
}

.option,
.contact {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.option h2 {
  margin-top: 0;
}

.option > :last-child {
  margin-bottom: 0;
}

.button {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 13px/1.3 var(--techno);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.contact {
  display: block;
  text-decoration: none;
}

.contact span {
  display: block;
  color: var(--muted);
  font: 600 11px/1.6 var(--techno);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Footer */

footer {
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer p {
  margin: 0 0 4px;
}
