@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-red: #ff0000;
  --c-pink: #ff1493;
  --c-dark: #261717;
  --c-dark2: #1a0e0e;
  --c-dark3: #2f1b1b;
  --c-text: #f5e6e6;
  --c-text-muted: #c9a8a8;
  --c-border: rgba(255, 20, 147, 0.18);
  --c-card-bg: rgba(38, 23, 23, 0.72);
  --c-glass: rgba(255, 0, 0, 0.06);
  --radius: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --header-h: 64px;
  --topbar-h: 36px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--c-dark);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Aurora Background ── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: aurora-drift 10s ease-in-out infinite alternate;
}

.orb1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #ff0000 0%, transparent 70%);
  top: -20%;
  left: -10%;
  animation-duration: 11s;
}

.orb2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #ff1493 0%, transparent 70%);
  top: 10%;
  right: -15%;
  animation-duration: 9s;
  animation-delay: -3s;
}

.orb3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #cc0033 0%, transparent 70%);
  bottom: -10%;
  left: 30%;
  animation-duration: 12s;
  animation-delay: -6s;
}

@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, 5%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.97); }
  100% { transform: translate(4%, -3%) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-orb { animation: none; }
}

/* ── Top Bar ── */
.top-bar {
  position: relative;
  z-index: 200;
  height: var(--topbar-h);
  background: linear-gradient(90deg, rgba(255,0,0,0.15), rgba(255,20,147,0.15));
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-bar-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-pink);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 16px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 190;
  height: var(--header-h);
  background: rgba(26, 14, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.brand-center {
  grid-column: 2;
  text-align: center;
}

.brand-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--c-red), var(--c-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.main-nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
}

.main-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  text-decoration: none;
  padding: 10px 4px;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--c-pink);
}

.burger {
  grid-column: 3;
  justify-self: end;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Fullscreen Menu ── */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(22, 10, 10, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.fullscreen-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fs-link {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  padding: 12px 24px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.fs-link:hover {
  color: var(--c-pink);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: var(--c-text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.close-menu:hover {
  border-color: var(--c-pink);
  color: var(--c-pink);
}

/* ── Main Layout ── */
main {
  position: relative;
  z-index: 10;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero (Home) ── */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero-article {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(100px, 20vw, 220px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 20, 147, 0.1);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero-h1 {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff 0%, var(--c-pink) 60%, var(--c-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 48px;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 48px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--c-pink);
  color: var(--c-pink);
}

/* ── Page Hero (category/tag) ── */
.page-hero-section {
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-hero-article {
  text-align: center;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.page-h1 {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(135deg, #fff 0%, var(--c-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-sub {
  font-size: 16px;
  color: var(--c-text-muted);
  position: relative;
  z-index: 1;
  line-height: 1.65;
}

/* ── Content Layout with Aside ── */
.content-section,
.entry-section,
.about-section,
.privacy-section {
  padding: 40px 0 80px;
}

.content-with-aside {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Left Aside ── */
.left-aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(8px);
}

.aside-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin-top: 4px;
}

.aside-title a {
  color: inherit;
  text-decoration: none;
}

.aside-title a:hover {
  color: var(--c-pink);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  background: var(--c-glass);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.aside-link:hover {
  border-color: var(--c-border);
  background: rgba(255, 20, 147, 0.08);
}

.aside-link strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
}

.aside-link span {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.4;
}

.aside-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag-pill {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  min-height: 32px;
  align-self: flex-start;
}

.tag-pill:hover {
  background: rgba(255, 20, 147, 0.15);
  color: var(--c-pink);
}

/* ── Main Content ── */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-pink);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.main-content h2 {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}

/* ── Prose ── */
.prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
}

.prose p {
  margin-bottom: 16px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--c-text);
}

.prose h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--c-text-muted);
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--c-pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--c-red);
}

.prose strong {
  font-weight: 600;
  color: #fff;
}

.prose blockquote {
  border-left: 3px solid var(--c-pink);
  padding-left: 16px;
  color: var(--c-text-muted);
  margin: 16px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

.prose th, .prose td {
  border: 1px solid var(--c-border);
  padding: 8px 12px;
  text-align: left;
}

.prose th {
  background: var(--c-glass);
  font-weight: 600;
}

/* ── Child Grid (cards) ── */
.child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.child-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.child-card:hover {
  border-color: rgba(255, 20, 147, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 20, 147, 0.12);
}

.child-card strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}

.card-desc {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.card-date {
  font-size: 11px;
  color: rgba(255, 20, 147, 0.7);
  margin-top: 4px;
}

/* ── Entry Page ── */
.entry-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.entry-date, .entry-mod {
  font-size: 12px;
  color: var(--c-text-muted);
}

.entry-date {
  color: var(--c-pink);
}

.entry-h1 {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
}

.entry-prose {
  margin-top: 8px;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--c-border);
  background: rgba(22, 10, 10, 0.9);
  backdrop-filter: blur(12px);
}

.site-footer > section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  padding-top: 40px !important;
  padding-bottom: 12px !important;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}

.footer-big {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, rgba(255,0,0,0.5), rgba(255,20,147,0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px !important;
  padding-bottom: 24px !important;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--c-text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--c-text-muted);
  text-decoration: none;
  padding: 10px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--c-pink);
}

/* ── Parallax Scroll Stagger ── */
.child-card {
  animation: fade-up 0.5s ease both;
}

.child-grid .child-card:nth-child(1) { animation-delay: 0.05s; }
.child-grid .child-card:nth-child(2) { animation-delay: 0.10s; }
.child-grid .child-card:nth-child(3) { animation-delay: 0.15s; }
.child-grid .child-card:nth-child(4) { animation-delay: 0.20s; }
.child-grid .child-card:nth-child(5) { animation-delay: 0.25s; }
.child-grid .child-card:nth-child(6) { animation-delay: 0.30s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .child-card { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .content-with-aside {
    grid-template-columns: 1fr;
  }
  .left-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .aside-links, .aside-tags {
    flex: 1 1 140px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
  }
  .header-inner {
    padding: 0 16px;
    grid-template-columns: 1fr auto;
  }
  .main-nav {
    display: none;
  }
  .brand-center {
    grid-column: 1;
    text-align: left;
  }
  .burger {
    grid-column: 2;
  }
  .wrap {
    padding: 0 16px;
  }
  .hero-section {
    min-height: 70vh;
    padding: 40px 0;
  }
  .hero-h1 {
    font-size: clamp(24px, 7vw, 38px);
  }
  .hero-bg-text {
    font-size: clamp(70px, 22vw, 120px);
  }
  .child-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .left-aside {
    flex-direction: column;
  }
  .footer-big {
    font-size: clamp(28px, 10vw, 50px);
  }
  .site-footer > section {
    padding: 0 16px;
  }
}
