/* VILLAIN design system — shared by every artboard.
   Palette (locked): warm ink #1A1614 · ember #C97B3C · oxblood #7A2E22 · cold slate #3E4C54 · paper cream #F2E9D8
   Type (locked): DM Serif Display (display) · EB Garamond (reading) · Inter (UI) */

:root {
	--ink: #1A1614;
	--ink-2: #241E1B;
	--ink-3: #2F2724;
	--line-d: #3D3430;
	--mute-d: #BFB5A4;
	--ember: #C97B3C;
	--ember-soft: #F1DFC9;
	--oxblood: #7A2E22;
	--slate: #3E4C54;
	--paper: #F2E9D8;
	--card: #FBF6EC;
	--line: #D9CDB6;
	--white: #FFFFFF;
	--ok: #2F6B45;
	--ok-bg: #E2EDDF;
	--err-bg: #F3DDD7;
	--warn-bg: #F6E6CF;
}

.f-display { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
.f-read { font-family: 'EB Garamond', Georgia, serif; }
.f-ui { font-family: 'Inter', system-ui, sans-serif; }

.logo { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: 0.08em; line-height: 1; white-space: nowrap; }
.logo-i { color: var(--ember); }

.eyebrow { font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

.h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 64px; line-height: 1.05; margin: 0; }
.h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 44px; line-height: 1.1; margin: 0; }
.h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.2; margin: 0; }
.h4 { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.35; margin: 0; }
.body { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; margin: 0; }
.small { font-family: 'Inter', system-ui, sans-serif; font-size: 13px; line-height: 1.5; margin: 0; }
.lead { font-family: 'EB Garamond', Georgia, serif; font-size: 24px; line-height: 1.5; margin: 0; }
.prose { font-family: 'EB Garamond', Georgia, serif; font-size: 21px; line-height: 1.75; }
.prose p { margin: 0 0 1.05em; }
.prose em { font-style: italic; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; box-sizing: border-box; white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--ember); color: var(--ink); border-color: var(--ember); }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: var(--mute-d); }
.btn-ghost { background: transparent; color: var(--oxblood); padding: 0 6px; }
.btn-ghost-light { background: transparent; color: var(--ember); padding: 0 6px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-disabled { background: #E6DCC9; color: #7C7468; border-color: #E6DCC9; cursor: not-allowed; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-sizing: border-box; }
.card-dark { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 12px; box-sizing: border-box; }

.tag { display: inline-flex; align-items: center; gap: 6px; font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.tag-free { background: var(--ok-bg); color: var(--ok); }
.tag-own { background: var(--ember-soft); color: #6E4219; }
.tag-lock { background: #EFDCD6; color: var(--oxblood); }
.tag-soon { background: #E1E4E2; color: var(--slate); }
.tag-pending { background: var(--warn-bg); color: #7A4A12; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-err { background: var(--err-bg); color: var(--oxblood); }
.tag-dark { background: var(--ink-3); color: var(--paper); }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--ink-3); color: var(--paper); font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip-light { background: var(--ink); color: var(--paper); }

.field { display: flex; flex-direction: column; gap: 7px; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 500; color: var(--ink); }
.input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-family: 'Inter', system-ui, sans-serif; font-size: 16px; color: var(--ink); box-sizing: border-box; width: 100%; }
.input-dark { background: var(--ink-3); border-color: var(--line-d); color: var(--paper); }
.textarea { min-height: 140px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.hint { font-family: 'Inter', system-ui, sans-serif; font-size: 13px; line-height: 1.45; color: var(--slate); font-weight: 400; }
.hint-d { font-family: 'Inter', system-ui, sans-serif; font-size: 13px; line-height: 1.45; color: var(--mute-d); }

.link { color: var(--oxblood); text-decoration: underline; text-underline-offset: 3px; }
.link-d { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }
.nav-link { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 500; text-decoration: none; }

.rule { height: 1px; background: var(--line); border: none; margin: 0; }
.rule-d { height: 1px; background: var(--line-d); border: none; margin: 0; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
.alert-ok { background: var(--ok-bg); color: #1F4A30; }
.alert-err { background: var(--err-bg); color: #5E2118; }
.alert-info { background: var(--ember-soft); color: #4F3013; }

.art { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--ink-2); color: var(--mute-d); font-family: 'Inter', system-ui, sans-serif; font-size: 13px; border-radius: 10px; box-sizing: border-box; padding: 16px; }
.art-light { background: #E8DDC8; color: var(--slate); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.table { width: 100%; border-collapse: collapse; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--slate); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pos { color: var(--ok); font-weight: 600; }
.neg { color: var(--oxblood); font-weight: 600; }

.toggle { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex-shrink: 0; border: none; padding: 0; }
.toggle-on { background: var(--ember); }
.toggle-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); }
.toggle-on .toggle-knob { left: 21px; }
