/*
 * Theme: one variable per UI element.
 * Greyscale with a lavender page and purple accents. To change colours, change only the values
 * in the "Element colours" section (or point them at new palette entries).
 * See docs/ui-elements.md for what each element is.
 */
/* Self-hosted DM Sans, variable weight (SIL Open Font License, see assets/fonts/OFL-DMSans.txt). No requests to Google. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(fonts/dm-sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(fonts/dm-sans-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 {
  /* Greyscale palette */
  --grey-0: #FFFFFF;
  --offwhite: #FAF9F6;
  --offwhite-grey-10: #E1E0DD; /* off-white with 10% grey */
  --grey-50: #F5F5F5;
  --grey-100: #EBEBEB;
  --grey-300: #C4C4C4;
  --grey-500: #8C8C8C;
  --grey-700: #4D4D4D;
  --grey-900: #333333; /* darkest tone: 80% grey, never pure black */

  /* Purple palette */
  --purple-50: #EEE7F7;  /* light lavender */
  --purple-500: #7A6A8C; /* greyed purple */
  --purple-600: #7A5AA6; /* purple accent */

  /* Fonts */
  --font-main: 'DM Sans', system-ui, sans-serif; /* logo text and headings, heavy weight */
  --font-base: 'DM Sans', system-ui, sans-serif;
  --font-main-weight: 800;

  /* Element colours */
  --page-bg: var(--purple-50);
  --page-text: var(--grey-900);

  --logo-heart-left: var(--grey-500);
  --logo-heart-right: var(--grey-300);
  --logo-overlap: var(--grey-900);
  --logo-plus: var(--grey-0);
  --brand-text: var(--grey-900);
  --brand-accent-text: var(--purple-600);

  --headline-text: var(--grey-900);
  --headline-accent-text: var(--grey-500);

  --tab-bg: var(--offwhite-grey-10);
  --tab-text: var(--grey-700);
  --tab-active-bg: var(--purple-600); /* same purple as "sex" in the brand name */
  --tab-active-text: var(--grey-0);
  --tab-border: var(--grey-700);

  --panel-bg: var(--tab-active-bg); /* same surface as the selected tab, so they read as one */
  --panel-note-text: var(--purple-50); /* readable on the purple panel */
  --pool-text: var(--grey-0);
  --next-button-bg: var(--offwhite);   /* "Select who you want", on the dark panel */
  --next-button-text: var(--grey-900);

  --card-bg: var(--offwhite);
  --card-text: var(--grey-900);
  --card-border: var(--grey-500);

  --question-number-text: var(--grey-500);

  --chip-bg: var(--offwhite);
  --chip-text: var(--grey-900);
  --chip-border: var(--grey-500);
  --chip-selected-bg: var(--grey-900);
  --chip-selected-text: var(--grey-0);
  --chip-selected-border: var(--grey-900);

  --must-bg: var(--offwhite);
  --must-text: var(--grey-900);
  --must-border: var(--grey-900);
  --must-on-bg: var(--grey-300);
  --must-on-text: var(--grey-900);

  --input-bg: var(--offwhite);
  --input-text: var(--grey-900);
  --input-border: var(--grey-500);
  --input-placeholder: var(--grey-500);

  --error-text: var(--grey-900);
  --note-text: var(--grey-700);

  --button-primary-bg: var(--grey-900);
  --button-primary-text: var(--grey-0);
  --button-secondary-bg: var(--offwhite);
  --button-secondary-text: var(--grey-900);
  --button-secondary-border: var(--grey-900);

  --message-bg: var(--grey-900);
  --message-text: var(--grey-0);

  --dialog-bg: var(--offwhite);
  --dialog-text: var(--grey-900);
  --dialog-backdrop: rgba(51, 51, 51, 0.5);

  --divider: var(--grey-300);
  --footer-text: var(--purple-500);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page-bg); color: var(--page-text); font-family: var(--font-base); font-size: 16px; line-height: 1.6; }
button { font-family: var(--font-base); cursor: pointer; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--brand-text); text-decoration: none; font-family: var(--font-main); font-weight: var(--font-main-weight); font-size: 20.4px; line-height: 1.15; }
.brand span { white-space: nowrap; }
.brand em { font-style: normal; color: var(--brand-accent-text); }
.logo-heart-left { fill: var(--logo-heart-left); }
.logo-heart-right { fill: var(--logo-heart-right); }
.logo-overlap { fill: var(--logo-overlap); }
.logo-plus { fill: var(--logo-plus); }

h1 { font-family: var(--font-main); font-weight: var(--font-main-weight); font-size: 32px; line-height: 1.1; color: var(--headline-text); }
h1 em { font-style: normal; color: var(--headline-accent-text); }
@media (min-width: 768px) { h1 { font-size: 48px; } }

.site-footer { text-align: center; color: var(--footer-text); font-size: 13px; line-height: 1.5; padding: 24px 16px 32px; }
.site-footer p { margin: 0 0 4px; }
.site-footer a, .site-footer .link { color: inherit; }
.site-footer .link { background: none; border: none; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
