@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  --bg: #0a0a0a;
  --bg-raised: #111111;
  --surface: #151515;
  --surface-2: #1b1b1b;
  --surface-3: #232323;
  --surface-4: #2c2c2c;
  --overlay: #161616;
  --scrim: rgba(0, 0, 0, 0.62);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.16);
  --text: #ededed;
  --text-2: #a3a3a3;
  --text-3: #6f6f6f;
  --text-4: #4d4d4d;
  --white: #f7f7f5;
  --ink: #0b0b0b;

  --success: #5ad19a;
  --success-soft: rgba(90, 209, 154, 0.12);
  --warning: #f2a65a;
  --warning-soft: rgba(242, 166, 90, 0.12);
  --danger: #f2706b;
  --danger-soft: rgba(242, 112, 107, 0.12);
  --info: #7cb9f2;
  --info-soft: rgba(124, 185, 242, 0.12);

  --accent: #d8c4a0;
  --accent-rgb: 216, 196, 160;
  --accent-ink: #1c130d;
  --accent-deep: #3a2519;
  --accent-soft: rgba(var(--accent-rgb), 0.13);
  --accent-line: rgba(var(--accent-rgb), 0.38);
  --accent-glow: rgba(var(--accent-rgb), 0.22);

  --art-void: 13, 13, 14;
  --art-dusk: 17, 19, 26;
  --art-ink: 24, 31, 46;
  --art-slate: 44, 54, 76;
  --art-plum: 48, 25, 41;
  --art-umber: 56, 42, 31;
  --art-clay: 124, 95, 68;
  --art-sand: 216, 196, 160;
  --art-ivory: 240, 232, 216;

  --plan-plus-rgb: 216, 196, 160;
  --plan-pro-rgb: 124, 185, 242;
  --plan-max-rgb: 224, 176, 214;
  --plan-rgb: var(--accent-rgb);
  --chrome: var(--bg-raised);

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 24px;
  --r-pill: 999px;

  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 19px;
  --fs-2xl: 26px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 18px 48px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-2);
  --shadow-modal: 0 32px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line-2);
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-line);
  --shadow-page: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -14px rgba(0, 0, 0, 0.75);
  --shadow-press: 0 4px 0 rgba(0, 0, 0, 0.55);
  --shadow-press-sm: 0 2px 0 rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 14px 30px -14px rgba(0, 0, 0, 0.85);

  --paper: #ffffff;
  --mark-select: rgba(70, 130, 220, 0.3);
  --mark-sand: #d9b77e;
  --mark-sand-soft: rgba(232, 196, 130, 0.5);
  --mark-sand-ink: #a87b33;
  --mark-sage: #8fc39a;
  --mark-sage-soft: rgba(150, 206, 158, 0.45);
  --mark-sage-ink: #4f8a5c;
  --mark-sky: #86b4e8;
  --mark-sky-soft: rgba(140, 186, 240, 0.45);
  --mark-sky-ink: #3f78b8;
  --mark-rose: #e597ab;
  --mark-rose-soft: rgba(238, 160, 180, 0.45);
  --mark-rose-ink: #b3566f;
  --mark-lilac: #b3a2e6;
  --mark-lilac-soft: rgba(186, 170, 240, 0.45);
  --mark-lilac-ink: #6f5cb8;
  --mark-cite: #62b8ad;
  --mark-cite-soft: rgba(98, 184, 173, 0.36);
  --mark-cite-strong: rgba(70, 168, 156, 0.62);
  --mark-cite-ink: #2f7f75;
  --mark-hit: rgba(246, 200, 120, 0.5);
  --mark-hit-current: rgba(238, 146, 64, 0.62);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 520ms;
  --dur-5: 820ms;

  --rail: 60px;
  --panel: 268px;
  --topbar: 52px;
  --tabbar: 62px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);

  --z-panel: 20;
  --z-tabbar: 40;
  --z-drawer: 60;
  --z-popover: 95;
  --z-modal: 90;
  --z-toast: 100;
}

.has-art {
  --chrome: rgba(var(--art-void), 0.8);
}

@media (max-width: 640px) {
  :root {
    --chrome: var(--bg);
  }
}

