/* Colour themes shared by the diary and the free pages. Every theme sets every colour.
   "aurora" is the default; a woman's look starts on "bloom" and a man's on "pulse"; anyone can pick any theme.
   Small text on the headers and on buttons keeps at least a 4.5:1 contrast with white (checked by app-tests.js). */
/* Montserrat (SIL Open Font License, fonts/Montserrat-OFL.txt), kept with the site so nothing loads from Google and it works
   offline. One variable file covers weights 400 to 900; the second file is only fetched for letters like ł or č. */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 900;font-display:swap;src:url(fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 900;font-display:swap;src:url(fonts/montserrat-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--font:'Montserrat',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
:root, :root[data-theme="aurora"] {
  --bg:#f4f1fc; --a1:rgba(139,92,246,.22); --a2:rgba(236,72,153,.13); --a3:rgba(45,212,191,.17);
  --surface:rgba(255,255,255,.86); --solid:#ffffff; --fill:#f5f1fc; --field:#faf8fe; --line:rgba(76,29,149,.11); --edge:rgba(255,255,255,.95);
  --ink:#1d1033; --mute:#574872; --faint:#6e6089;
  --accent:#6d28d9; --accent2:#9333ea; --accent-text:#5b21b6; --soft:#efe8fd;
  --hero1:#1b0836; --hero2:#46198a; --hero3:#7e37b8; --glow:#c084fc; --spark:#f5d0fe;
  --nav:rgba(255,255,255,.82);
  --t1:#fff0e7; --t1i:#a9461a; --t2:#e3f7ee; --t2i:#0d6643; --t3:#e5eefe; --t3i:#1d4f9e; --t4:#efe8fd; --t4i:#5b21b6;
  --shadow:0 18px 40px -24px rgba(60,20,110,.42),0 2px 8px -3px rgba(60,20,110,.08);
}
:root[data-theme="bloom"] {
  --bg:#fdf1f7; --a1:rgba(244,114,182,.24); --a2:rgba(251,146,60,.15); --a3:rgba(168,85,247,.17);
  --surface:rgba(255,255,255,.86); --solid:#ffffff; --fill:#fdf0f6; --field:#fff9fc; --line:rgba(157,23,77,.11); --edge:rgba(255,255,255,.95);
  --ink:#2f0f25; --mute:#6c3f5a; --faint:#83597a;
  --accent:#be185d; --accent2:#a21caf; --accent-text:#9d174d; --soft:#fce6f1;
  --hero1:#36082a; --hero2:#86145a; --hero3:#b83a80; --glow:#f9a8d4; --spark:#fde0ef;
  --nav:rgba(255,250,253,.84);
  --t1:#fff1e6; --t1i:#a9461a; --t2:#e6f7ef; --t2i:#0d6643; --t3:#eee9fe; --t3i:#5130b0; --t4:#fce6f1; --t4i:#9d174d;
  --shadow:0 18px 40px -24px rgba(131,24,90,.42),0 2px 8px -3px rgba(131,24,90,.08);
}
:root[data-theme="pulse"] {
  --bg:#060a16; --a1:rgba(56,189,248,.17); --a2:rgba(99,102,241,.2); --a3:rgba(20,184,166,.13);
  --surface:rgba(17,26,49,.86); --solid:#111a31; --fill:#19243f; --field:#0c1427; --line:rgba(148,197,255,.13); --edge:rgba(148,197,255,.17);
  --ink:#eef5ff; --mute:#b6c5e0; --faint:#93a4c5;
  --accent:#0369a1; --accent2:#4f46e5; --accent-text:#7dd3fc; --soft:rgba(56,189,248,.13);
  --hero1:#02050d; --hero2:#0a2350; --hero3:#0b6380; --glow:#38bdf8; --spark:#a5f3fc;
  --nav:rgba(12,18,36,.84);
  --t1:rgba(251,146,60,.13); --t1i:#fdba74; --t2:rgba(52,211,153,.12); --t2i:#6ee7b7; --t3:rgba(96,165,250,.14); --t3i:#93c5fd; --t4:rgba(167,139,250,.15); --t4i:#c4b5fd;
  --shadow:0 20px 42px -24px rgba(0,0,0,.85);
}
:root[data-theme="midnight"] {
  --bg:#0b0716; --a1:rgba(168,85,247,.2); --a2:rgba(236,72,153,.14); --a3:rgba(59,130,246,.13);
  --surface:rgba(26,18,46,.86); --solid:#181030; --fill:#221840; --field:#120b24; --line:rgba(216,180,254,.12); --edge:rgba(216,180,254,.15);
  --ink:#f6f0ff; --mute:#c6b8e0; --faint:#a493c4;
  --accent:#7e22ce; --accent2:#be185d; --accent-text:#d8b4fe; --soft:rgba(192,132,252,.15);
  --hero1:#05020c; --hero2:#270c50; --hero3:#661aa6; --glow:#e879f9; --spark:#f5d0fe;
  --nav:rgba(20,13,38,.84);
  --t1:rgba(251,146,60,.13); --t1i:#fdba74; --t2:rgba(52,211,153,.12); --t2i:#6ee7b7; --t3:rgba(96,165,250,.14); --t3i:#93c5fd; --t4:rgba(232,121,249,.14); --t4i:#f0abfc;
  --shadow:0 20px 42px -24px rgba(0,0,0,.85);
}
:root[data-theme="jade"] {
  --bg:#eef8f3; --a1:rgba(16,185,129,.2); --a2:rgba(132,204,22,.15); --a3:rgba(20,184,166,.18);
  --surface:rgba(255,255,255,.86); --solid:#ffffff; --fill:#ecf7f1; --field:#f8fcfa; --line:rgba(6,95,70,.12); --edge:rgba(255,255,255,.95);
  --ink:#0b2418; --mute:#3d5c4c; --faint:#52705f;
  --accent:#047857; --accent2:#0f766e; --accent-text:#065f46; --soft:#e0f3ea;
  --hero1:#02291b; --hero2:#065241; --hero3:#0b7657; --glow:#6ee7b7; --spark:#d1fae5;
  --nav:rgba(250,255,252,.84);
  --t1:#fff1e6; --t1i:#a9461a; --t2:#e0f3ea; --t2i:#065f46; --t3:#e5eefe; --t3i:#1d4f9e; --t4:#eef6dc; --t4i:#4d6410;
  --shadow:0 18px 40px -24px rgba(6,78,59,.42),0 2px 8px -3px rgba(6,78,59,.08);
}
:root[data-theme="sunset"] {
  --bg:#fff4ec; --a1:rgba(251,146,60,.23); --a2:rgba(244,63,94,.13); --a3:rgba(250,204,21,.18);
  --surface:rgba(255,255,255,.87); --solid:#ffffff; --fill:#fff1e7; --field:#fffaf7; --line:rgba(154,52,18,.12); --edge:rgba(255,255,255,.95);
  --ink:#2d1206; --mute:#6d4331; --faint:#855c48;
  --accent:#c2410c; --accent2:#be123c; --accent-text:#9a3412; --soft:#ffeadc;
  --hero1:#350b05; --hero2:#8a2d0f; --hero3:#b4462a; --glow:#fdba74; --spark:#fef3c7;
  --nav:rgba(255,251,248,.84);
  --t1:#ffeadc; --t1i:#9a3412; --t2:#e6f7ef; --t2i:#0d6643; --t3:#e5eefe; --t3i:#1d4f9e; --t4:#ffe7ec; --t4i:#9f1239;
  --shadow:0 18px 40px -24px rgba(154,52,18,.42),0 2px 8px -3px rgba(154,52,18,.08);
}
:root[data-dark] { color-scheme: dark; }

/* The logo ("Fe" in an orbit ring) takes the theme's colours. Bloom shows petals and Pulse a hexagon, like the app
   icons made by scripts/make_iron_icons.py. */
.fe-logo { display:block; width:100%; height:100%; overflow:visible }
.fe-logo .lm-fe, .fe-logo .lm-dot { fill:#fff }
.fe-logo .lm-dot { filter:drop-shadow(0 0 2.5px var(--glow)) }
.fe-logo .lm-ring { fill:none; stroke:#fff; stroke-opacity:.42; stroke-width:2 }
.fe-logo .lm-petals { fill:none; stroke:#fff; stroke-opacity:.72; stroke-width:3; stroke-linecap:round; stroke-dasharray:.1 6.97 }
.fe-logo .lm-arc { fill:none; stroke:var(--spark); stroke-width:4; stroke-linecap:round; filter:drop-shadow(0 0 2.5px var(--glow)) }
.fe-logo .lm-eye { fill:var(--spark) }
.fe-logo .lm-w, .fe-logo .lm-m { display:none }
:root[data-theme="bloom"] .fe-logo .lm-n, :root[data-theme="pulse"] .fe-logo .lm-n { display:none }
:root[data-theme="bloom"] .fe-logo .lm-w, :root[data-theme="pulse"] .fe-logo .lm-m { display:inline }
