/*
 * Native CSS with cascade layers, split by concern. Propshaft serves every file in
 * this directory in alphabetical order; this file declares the layer order for all
 * the others (admin.css sorts earlier, so it repeats the same line).
 */
@layer reset, base, layout, components, screens, admin, utilities;

/* Fonts are self-hosted (Latin + Cyrillic subset, variable weight). */
@font-face {
  font-family: "Onest";
  src: url("/assets/Onest-f44cdac0.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("/assets/Unbounded-d7cf276e.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }

  body, h1, h2, h3, p, ul, ol, figure, dl, dd {
    margin: 0;
  }

  ul, ol {
    padding: 0;
    list-style: none;
  }

  img, svg, audio {
    display: block;
    max-width: 100%;
  }

  button, input, textarea, select {
    font: inherit;
    color: inherit;
  }

  button {
    cursor: pointer;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

@layer base {
  :root {
    --color-ink: #111111;
    --color-muted: #5b5b5b;
    --color-paper: #ffffff;
    --color-soft: #f3f3ef;
    --color-line: #d9d9d2;
    --color-orange: #ff5a2b;
    --color-blue: #3d4bff;
    --color-yellow: #ffe14d;
    --color-mint: #6be3b5;
    --color-pink: #ff9ccb;
    --color-lilac: #b9a6ff;
    --color-lilac-soft: #eeeaff;
    --color-alert: #ffe9e3;
    --color-danger: #c21e00;

    --border: 2px solid var(--color-ink);
    --shadow: 0 4px 0 var(--color-ink);
    --shadow-big: 0 6px 0 var(--color-ink);
    --radius: 20px;

    --font-display: "Unbounded", system-ui, sans-serif;
    --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

    --tabbar-height: 88px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-height: 100dvh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-ink);
    background: var(--color-paper);
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
  }

  :focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
  }

  ::selection {
    background: var(--color-yellow);
  }
}

@layer utilities {
  .muted { color: var(--color-muted); }
  .muted-on-ink { color: #b8b8b8; }
  .ink { color: var(--color-ink); }
  .error { color: var(--color-danger); font-weight: 600; }
  .small { font-size: 14px; }
  .lead { font-size: 17px; }
  .nowrap { white-space: nowrap; }
}