[data-plan='plus'] {
  --plan-rgb: var(--plan-plus-rgb);
}

[data-plan='pro'] {
  --plan-rgb: var(--plan-pro-rgb);
}

[data-plan='max'] {
  --plan-rgb: var(--plan-max-rgb);
}

[data-accent='avicen'] {
  --accent: #d8c4a0;
  --accent-rgb: 216, 196, 160;
  --accent-ink: #1c130d;
  --accent-deep: #3a2519;
}

[data-accent='ivory'] {
  --accent: #e8e4da;
  --accent-rgb: 232, 228, 218;
  --accent-ink: #141414;
  --accent-deep: #2b2a27;
}

[data-accent='lavender'] {
  --accent: #b6a6f4;
  --accent-rgb: 182, 166, 244;
  --accent-ink: #160f2e;
  --accent-deep: #2a2148;
}

[data-accent='coral'] {
  --accent: #f28b74;
  --accent-rgb: 242, 139, 116;
  --accent-ink: #2b0f08;
  --accent-deep: #45201a;
}

[data-accent='mint'] {
  --accent: #6dd4a6;
  --accent-rgb: 109, 212, 166;
  --accent-ink: #062418;
  --accent-deep: #13392a;
}

[data-accent='sky'] {
  --accent: #7cb9f2;
  --accent-rgb: 124, 185, 242;
  --accent-ink: #061a2e;
  --accent-deep: #13304c;
}

[data-accent='rose'] {
  --accent: #f29bbd;
  --accent-rgb: 242, 155, 189;
  --accent-ink: #2e0a19;
  --accent-deep: #48182b;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 1ms;
    --dur-2: 1ms;
    --dur-3: 1ms;
    --dur-4: 1ms;
    --dur-5: 1ms;
  }
}

:root {
  --profile-umber: #3c281c;
  --profile-cocoa: #553a2a;
  --profile-clay: #7a5137;
  --profile-sand: #a98b64;
  --profile-dune: #cbb690;
  --profile-olive: #4e5036;
  --profile-sage: #4b5b4c;
  --profile-slate: #3a4450;
  --profile-ink: #27324a;
  --profile-plum: #46303e;
  --profile-wine: #58292c;
  --profile-graphite: #262626;
  --presence-online: #5ad19a;
  --presence-away: #f2a65a;
  --presence-dnd: #f2706b;
  --presence-offline: #5f5f5f;
  --brand-sand: #d8c4a0;
  --brand-sand-rgb: 216, 196, 160;
  --brand-ivory: #ece6da;
  --brand-umber: #3a2519;
  --brand-cocoa: #241710;
  --frame-sand: #d8c4a0;
  --frame-ivory: #ece6da;
  --frame-umber: #6e4b33;
  --badge-founding: #c9a582;
  --badge-verified: #9cc3e9;
  --avatar-ink: rgba(236, 230, 218, 0.94);
  --avatar-ink-dark: #241710;
  --av-edge: rgba(255, 255, 255, 0.07);
  --banner-scrim: rgba(0, 0, 0, 0.45);
}

:root[data-text='small'] {
  --fs-2xs: 10.5px;
  --fs-xs: 11.5px;
  --fs-sm: 12.5px;
  --fs-md: 13px;
  --fs-lg: 15px;
  --fs-xl: 18px;
  --fs-2xl: 24px;
}

:root[data-text='large'] {
  --fs-2xs: 12px;
  --fs-xs: 13.5px;
  --fs-sm: 14.5px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 21px;
  --fs-2xl: 28px;
}

:root.is-contrast {
  --line: rgba(255, 255, 255, 0.13);
  --line-2: rgba(255, 255, 255, 0.19);
  --line-3: rgba(255, 255, 255, 0.28);
  --text: #f7f7f5;
  --text-2: #cfcfcf;
  --text-3: #a6a6a6;
  --text-4: #808080;
}

:root.is-reduced-motion {
  --dur-1: 1ms;
  --dur-2: 1ms;
  --dur-3: 1ms;
  --dur-4: 1ms;
  --dur-5: 1ms;
}
