@charset "utf-8";

@font-face {
  font-family: "IoskeleyMono";
  src: url("/IoskeleyMono/WOFF2/IoskeleyMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IoskeleyMono";
  src: url("/IoskeleyMono/WOFF2/IoskeleyMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IoskeleyMono";
  src: url("/IoskeleyMono/WOFF2/IoskeleyMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Primitive palette */
  --lh-paper: #f7f5f2;
  --lh-paper-raised: #fffefa;
  --lh-ink: #191616;
  --lh-ink-muted: #686260;
  --lh-line: #d8d2cd;
  --lh-line-strong: #8a817d;
  --lh-accent: #ff5a1f;
  --lh-danger: #d92d20;
  --lh-success: #157347;
  --lh-warning: #9a5800;

  /* Semantic color aliases */
  --canvas: var(--lh-paper);
  --ink: var(--lh-ink);
  --body: #494442;
  --surface-soft: #efebe7;
  --surface-card: #e5dfda;
  --surface-raised: var(--lh-paper-raised);
  --hairline: var(--lh-line);
  --hairline-strong: var(--lh-line-strong);
  --focus: var(--lh-accent);
  --danger: var(--lh-danger);
  --success: var(--lh-success);
  --warning: var(--lh-warning);
  --backdrop: rgba(25, 22, 22, .58);

  /* Legacy aliases used by custom elements */
  --text: 25, 22, 22;
  --text-soft: 104, 98, 96;
  --background: 247, 245, 242;
  --bg: 247, 245, 242;
  --bg-alt: 239, 235, 231;
  --bg-hover: 229, 223, 218;
  --border: 25, 22, 22;
  --widget-bg: 255, 254, 250;
  --accent-color: 255, 90, 31;
  --input-bg: 239, 235, 231;
  --input-bg-hover: 255, 254, 250;
  --input-border: 138, 129, 125;
  --input-border-active: 255, 90, 31;
  --red: 217, 45, 32;

  /* Typography */
  --mono-font: "IoskeleyMono", "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-xs: .625rem;
  --font-sm: .75rem;
  --font-md: .8125rem;
  --font-lg: 1rem;
  --font-xl: clamp(1.35rem, 2.5vw, 1.9rem);
  --tracking-tight: -.025em;
  --tracking-label: .08em;

  /* Spacing */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .625rem;
  --space-4: .75rem;
  --space-5: 1rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 3rem;

  /* Shape, depth, motion */
  --radius-sm: 2px;
  --radius-md: 4px;
  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-float: 0 24px 64px rgba(25, 22, 22, .24);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --duration-instant: 80ms;
  --duration-press: 120ms;
  --duration-fast: 160ms;
  --duration-ui: 220ms;
  --lh-theme-transition-duration: var(--duration-fast);
  --lh-theme-transition-easing: var(--ease-out);
}

:root.theme-dark {
  color-scheme: dark;
  --lh-paper: #191616;
  --lh-paper-raised: #242020;
  --lh-ink: #f7f5f2;
  --lh-ink-muted: #aaa19d;
  --lh-line: #3f3937;
  --lh-line-strong: #817874;
  --lh-accent: #ff7647;
  --lh-danger: #ff6961;
  --lh-success: #5fc994;
  --lh-warning: #ffb24a;

  --canvas: var(--lh-paper);
  --ink: var(--lh-ink);
  --body: #cec7c3;
  --surface-soft: #242020;
  --surface-card: #302a29;
  --surface-raised: var(--lh-paper-raised);
  --hairline: var(--lh-line);
  --hairline-strong: var(--lh-line-strong);
  --focus: var(--lh-accent);
  --danger: var(--lh-danger);
  --success: var(--lh-success);
  --warning: var(--lh-warning);
  --backdrop: rgba(0, 0, 0, .72);

  --text: 247, 245, 242;
  --text-soft: 170, 161, 157;
  --background: 25, 22, 22;
  --bg: 25, 22, 22;
  --bg-alt: 36, 32, 32;
  --bg-hover: 48, 42, 41;
  --border: 247, 245, 242;
  --widget-bg: 36, 32, 32;
  --accent-color: 255, 118, 71;
  --input-bg: 36, 32, 32;
  --input-bg-hover: 48, 42, 41;
  --input-border: 129, 120, 116;
  --input-border-active: 255, 118, 71;
  --red: 255, 105, 97;
  --shadow-hard: 4px 4px 0 #000;
  --shadow-float: 0 24px 64px rgba(0, 0, 0, .48);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font: 400 100%/1.5 var(--mono-font);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--canvas);
}

button,
input,
select,
textarea {
  margin: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .45;
}

input,
textarea {
  caret-color: var(--focus);
}

textarea {
  resize: vertical;
}

::placeholder {
  color: var(--lh-ink-muted);
  opacity: .8;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

a:visited {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
pre {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  color: var(--ink);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

kbd,
code {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink);
  padding: .1rem .35rem;
  font: 500 .78em/1.3 var(--mono-font);
}

.lh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lh-shell {
  position: relative;
  z-index: 1;
}

@media (max-width: 840px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --backdrop: rgba(25, 22, 22, .82);
  }

  :root.theme-dark {
    --backdrop: rgba(0, 0, 0, .9);
  }
}

@media (prefers-contrast: more) {
  :root {
    --hairline: var(--ink);
    --hairline-strong: var(--ink);
  }
}
