@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Lato:wght@300;400;700&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: #3a1e1e;
  --c-text: #f5e8e8;
  --c-text-dim: #c9a8a8;
  --c-text-muted: #8a6060;
  --c-accent: #ff4d6d;
  --c-glow: rgba(255, 20, 147, 0.35);
  --c-glow2: rgba(255, 0, 0, 0.25);
  --nav-width: 220px;
  --font-head: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --radius: 0;
  --scroll-offset: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--c-dark2);
  color: var(--c-text);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--c-dark2);
}

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

.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.a1 {
  width: 80vw;
  height: 80vw;
  background: radial-gradient(ellipse at center, #ff0000 0%, transparent 70%);
  top: -20vw;
  left: -20vw;
  animation: aurora-drift1 10s ease-in-out infinite alternate;
}

.a2 {
  width: 70vw;
  height: 70vw;
  background: radial-gradient(ellipse at center, #ff1493 0%, transparent 68%);
  top: 30vh;
  right: -15vw;
  animation: aurora-drift2 12s ease-in-out infinite alternate;
}

.a3 {
  width: 60vw;
  height: 60vw;
  background: conic-gradient(from 120deg at 60% 40%, #ff0000, #ff1493, #261717, #ff0000);
  bottom: -10vw;
  left: 20vw;
  opacity: 0.3;
  animation: aurora-drift3 9s ease-in-out infinite alternate;
}

@keyframes aurora-drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8vw, 6vh) scale(1.12); }
}
@keyframes aurora-drift2 {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to   { transform: translate(-6vw, 8vh) rotate(15deg) scale(1.08); }
}
@keyframes aurora-drift3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, -5vh) scale(1.1); }
}

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

/* ── Side Navigation ── */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: linear-gradient(180deg, rgba(38,23,23,0.97) 0%, rgba(26,14,14,0.99) 100%);
  border-right: 1px solid rgba(255,20,147,0.2);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 4px 0 32px rgba(255,0,0,0.12);
}

.side-nav-brand {
  padding: 28px 20px 20px;
  border-bottom: 1px solid rgba(255,20,147,0.15);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-text-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-tagline {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--c-text-muted);
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.side-nav > ol {
  list-style: none;
  padding: 16px 0;
  flex: 1;
}

.side-nav > ol > li {
  position: relative;
}

.side-nav > ol > li > a {
  display: block;
  padding: 13px 20px 13px 24px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--c-text-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
  min-height: 44px;
  line-height: 1.3;
  border-left: 2px solid transparent;
}

.side-nav > ol > li > a:hover,
.side-nav > ol > li > a:focus {
  color: #fff;
  background: rgba(255,20,147,0.1);
  border-left-color: var(--c-pink);
  outline: none;
}

/* ── Page Wrap ── */
.page-wrap {
  margin-left: var(--nav-width);
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(38,23,23,0.85) 0%, rgba(26,14,14,0.95) 100%);
}

.hero-slant {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--c-dark2);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 2;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  width: 100%;
  padding: 60px 48px 80px;
  position: relative;
  z-index: 1;
}

.hero-illustration {
  flex-shrink: 0;
}

.hero-illustration img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--c-pink));
}

.hero-icon-deco {
  font-size: 5rem;
  color: var(--c-pink);
  flex-shrink: 0;
  filter: drop-shadow(0 0 24px var(--c-red));
  animation: icon-pulse 4s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-icon-deco { animation: none; }
}

.hero-text {
  text-align: right;
  max-width: 520px;
}

.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 0 40px var(--c-glow), 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--c-text-dim);
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
}

/* ── Content + Aside Layout ── */
.content-with-aside {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 48px 0;
}

/* ── Aside ── */
.left-aside {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  padding: 0 0 0 32px;
}

.aside-inner {
  background: rgba(38,23,23,0.7);
  border: 1px solid rgba(255,20,147,0.15);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.aside-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--c-red), var(--c-pink));
}

.aside-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-pink);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.aside-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,20,147,0.15);
  padding-bottom: 10px;
}

.aside-nav-list {
  list-style: none;
  counter-reset: aside-counter;
}

.aside-nav-list li {
  counter-increment: aside-counter;
  margin-bottom: 4px;
}

.aside-nav-list li a {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  text-decoration: none;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  transition: color 0.18s;
  line-height: 1.4;
}

.aside-nav-list li a::before {
  content: counter(aside-counter, decimal-leading-zero);
  color: var(--c-pink);
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-body);
}

.aside-nav-list li a:hover {
  color: var(--c-text);
}

.aside-deco {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,20,147,0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0 48px 0 32px;
}

.page-article {
  max-width: 780px;
}

.article-body {
  color: var(--c-text);
}

