/* Tori's page - site.css
   Cute-gothic palette: ink, lilac, violet, hot pink, bone. Original marks only (no third-party character art).
   Motion: only the sky (js/sparks.js), few and slow; the rest is hover and focus only. Reduced motion gets a still sky. */

:root {
  --ink: #0B0910;
  --ink-2: #14101C;
  --panel: #1B1526;
  --panel-2: #231B31;
  --panel-3: #2B2140;
  --line: rgba(201, 182, 255, 0.14);
  --line-strong: rgba(201, 182, 255, 0.28);
  --lilac: #C9B6FF;
  --lilac-dim: rgba(201, 182, 255, 0.55);
  --violet: #8B5CF6;
  --violet-deep: #5B3BB5;
  --pink: #FF5FB0;
  --pink-hot: #FF3D9E;
  --pink-soft: rgba(255, 95, 176, 0.18);
  --bone: #F7F3FA;
  --bone-78: rgba(247, 243, 250, 0.78);
  --bone-62: rgba(247, 243, 250, 0.62);
  --bone-42: rgba(247, 243, 250, 0.42);
  --font-display: 'Pirata One', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --container: 1100px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-pad: clamp(64px, 9vw, 120px);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glow-pink: 0 0 0 1px rgba(255, 95, 176, 0.28), 0 14px 40px rgba(255, 95, 176, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
/* Three fixed layers behind the page, back to front: the glows, the checker grid, the sky canvas. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 55% 40% at 88% 6%, rgba(255, 95, 176, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 45% at 6% 94%, rgba(139, 92, 246, 0.20), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
/* The checker grid: ink with a whisper of purple, 48px cells, faint lines on the cell edges.
   The sparks climb its vertical lines and burst on the crossings, so this 48 and CELL in js/sparks.js must agree. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.07) 1px, transparent 1px),
    repeating-conic-gradient(rgba(139, 92, 246, 0.05) 0 25%, transparent 0 50%);
  background-size: 48px 48px, 48px 48px, 96px 96px;
}
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: 0; background: none; color: inherit; }
ol, ul { list-style: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--pink); color: var(--ink);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 800;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink);
}
.eyebrow .bow { width: 18px; height: 14px; color: var(--pink); }
.section__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: 0.01em;
  color: var(--bone); margin-top: 0.6rem;
}
.section__lede { color: var(--bone-62); max-width: 56ch; margin-top: 0.9rem; font-size: 1.02rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 16, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 34px; height: 34px; color: var(--lilac); }
.brand__name { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.02em; line-height: 1; }
.menu { display: flex; align-items: center; gap: 1.6rem; font-weight: 700; font-size: 0.95rem; color: var(--bone-78); }
.menu a { padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.menu a:hover { color: var(--bone); border-color: var(--pink); }
.menu__cta {
  padding: 0.55rem 1.1rem !important; border: 1px solid var(--line-strong) !important; border-radius: var(--radius-pill);
  color: var(--bone);
}
.menu__cta:hover { border-color: var(--pink) !important; background: var(--pink-soft); }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong);
}
.nav__toggle-bar { display: block; width: 20px; height: 2px; background: var(--bone); margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .menu {
    display: none;
    position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 0.4rem 0 1rem;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 0.9rem var(--gutter); border-bottom: 1px solid var(--line); }
  .menu a:hover { border-bottom-color: var(--line); background: var(--panel); }
  .menu__cta { margin: 1rem var(--gutter) 0; text-align: center; border-bottom: 1px solid var(--line-strong) !important; }
}

/* ---------- hero / profile card ---------- */
.hero { padding: clamp(28px, 5vw, 56px) 0 0; scroll-margin-top: 76px; }
.profile {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.profile__band { height: 26px; border-bottom: 1px solid var(--line); }
.checker {
  background-color: var(--panel-2);
  background-image:
    linear-gradient(45deg, var(--pink-soft) 25%, transparent 25%),
    linear-gradient(-45deg, var(--pink-soft) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--pink-soft) 75%),
    linear-gradient(-45deg, transparent 75%, var(--pink-soft) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}
.profile__body {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: clamp(1.2rem, 4vw, 2.6rem);
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
.avatar {
  width: clamp(132px, 22vw, 188px); aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--panel-3), var(--ink-2));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 6px rgba(255, 95, 176, 0.12);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.avatar__mark { width: 58%; height: 58%; color: var(--lilac); }
.avatar__img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar__tag {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-42); background: rgba(11, 9, 16, 0.72);
  padding: 0.25rem 0.55rem; border-radius: var(--radius-pill); white-space: nowrap;
}
.profile__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 9vw, 5.2rem); line-height: 0.95; letter-spacing: 0.01em;
  color: var(--bone); margin: 0.2rem 0 0.35rem;
}
.profile__handle { color: var(--lilac-dim); font-weight: 700; font-size: 0.98rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem;
  padding: 0.35rem 0.8rem 0.35rem 0.6rem; border-radius: var(--radius-pill);
  background: rgba(255, 95, 176, 0.12); border: 1px solid rgba(255, 95, 176, 0.35);
  color: var(--bone); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em;
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 95, 176, 0.22); }
.profile__bio { margin-top: 1.1rem; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--bone-78); max-width: 48ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; border-radius: var(--radius-pill);
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pink); color: var(--ink); }
.btn--primary:hover { background: var(--pink-hot); box-shadow: var(--glow-pink); }
.btn--ghost { border-color: var(--line-strong); color: var(--bone-78); }
.btn--ghost:hover { border-color: var(--lilac); color: var(--bone); }
.btn--small { padding: 0.55rem 1.05rem; font-size: 0.85rem; background: var(--panel-3); color: var(--bone); border-color: var(--line-strong); }
.btn--small:hover { background: var(--pink); color: var(--ink); border-color: var(--pink); }

