@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-greek-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  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: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  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;
}
/*
 * Selis design tokens — "calm paper". The document is the hero; chrome recedes.
 *
 * Neutrals: 12 warm steps (1–2 backgrounds, 3–5 component fills, 6–8 borders,
 * 9–10 solid, 11–12 text). One accent: deep ink blue. Themes: light, dark, sepia.
 * Applied via <html data-theme="light|dark|sepia">; without it, the OS preference wins.
 */

:root {
  color-scheme: light;

  /* Warm neutrals — light */
  --neutral-1: #fdfcfa;
  --neutral-2: #f8f6f2;
  --neutral-3: #f1eee8;
  --neutral-4: #eae6df;
  --neutral-5: #e2ddd4;
  --neutral-6: #d8d1c6;
  --neutral-7: #c9c0b2;
  --neutral-8: #b1a696;
  --neutral-9: #8a8071;
  --neutral-10: #7c7365;
  --neutral-11: #5f574c;
  --neutral-12: #211f1a;

  /*
   * Boundary of a control (input, chip, outlined button, unchecked box, switch track, sheet
   * grabber): ≥ 3:1 against every surface it sits on (WCAG 2.2 SC 1.4.11; tokens.test.ts).
   * Steps 6–8 stay for dividers and containers, which need no contrast.
   */
  --control-line: #8f8577;

  /* Accent — deep ink blue */
  --accent-3: #e9eef9;
  --accent-4: #dce4f5;
  --accent-7: #9fb3e3;
  --accent-9: #24438f;
  --accent-10: #1c387c;
  --accent-11: #2b4ea6;
  --accent-contrast: #ffffff;
  /* Text/icon colour of a selected item on --accent-3 (tabs, chips, tiles). */
  --accent-selected: var(--accent-9);

  /* Semantic */
  --success-3: #e5f3e9;
  --success-9: #2f7d4a;
  --success-11: #23683b;
  --warning-3: #fbf0d9;
  --warning-9: #b7791f;
  --warning-11: #8a5a12;
  --danger-3: #fbe9e7;
  --danger-9: #c0392b;
  --danger-11: #a12f23;

  /* Surfaces */
  --surface-app: var(--neutral-1);
  --surface-raised: #ffffff;
  --surface-overlay: rgb(33 31 26 / 0.4);
  --page-canvas: var(--neutral-3);
  --focus-ring: var(--accent-9);

  /* Elevation — soft shadows, floating elements only */
  --shadow-1: 0 1px 2px rgb(33 31 26 / 0.06), 0 1px 1px rgb(33 31 26 / 0.04);
  --shadow-2: 0 4px 12px rgb(33 31 26 / 0.08), 0 1px 3px rgb(33 31 26 / 0.06);
  --shadow-3: 0 12px 32px rgb(33 31 26 / 0.12), 0 2px 6px rgb(33 31 26 / 0.06);

  /* Typography */
  --font-sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --leading-tight: 1.4;
  --leading-normal: 1.5;

  /* Spacing — 4 px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-sheet: 20px;

  /* Motion — 150–250 ms */
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 250ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);

  /* Touch & icons */
  --touch-target: 44px;
  --icon-size: 20px;
  --icon-stroke: 1.75;

  /*
   * Safe areas. Native Android shells inject --native-inset-* (edge-to-edge),
   * WebKit/Chromium provide env(); take whichever is larger.
   */
  --safe-top: max(env(safe-area-inset-top, 0px), var(--native-inset-top, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--native-inset-right, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--native-inset-bottom, 0px));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--native-inset-left, 0px));

  --tabbar-height: 56px;

  /*
   * Theme preview swatches (Settings): each theme's paper and accent, the same in
   * every theme so the tiles always show what they would switch to.
   */
  --swatch-light: #fdfcfa;
  --swatch-light-accent: #24438f;
  --swatch-dark: #131210;
  --swatch-dark-accent: #4a6fd0;
  --swatch-sepia: #f5eddc;
  --swatch-sepia-accent: #26407e;

  /*
   * Sticky-note paper (Annotate, brief §3): part of the page, not the chrome, so
   * the same in every theme.
   */
  --note-paper: #fff6d6;
  --note-border: #ecd48a;
  --note-ink: #211f1a;
  --note-action: #24438f;
  --note-danger: #a12f23;
  --note-muted: #6b6253;

  /* Paper areas (signature pad, picture preview): white in every theme. */
  --paper: #ffffff;
  --paper-rule: #c9c0b2;
  --paper-hint: #6b6253;
  --paper-checker: #f1eee8;
  --topbar-height: 52px;
}