/* ── Content Styling ── */
.article-body h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 2.5em 0 0.8em;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,20,147,0.2);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 1.8em 0 0.6em;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text-dim);
  margin-bottom: 1.2em;
}

.article-body ul,
.article-body ol {
  padding-left: 1.6em;
  margin-bottom: 1.2em;
  color: var(--c-text-dim);
}

.article-body li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.article-body a {
  color: var(--c-pink);
  text-decoration: underline;
  text-decoration-color: rgba(255,20,147,0.4);
  text-underline-offset: 3px;
  transition: color 0.18s, text-decoration-color 0.18s;
}

.article-body a:hover {
  color: var(--c-red);
  text-decoration-color: var(--c-red);
}

.article-body strong {
  color: #fff;
  font-weight: 700;
}

.article-body em {
  color: var(--c-pink);
  font-style: italic;
}

.article-body blockquote {
  border-left: 3px solid var(--c-pink);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: rgba(255,20,147,0.07);
  color: var(--c-text-dim);
  font-style: italic;
}

/* Section scroll offset */
.article-body article {
  scroll-margin-top: 24px;
}

/* Section emphasis line at bottom */
.article-body article {
  padding-bottom: 2em;
  border-bottom: 1px solid rgba(255,20,147,0.08);
  margin-bottom: 1em;
}

.article-body article:last-child {
  border-bottom: none;
}

/* Scroll reveal */
.article-body article,
.aside-inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.article-body article.revealed,
.aside-inner.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .article-body article,
  .aside-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Footer ── */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, rgba(26,14,14,0.98) 0%, var(--c-dark2) 100%);
  border-top: 1px solid rgba(255,20,147,0.18);
  padding: 0;
  overflow: hidden;
  margin-top: 48px;
}

.footer-brand-big {
  position: absolute;
  top: -10px;
  right: -10px;
  font-family: var(--font-head);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  color: rgba(255,20,147,0.04);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.footer-row {
  display: flex;
  gap: 40px;
  padding: 48px 48px 32px;
  position: relative;
  z-index: 1;
}

.footer-col {
  flex: 1;
}

.footer-col-brand {
  max-width: 260px;
}

.footer-logo-link {
  text-decoration: none;
  display: inline-flex;
}

.footer-desc {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.footer-col-nav > ol {
  list-style: none;
}

.footer-col-nav > ol > li {
  margin-bottom: 6px;
}

.footer-col-nav > ol > li > a {
  font-size: 0.84rem;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.18s;
  display: inline-block;
  padding: 4px 0;
  min-height: 40px;
  line-height: 1.3;
}

.footer-col-nav > ol > li > a:hover {
  color: var(--c-pink);
}

.footer-col-info p {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-col-info a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.18s;
}

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

.footer-notice {
  color: var(--c-text-muted);
  font-size: 0.76rem;
  margin-top: 16px;
  opacity: 0.7;
}

.footer-bottom {
  padding: 16px 48px;
  border-top: 1px solid rgba(255,20,147,0.1);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  opacity: 0.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--c-dark2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,20,147,0.4);
  border-radius: 3px;
}

/* ── Focus ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 3px;
}

/* ── Section Scroll Margin ── */
article[id] {
  scroll-margin-top: var(--scroll-offset);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .left-aside {
    display: none;
  }
  .content-with-aside {
    padding: 32px 0;
  }
  .main-content {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-width: 0px;
  }

  .side-nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 70px;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid rgba(255,20,147,0.2);
    overflow: hidden;
    z-index: 200;
  }

  .side-nav-brand {
    display: none;
  }

  .side-nav > ol {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 0;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }

  .side-nav > ol > li {
    flex-shrink: 0;
  }

  .side-nav > ol > li > a {
    padding: 14px 14px;
    font-size: 0.75rem;
    border-left: none;
    border-top: 2px solid transparent;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .side-nav > ol > li > a:hover,
  .side-nav > ol > li > a:focus {
    border-left-color: transparent;
    border-top-color: var(--c-pink);
  }

  .page-wrap {
    margin-left: 0;
    padding-bottom: 70px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-end;
    padding: 40px 24px 60px;
    gap: 16px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-icon-deco {
    font-size: 3rem;
  }

  .main-content {
    padding: 0 20px;
  }

  .footer-row {
    flex-direction: column;
    gap: 24px;
    padding: 36px 20px 24px;
  }

  .footer-col-brand {
    max-width: 100%;
  }

  .footer-bottom {
    padding: 14px 20px;
  }

  .footer-brand-big {
    font-size: 4rem;
  }

  .content-with-aside {
    padding: 24px 0;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 32px 16px 52px;
  }
  .main-content {
    padding: 0 16px;
  }
  .article-body h2 {
    font-size: 1.3rem;
  }
}
