/* Lure Anglers Society theme - loaded AFTER app.css when config brand.theme_css
 * points here. Only overrides; app.css stays the single source of layout.
 *
 * Palette taken from lureanglers.co.uk and the LAS logo:
 *   charcoal #333333 nav, #232323/#2e2e2e dark sections, gold #d5a736.
 * #d5a736 is too light for text on white (about 2:1), so text and links on
 * light backgrounds use a deeper gold; the bright gold is kept for fills,
 * rules and anything on charcoal. Font: Rubik (self-hosted, CSP is 'self').
 */

@font-face {
  font-family: "Rubik";
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-var.woff2") format("woff2");
}

:root {
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #f2f1ee;
  --bg-2: #e7e5e0;
  --surface: #ffffff;
  --surface-2: #f7f6f3;
  --ink: #1f1f1f;
  --ink-soft: #5d5a54;
  --line: #dcd9d2;

  --accent: #2e2e2e;          /* charcoal buttons, white text */
  --accent-2: #8a6a12;        /* deep gold - text-safe on white */
  --accent-ink: #ffffff;
  --accent-tint: rgba(213, 167, 54, 0.12);
  --red: #d5a736;             /* the BPFT "flag red" slot becomes LAS gold */
  --red-ink: #1f1f1f;
  --las-gold: #d5a736;
  --las-gold-text: #8a6a12;

  --deep-1: #161616;          /* header: near-black -> charcoal */
  --deep-2: #232323;
  --deep-3: #333333;

  --water-1: #b9b3a3;         /* footer bands: warm greys up to charcoal */
  --water-2: #6e6a62;
  --water-deep: #232323;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px -8px rgba(0, 0, 0, 0.18);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 32px -10px rgba(0, 0, 0, 0.32);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --bg-2: #161616;
    --surface: #1d1d1d;
    --surface-2: #242424;
    --ink: #ecebe7;
    --ink-soft: #a9a59c;
    --line: #34322e;

    --accent: #d5a736;        /* gold buttons, charcoal text */
    --accent-2: #e2bd5c;
    --accent-ink: #161616;
    --accent-tint: rgba(213, 167, 54, 0.14);
    --red: #d5a736;
    --red-ink: #161616;
    --las-gold-text: #e2bd5c;

    --deep-1: #0b0b0b;
    --deep-2: #1a1a1a;
    --deep-3: #2a2a2a;

    --water-1: #3a3833;
    --water-2: #2a2926;
    --water-deep: #161616;
  }
}

a { color: var(--las-gold-text); }

/* Header: flat charcoal like their nav bar, a soft gold glow, gold rule on top. */
.topbar {
  background:
    radial-gradient(600px 180px at 50% 130%, rgba(213, 167, 54, 0.22), transparent 70%),
    linear-gradient(180deg, var(--deep-1) 0%, var(--deep-2) 60%, var(--deep-3) 100%);
}
.topbar::before {
  background: linear-gradient(90deg, #8a6a12 0%, #d5a736 30%, #f1d98a 50%, #d5a736 70%, #8a6a12 100%);
}

/* LAS logo is ~2:1 with a transparent background - keep it compact so the
 * nav stays above the fold on a phone, and drop the BPFT banner frame. */
.brand { max-width: 250px; }
.brand-banner {
  aspect-ratio: 924 / 447;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--las-gold); }

/* Primary action = polished gold, like the lure in the logo. Charcoal text
 * (about 8:1 on this gold) reads in sunshine; white on gold would not. */
.btn-primary {
  color: #1a1a1a;
  background: linear-gradient(135deg, #f1d98a 0%, #d5a736 45%, #b88f22 100%);
  box-shadow: 0 6px 16px -6px rgba(140, 105, 18, 0.6);
}
