/* ---------------------------------------------------------------------------
   Big T Games — theme for the public Listmonk pages.

   These pages are served from adfreebybigt.com via the nginx proxy, so to a
   subscriber they ARE the website. They must not look like a different site.

   Tokens below are copied from Website/src/styles/global.css. Keep them in
   sync: if the site's palette changes, change it here too, or the double
   opt-in flow silently drifts away from the brand it is part of.

   Loaded from Listmonk's `appearance.public.custom_css` setting, which is
   served at /public/custom.css AFTER /public/static/style.css, so these rules
   win without needing !important.
--------------------------------------------------------------------------- */

:root {
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-text: #18181b;
  --color-text-muted: #52525b;
  --color-border: #e4e4e7;
  --color-accent: #1e40af;
  --color-accent-hover: #1d3a8a;
  --color-focus: #2563eb;

  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --space-1: .25rem; --space-2: .5rem;  --space-3: .75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem;   --space-12: 3rem;

  --radius-sm: 4px; --radius-md: 8px;
  --max-layout-width: 1100px;
  --max-content-width: 68ch;
}

/* The site follows the reader's system theme. These pages must too, or a
   dark-mode visitor gets a white flash from "the same" site. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f0f11;
    --color-surface: #18181b;
    --color-text: #f4f4f5;
    --color-text-muted: #a1a1aa;
    --color-border: #27272a;
    --color-accent: #93c5fd;
    --color-accent-hover: #bfdbfe;
    --color-focus: #60a5fa;
  }
}

html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Listmonk centres content in .wrap; the site uses .container at a wider max. */
.wrap, .container {
  width: 100%;
  max-width: var(--max-layout-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  background: none;
  box-shadow: none;
  border: 0;
}

h1, h2, h3 {
  margin: 0 0 var(--space-4);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-4); max-width: var(--max-content-width); }

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 120ms ease;
}
a:hover { color: var(--color-accent-hover); }
a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- site header ------------------------------------------------------- */
.bigt-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.bigt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.bigt-brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.bigt-brand:hover { color: var(--color-accent); }
.bigt-brand .by {
  font-weight: 400;
  color: var(--color-text-muted);
  padding: 0 .2em;
  font-size: .9em;
}
.bigt-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.bigt-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}
.bigt-nav a:hover { color: var(--color-text); }

/* ---- the card the actual form sits in ---------------------------------- */
.bigt-main { padding: var(--space-12) 0; }
.bigt-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  max-width: 640px;
}
.bigt-card > :last-child { margin-bottom: 0; }

/* ---- forms ------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%;
  max-width: 24rem;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}
label { color: var(--color-text); }

/* Accent on surface reads correctly in BOTH themes: white-on-navy in light,
   near-black-on-pale-blue in dark. One rule, no per-theme override. */
button, .button, input[type="submit"] {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-surface);
  border: 0;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease;
}
button:hover, .button:hover, input[type="submit"]:hover {
  background: var(--color-accent-hover);
  color: var(--color-surface);
}

ul.lists { list-style: none; padding-left: 0; }
ul.lists li { margin-bottom: var(--space-2); }

/* Listmonk's own message/error banners */
.message, .error, .success {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--color-surface);
}

/* ---- site footer ------------------------------------------------------- */
.bigt-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: var(--space-12);
  padding: var(--space-12) 0;
  color: var(--color-text-muted);
  font-size: .9rem;
  text-align: left;
}
.bigt-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.bigt-footer p { margin: 0 0 var(--space-1); max-width: none; }
/* The brand line in the accent token. NOT the apps' library gold #D4A843 --
   gold as text fails contrast on the light ground. */
.bigt-tagline { color: var(--color-accent); font-weight: 600; }
.bigt-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.bigt-footer a { color: var(--color-text-muted); }
.bigt-footer a:hover { color: var(--color-text); }

@media (max-width: 640px) {
  .bigt-bar { justify-content: center; }
  .bigt-card { padding: var(--space-6); }
}