.profile__boxes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.box { background: var(--panel-2); padding: 1rem 1.25rem; }
.box__label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lilac-dim); }
.box__value { margin-top: 0.35rem; font-weight: 700; color: var(--bone-78); }
.player { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.55rem; }
.player__btn { width: 22px; height: 22px; border-radius: 50%; background: var(--pink); position: relative; flex: none; }
.player__btn::after {
  content: ""; position: absolute; left: 8px; top: 6px;
  border-left: 8px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.player__bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(201, 182, 255, 0.18); overflow: hidden; }
.player__fill { display: block; width: 0; height: 100%; background: var(--lilac); }
.player__time { font-size: 0.72rem; font-weight: 800; color: var(--bone-42); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .profile__body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile__bio { margin-inline: auto; }
  .btn-row { justify-content: center; }
  .profile__boxes { grid-template-columns: 1fr; }
}

/* ---------- sections ---------- */
.section { padding: var(--section-pad) 0; scroll-margin-top: 76px; }
.section__head { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section__head--art { display: flex; align-items: center; justify-content: space-between; gap: clamp(1.5rem, 4vw, 3rem); }

/* the star portrait: the drawing twinkles inside the SVG itself; the figure breathes slowly */
.stars { flex: none; width: clamp(200px, 28vw, 320px); margin: 0; animation: stars-breathe 3.8s ease-in-out infinite; }
.stars img { width: 100%; height: auto; display: block; }
@keyframes stars-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.86; } }
@media (max-width: 760px) {
  .section__head--art { flex-direction: column; align-items: flex-start; }
  .stars { width: min(280px, 82vw); align-self: center; }
}

