/* TheoNotes · Arctic Pearl theme (design system: TheoNotes, claude.ai/artifact/L9sjedWCZtCnhUxoXqwaJu).
   Loaded after the app stylesheet. Unlayered, so it wins over the Tailwind layers it restyles.
   Visual only: no rule here adds, hides or moves a feature. */

/* ---------- font: Geist variable, self-hosted (SIL OFL 1.1), Latin + Latin Extended for Polish ---------- */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./geist-latin-ext-12ffd1b0.woff2) format("woff2-variations"), url(./geist-latin-ext-12ffd1b0.woff2) format("woff2");
  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;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./geist-latin-b3495042.woff2) format("woff2-variations"), url(./geist-latin-b3495042.woff2) format("woff2");
  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;
}

/* ---------- tokens ---------- */
:root:not([data-theme=dark]) {
  --tn-bg: #ffffff;
  --tn-bg-secondary: #f4f6f9;
  --tn-bg-tertiary: #eef1f5;
  --tn-bg-elevated: #ffffff;
  --tn-bg-subtle: #f8f9fb;
  --tn-bg-hover: #edf0f4;
  --tn-separator: #e6eaf0;
  --tn-separator-strong: #d5dce4;
  --tn-text: #161c24;
  --tn-text-secondary: #4f5a67;
  --tn-text-tertiary: #606b78;
  --tn-text-on-accent: #ffffff;
  --tn-icon: #4f5a67;
  --tn-accent: #0b7a8f;
  --tn-accent-hover: #096a7c;
  --tn-accent-soft: #e2f2f5;
  --tn-accent-soft-hover: #d2eaef;
  --tn-danger: #b8402f;
  --tn-danger-soft: #fbe9e5;
  --tn-danger-soft-hover: #f6d9d2;
  --tn-success: #2f7a55;
  --tn-success-soft: #e4f3ea;
  --tn-warning: #92600e;
  --tn-warning-soft: #faf1de;
  --tn-verse: #8a6114;
  --tn-verse-bg: #f8f0de;
  --tn-verse-mark: #b07d22;
  --tn-maxim: #7a4fa0;
  --tn-maxim-bg: #f1ebf8;
  --tn-example: #3b62c4;
  --tn-example-bg: #eaeffb;
  --tn-treasure: #b23f5c;
  --tn-treasure-bg: #fae9ee;
  --tn-recording: #b8402f;
  --tn-shadow-card: 0 0 0 1px rgba(22, 32, 48, 0.06), 0 1px 2px rgba(22, 32, 48, 0.04);
  --tn-shadow-panel: 0 0 0 1px rgba(22, 32, 48, 0.06), 0 8px 24px -16px rgba(22, 32, 48, 0.14);
  --tn-shadow-raised: 0 0 0 1px rgba(22, 32, 48, 0.10), 0 1px 1px rgba(22, 32, 48, 0.05);
  --tn-shadow-float: 0 0 0 1px rgba(22, 32, 48, 0.08), 0 12px 32px -10px rgba(22, 32, 48, 0.20);
  --tn-shadow-focus: 0 0 0 2px #ffffff, 0 0 0 4px #0b7a8f;
  --tn-shadow-focus-soft: 0 0 0 1px #0b7a8f, 0 0 0 4px #e2f2f5;
  --tn-shadow-panel-active: var(--tn-shadow-panel);
  --tn-cat-blue: #4a72d1;
  --tn-cat-teal: #1f8f9e;
  --tn-cat-violet: #8a67c9;
  --tn-cat-amber: #b8801f;
  --tn-cat-red: #c94545;
  --tn-cat-green: #2f8a55;
  --tn-cat-pink: #c2508a;
  --tn-cat-indigo: #5a5fcf;
  --tn-cat-lime: #6b8a1a;
  --tn-cat-orange: #c4612a;
  --tn-cat-cyan: #1b8aa6;
  --tn-cat-stone: #75808c;
}
:root {
  --tn-font-sans: Geist, ui-sans-serif, -apple-system, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --tn-font-display: Geist, ui-sans-serif, -apple-system, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --tn-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tn-text-base: .875rem;
  --tn-text-md: 1rem;
  --tn-text-lg: 1.0625rem;
  --tn-text-xl: 1.375rem;
  --tn-text-2xl: 1.75rem;
  --tn-radius-sm: 6px;
  --tn-radius-control: 8px;
  --tn-radius-md: 12px;
  --tn-radius-lg: 12px;
  --tn-radius-xl: 14px;
  --tn-sidebar-width: 240px;
  --tn-sidebar-rail-width: 64px;
  --tn-topbar-height: 52px;
  --tn-content-max: 1160px;
  --tn-duration-fast: .12s;
  --tn-duration: .18s;
}
@media (prefers-reduced-motion: reduce) { :root { --tn-duration-fast: 0s; --tn-duration: 0s; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -0.02em; }
h1 { font-weight: 650; letter-spacing: -0.03em; }

/* Phones and touch: fields stay at 16px so iOS does not zoom on focus. */
@media (max-width: 47.99rem), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea { font-size: 16px; }
}

