/* =========================================================
   EDIT HERE: brand colours + font
   Change these variables and the whole site updates.
   ========================================================= */
:root {
  --color-bg:        #121417;   /* page background (main area) */
  --color-surface:   #1b1e23;   /* header + footer background */
  --color-text:      #ecebe6;   /* main text (warm off-white) */
  --color-muted:     #a3a39d;   /* secondary text */
  --color-accent:    #8fb8de;   /* buttons, highlights (soft blue) */
  --color-accent-fg: #0f1215;   /* text on accent buttons */
  --color-border:    #2a2e35;
  --color-hover:     #23272d;   /* hover background for outline button */

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: var(--font-body); /* swap for a Google Font if you like */

  --max-width: 1100px;
  --radius: 8px;
}

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

html, body { height: 100%; }

html { color-scheme: dark; } /* dark scrollbars & form controls */

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

img { max-width: 100%; height: auto; display: block; }

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

::selection { background: var(--color-accent); color: var(--color-accent-fg); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   MOBILE (default, < 640px)
   ========================================================= */

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 60px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}
.logo img { height: 32px; width: auto; }

.header-link {
  font-size: 0.95rem;
  color: var(--color-muted);
  text-decoration: none;
}
.header-link:hover { color: var(--color-text); }

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

h1 {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 auto 32px;
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 36em;
}

/* Buttons — stacked full width on mobile */
.actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-fg);
}
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn-secondary:hover { background: var(--color-hover); }

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-inner p { margin: 0; }

.footer-nav { display: flex; justify-content: center; gap: 20px; }
.footer-nav a { color: var(--color-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--color-text); }

/* Legal / text pages (privacy.html)
   Headings centred; body text left-aligned for readability.
   Change to "center" if you want it all centred. */
.text-page { padding: 48px 0; flex: 1; }
.text-page .container { max-width: 720px; text-align: left; }
.text-page h1,
.text-page > .container > p:first-of-type { text-align: center; }
.text-page h1 { font-size: 1.9rem; }
.text-page h2 { font-size: 1.2rem; margin-top: 2em; }

/* =========================================================
   TABLET (≥ 640px)
   ========================================================= */
@media (min-width: 640px) {
  .container { padding: 0 32px; }

  .header-inner { height: 72px; gap: 40px; }

  h1 { font-size: 3rem; }
  .lead { font-size: 1.15rem; }

  /* Buttons side by side, centred */
  .actions { flex-direction: row; flex-wrap: wrap; }
}

/* =========================================================
   DESKTOP (≥ 1024px)
   ========================================================= */
@media (min-width: 1024px) {
  .container { padding: 0 40px; }

  .hero { padding: 96px 0; }

  h1 { font-size: 4rem; }
  .lead { font-size: 1.25rem; }
}
