/* brand-style v0.3 (Sour) - copy into each project and import first.
   Base look is light. Dark is an optional theme:
     <html data-theme="dark">  always dark
     <html data-theme="auto">  follow the phone's setting
     no attribute / "light"    base light look
   Industrial variant (opt-in, for engineering/technical apps):
     <html data-variant="industrial">  adds the dot grid; use .dot-text for dates, numbers and short labels. */
/* quotes-app: the brand's Google Fonts @import is removed here so the app works offline.
   Rubik is self-hosted in fonts.css; Fraunces and Doto aren't used by this app. */

:root {
  /* Neutrals (light, base) */
  --bg: #F4EEE4;          /* bone */
  --surface: #FBF8F2;     /* paper */
  --text: #3D2500;        /* Sour brown - 12.4:1 on bg */
  --text-muted: #6E5636;  /* walnut - 6.0:1 on bg */
  --accent: #8A5A2B;      /* oak - buttons; 5.1:1 on bg as text */
  --on-accent: #FFF8EE;   /* 5.6:1 on accent */
  --link: #2E6A93;        /* 5.1:1 on bg */
  --border: #E2D6C3;      /* linen line */

  /* Pops - decorative fills only (dots, tags, shapes, highlights). Never as text on bg. */
  --pop: #9CC9E6;         /* sky */
  --pop-2: #F2A7A0;       /* rhubarb (pastel red) */
  --on-pop: #3D2500;      /* text on either pop: 8.1:1 / 7.4:1 */

  /* Fixed logo colours (same in both themes) */
  --brand-beige: #EBD0A7;
  --brand-brown: #3D2500;
  --brand-cream: #FFEFD7;

  --dot: rgba(61, 37, 0, 0.14);
  --shadow: 0 6px 24px rgba(61, 37, 0, 0.06);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-display-variation: "SOFT" 100, "opsz" 72;
  --font-body: "Rubik", system-ui, sans-serif;
  --font-dot: "Doto", ui-monospace, monospace;

  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;

  /* Space and shape */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  --radius-card: 16px;
  --radius-input: 10px;
  --radius-icon: 14px;
  --radius-pill: 999px;
  --duration: 200ms;

  color-scheme: light;
}

/* Optional dark theme */
:root[data-theme="dark"] {
  --bg: #1C150E;          /* night oak */
  --surface: #271E15;
  --text: #F1E4CF;        /* 14.4:1 on bg */
  --text-muted: #C2AD8E;  /* dune - 8.3:1 on bg */
  --accent: #D9A66B;      /* honey oak */
  --on-accent: #1C150E;   /* 8.3:1 on accent */
  --link: #9CC9E6;        /* 10.2:1 on bg */
  --border: #3A2E21;
  --dot: rgba(241, 228, 207, 0.12);
  --shadow: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #1C150E;
    --surface: #271E15;
    --text: #F1E4CF;
    --text-muted: #C2AD8E;
    --accent: #D9A66B;
    --on-accent: #1C150E;
    --link: #9CC9E6;
    --border: #3A2E21;
    --dot: rgba(241, 228, 207, 0.12);
    --shadow: none;
    color-scheme: dark;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-variation);
  font-weight: 500;
  line-height: 1.25;
}

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

/* Industrial variant (opt-in) */
:root[data-variant="industrial"] body {
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 12px 12px;
}
.dot-text {
  font-family: var(--font-dot);
  font-weight: 800;
  letter-spacing: 0.05em;
}
