/* hidup.lol's brand layer for the shared shell (T-070): colours, fonts, shadows and the lockup. Linked after
   shell.css. Only :root blocks and the .brand lockup colours belong here; layout is in shell.css.
   hidup.lol follows the device light/dark setting (P-004): flat cards, one cool-grey page shared with kesel and seneng, one accent
   (the mood stripe, running from kesel red through neutral grey to seneng green). P-044. */
:root {
  --md0: #F8E4E1; --md0-on: #8A2820;
  --md1: #F9E8E5; --md1-on: #A5372F;
  --md2: #F9ECE9; --md2-on: #B5483D;
  --md3: #F8EFEC; --md3-on: #BF5E53;
  --md4: #F4F0EE; --md4-on: #C7746A;
  --md5: #EDEFF3; --md5-on: #7F8697;
  --md6: #E9F3EE; --md6-on: #58977A;
  --md7: #E4F1EA; --md7-on: #4C8C6A;
  --md8: #DEEEE5; --md8-on: #3C7C5B;
  --md9: #D8EBDF; --md9-on: #2D6D4E;
  --md10: #D1E7D9; --md10-on: #1F5C40;
  --kesel: #1D2946; --hl: #F7E36A;
  --land: #E4E7EC;
  --land-on: #E8D18A;
  --coast: #B5BCC9;
}
:root {
  --bg: #F6F7F9;
  --bg-2: #ECEEF2;
  --card: #FFFFFF;
  --fill: #FAF1D6;          /* selected tabs, chips and buttons */
  --fill-edge: #EBD89A;
  --ink: #282D3B;
  --ink-soft: #596071;
  --edge: #E3E6EC;
  --drop: rgba(40, 45, 59, .10);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --line: 1.5px;
  --r: 18px;
  --r-sm: 12px;
  --spectrum: linear-gradient(90deg, #A5372F, #8A92A3 50%, #2D6A4A);

  --accent: #E3B93E;
  --promo-ink: #282D3B;     /* text on the gold --accent fill: 7.38:1 */
  --card-fill: #EAC65A;     /* the score card (P-056c, founder: a bit lighter than --accent); --promo-ink on it 8.3:1 */
  --accent-tint: #FAF1D6;   /* the active nav entry, the selected tile */
  --tint-k: #F8E8E6;  --tint-h: #ECEFF3;  --tint-s: #E6F1EA;          /* chip backgrounds */
  --chip-k: #8A2D25;  --chip-h: #4A5163;  --chip-s: #1F5A3D;          /* chip text */
  --hairline: rgba(40, 45, 59, .12);
  --serif: "Lora", Georgia, serif;
  --body: "Nunito Sans", "Nunito", "Segoe UI", system-ui, sans-serif;
  --ink-2: #4A5163;         /* text on --track (6.88:1) */
  --track: #ECEFF3;         /* segmented track, Always free chip, selected option */
  --ctl: #C3C9D5;           /* picker, pill and outline-button borders */
  --ctl-strong: #6F7789;    /* the composer's own border */
  --wash: #E7EAF0;          /* hover wash (ink text only) */
  --hover: #F0F2F6;         /* list and select hover */
  --err: #B42318;
  --focus: #2B6CB0;        /* keyboard focus ring: 5.42:1 on the card */

  --on-dark: #FFFFFF;       /* text and rings on an ink fill */
  --white: #FFFFFF;         /* a solid white fill */
  --cta-bg: #282D3B;        /* the Post button, the "+" and the Play buttons */
  --cta-ink: #FFFFFF;
  --cta-hover: #3B4256;
  --cta-off: #E2E5EB;       /* a disabled Post button */
  --shadow: 0 8px 24px rgba(40, 45, 59, .12);
  --backdrop: rgba(16, 19, 25, .55);
  --ad-bg: #FAF1D6;  --ad-ink: #282D3B;  --ad-shadow: 0 4px 12px rgba(0, 0, 0, .35);  --ad-on: #FFFFFF;

  --sw-kesel: #A5372F;  --sw-hidup: #E3B93E;  --sw-seneng: #2D6A4A;   /* the F8 switcher swatches */
}

/* Dark mode (P-004): follows the system setting only, no toggle. Same token names as above; later in the file than the
   :root block so it wins over it and over seneng-base.css's own dark block. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --md0: #3E2321; --md1: #3B2523; --md2: #382624; --md3: #352725; --md4: #2F2829; --md5: #262B36;
    --md6: #22302C; --md7: #213429; --md8: #20382B; --md9: #1F3C2D; --md10: #1E402F;
    /* dark mood edges, 3.57:1 to 11.21:1 on --card */
    --md0-on: #F08478; --md1-on: #E5786C; --md2-on: #D56C61; --md3-on: #C2625A; --md4-on: #AE5A53; --md5-on: #7A8294;
    --md6-on: #5A8F72; --md7-on: #69A482; --md8-on: #7BB895; --md9-on: #8FCBA8; --md10-on: #A6DEBB;
    --bg: #101319; --bg-2: #1F242E; --card: #181C24; --fill: #2E2915; --fill-edge: #54481F;
    --ink: #ECEEF3; --ink-soft: #A5ADBD; --edge: #2A303C; --drop: rgba(0, 0, 0, .4);
    --accent-tint: #2E2915; --hairline: rgba(236, 238, 243, .12); --grape: #ECEEF3;
    --tint-k: #4A2623; --tint-h: #2A303D; --tint-s: #1F3D2E;
    --chip-k: #FFB4AA; --chip-h: #C3C9D6; --chip-s: #A8DDBE;
    --ink-2: #C3C9D6; --track: #222834; --ctl: #333A48; --ctl-strong: #8B94A6; --wash: #262C38; --hover: #1F2530;
    --err: #FF9E94; --focus: #7DB4F0; --white: #262C38; --on-dark: #101319;
    --cta-bg: #E3B93E; --cta-ink: #282D3B; --cta-hover: #F0CB5E; --cta-off: #272D39;
    --shadow: 0 8px 24px rgba(0, 0, 0, .5); --backdrop: rgba(0, 0, 0, .7);
    --land: #232833; --land-on: #6B5420; --coast: #3A4252;
    --promo-ink: #282D3B;
    color-scheme: dark;
  }
}

/* ---------- brand: hid·up.lol (the lockup colours; its layout is in shell.css) ---------- */
.brand .hid { font-family: "Caveat Brush", cursive; font-size: 1.1em; color: var(--kesel); background: linear-gradient(transparent 40%, var(--hl) 40% 90%, transparent 90%); padding: 0 2px; }
.brand .up { font-family: var(--display); font-weight: 700; color: var(--ink); background: var(--sun); border-radius: 10px; padding: 0 5px; margin-left: 2px; }
.brand .lol { font-weight: 800; font-size: .6em; color: var(--ink-soft); }

/* Dark lockup (P-004): navy "hid" and the ink on "up" would vanish on the dark page. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .hid { color: var(--accent); background: none; }
  :root:not([data-theme="light"]) .brand .up { color: var(--on-dark); }
}
