:root {
  color-scheme: dark;
  --bg: #07070a;
  --bg-soft: #0b0b10;
  --panel: #121218;
  --panel-soft: #16161e;
  --panel-hover: #1c1c26;
  --line: #26262f;
  --line-soft: #1d1d26;
  --text: #f5f5f7;
  --muted: #8b8b98;
  --muted-dark: #5f5f6c;
  --pink: #ed3f7b;
  --pink-2: #ff6f9c;
  --pink-soft: rgba(237, 63, 123, .48);
  --violet: #7c5cff;
  --grad-brand: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, .45);
  --shadow-glow: 0 0 0 1px rgba(237, 63, 123, .08), 0 18px 50px rgba(237, 63, 123, .12);
}

:root.light-theme {
  color-scheme: light;
  --bg: #fff8fb;
  --bg-soft: #fff1f6;
  --panel: #ffffff;
  --panel-soft: #fff8fb;
  --panel-hover: #fff0f5;
  --line: #f0dbe4;
  --line-soft: #f6e8ee;
  --text: #241b22;
  --muted: #806b76;
  --muted-dark: #a48d98;
  --pink: #d92e6d;
  --pink-2: #c52b65;
  --pink-soft: rgba(217, 46, 109, .34);
  --violet: #6747d8;
  --shadow-soft: 0 20px 60px rgba(123, 45, 78, .12);
  --shadow-glow: 0 0 0 1px rgba(217, 46, 109, .08), 0 18px 50px rgba(217, 46, 109, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--text);
  background: radial-gradient(1100px 620px at 15% -10%, rgba(237,63,123,.16), transparent 45%), radial-gradient(900px 620px at 90% 105%, rgba(124,92,255,.16), transparent 45%), var(--bg);
  font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
:root.light-theme body { background: radial-gradient(1100px 620px at 15% -10%, rgba(237,63,123,.12), transparent 45%), radial-gradient(900px 620px at 90% 105%, rgba(124,92,255,.1), transparent 45%), var(--bg); }
body.modal-open { overflow: hidden; }
a { color: inherit; }
@keyframes chaosIn {
  0% { opacity: 0; transform: translate3d(var(--tx, 0), var(--ty, 18px), 0) rotate(var(--rot, -3deg)) scale(.94); filter: blur(3px); }
  55% { opacity: 1; transform: translate3d(calc(var(--tx, 0) * -.15), calc(var(--ty, 18px) * -.2), 0) rotate(calc(var(--rot, -3deg) * -.3)) scale(1.015); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPopIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.page-shell { position: relative; display: flex; flex-direction: column; width: min(100% - 32px, 620px); min-height: 100svh; margin: 0 auto; padding: clamp(30px, 5vh, 52px) 0 clamp(12px, 3vh, 30px); }
.page-shell::before { content: ""; position: absolute; z-index: -1; top: 12%; left: 50%; width: min(560px, 100vw); height: 420px; transform: translateX(-50%); border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse, rgba(124,92,255,.08), transparent 68%); filter: blur(10px); }
.theme-toggle { position: absolute; top: clamp(9px, 2.2vh, 18px); right: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--panel-soft); font: 500 11px "DM Sans", Arial, sans-serif; cursor: pointer; opacity: .82; transition: color .2s, border-color .2s, background .2s, opacity .2s; }
.theme-toggle:hover, .theme-toggle:focus-visible { opacity: 1; border-color: var(--pink-soft); color: var(--pink-2); outline: none; }
.theme-icon { font-size: 14px; line-height: 1; }
.profile { flex: 0 0 auto; text-align: center; --tx: -12px; --ty: -18px; --rot: -4deg; animation: chaosIn .72s cubic-bezier(.2,.8,.2,1) both; }
.avatar-wrap { display: flex; justify-content: center; margin-bottom: clamp(10px, 2.5vh, 22px); }
.avatar-placeholder { position: relative; display: grid; place-items: center; overflow: hidden; width: clamp(72px, 13vh, 112px); height: clamp(72px, 13vh, 112px); border: 2px solid rgba(237,63,123,.45); border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 5px rgba(237,63,123,.1), 0 20px 50px rgba(0,0,0,.45); color: #fff; font-size: 48px; }
:root.light-theme .avatar-placeholder { box-shadow: 0 0 0 5px rgba(237,63,123,.1), 0 20px 50px rgba(123,45,78,.18); }
.avatar-placeholder img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { display: none; font: 800 48px/1 "Manrope", Arial, sans-serif; }
.avatar-placeholder.is-fallback .avatar-fallback { display: block; }
h1 { margin: 0 0 clamp(14px, 4vh, 36px); color: var(--text); font: 800 clamp(32px, 8vh, 56px)/1 "Manrope", Arial, sans-serif; letter-spacing: -.07em; }
.socials { display: flex; justify-content: center; gap: clamp(12px, 4vw, 32px); margin: clamp(14px, 4vh, 36px) 0 clamp(12px, 3vh, 30px); animation: chaosIn .72s .12s cubic-bezier(.2,.8,.2,1) both; --tx: 18px; --ty: 14px; --rot: 3deg; }
.socials a { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--muted); font-size: clamp(10px, 1.7vh, 11px); text-decoration: none; transition: color .2s, transform .2s; }
.socials a:hover { color: var(--pink-2); transform: translateY(-2px); }
.social-icon { display: grid; place-items: center; width: clamp(32px, 5.5vh, 40px); height: clamp(32px, 5.5vh, 40px); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--pink-2); background: var(--panel-soft); box-shadow: 0 8px 20px rgba(0,0,0,.2); transition: border-color .2s, background .2s, box-shadow .2s; }
:root.light-theme .social-icon { box-shadow: 0 8px 20px rgba(123,45,78,.08); }
.socials a:hover .social-icon { border-color: var(--pink-soft); background: var(--panel-hover); box-shadow: 0 0 0 3px rgba(237,63,123,.08), 0 10px 24px rgba(237,63,123,.16); }
.social-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-icon .icon-fill { fill: currentColor; stroke: none; }
.links { display: grid; flex: 1 1 auto; align-content: center; gap: clamp(7px, 1.6vh, 12px); min-height: 0; }
.link-card { position: relative; display: flex; flex-direction: column; justify-content: center; gap: clamp(3px, .8vh, 5px); min-height: clamp(58px, 10.5vh, 92px); padding: clamp(11px, 1.8vh, 19px) 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(160deg, #14141c 0%, #101016 100%); color: var(--text); text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.18); transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
button.link-card { width: 100%; font: inherit; text-align: left; cursor: pointer; }
:root.light-theme .link-card { background: linear-gradient(160deg, #ffffff 0%, #fff8fb 100%); box-shadow: 0 8px 22px rgba(123,45,78,.08); }
.link-card:nth-child(1) { --tx: -20px; --ty: 10px; --rot: 2deg; animation: chaosIn .72s .2s cubic-bezier(.2,.8,.2,1) both; }
.link-card:nth-child(2) { --tx: 22px; --ty: 16px; --rot: -3deg; animation: chaosIn .72s .27s cubic-bezier(.2,.8,.2,1) both; }
.link-card:nth-child(3) { --tx: -16px; --ty: 20px; --rot: 3deg; animation: chaosIn .72s .34s cubic-bezier(.2,.8,.2,1) both; }
.link-card:nth-child(4) { --tx: 16px; --ty: 14px; --rot: -2deg; animation: chaosIn .72s .41s cubic-bezier(.2,.8,.2,1) both; }
.link-card:hover, .link-card:focus-visible { border-color: var(--pink-soft); background: var(--panel-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); outline: none; }
.ignite-card { padding-top: clamp(13px, 2.1vh, 22px); padding-bottom: clamp(13px, 2.1vh, 22px); border-color: rgba(237,63,123,.55); background: linear-gradient(110deg, rgba(237,63,123,.2), rgba(124,92,255,.12) 55%, #101016); box-shadow: var(--shadow-glow); }
:root.light-theme .ignite-card { background: linear-gradient(110deg, rgba(237,63,123,.13), rgba(124,92,255,.08) 55%, #fff8fb); }
.maria-card { border-color: rgba(124,92,255,.46); background: linear-gradient(110deg, rgba(124,92,255,.16), rgba(237,63,123,.08) 55%, #101016); }
:root.light-theme .maria-card { background: linear-gradient(110deg, rgba(124,92,255,.1), rgba(237,63,123,.06) 55%, #fff8fb); }
.card-title { color: var(--pink-2); font-size: clamp(11px, 1.9vh, 13px); font-weight: 700; letter-spacing: .13em; }
.card-description { color: var(--muted); font-size: clamp(11px, 1.9vh, 13px); }
.ebooks-modal[hidden] { display: none; }
.ebooks-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; animation: modalFadeIn .22s ease both; }
.ebooks-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 8, .72); backdrop-filter: blur(7px); }
.ebooks-dialog { position: relative; width: min(100%, 470px); padding: clamp(22px, 5vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow-soft); animation: modalPopIn .3s cubic-bezier(.2,.8,.2,1) both; }
:root.light-theme .ebooks-backdrop { background: rgba(44, 19, 31, .3); }
.modal-close { position: absolute; top: 13px; right: 15px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--panel-soft); font-size: 24px; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.modal-close:hover, .modal-close:focus-visible { border-color: var(--pink-soft); color: var(--pink-2); background: var(--panel-hover); outline: none; }
.modal-kicker { margin: 0 0 8px; color: var(--pink-2); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.ebooks-dialog h2 { margin: 0; font: 700 clamp(25px, 6vw, 34px)/1.1 "Playfair Display", Georgia, serif; }
.modal-intro { max-width: 360px; margin: 10px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ebook-options { display: grid; gap: 10px; }
.ebook-option { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 90px; padding: 17px 46px 17px 17px; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.ebook-option:hover, .ebook-option:focus-visible { transform: translateY(-2px); border-color: var(--pink-soft); box-shadow: var(--shadow-glow); outline: none; }
.ebook-option-pink { background: linear-gradient(115deg, rgba(237,63,123,.2), rgba(237,63,123,.04)); }
.ebook-option-violet { background: linear-gradient(115deg, rgba(124,92,255,.2), rgba(124,92,255,.04)); }
:root.light-theme .ebook-option-pink { background: linear-gradient(115deg, rgba(237,63,123,.12), rgba(237,63,123,.03)); }
:root.light-theme .ebook-option-violet { background: linear-gradient(115deg, rgba(124,92,255,.1), rgba(124,92,255,.03)); }
.ebook-option-title { color: var(--pink-2); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.ebook-option-description { color: var(--muted); font-size: 13px; line-height: 1.4; }
.ebook-arrow { position: absolute; top: 15px; right: 16px; color: var(--pink-2); font-size: 20px; }
.contact-panel { margin-top: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow-soft); animation: chaosIn .45s cubic-bezier(.2,.8,.2,1) both; }
.contact-panel[hidden] { display: none; }
.contact-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.contact-panel h2 { margin: 0; font-size: 20px; line-height: 1.15; }
.contact-panel p { margin: 8px 0 18px; color: var(--muted); font-size: 13px; }
.form-close { border: 0; padding: 0 3px; color: var(--muted); background: transparent; font-size: 25px; line-height: 1; cursor: pointer; }
.form-close:hover, .form-close:focus-visible { color: var(--pink-2); outline: none; }
.contact-panel form { display: grid; gap: 12px; }
.contact-panel label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.contact-panel input, .contact-panel select, .contact-panel textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; color: var(--text); background: var(--panel-soft); font: 400 14px "DM Sans", Arial, sans-serif; outline: none; transition: border-color .2s, box-shadow .2s; }
.contact-panel textarea { resize: vertical; min-height: 76px; }
.contact-panel input:focus, .contact-panel select:focus, .contact-panel textarea:focus { border-color: var(--pink-soft); box-shadow: 0 0 0 3px rgba(237,63,123,.1); }
.submit-button { margin-top: 4px; border: 0; border-radius: var(--radius-sm); padding: 13px 16px; color: #fff; background: var(--grad-brand); font: 700 13px "DM Sans", Arial, sans-serif; cursor: pointer; box-shadow: 0 10px 25px rgba(237,63,123,.2); }
.submit-button:hover, .submit-button:focus-visible { filter: brightness(1.08); outline: none; }
footer { flex: 0 0 auto; margin-top: clamp(10px, 3vh, 38px); color: var(--muted-dark); font-size: 11px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .profile, .socials, .link-card, .contact-panel, .ebooks-modal, .ebooks-dialog { animation: none; } }
@media (max-width: 430px) { .page-shell { width: min(100% - 24px, 620px); } .theme-toggle { right: 0; } .socials { gap: 13px; } .link-card { padding-left: 18px; padding-right: 18px; } .contact-panel { padding: 16px; } .ebooks-dialog { padding: 22px 16px 16px; } }
@media (max-height: 620px) { .page-shell { padding-top: 24px; } .avatar-wrap { margin-bottom: 8px; } .socials { margin-top: 10px; margin-bottom: 10px; } .link-card { min-height: 48px; } footer { margin-top: 8px; } }
