:root {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: #11182a;
  --text: #f3f5fb;
  --muted: #98a2b9;
  --line: rgba(199, 211, 241, .12);
  --purple: #a995ff;
  --blue: #81a9ff;
  --font-body: "DM Sans", sans-serif;
  --font-heading: "Manrope", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.site-shell { max-width: 1440px; padding: 0 8.2%; margin: auto; overflow: hidden; }
.site-header { height: 88px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-heading); font-weight: 800; font-size: 15px; letter-spacing: -.4px; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(169,149,255,.6); color: var(--purple); border-radius: 10px; display: grid; place-items: center; font: 800 11px var(--font-heading); }
.brand-period, .accent { color: var(--purple); }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: 12px; color: #b4bdd0; }
.main-nav a, .footer-admin { transition: color .2s ease; }
.main-nav a:hover, .footer-admin:hover { color: var(--text); }
.main-nav .nav-admin { color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 10px 13px; }
.nav-admin span { color: var(--purple); margin-left: 5px; }
.hero { min-height: 610px; position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; padding: 47px 0 80px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { color: var(--purple); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; margin: 0 0 22px; }
.status-dot, .mini-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #81dfb4; box-shadow: 0 0 12px rgba(129,223,180,.5); vertical-align: 1px; margin-right: 8px; }
.hero h1, .admin-heading h1 { font: 800 clamp(48px, 6.4vw, 78px)/1.08 var(--font-heading); letter-spacing: -4px; margin: 0; }
.hero-role { font-size: 17px; color: var(--blue); margin: 20px 0 13px; }
.hero-intro { max-width: 440px; color: var(--muted); line-height: 1.8; font-size: 14px; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 45px; padding: 0 18px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--purple); color: #15112b; }
.button-primary:hover { background: #baadff; }
.text-link { color: #e8e9f0; font-size: 12px; font-weight: 600; }
.text-link span { color: var(--purple); margin-left: 6px; }
.hero-meta { margin-top: 58px; display: flex; align-items: center; gap: 14px; color: #7f8aa4; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.meta-line { width: 34px; height: 1px; background: #49526a; }
.hero-art { height: 390px; display: grid; place-items: center; position: relative; }
.art-glow { position: absolute; width: 340px; height: 340px; background: radial-gradient(circle, rgba(99,88,188,.25), transparent 68%); }
.art-card { width: min(390px, 94%); height: 230px; position: relative; z-index: 2; background: linear-gradient(145deg, rgba(27,36,59,.97), rgba(15,23,41,.97)); border: 1px solid rgba(166,174,210,.17); box-shadow: 0 28px 90px rgba(0,0,0,.35); border-radius: 13px; transform: rotate(-4deg); overflow: hidden; }
.art-card-top, .art-card-bottom { height: 39px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; color: #7d89a6; font: 10px var(--font-body); border-bottom: 1px solid rgba(199,211,241,.1); }
.window-dots { display: flex; gap: 4px; }.window-dots i { display: block; width: 6px; height: 6px; background: #fa8f9b; border-radius: 50%; }.window-dots i:nth-child(2) { background: #ffd184; }.window-dots i:nth-child(3) { background: #85ddaf; }
.code-art { padding: 24px 22px; font: 12px/1.9 Consolas, monospace; color: #d7dcf0; }.code-art p { margin: 0; }.code-muted { color: #59657f; padding-right: 13px; }.code-purple { color: #c5a7ff; }.code-blue { color: #89b8ff; }.code-green { color: #a6dbbd; }.code-cursor { border-right: 2px solid var(--purple); height: 13px; display: inline-block; vertical-align: -3px; margin-left: 2px; }
.art-card-bottom { position: absolute; bottom: 0; border-top: 1px solid rgba(199,211,241,.1); border-bottom: 0; width: 100%; }.art-card-bottom .mini-dot { width: 5px; height: 5px; margin-right: 5px; }
.floating-tag { position: absolute; z-index: 3; padding: 11px 14px; border: 1px solid rgba(180,188,221,.18); background: rgba(19,26,45,.9); border-radius: 8px; color: #d3d6e3; font-size: 10px; box-shadow: 0 12px 35px rgba(0,0,0,.2); }.tag-top { top: 36px; right: 2px; }.tag-bottom { bottom: 42px; left: 3px; }.tag-icon { color: var(--blue); font-size: 16px; margin-right: 7px; vertical-align: -1px; }.tag-pink { color: #f39cc2; }
.art-orbit { position: absolute; border: 1px solid rgba(169,149,255,.12); border-radius: 50%; }.orbit-one { width: 430px; height: 310px; transform: rotate(-26deg); }.orbit-two { width: 330px; height: 420px; transform: rotate(37deg); }
.hero-index { position: absolute; bottom: 27px; right: 0; color: #7f8aa4; font: 10px var(--font-heading); }.hero-index span { display: inline-block; height: 1px; width: 33px; background: #515a70; vertical-align: middle; margin: 0 9px; }
.content-section { padding: 66px 0 78px; border-top: 1px solid var(--line); }.section-heading { display: flex; align-items: center; gap: 18px; }.section-heading .eyebrow { margin: 0; white-space: nowrap; }.section-rule { height: 1px; background: var(--line); flex: 1; }.section-count { color: #737e97; font-size: 10px; }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 11%; padding: 52px 2% 10px; align-items: start; }.about-profile { display: flex; align-items: center; gap: 16px; }.profile-avatar { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(140deg, #5d5ca0, #2a355a); color: #e3deff; font: 700 18px var(--font-heading); background-size: cover; background-position: center; flex: 0 0 auto; overflow: hidden; }.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }.about-profile h2 { font: 700 16px var(--font-heading); margin: 0 0 6px; }.about-profile p { color: var(--muted); font-size: 11px; margin: 0; }.about-copy > p { color: #aeb7cb; font-size: 14px; line-height: 1.85; margin: 0 0 17px; white-space: pre-line; }.about-copy .text-link { font-size: 11px; }
.projects-section { padding-bottom: 83px; }.section-title-row { display: flex; justify-content: space-between; align-items: end; padding: 41px 0 29px; }.section-title-row h2 { font: 800 38px/1.2 var(--font-heading); letter-spacing: -1.7px; margin: 0 0 8px; }.section-title-row p { color: var(--muted); font-size: 12px; margin: 0; }.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }.project-card { border: 1px solid var(--line); background: rgba(17,24,42,.8); border-radius: 10px; overflow: hidden; }.project-image { width: 100%; height: 190px; object-fit: cover; background: linear-gradient(135deg,#202949,#302b53); display: block; }.project-image-fallback { height: 150px; background: radial-gradient(circle at 78% 30%, rgba(169,149,255,.35), transparent 25%), linear-gradient(135deg,#1b2640,#151a31); display: grid; place-items: center; color: rgba(169,149,255,.6); font: 700 36px var(--font-heading); }.project-info { padding: 20px; }.project-info h3 { font: 700 17px var(--font-heading); margin: 0 0 9px; }.project-info > p { color: var(--muted); line-height: 1.7; font-size: 12px; margin: 0; white-space: pre-line; }.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }.project-tags span { color: #c3b6ff; background: rgba(169,149,255,.1); padding: 5px 9px; border-radius: 5px; font-size: 10px; }.project-links { display: flex; gap: 17px; margin-top: 19px; }.project-links a { color: #e2ddff; font-size: 11px; font-weight: 600; }.project-links a span { color: var(--purple); margin-left: 4px; }
.project-info > .project-views { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #8995ae; font-size: 10px; }
.project-info > .project-views::before { content: "◉"; color: var(--purple); font-size: 11px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.project-search { display: flex; align-items: center; gap: 12px; max-width: 520px; min-height: 48px; margin: 0 0 22px auto; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(17,24,42,.82); transition: border-color .2s, box-shadow .2s; }
.project-search:focus-within { border-color: rgba(169,149,255,.62); box-shadow: 0 0 0 3px rgba(169,149,255,.08); }
.project-search-icon { color: var(--purple); font-size: 23px; line-height: 1; transform: rotate(-20deg); }
.project-search input { width: 100%; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.project-search input::placeholder { color: #7f8aa4; }
.project-search button { width: 28px; height: 28px; flex: 0 0 auto; border: 0; border-radius: 6px; background: transparent; color: #cbd2e0; font-size: 20px; line-height: 1; cursor: pointer; }
.project-search button:hover { background: rgba(169,149,255,.12); color: var(--text); }
.project-search-empty { margin-top: 6px; }
.empty-state { text-align: center; padding: 49px 15px; border: 1px dashed rgba(181,191,220,.2); border-radius: 10px; background: radial-gradient(ellipse at top, rgba(93,82,170,.12), transparent 65%); }.empty-icon { color: var(--purple); font-size: 27px; }.empty-state h3 { font: 700 16px var(--font-heading); margin: 13px 0 7px; }.empty-state p { color: var(--muted); font-size: 12px; margin: 0; }.skills-section { padding-bottom: 85px; }.skills-list { display: flex; flex-wrap: wrap; gap: 11px; padding: 10px 0; }.skill-chip { padding: 12px 16px; border: 1px solid var(--line); border-radius: 7px; background: #11182a; color: #d5d8e4; font-size: 12px; }
.site-footer { min-height: 90px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 25px; color: #818ca4; font-size: 10px; }.footer-brand { color: var(--text); font-size: 12px; }.footer-brand .brand-mark { width: 28px; height: 28px; font-size: 9px; }.site-footer > p { flex: 1; }.footer-admin { color: #a5aec1; }
.admin-shell { max-width: 760px; min-height: 680px; margin: 0 auto; padding: 50px 0 90px; }.back-link { display: inline-block; color: #aab4c9; font-size: 11px; margin-bottom: 55px; }.back-link:hover { color: white; }.admin-heading .eyebrow { margin-bottom: 13px; }.admin-heading h1 { font-size: clamp(38px, 6vw, 54px); letter-spacing: -2.5px; }.admin-lead { color: var(--muted); font-size: 13px; margin: 12px 0 34px; }.login-card { width: min(100%, 440px); margin: 0 auto; padding: 30px; border: 1px solid var(--line); background: linear-gradient(145deg, #141c30, #101727); border-radius: 12px; box-shadow: 0 18px 55px rgba(0,0,0,.15); }.login-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--purple); background: rgba(169,149,255,.1); font-size: 18px; }.login-card h2 { font: 700 20px var(--font-heading); margin: 18px 0 7px; }.login-card > p { color: var(--muted); font-size: 12px; margin: 0 0 24px; }.editor-form, .login-card form { display: flex; flex-direction: column; }.login-card label, .editor-form label, .skill-form label { color: #c6cede; font-size: 11px; font-weight: 600; margin: 0 0 8px; }.login-card input, .editor-form input, .editor-form textarea, .skill-form input { width: 100%; border: 1px solid rgba(199,211,241,.16); outline: none; border-radius: 6px; background: #0d1424; color: var(--text); padding: 12px 13px; font-size: 12px; margin-bottom: 17px; }.login-card input:focus, .editor-form input:focus, .editor-form textarea:focus, .skill-form input:focus { border-color: rgba(169,149,255,.7); box-shadow: 0 0 0 3px rgba(169,149,255,.09); }.login-card input + label { margin-top: 2px; }.editor-form textarea { resize: vertical; min-height: 100px; }.button-full { width: 100%; margin-top: 9px; }.captcha-wrap { min-height: 66px; display: flex; align-items: center; justify-content: center; margin: 0 0 9px; }.form-message { color: #9edcbb; font-size: 11px; line-height: 1.5; margin: 8px 0 0; }.form-message.error { color: #ff9d9d; }.optional { color: #78849d; font-weight: 400; }
.forgot-link { display: block; border: 0; background: transparent; color: #b8aaff; font-size: 11px; cursor: pointer; padding: 11px 4px 0; align-self: center; }
.forgot-link:hover { color: #ded8ff; text-decoration: underline; }
.recovery-email-settings { margin-top: 31px; padding-top: 25px; border-top: 1px solid var(--line); }
.recovery-email-settings .editor-heading p { line-height: 1.6; }
.recovery-email-settings .button-outline { min-height: 42px; }
.profile-image-editor { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 17px; }
.profile-image-editor > img { width: 72px; height: 72px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 15px; object-fit: cover; background: var(--surface); }
.profile-image-controls { min-width: 0; flex: 1; }
.profile-image-controls input[type="url"] { margin-bottom: 11px; }
.profile-image-controls input[type="file"] { margin-bottom: 7px; }
.profile-image-controls .optional { display: block; margin: 0 0 11px; font-size: 10px; }
.profile-image-controls .form-message { margin: 8px 0 0; }
.project-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.editing-indicator { color: #d4cbff; background: rgba(169,149,255,.09); border: 1px solid rgba(169,149,255,.24); border-radius: 6px; padding: 10px 12px; font-size: 11px; margin: -7px 0 18px; }
.dashboard { margin-top: 42px; }.dashboard-top { display: flex; align-items: center; justify-content: space-between; }.dashboard-top .eyebrow { margin: 0 0 6px; }.dashboard-top h2 { font: 700 22px var(--font-heading); margin: 0; }.button-outline { border-color: var(--line); color: #d4d8e4; background: transparent; }.button-outline:hover { border-color: rgba(169,149,255,.55); }.button-small { min-height: 36px; padding: 0 12px; font-size: 10px; }.admin-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 28px 0 24px; gap: 25px; }.admin-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: #8f9ab0; padding: 0 0 12px; cursor: pointer; font-size: 11px; }.admin-tab.active { color: var(--text); border-color: var(--purple); }.admin-tab span { color: var(--purple); font-size: 10px; margin-left: 4px; }.editor-panel { padding: 23px; border: 1px solid var(--line); background: rgba(17,24,42,.75); border-radius: 9px; }.editor-heading h3 { font: 700 16px var(--font-heading); margin: 0 0 7px; }.editor-heading p { color: var(--muted); font-size: 11px; margin: 0 0 23px; }.editor-form label:not(:first-of-type) { margin-top: 0; }.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2px; }.form-footer .form-message { margin: 0; }.form-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.form-two-columns > div { min-width: 0; }.admin-list { margin-top: 27px; border-top: 1px solid var(--line); }.admin-list:empty { display: none; }.admin-list-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }.admin-list-item strong { display: block; font-size: 12px; margin-bottom: 5px; }.admin-list-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.item-actions { display: flex; flex: 0 0 auto; gap: 7px; }.item-actions button { background: transparent; border: 1px solid var(--line); color: #cbd2e0; padding: 7px 9px; border-radius: 5px; font-size: 10px; cursor: pointer; }.item-actions button:hover { border-color: var(--purple); }.item-actions .delete-button:hover { border-color: #e98291; color: #ff9d9d; }.skill-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }.skill-form > div { min-width: 0; }.skill-form input { margin-bottom: 0; }.skill-form .button { margin-bottom: 0; }.dashboard-message { min-height: 18px; }
@media (min-width: 1200px) { .hero { min-height: 670px; }.hero-art { transform: scale(1.05); } }
@media (max-width: 850px) { .site-shell { padding: 0 5%; }.hero { grid-template-columns: 1fr 1fr; }.hero h1 { font-size: 58px; }.hero-art { transform: scale(.9); }.about-grid { gap: 5%; }.main-nav { gap: 20px; } }
@media (max-width: 650px) {
  html { scroll-padding-top: 72px; }.site-shell { padding: 0 6%; }.site-header { height: 70px; }.brand { font-size: 13px; }.brand-mark { width: 30px; height: 30px; }.main-nav { gap: 13px; font-size: 10px; }.main-nav a:nth-child(1), .main-nav a:nth-child(2) { display: none; }.main-nav .nav-admin { padding: 8px 10px; }
  .hero { min-height: unset; display: flex; flex-direction: column; align-items: stretch; padding: 70px 0 45px; }.hero h1 { font-size: clamp(51px, 14vw, 68px); letter-spacing: -3px; }.hero-role { font-size: 15px; }.hero-intro { font-size: 13px; }.hero-meta { margin-top: 35px; }.hero-art { width: 100%; height: 315px; margin-top: 8px; transform: scale(.9); }.art-card { max-width: 350px; }.art-card-top, .art-card-bottom { height: 34px; }.code-art { padding: 21px 17px; font-size: 11px; }.tag-top { right: -5px; top: 20px; }.tag-bottom { bottom: 18px; left: -5px; }.orbit-one { width: 340px; height: 250px; }.orbit-two { width: 280px; height: 350px; }.hero-index { bottom: 5px; }
  .content-section { padding: 48px 0 58px; }.section-heading { gap: 11px; }.section-heading .eyebrow { font-size: 8px; letter-spacing: 1px; }.about-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 3px; }.about-copy > p { font-size: 13px; }.section-title-row { padding: 32px 0 21px; }.section-title-row h2 { font-size: 32px; }.section-title-row p { max-width: 290px; line-height: 1.6; }.projects-grid { grid-template-columns: 1fr; gap: 13px; }.project-image { height: 165px; }.project-info { padding: 17px; }.empty-state { padding: 39px 12px; }.skills-section { padding-bottom: 58px; }
  .site-footer { padding: 20px 0; min-height: unset; display: grid; grid-template-columns: 1fr auto; gap: 12px; }.site-footer > p { grid-column: 1 / -1; grid-row: 2; margin: 0; }.footer-admin { justify-self: end; }.site-footer > span:last-child { grid-column: 1 / -1; }
  .admin-shell { padding: 35px 0 65px; }.back-link { margin-bottom: 43px; }.admin-lead { margin-bottom: 27px; }.login-card { padding: 23px 19px; }.dashboard { margin-top: 35px; }.admin-tabs { gap: 12px 18px; flex-wrap: wrap; }.editor-panel { padding: 18px 15px; }.form-two-columns { grid-template-columns: 1fr; gap: 0; }.form-footer { align-items: flex-end; }.form-footer .button { padding: 0 12px; font-size: 10px; }.project-form-actions { flex-wrap: wrap; }.admin-list-item { align-items: flex-start; }.skill-form { grid-template-columns: 1fr; }.skill-form .button { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

.project-links { align-items: center; flex-wrap: wrap; }
.project-preview-button { padding: 0; border: 0; background: none; color: #e2ddff; font: 600 11px var(--font-body); cursor: pointer; }
.project-preview-button:hover, .project-preview-button:focus-visible { color: var(--purple); }
.project-preview-dialog { width: min(1100px, 94vw); max-width: none; height: min(760px, 92dvh); max-height: none; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #0b1020; color: var(--text); box-shadow: 0 24px 90px rgba(0,0,0,.6); }
.project-preview-dialog::backdrop { background: rgba(4,7,15,.82); backdrop-filter: blur(5px); }
.project-preview-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.project-preview-header .eyebrow { margin: 0 0 5px; }
.project-preview-header h2 { margin: 0; font: 700 18px var(--font-heading); }
.project-preview-actions { display: flex; gap: 8px; }
.project-preview-actions .button { margin: 0; }
.project-preview-note { color: var(--muted); font-size: 11px; }
.project-preview-view-status { min-height: 16px; margin: -5px 0 8px; color: #ffb1b8; font-size: 11px; }
.project-preview-dialog iframe { display: block; width: 100%; height: calc(100% - 110px); border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.back-to-top { position: fixed; z-index: 20; right: max(22px, calc((100vw - 1360px) / 2)); bottom: 24px; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 15px; border: 1px solid rgba(169,149,255,.38); border-radius: 999px; background: rgba(17,24,42,.94); color: var(--text); box-shadow: 0 10px 35px rgba(0,0,0,.32); font-size: 11px; font-weight: 600; cursor: pointer; backdrop-filter: blur(12px); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.back-to-top span:first-child { color: var(--purple); font-size: 18px; line-height: 1; }
.back-to-top:hover { transform: translateY(-2px); border-color: var(--purple); background: #1a2340; }
.back-to-top:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
@media (max-width: 650px) {
  .project-preview-dialog { width: 100vw; height: 100dvh; padding: 14px; border-radius: 0; }
  .project-preview-header { align-items: flex-start; }
  .project-preview-header h2 { font-size: 15px; }
  .project-preview-actions { flex-direction: column; }
  .project-preview-actions .button { min-height: 32px; }
  .project-preview-dialog iframe { height: calc(100% - 145px); }
  .back-to-top { right: 16px; bottom: 16px; min-height: 42px; padding: 0 13px; }
}

.appearance-picker { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.appearance-picker select { max-width: 122px; padding: 8px 28px 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font: 600 11px var(--font-body); cursor: pointer; }
.appearance-picker select:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

:root[data-theme="aurora"] {
  color-scheme: light;
  --bg: #f7f2e8;
  --surface: #fffaf1;
  --text: #302b25;
  --muted: #746c5f;
  --line: rgba(86, 68, 47, .17);
  --purple: #b94f38;
  --blue: #50745f;
  --font-heading: Georgia, "Times New Roman", serif;
}

:root[data-theme="oceano"] {
  --bg: #071c24;
  --surface: #0d2a33;
  --text: #e5f4f2;
  --muted: #91b2b3;
  --line: rgba(170, 221, 218, .15);
  --purple: #56d6bd;
  --blue: #82bdf2;
}

:root[data-theme="bosque"] {
  --bg: #111c17;
  --surface: #1a2b21;
  --text: #edf3e9;
  --muted: #a1b19f;
  --line: rgba(198, 222, 190, .15);
  --purple: #a5d786;
  --blue: #e1b778;
}

:root[data-theme="aurora"] .main-nav { color: var(--muted); }
:root[data-theme="aurora"] .main-nav .nav-admin { color: var(--text); }
:root[data-theme="aurora"] .text-link,
:root[data-theme="aurora"] .project-links a,
:root[data-theme="aurora"] .project-preview-button { color: var(--text); }
:root[data-theme="aurora"] .hero-meta,
:root[data-theme="aurora"] .hero-index,
:root[data-theme="aurora"] .site-footer,
:root[data-theme="aurora"] .footer-admin { color: var(--muted); }
:root[data-theme="aurora"] .about-copy > p { color: var(--muted); }
:root[data-theme="aurora"] .button-primary { background: var(--purple); color: #fff; }
:root[data-theme="aurora"] .button-primary:hover { filter: brightness(1.1); }
:root[data-theme="aurora"] .art-card,
:root[data-theme="aurora"] .floating-tag,
:root[data-theme="aurora"] .project-card,
:root[data-theme="aurora"] .project-search,
:root[data-theme="aurora"] .editor-panel { background: var(--surface); color: var(--text); }
:root[data-theme="aurora"] .art-card-top,
:root[data-theme="aurora"] .art-card-bottom { color: var(--muted); border-color: var(--line); }
:root[data-theme="aurora"] .code-art { color: #344454; }
:root[data-theme="aurora"] .code-muted { color: #748292; }
:root[data-theme="aurora"] .code-purple { color: var(--purple); }
:root[data-theme="aurora"] .code-blue { color: #426e91; }
:root[data-theme="aurora"] .code-green { color: #397452; }
:root[data-theme="aurora"] .floating-tag { border-color: var(--line); box-shadow: 0 12px 35px rgba(35, 40, 45, .1); }
:root[data-theme="aurora"] .project-tags span { color: var(--purple); background: color-mix(in srgb, var(--purple) 10%, transparent); }
:root[data-theme="aurora"] .project-search input::placeholder { color: var(--muted); }
:root[data-theme="aurora"] .project-search button { color: var(--muted); }
:root[data-theme="aurora"] .empty-state { border-color: var(--line); background: color-mix(in srgb, var(--purple) 5%, var(--surface)); }
:root[data-theme="aurora"] .skill-chip { background: var(--surface); color: var(--text); }
:root[data-theme="aurora"] .login-card { background: var(--surface); }
:root[data-theme="aurora"] .login-card label,
:root[data-theme="aurora"] .editor-form label,
:root[data-theme="aurora"] .skill-form label { color: var(--text); }
:root[data-theme="aurora"] .login-card input,
:root[data-theme="aurora"] .editor-form input,
:root[data-theme="aurora"] .editor-form textarea,
:root[data-theme="aurora"] .skill-form input { background: var(--bg); color: var(--text); border-color: var(--line); }
:root[data-theme="aurora"] .button-outline,
:root[data-theme="aurora"] .item-actions button { color: var(--text); }
:root[data-theme="aurora"] .admin-tab { color: var(--muted); }
:root[data-theme="aurora"] .admin-tab.active { color: var(--text); }
:root[data-theme="aurora"] .back-link { color: var(--muted); }
:root[data-theme="aurora"] .back-link:hover { color: var(--text); }
:root[data-theme="aurora"] .project-preview-dialog { background: var(--bg); }
:root[data-theme="aurora"] .back-to-top { background: color-mix(in srgb, var(--surface) 94%, transparent); }

:root:is([data-theme="oceano"], [data-theme="bosque"]) .art-card,
:root:is([data-theme="oceano"], [data-theme="bosque"]) .floating-tag,
:root:is([data-theme="oceano"], [data-theme="bosque"]) .project-card,
:root:is([data-theme="oceano"], [data-theme="bosque"]) .project-search,
:root:is([data-theme="oceano"], [data-theme="bosque"]) .editor-panel,
:root:is([data-theme="oceano"], [data-theme="bosque"]) .login-card { background: var(--surface); }
:root:is([data-theme="oceano"], [data-theme="bosque"]) .art-card-top,
:root:is([data-theme="oceano"], [data-theme="bosque"]) .art-card-bottom { border-color: var(--line); }
:root:is([data-theme="oceano"], [data-theme="bosque"]) .project-tags span { color: var(--purple); background: color-mix(in srgb, var(--purple) 12%, transparent); }
:root:is([data-theme="oceano"], [data-theme="bosque"]) .back-to-top { background: color-mix(in srgb, var(--surface) 94%, transparent); }

:root[data-theme="aurora"] .hero h1,
:root[data-theme="aurora"] .admin-heading h1,
:root[data-theme="aurora"] .section-title-row h2 { letter-spacing: -.7px; }
:root[data-theme="aurora"] .project-card,
:root[data-theme="aurora"] .art-card,
:root[data-theme="aurora"] .floating-tag,
:root[data-theme="aurora"] .login-card { border-radius: 16px; }
:root[data-theme="aurora"] .art-card { transform: rotate(-2deg); box-shadow: 0 25px 70px rgba(86, 68, 47, .14); }

@media (max-width: 650px) {
  .site-header { height: auto; min-height: 70px; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .appearance-picker { order: 3; flex-basis: 100%; justify-content: flex-end; }
  .appearance-picker select { max-width: none; }
}