/* the shop list */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 2vw, 1.4rem); counter-reset: card; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 95, 176, 0.45); box-shadow: var(--glow-pink); }
.card::before {
  counter-increment: card; content: counter(card, decimal-leading-zero);
  position: absolute; top: 0.95rem; right: 1.1rem;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--lilac-dim);
}
.card__tile {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.9rem; color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.card:nth-child(3n+1) .card__tile { background: linear-gradient(145deg, #FF5FB0, #8B5CF6); }
.card:nth-child(3n+2) .card__tile { background: linear-gradient(145deg, #8B5CF6, #C9B6FF); }
.card:nth-child(3n)   .card__tile { background: linear-gradient(145deg, #C9B6FF, #FF5FB0); }
.card__name { font-size: 1.25rem; font-weight: 800; color: var(--bone); padding-right: 2.2rem; }
.card__what { color: var(--bone-62); font-size: 0.95rem; margin-top: 0.15rem; }
.card__note {
  margin-top: 0.6rem; font-style: italic; color: var(--lilac-dim); font-size: 0.92rem;
  padding-left: 0.75rem; border-left: 2px solid rgba(201, 182, 255, 0.3);
}
.card__badge {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.6rem;
  padding: 0.22rem 0.6rem; border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.18); border: 1px solid rgba(139, 92, 246, 0.45);
  color: var(--lilac); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* about me */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 2vw, 1.4rem); }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem; position: relative; overflow: hidden;
}
.panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--pink), var(--violet)); }
.panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: 0.02em; margin-bottom: 0.6rem; }
.panel p { color: var(--bone-78); }
.placeholder { color: var(--bone-42); font-style: italic; }
.dashes li { padding: 0.45rem 0; border-bottom: 1px dashed var(--line-strong); color: var(--bone-42); }
.dashes li:last-child { border-bottom: 0; }
@media (max-width: 820px) { .panels { grid-template-columns: 1fr; } }

/* links */
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 2vw, 1.2rem); }
.social {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.social:hover { border-color: var(--lilac); transform: translateY(-2px); }
.social__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--panel-3); display: grid; place-items: center; color: var(--lilac); flex: none; }
.social__icon svg { width: 22px; height: 22px; }
.social__name { display: block; font-weight: 800; }
.social__handle { display: block; font-size: 0.82rem; color: var(--bone-42); }
.feeds { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(0.9rem, 2vw, 1.4rem); margin-top: clamp(1rem, 3vw, 1.6rem); }
.feed { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.8rem; }
.ig-grid span { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(160deg, var(--panel-3), var(--panel-2)); border: 1px solid var(--line); }
.ig-grid span:nth-child(2) { background: linear-gradient(160deg, rgba(255, 95, 176, 0.35), var(--panel-2)); }
.ig-grid span:nth-child(4) { background: linear-gradient(160deg, rgba(139, 92, 246, 0.4), var(--panel-2)); }
.ig-grid span:nth-child(6) { background: linear-gradient(160deg, rgba(201, 182, 255, 0.3), var(--panel-2)); }
.video {
  aspect-ratio: 16 / 9; border-radius: 14px; margin-top: 0.8rem;
  background: linear-gradient(160deg, var(--panel-3), var(--ink-2)); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.video__play { width: 58px; height: 58px; border-radius: 50%; background: var(--pink); position: relative; box-shadow: 0 0 0 10px rgba(255, 95, 176, 0.14); }
.video__play::after {
  content: ""; position: absolute; left: 23px; top: 18px;
  border-left: 18px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.feed__note { margin-top: 0.8rem; font-size: 0.85rem; color: var(--bone-42); }
@media (max-width: 900px) { .socials { grid-template-columns: repeat(2, 1fr); } .feeds { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .socials { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { position: relative; border-top: 1px dashed var(--line-strong); padding: 2.6rem 0 3rem; }
.footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 8px;
  background-image: radial-gradient(circle at 4px 4px, rgba(201, 182, 255, 0.32) 2px, transparent 2.6px);
  background-size: 12px 8px;
}
.footer__inner { display: grid; gap: 0.6rem; justify-items: center; text-align: center; color: var(--bone-42); font-size: 0.9rem; }
.footer__brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.4rem; color: var(--bone-78); }
.footer__brand svg { width: 26px; height: 26px; color: var(--lilac); }
.footer__disclosure { max-width: 60ch; }
.footer a { color: var(--lilac); border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
.footer a:hover { border-bottom-color: var(--lilac); }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - 68px); display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.notfound__mark { width: 120px; height: 120px; color: var(--lilac); margin: 0 auto 1.2rem; }
.notfound h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.05; }
.notfound p { color: var(--bone-62); margin: 0.8rem auto 1.8rem; max-width: 40ch; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover, .social:hover { transform: none; }
}
