/* =============================================
   anyalidova.com — Shared Stylesheet
   Dark-first system · primary accent PINK (#FF2D78)
   Mirrors drewtaborcom's structure; retuned to Anya's brand tokens.
   ============================================= */

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

/* ---- Brand tokens ---- */
:root {
  --bg-0:        #080A0C;   /* deepest */
  --bg-1:        #0E1114;   /* page background */
  --bg-2:        #13171C;   /* cards / raised surfaces */
  --text:        #F0F2F5;   /* primary light text */
  --text-body:   #C4C9D0;   /* long-form body copy */
  --text-muted:  #6B7685;   /* muted / meta */
  --line:        #1C2128;   /* hairline borders */
  --pink:        #FF2D78;   /* primary accent */
  --pink-deep:   #C71F5C;   /* hover / press */
  --pink-bright: #FF5C9A;   /* highlight / links */
  --amethyst:    #9B5CFF;   /* optional secondary */
  --gradient-accent: linear-gradient(135deg, #FF2D78, #9B5CFF);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Base */
body {
  background: var(--bg-1);
  color: var(--text-body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* contain full-bleed (100vw) hero banners */
}

/* ---- Nav ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,10,12,0.85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.75rem;
}
.nav-logo {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.nav-logo:hover { color: var(--pink-bright); }
.nav-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  background: var(--pink);
  color: #fff;
  padding: 0.4rem 0.95rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--pink-deep); }

/* ---- Layout ---- */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
}

/* ---- Typography ---- */
.page-title {
  color: var(--text);
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.75rem;
}
h2.section-label {
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.75rem 0;
}

/* ---- Hero (homepage) ---- */
.hero {
  padding: 2.5rem 0 1.5rem;
}
.hero h1 {
  color: var(--text);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.95rem;
  max-width: 680px;
}
.hero h1 .accent { color: var(--pink); }
.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 1.75rem;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn-white {
  background: #fff;
  color: var(--bg-0);
}
.btn-white:hover { background: #e8e8e8; }
.btn-outline {
  border: 1px solid #2A323B;
  color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--pink-deep); color: var(--text); }
.btn.btn-accent {
  background: var(--pink);
  color: #fff;
  border: none;
}
.btn.btn-accent:hover { background: var(--pink-deep); }

/* ---- Hero / header image (article banners, 16:9) ---- */
.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 2.25rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

/* Desktop: full-bleed hero banner spanning the viewport width.
   The hero is a direct child of the centered <main>, so calc(50% - 50vw)
   pulls it out to the screen edges while the text column stays put.
   max-height keeps it a cinematic band rather than a full-screen takeover
   (tune this one value to taste). */
@media (min-width: 601px) {
  .hero-image {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0.5rem;
    margin-bottom: 3rem;
    max-height: 72vh;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  }
}

/* ---- Cards ---- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.15s;
}
.card:hover { border-color: #2A323B; }
.card-body { flex: 1; }
.card-title {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.card-meta {
  color: var(--text-muted);
  font-size: 0.825rem;
}
.card-action {
  color: var(--pink-bright);
  font-size: 0.825rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-action:hover { color: var(--pink); }

/* ---- Badges ---- */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.4rem;
}
.badge-live  { background: #2b0d1c; color: var(--pink-bright); }
.badge-soon  { background: #1a1130; color: var(--amethyst); }

/* ---- CTA block (unused at launch — no CTA — kept for later course phase) ---- */
.cta-block {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.75rem 2rem;
  text-align: center;
  margin-top: 3rem;
}
.cta-block h2 {
  color: var(--text) !important;
  font-size: 1.3rem !important;
  font-weight: 600;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-bottom: 0.6rem;
}
.cta-block p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 1.75rem;
  font-size: 0.9rem;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--pink-bright); }
.breadcrumb span { margin: 0 0.35rem; color: #39414b; }

/* ---- Article body ---- */
.article-body { max-width: 680px; }

.article-body h1 {
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}
.article-body h2 {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.article-body h3 {
  color: #DCE0E6;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.article-body p {
  color: var(--text-body);
  font-size: 1.0125rem;
  margin-bottom: 1.6rem;
  line-height: 1.8;
}
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--pink-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255,92,154,0.4);
}
.article-body a:hover {
  color: var(--pink);
  text-decoration-color: rgba(255,45,120,0.6);
}
.article-body blockquote {
  border-left: 3px solid var(--pink-deep);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.75rem 0;
}
.article-body blockquote p { color: #aeb4bd; font-style: italic; font-size: 1.05rem; margin-bottom: 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  display: block;
  overflow-x: auto;
}
.article-body th {
  background: var(--bg-2);
  color: var(--text);
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #232a32;
  white-space: nowrap;
}
.article-body td {
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid #161b21;
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:hover td { background: #0c0f12; }
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-body);
}
.article-body li { margin-bottom: 0.5rem; line-height: 1.75; }
.article-body li::marker { color: var(--pink-deep); }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 3rem 0; }
.article-body code {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  font-size: 0.875em;
  color: #cfd4da;
}

/* ---- Table of contents ---- */
.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.75rem;
}
.toc-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.85rem;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 0.4rem; }
.toc a { color: var(--text-muted); font-size: 0.875rem; text-decoration: none; }
.toc a:hover { color: var(--pink-bright); }

/* ---- Related articles ---- */
.related-articles {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.related-articles h2 {
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.65rem;
}
.related-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  transition: border-color 0.15s;
  text-decoration: none;
  display: block;
}
.related-card:hover { border-color: var(--pink-deep); }
.related-card-title {
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}
.related-card:hover .related-card-title { color: var(--text); }

/* ---- Glossary term lead ---- */
.term-lead {
  background: var(--bg-2);
  border-left: 3px solid var(--pink-deep);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- FAQ ---- */
.faq-section { margin-top: 2.5rem; }
.faq-q {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.75rem;
}
.faq-a {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

/* ---- About page ---- */
.about-portrait {
  width: 100%;
  max-width: 460px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  margin: 0 0 2rem;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 2.5rem 2rem 3.5rem;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--pink-bright); }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  nav { gap: 1rem; padding: 0 1rem; }
  .nav-link { display: none; }
  main { padding: 2rem 1.25rem 4rem; }
  .hero h1 { font-size: 1.75rem; }
  .page-title { font-size: 1.6rem; }
  /* Mobile hero: full-bleed 4:5 portrait, face-centered crop (assets/mobile/*.webp
     served via <picture>); object-fit cover keeps it crisp at the crop's ratio. */
  .hero-image {
    aspect-ratio: 4 / 5;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0.25rem;
    margin-bottom: 2rem;
    border: none;
    border-radius: 0;
  }
}
