/* actual.love — design tokens + shared components. Night-time editorial: aubergine, ivory, champagne. */
:root {
  --night: #120c11;
  --night-2: #1b1219;
  --night-3: #261a23;
  --plum: #3a2231;
  --rose: #b4466a;
  --rose-deep: #8e2c4f;
  --champagne: #e3bf94;
  --champagne-2: #f2dcc0;
  --ivory: #f7f0e7;
  --ivory-2: #efe4d6;
  --ink: #1e161b;
  --muted: #a8969f;
  --muted-2: #7d6a74;
  --line: rgba(247, 240, 231, 0.12);
  --line-2: rgba(247, 240, 231, 0.2);
  --ok: #7fcfa0;
  --danger: #e2536f;
  --glass: rgba(27, 18, 25, 0.62);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ivory); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rose); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 6px; }

.serif { font-family: var(--serif); font-optical-sizing: auto; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--champagne); }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* logo */
.logo { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 1px; }
.logo i { font-style: italic; color: var(--champagne); }
.logo .dot { color: var(--rose); }

/* buttons */
.btn { --bg: var(--ivory); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--bg); color: var(--fg); font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(227, 191, 148, 0.45); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn.rose { --bg: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%); --fg: var(--ivory); background: var(--bg); }
.btn.rose:hover { box-shadow: 0 14px 40px -12px rgba(180, 70, 106, 0.7); }
.btn.ghost { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--champagne); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.block { width: 100%; }
.btn .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff6b8b; box-shadow: 0 0 0 0 rgba(255, 107, 139, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 139, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 107, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 139, 0); } }

/* forms */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label, .label { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.input { width: 100%; min-height: 50px; padding: 12px 16px; background: rgba(247, 240, 231, 0.04); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--ivory); outline: none; transition: border-color .2s, background .2s; }
.input:focus { border-color: var(--champagne); background: rgba(247, 240, 231, 0.07); }
.input::placeholder { color: var(--muted-2); }
input[type=date].input { color-scheme: dark; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 0; font-size: 14px; line-height: 1.5; color: var(--ivory-2); cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; transition: all .15s; }
.check input:checked { background: var(--champagne); border-color: var(--champagne); }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.check a { color: var(--champagne); }
.error { color: #ff9bb0; font-size: 14px; min-height: 20px; }

/* cards */
.card { background: linear-gradient(180deg, rgba(247, 240, 231, 0.05), rgba(247, 240, 231, 0.02)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.chip { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(227, 191, 148, 0.1); color: var(--champagne-2); font-size: 13px; border: 1px solid rgba(227, 191, 148, 0.18); }

/* grain + glow */
.grain::before { content: ''; position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 100; padding: 14px 20px; border-radius: 14px; background: var(--ivory); color: var(--ink); font-weight: 500; font-size: 14.5px; box-shadow: var(--shadow); transition: all .3s ease; max-width: calc(100vw - 32px); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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