@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: var(--fo-canvas);
  --lh-paper-raised: var(--fo-paper-raised);
  --lh-ink: var(--fo-ink);
  --lh-ink-muted: var(--fo-muted);
  --lh-line: var(--fo-line);
  --lh-line-strong: var(--fo-line-strong);
  --lh-accent: var(--fo-violet);
  --lh-danger: var(--fo-coral);
  --lh-success: var(--fo-green);
  --lh-warning: var(--fo-amber);

  /* Semantic color aliases */
  --canvas: var(--lh-paper);
  --ink: var(--lh-ink);
  --body: #575650;
  --surface-soft: #f0eee9;
  --surface-card: #e8e5df;
  --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(17, 18, 15, .62);

  /* Legacy aliases used by custom elements */
  --text: 32, 33, 30;
  --text-soft: 113, 111, 104;
  --background: 243, 241, 237;
  --bg: 243, 241, 237;
  --bg-alt: 240, 238, 233;
  --bg-hover: 232, 229, 223;
  --border: 32, 33, 30;
  --widget-bg: 255, 255, 255;
  --accent-color: 219, 170, 85;
  --input-bg: 255, 255, 255;
  --input-bg-hover: 251, 250, 247;
  --input-border: 168, 164, 155;
  --input-border-active: 219, 170, 85;
  --red: 188, 103, 100;

  /* Typography */
  --ui-font: var(--fo-font-ui);
  --mono-font: var(--fo-font-mono);
  --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: var(--fo-radius-control);
  --radius-md: var(--fo-radius-surface);
  --shadow-hard: var(--fo-shadow-control);
  --shadow-float: var(--fo-shadow-float);
  --ease-out: var(--fo-ease-out);
  --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: var(--fo-canvas);
  --lh-paper-raised: var(--fo-paper-raised);
  --lh-ink: var(--fo-ink);
  --lh-ink-muted: var(--fo-muted);
  --lh-line: var(--fo-line);
  --lh-line-strong: var(--fo-line-strong);
  --lh-accent: var(--fo-violet);
  --lh-danger: var(--fo-coral);
  --lh-success: var(--fo-green);
  --lh-warning: var(--fo-amber);

  --canvas: var(--lh-paper);
  --ink: var(--lh-ink);
  --body: #c1bfb7;
  --surface-soft: #252622;
  --surface-card: #2d2e29;
  --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: 242, 240, 233;
  --text-soft: 170, 168, 159;
  --background: 17, 18, 15;
  --bg: 17, 18, 15;
  --bg-alt: 25, 26, 23;
  --bg-hover: 37, 38, 34;
  --border: 242, 240, 233;
  --widget-bg: 32, 33, 30;
  --accent-color: 217, 170, 89;
  --input-bg: 32, 33, 30;
  --input-bg-hover: 37, 38, 34;
  --input-border: 95, 96, 88;
  --input-border-active: 217, 170, 89;
  --red: 210, 125, 120;
  --shadow-hard: 0 1px 2px rgba(0, 0, 0, .35);
  --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(--ui-font);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button:not(.fo-btn):not(.fo-icon-btn),
input:not(.fo-input),
select:not(.fo-select),
textarea:not(.fo-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:not(.fo-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);
  }
}