/* ---------- shell ---------- */
/* Sidebar: white column on a hairline. */
aside.bg-tn-bg-secondary.tn-hairline-r { background-color: var(--tn-bg); }
.tn-nav-item { color: var(--tn-text-secondary); font-size: .84375rem; font-weight: 500; min-height: 34px; padding: 6px 10px; gap: 10px; }
.tn-nav-item svg { width: 18px; height: 18px; }
.tn-nav-item:hover { background: var(--tn-bg-hover); color: var(--tn-text); }
.tn-nav-item[aria-current=page] { background: var(--tn-bg-tertiary); color: var(--tn-text); font-weight: 550; }
.tn-nav-item[aria-current=page] svg { color: var(--tn-accent); }
@media (pointer: coarse) { .tn-nav-item { min-height: 44px; font-size: 1rem; } }

/* Top bar: white on a hairline. */
.backdrop-blur.tn-hairline-b { background-color: rgb(255 255 255 / .92); }

/* ---------- surfaces ---------- */
.tn-card, .tn-panel, .tn-panel-flat { box-shadow: var(--tn-shadow-card); }
.tn-panel { border-radius: var(--tn-radius-lg); }

/* ---------- editor ---------- */
.tn-editor-panel { border-radius: var(--tn-radius-lg); box-shadow: var(--tn-shadow-card); }
.tn-editor-panel:focus-within { box-shadow: var(--tn-shadow-card); }
.tn-editor-bar { border-radius: var(--tn-radius-lg) var(--tn-radius-lg) 0 0; background: rgb(255 255 255 / .92); }
.tn-tool-group + .tn-tool-group::before { background: var(--tn-separator-strong); height: 18px; }
.tn-editor { font-size: 1rem; line-height: 1.6875; }
/* Text fills the full width of the editor panel (inside its own padding). */
@media (min-width: 96rem) { .tn-editor { font-size: 1.0625rem; line-height: 1.7; } }
/* Annotation tools carry their hue. */
.tn-editor-toolbar button[aria-label="Oznacz jako werset"] { color: var(--tn-verse); }
.tn-editor-toolbar button[aria-label="Oznacz jako ciekawą sentencję"] { color: var(--tn-maxim); }
.tn-editor-toolbar button[aria-label="Oznacz jako przykład"] { color: var(--tn-example); }
.tn-editor-toolbar button[aria-label="Oznacz jako werset"]:hover:not(:disabled) { background: var(--tn-verse-bg); }
.tn-editor-toolbar button[aria-label="Oznacz jako ciekawą sentencję"]:hover:not(:disabled) { background: var(--tn-maxim-bg); }
.tn-editor-toolbar button[aria-label="Oznacz jako przykład"]:hover:not(:disabled) { background: var(--tn-example-bg); }
.tn-editor h1 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.025em; }
.tn-editor h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
.tn-editor h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.tn-editor blockquote { border-left: 0; padding: 12px 16px; border-radius: var(--tn-radius-control); background: var(--tn-bg-tertiary); font-style: italic; }

/* Annotation marks: verse recolours its text; maxim and example get a soft fill with an inner underline. */
.tn-verse, .tn-editor .tn-verse { background: none; padding: 0; border-radius: 2px; color: var(--tn-verse); font-weight: 550; text-decoration: underline 2px var(--tn-verse-mark); text-underline-offset: 4px; }
.tn-editor .tn-verse:hover { background: var(--tn-verse-bg); }
.tn-verse-suggestion, .tn-editor .tn-verse-suggestion { text-decoration-color: var(--tn-verse-mark); text-underline-offset: 4px; }
.tn-maxim, .tn-example, .tn-editor .tn-maxim, .tn-editor .tn-example, .tn-editor .tn-example .tn-maxim { text-decoration: none; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tn-maxim, .tn-editor .tn-maxim { background: var(--tn-maxim-bg); box-shadow: inset 0 -2px 0 var(--tn-maxim); }
.tn-example, .tn-editor .tn-example { background: var(--tn-example-bg); box-shadow: inset 0 -2px 0 var(--tn-example); }
.tn-editor .tn-example .tn-maxim { box-shadow: inset 0 -2px 0 var(--tn-maxim), inset 0 -4px 0 var(--tn-example); }
.tn-search-hit, .tn-editor .tn-search-hit { background: #fbeaa0; }
