/* Offline copy: Tailwind import omitted; no utilities are used. */

:root {
  color-scheme: dark;
  --background: #050608;
  --background-elevated: #0b0d10;

  --panel: rgba(255, 255, 255, 0.018);
  --panel-2: rgba(255, 255, 255, 0.028);
  --card: rgba(255, 255, 255, 0.02);
  --card-hover: rgba(255, 255, 255, 0.035);

  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: rgba(255, 255, 255, 0.96);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-dim: rgba(255, 255, 255, 0.52);
  --text-faint: rgba(255, 255, 255, 0.4);

  --accent: #5c8dff;
  --accent-hover: #7aa2ff;
  --accent-soft: rgba(92, 141, 255, 0.14);

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #f43f5e;

  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.22);

  --radius-xl: 20px;

  --shell-max-width: 1440px;
  --shell-padding-x: clamp(16px, 2vw, 32px);

  --font-size-body: clamp(15px, 0.18vw + 14px, 17px);
  --font-size-h1: clamp(3rem, 4.6vw, 6rem);
  --font-size-h2: clamp(1.9rem, 1.25vw + 1.35rem, 3rem);
  --font-size-h3: clamp(1.25rem, 0.55vw + 1.05rem, 1.7rem);

  --line-body: 1.7;
  --line-tight: 0.98;
  --line-heading: 1.08;

  --reading-max-width: 820px;
  --system-max-width: 1120px;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background: var(--background);
  color: var(--text);
  font-family:
    var(--font-inter),
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: var(--font-size-body);
  line-height: var(--line-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

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

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

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--background-elevated);
  color: #ffffff;
  box-shadow: none;
}

select:hover {
  border-color: var(--border-strong);
}

select:focus,
select:focus-visible {
  border-color: rgba(92, 141, 255, 0.48);
  outline: 2px solid rgba(92, 141, 255, 0.16);
  outline-offset: 0;
}

select option,
select optgroup {
  background-color: var(--background-elevated);
  color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family:
    var(--font-space-grotesk),
    var(--font-inter),
    ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: -0.04em;
  color: var(--text);
}

p {
  color: var(--text-muted);
}

small {
  color: var(--text-dim);
}

::selection {
  background: rgba(92, 141, 255, 0.28);
  color: #ffffff;
}

.shell-frame {
  width: 100%;
  max-width: var(--shell-max-width);
  margin-inline: auto;
  padding-inline: var(--shell-padding-x);
}

.app-shell {
  width: 100%;
  max-width: var(--shell-max-width);
  margin-inline: auto;
  padding-inline: var(--shell-padding-x);
}

.reading-width {
  max-width: var(--reading-max-width);
}

.system-width {
  max-width: var(--system-max-width);
  margin-inline: auto;
}

@media (max-width: 639px) {
  :root {
    --shell-padding-x: 16px;
  }
}