/* Dark palette, shared by explicit selection and OS preference. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --neutral-1: #131210;
  --neutral-2: #1a1916;
  --neutral-3: #22201c;
  --neutral-4: #292722;
  --neutral-5: #312e28;
  --neutral-6: #3b3730;
  --neutral-7: #49443b;
  --neutral-8: #605a4f;
  --neutral-9: #6e675b;
  --neutral-10: #7c7569;
  --neutral-11: #b6ae9f;
  --neutral-12: #eeeae2;
  --control-line: #726c60;

  --accent-3: #18213a;
  --accent-4: #1e2a4a;
  --accent-7: #3a5394;
  --accent-9: #4a6fd0;
  --accent-10: #6286df;
  --accent-11: #a9bdf2;
  --accent-contrast: #ffffff;
  --accent-selected: var(--accent-11);

  --success-3: #142a1c;
  --success-9: #3f9c5f;
  --success-11: #8fd3a5;
  --warning-3: #2f2412;
  --warning-9: #d29a3a;
  --warning-11: #f0c87e;
  --danger-3: #3a1a16;
  --danger-9: #d65a4b;
  --danger-11: #f3a397;

  --surface-app: var(--neutral-1);
  --surface-raised: var(--neutral-2);
  --surface-overlay: rgb(0 0 0 / 0.55);
  --page-canvas: #0d0c0b;
  --focus-ring: var(--accent-10);

  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-2: 0 4px 12px rgb(0 0 0 / 0.45), 0 1px 3px rgb(0 0 0 / 0.3);
  --shadow-3: 0 12px 32px rgb(0 0 0 / 0.55), 0 2px 6px rgb(0 0 0 / 0.3);
}

@media (prefers-color-scheme: dark) {
  /* Same as [data-theme="dark"]; applies before JS resolves the "system" theme. */
  :root:not([data-theme]) {
    color-scheme: dark;
    --neutral-1: #131210;
    --neutral-2: #1a1916;
    --neutral-3: #22201c;
    --neutral-4: #292722;
    --neutral-5: #312e28;
    --neutral-6: #3b3730;
    --neutral-7: #49443b;
    --neutral-8: #605a4f;
    --neutral-9: #6e675b;
    --neutral-10: #7c7569;
    --neutral-11: #b6ae9f;
    --neutral-12: #eeeae2;
    --control-line: #726c60;

    --accent-3: #18213a;
    --accent-4: #1e2a4a;
    --accent-7: #3a5394;
    --accent-9: #4a6fd0;
    --accent-10: #6286df;
    --accent-11: #a9bdf2;
    --accent-contrast: #ffffff;
    --accent-selected: var(--accent-11);

    --success-3: #142a1c;
    --success-9: #3f9c5f;
    --success-11: #8fd3a5;
    --warning-3: #2f2412;
    --warning-9: #d29a3a;
    --warning-11: #f0c87e;
    --danger-3: #3a1a16;
    --danger-9: #d65a4b;
    --danger-11: #f3a397;

    --surface-app: var(--neutral-1);
    --surface-raised: var(--neutral-2);
    --surface-overlay: rgb(0 0 0 / 0.55);
    --page-canvas: #0d0c0b;
    --focus-ring: var(--accent-10);

    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 4px 12px rgb(0 0 0 / 0.45), 0 1px 3px rgb(0 0 0 / 0.3);
    --shadow-3: 0 12px 32px rgb(0 0 0 / 0.55), 0 2px 6px rgb(0 0 0 / 0.3);
  }
}

/* Sepia — warm paper for long reading. */
:root[data-theme="sepia"] {
  color-scheme: light;
  --neutral-1: #f5eddc;
  --neutral-2: #f0e6d1;
  --neutral-3: #e9ddc5;
  --neutral-4: #e2d4b9;
  --neutral-5: #d9caab;
  --neutral-6: #cebe9c;
  --neutral-7: #bdab87;
  --neutral-8: #a6926b;
  --neutral-9: #836e4c;
  --neutral-10: #766244;
  --neutral-11: #5b4a31;
  --neutral-12: #2c2415;
  --control-line: #8d7957;

  --accent-3: #e6e2d6;
  --accent-4: #dcd8cc;
  --accent-7: #9aa6c4;
  --accent-9: #26407e;
  --accent-10: #1f356a;
  --accent-11: #2a4888;
  --accent-contrast: #fffaf0;

  --surface-app: var(--neutral-1);
  --surface-raised: #faf4e6;
  --surface-overlay: rgb(44 36 21 / 0.4);
  --page-canvas: var(--neutral-4);
  --focus-ring: var(--accent-9);

  --shadow-1: 0 1px 2px rgb(44 36 21 / 0.08);
  --shadow-2: 0 4px 12px rgb(44 36 21 / 0.1), 0 1px 3px rgb(44 36 21 / 0.08);
  --shadow-3: 0 12px 32px rgb(44 36 21 / 0.14), 0 2px 6px rgb(44 36 21 / 0.08);
}

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

/* Selis website. Colours and type come from the app's tokens (prepended at build). */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: "Inter Variable", Inter, system-ui, sans-serif;
  background: var(--surface-app);
  color: var(--neutral-12);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0 auto;
  max-width: 1080px;
  padding: 0 20px;
  font-size: 17px;
  line-height: 1.6;
}
a {
  color: var(--accent-selected);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
img {
  max-width: 100%;
  height: auto;
}
h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
}
h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 48px 0 12px;
}
h3 {
  font-size: 19px;
  margin: 16px 0 6px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 20px;
  top: 12px;
  background: var(--surface-raised);
  padding: 8px 12px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-5);
  flex-wrap: wrap;
}
.top nav {
  display: flex;
  gap: 4px 18px;
  align-items: center;
  flex-wrap: wrap;
}
.top a {
  text-decoration: none;
  color: var(--neutral-12);
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.top a[aria-current="page"] {
  color: var(--accent-selected);
  font-weight: 600;
}
.top .brand {
  font-weight: 700;
  font-size: 20px;
  gap: 8px;
}
.top .brand img {
  flex: none;
  width: 28px;
  height: 28px;
}
.top .lang {
  border: 1px solid var(--control-line);
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 44px;
}
@media (max-width: 520px) {
  .top {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .top nav {
    flex-wrap: nowrap;
    gap: 12px;
  }
  .top a {
    font-size: 15px;
  }
  .top .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .top .lang {
    padding: 4px 10px;
  }
}
.lead {
  font-size: 19px;
  color: var(--neutral-11);
  max-width: 640px;
}
.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1fr;
  padding: 16px 0 8px;
}
@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
  }
}
.hero .shot {
  justify-self: center;
  max-width: 300px;
}
.shot {
  border-radius: 24px;
  border: 1px solid var(--neutral-5);
  box-shadow: var(--shadow-3);
  background: var(--surface-raised);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--accent-9);
  color: var(--accent-contrast);
  font-weight: 600;
  text-decoration: none;
}
.button.ghost {
  background: transparent;
  color: var(--accent-selected);
  border: 1px solid var(--control-line);
}
.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pillars li {
  background: var(--accent-3);
  color: var(--accent-selected);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 15px;
  font-weight: 600;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--surface-raised);
  border: 1px solid var(--neutral-5);
  border-radius: 20px;
  padding: 20px;
}
.card .shot {
  display: block;
  margin: 0 auto 8px;
  max-width: 200px;
  border-radius: 16px;
  box-shadow: var(--shadow-2);
}
.card p {
  margin: 0;
  color: var(--neutral-11);
}
.split {
  display: grid;
  gap: 8px 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.groups {
  display: grid;
  gap: 8px 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.group h2 {
  font-size: 21px;
  margin-top: 28px;
}
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 22px;
  margin-top: 36px;
}
.table {
  overflow-x: auto;
  margin: 12px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--neutral-5);
  vertical-align: top;
}
th {
  color: var(--neutral-11);
  font-weight: 600;
}
code {
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--neutral-3);
  border-radius: 6px;
  padding: 1px 5px;
}
.hash {
  word-break: break-all;
  font-size: 12px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  list-style: none;
}
.stores .soon {
  display: flex;
  flex-direction: column;
  border: 1px dashed var(--neutral-7);
  border-radius: 14px;
  padding: 10px 18px;
  min-width: 170px;
}
.stores .store {
  font-weight: 600;
}
.hint {
  color: var(--neutral-11);
}
.foot {
  margin-top: 64px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--neutral-5);
  color: var(--neutral-11);
  font-size: 15px;
}
.small {
  font-size: 13px;
}
