/*
  Article Hub — AI Punk Neo-Brutalist Theme
  Reference: design-da97505b.html
  Fonts: Space Grotesk (display) + Space Mono (body)
  Accent: Pop Pink #ED7AB9 · Highlight: #FFE600
  Style: thick borders, hard shadows, snappy hover transforms
*/

:root {
  --color-bg: #FFFFFF;
  --color-ink: #000000;
  --color-pop-pink: #5A67D8;
  --color-highlight: #C3DAFE;

  --border-thick: 3px;
  --radius-tight: 8px;
  --radius-pill: 999px;
  --shadow-hard: 6px 6px 0px var(--color-ink);
  --shadow-hover: 2px 2px 0px var(--color-ink);

  --max-width: 1440px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Space Mono', monospace;
  --font-code: 'Space Mono', monospace;
}

/* ==================== Reset ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.back-link {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
}

/* ==================== Layout ==================== */
/* Prevent tiny horizontal scroll caused by rotated/scaled decorative elements */
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

.grid-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 120px;
}

@media (max-width: 900px) {
  .grid-container {
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .grid-container {
    padding: 0 20px;
  }
}

main {
  min-height: 70vh;
}

.section {
  padding: 120px 0;
  border-bottom: var(--border-thick) solid var(--color-ink);
}

.section:last-child {
  border-bottom: none;
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  /* Disable rotations on mobile to avoid layout overflow/jank */
  .marquee-container {
    transform: none;
  }

  .photo-frame {
    transform: none;
  }

  .photo-frame:hover {
    transform: none;
  }
}

/* ==================== Typography ==================== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

h1 {
  font-size: clamp(4rem, 8vw, 9rem);
  margin-bottom: 2rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  max-width: 60ch;
}

.muted {
  opacity: 0.7;
}

.accent {
  color: var(--color-pop-pink);
  text-shadow: 3px 3px 0px var(--color-ink);
  -webkit-text-stroke: 2px var(--color-ink);
}

/* ==================== Header / Nav ==================== */
header.site-header {
  border-bottom: var(--border-thick) solid var(--color-ink);
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 2px solid var(--color-ink);
  background: #fff;
  border-radius: var(--radius-tight);
  box-shadow: 2px 2px 0px var(--color-ink);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-toggle:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: -34px;
}

.logo-mark {
  width: 24px;
  height: 24px;
  background: var(--color-pop-pink);
  border: 2px solid var(--color-ink);
  border-radius: 50%;
}

nav.site-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

nav.site-nav a {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
}

nav.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--color-pop-pink);
  transition: width 0.3s;
}

nav.site-nav a:hover::after,
nav.site-nav a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0px black;
}

@media (max-width: 900px) {
  .nav-wrapper {
    flex-wrap: wrap;
    gap: 12px;
  }

  nav.site-nav ul {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  nav.site-nav a {
    font-size: 0.8rem;
  }

  .logo {
    font-size: 1.2rem;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .nav-toggle {
    display: inline-flex;
    min-height: 44px;
    padding: 12px 16px;
  }

  nav.site-nav {
    width: 100%;
  }

  nav.site-nav ul {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 2px solid var(--color-ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-open nav.site-nav ul {
    display: flex;
  }

  nav.site-nav li {
    width: 100%;
  }

  nav.site-nav a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .theme-toggle {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  header.site-header {
    padding: 14px 0;
  }

  .nav-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  nav.site-nav ul {
    gap: 10px;
    justify-content: flex-start;
  }

  .nav-cta {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--color-ink);
  background: #fff;
  border: var(--border-thick) solid var(--color-ink);
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius-tight);
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  position: relative;
}

.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px var(--color-ink);
}

@media (max-width: 600px) {
  .btn {
    padding: 12px 22px;
    font-size: 1rem;
  }
}

.btn--pink,
.btn--accent {
  background-color: var(--color-pop-pink);
}

.btn--black,
.btn--ink {
  background-color: var(--color-ink);
  color: #fff;
  box-shadow: 6px 6px 0px var(--color-pop-pink);
}

.btn--black:hover,
.btn--ink:hover {
  box-shadow: 0px 0px 0px var(--color-pop-pink);
}

/* ==================== Cards ==================== */
.card {
  background: #fff;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card:hover {
  transform: translate(-6px, -6px);
  box-shadow: 10px 10px 0px var(--color-ink);
}

/* ==================== Tags ==================== */
.tag {
  display: inline-block;
  background: var(--color-highlight);
  padding: 4px 8px;
  border: 2px solid var(--color-ink);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  border-radius: 4px;
}

/* simple list */
.list {
  padding-left: 18px;
  margin-top: 12px;
}

.list li {
  margin-bottom: 10px;
}

/* ==================== FAQ ==================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.faq-item {
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  background: #fff;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-family: var(--font-code);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 16px 14px 16px;
  font-family: var(--font-body);
  opacity: 0.9;
}

/* ==================== Hero ==================== */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 80vh;
  position: relative;
  /* overflow: hidden; removed to show click-hint */
  padding: 0;
}

.hero-content {
  z-index: 2;
}

.hero-subtitle {
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: var(--space-4);
}

.hero-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 0;
  }

  .hero-visual {
    order: -1;
    margin-bottom: var(--space-3);
  }
}

/* Punk animation */
.punk-anim {
  width: 400px;
  height: 400px;
  background: var(--color-pop-pink);
  border: var(--border-thick) solid var(--color-ink);
  border-radius: 50%;
  position: relative;
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 12px 12px 0px var(--color-ink);
}

@media (max-width: 600px) {
  .punk-anim {
    width: 280px;
    height: 280px;
  }
}

.punk-eye {
  width: 80px;
  height: 80px;
  background: #fff;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  margin: 10px;
}

.punk-pupil {
  width: 30px;
  height: 30px;
  background: var(--color-ink);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: lookAround 4s infinite steps(1);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes lookAround {
  0% {
    transform: translate(-50%, -50%);
  }

  25% {
    transform: translate(-10%, -50%);
  }

  50% {
    transform: translate(-50%, -10%);
  }

  75% {
    transform: translate(-80%, -50%);
  }
}

.sticker {
  position: absolute;
  background: #fff;
  padding: 8px 16px;
  border: 2px solid var(--color-ink);
  border-radius: 50%;
  transform: rotate(15deg);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
  z-index: 0;
  font-weight: bold;
  font-size: 0.8rem;
}

/* ==================== Marquee ==================== */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: var(--color-ink);
  padding: 12px 0;
  transform: rotate(-1deg) scale(1.05);
  margin: 60px 0;
  border-top: 3px solid var(--color-pop-pink);
  border-bottom: 3px solid var(--color-pop-pink);
}

.marquee-content {
  display: flex;
  gap: 40px;
  animation: scroll 20s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--color-bg);
  text-shadow: 4px 4px 0px rgba(255, 255, 255, 0.1);
}

.footer-brand-accent {
  color: var(--color-pop-pink);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==================== Grids ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

/* ==================== Product List (Accordion) ==================== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-item {
  background: #fff;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.product-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  padding: 22px 22px;
  align-items: center;
  position: relative;
}

.product-summary::-webkit-details-marker {
  display: none;
}

.product-item > summary::after {
  content: none;
}

.product-item[open] > summary::after {
  content: none;
}

.product-item[open] .product-summary {
  background: var(--color-highlight);
}

.product-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-ink);
  opacity: 0.18;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.product-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: #ffe600;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.75rem;
  white-space: normal;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 2px 2px 0px var(--color-ink);
}

.product-sub {
  margin-top: 10px;
  color: #555;
  font-size: 0.95rem;
  max-width: 90ch;
  overflow-wrap: anywhere;
}

.product-body {
  border-top: 2px solid var(--color-ink);
  padding: 18px 22px 22px;
  background: var(--color-bg);
}

.product-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.product-k {
  background: #fff;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-tight);
  padding: 14px;
  box-shadow: 2px 2px 0px var(--color-ink);
}

.product-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-bottom-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.product-bottom-cta .btn {
  min-width: 220px;
}

@media (max-width: 600px) {
  .product-summary {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 18px 14px;
  }

  .product-num {
    font-size: 2rem;
  }

  .product-title-row {
    flex-direction: column;
    gap: 8px;
  }

  .product-badge {
    align-self: flex-start;
    width: auto;
  }

  .product-body {
    padding: 16px;
  }

  .product-kv {
    grid-template-columns: 1fr;
  }

  .product-actions .btn,
  .product-bottom-cta .btn {
    width: 100%;
  }
}

/* ==================== Mini Punk Animations ==================== */
.product-visual {
  height: 180px;
  background: var(--color-bg);
  border-bottom: var(--border-thick) solid var(--color-ink);
  margin: -32px -32px 24px -32px;
  border-radius: var(--radius-tight) var(--radius-tight) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.punk-mini {
  width: 80px;
  height: 80px;
  background: var(--color-pop-pink);
  border: 3px solid var(--color-ink);
  border-radius: 50%;
  position: relative;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.card:hover .punk-mini {
  transform: scale(1.1) rotate(5deg);
}

.punk-mini-eye {
  position: absolute;
  top: 25%;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid var(--color-ink);
  border-radius: 50%;
}

.punk-mini-eye:nth-child(1) {
  left: 20%;
}

.punk-mini-eye:nth-child(2) {
  right: 20%;
}

.punk-mini-pupil {
  width: 6px;
  height: 6px;
  background: var(--color-ink);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Variants */
.punk-mini-mouth {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid var(--color-ink);
}

/* Smile */
.punk-mini--smile .punk-mini-mouth--smile {
  width: 30px;
  height: 15px;
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: #fff;
}

/* Laugh */
.punk-mini-eye--squint {
  height: 4px;
  border-radius: 0;
  background: var(--color-ink);
  border: none;
  top: 35%;
}

.punk-mini--laugh .punk-mini-mouth--laugh {
  width: 36px;
  height: 24px;
  border-radius: 0 0 36px 36px;
  background: #fff;
  overflow: hidden;
}

.punk-mini-mouth--laugh::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 10px;
  background: #ffaaaa;
  border-radius: 10px 10px 0 0;
}

/* Stare (Wide) */
.punk-mini-eye--wide {
  width: 24px;
  height: 24px;
  top: 35%;
  background: #fff;
}

.punk-mini-pupil--big {
  width: 10px;
  height: 10px;
  animation: pupilShake 2s infinite;
}

@keyframes pupilShake {

  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  25% {
    transform: translate(-30%, -60%);
  }

  75% {
    transform: translate(-70%, -40%);
  }
}

/* ==================== About Section ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.photo-frame {
  position: relative;
  background: var(--color-bg);
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  box-shadow: var(--shadow-hard);
  padding: 16px;
  transform: rotate(-2deg);
  transition: transform 0.3s;
}

.photo-frame:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 2px solid var(--color-ink);
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.photo-frame:hover img {
  filter: grayscale(0%);
}

.about-content h2 {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.about-content .lead {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.bio-list {
  list-style: none;
  margin-bottom: 32px;
}

.bio-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.bio-list li::before {
  content: '►';
  position: absolute;
  left: 0;
  color: var(--color-pop-pink);
  font-size: 0.8em;
  top: 3px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    max-width: 400px;
    margin: 0 auto;
  }
}

.pv-1 {
  background-color: #E0E7FF;
  color: #5A67D8;
}

.pv-2 {
  background-color: #FEEBC8;
  color: #ED8936;
}

.pv-3 {
  background-color: #C6F6D5;
  color: #2F855A;
}

/* ==================== Course List ==================== */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.course-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 32px;
  border: var(--border-thick) solid var(--color-ink);
  background: #fff;
  transition: all 0.2s;
}

.course-item:hover {
  background: var(--color-pop-pink);
  transform: translateX(10px);
  box-shadow: -6px 6px 0px var(--color-ink);
}

.course-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-ink);
  opacity: 0.3;
}

.course-item:hover .course-number {
  opacity: 1;
}

/* ==================== News Grid ==================== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.news-item {
  border-left: var(--border-thick) solid var(--color-ink);
  padding-left: 24px;
}

@media (max-width: 980px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
  display: block;
}

.news-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-family: var(--font-display);
  line-height: 1.1;
}

.news-link {
  text-decoration: underline;
  color: var(--color-ink);
  font-weight: 700;
}

/* ==================== Courses Layout ==================== */
.course-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.course-switch {
  margin-top: 28px;
}

.course-switch-intro {
  margin-top: 8px;
  margin-bottom: 12px;
  max-width: 78ch;
}

.course-switch-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.course-switch-tab {
  appearance: none;
  border: var(--border-thick) solid var(--color-ink);
  background: #fff;
  color: var(--color-ink);
  border-radius: var(--radius-tight);
  padding: 12px 14px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
  min-width: 0;
}

.course-switch-tab:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
}

.course-switch-tab:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

.course-switch-tab.is-active,
.course-switch-tab[aria-selected="true"] {
  background: var(--color-highlight);
  color: #121215;
}

.course-switch-panel {
  margin-top: 14px;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  background: #fff;
  box-shadow: var(--shadow-hard);
  padding: 16px;
  min-width: 0;
}

.course-switch-panel[hidden] {
  display: none;
}

.course-switch-panel .list {
  margin-top: 0;
}

.course-switch-panel .list li {
  overflow-wrap: anywhere;
}

.bonus-highlight {
  background: var(--color-highlight);
  border: 2px solid var(--color-ink);
  border-radius: 6px;
  padding: 10px 12px;
  margin-left: -4px;
  margin-right: -4px;
  font-weight: 700;
  box-shadow: 3px 3px 0px var(--color-ink);
}

.bonus-note {
  margin-top: 12px;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  background: #fff;
  box-shadow: var(--shadow-hard);
  padding: 12px 14px;
  font-size: 0.95rem;
}

.payment-widget-shell {
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  background: #fff;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.payment-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: var(--border-thick) solid var(--color-ink);
  background: #f5f5f8;
  flex-wrap: wrap;
}

.payment-widget-head .muted {
  font-size: 0.85rem;
}

.payment-widget-body {
  padding: 14px;
  background: #fff;
  overflow-x: auto;
}

.payment-widget-body > * {
  min-width: 0;
}

.price-spots-widget {
  margin-top: 12px;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  background: #fff;
  box-shadow: var(--shadow-hard);
  padding: 12px;
}

.price-spots-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.price-spots-rows {
  display: grid;
  gap: 10px;
}

.price-spots-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: 6px;
  padding: 12px 14px;
  background: #f7f7fb;
  box-shadow: 4px 4px 0px var(--color-ink);
}

.price-spots-row--hot {
  background: var(--color-highlight);
}

.price-spots-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1;
  overflow-wrap: anywhere;
}

.price-spots-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price-spots-note {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.9;
}

.price-spots-widget--compact {
  box-shadow: 4px 4px 0px var(--color-ink);
}

.price-spots-widget--compact .price-spots-row {
  padding: 11px 12px;
}

.price-spots-widget--compact .price-spots-label {
  font-size: 0.92rem;
}

.price-spots-widget--compact .price-spots-value {
  font-size: 1.2rem;
}

.price-spots-widget--hero {
  margin-top: 14px;
  background: #EFF3FF;
  border-width: 4px;
  box-shadow: 8px 8px 0px var(--color-ink);
}

.price-spots-widget--hero .price-spots-rows {
  gap: 12px;
}

.price-spots-widget--hero .price-spots-row {
  padding: 14px 16px;
  box-shadow: 5px 5px 0px var(--color-ink);
}

.price-spots-widget--hero .price-spots-row--hot {
  background: var(--color-highlight);
}

.price-spots-widget--hero .price-spots-label {
  font-size: 1.08rem;
}

.price-spots-widget--hero .price-spots-value {
  font-size: 1.6rem;
}

.reviews-carousel {
  margin-top: 14px;
  overflow: hidden;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  background: #fff;
  box-shadow: var(--shadow-hard);
  padding: 10px;
}

.reviews-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  will-change: transform;
  animation: reviews-carousel-scroll 48s linear infinite;
}

.reviews-carousel:hover .reviews-track {
  animation-play-state: paused;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.review-card,
.reviews-empty,
.review-image-card {
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  background: #fff;
  box-shadow: var(--shadow-hard);
  padding: 14px;
}

.review-image-card {
  padding: 6px;
  background: #f7f8fd;
}

.review-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(90vw, 740px);
  max-height: clamp(240px, 48vw, 520px);
  border: 2px solid var(--color-ink);
  border-radius: 6px;
  object-fit: contain;
  background: #f3f5fb;
}

.reviews-grid--images .review-image-card {
  display: flex;
  flex-direction: column;
  align-self: start;
}

.reviews-grid--images .review-image {
  width: 100%;
  max-width: 100%;
  max-height: none;
}

.review-image-meta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.review-quote {
  max-width: none;
  font-size: 1rem;
  line-height: 1.5;
}

.review-result {
  margin-top: 12px;
  display: inline-block;
  border: 2px solid var(--color-ink);
  border-radius: 999px;
  background: var(--color-highlight);
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.review-meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@keyframes reviews-carousel-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

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

@media (max-width: 980px) {
  .course-info-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .course-switch-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .course-switch-tab {
    width: 100%;
    padding: 13px 12px;
    font-size: 0.9rem;
  }

  .course-switch-panel {
    padding: 14px;
  }

  .bonus-highlight {
    padding: 8px 10px;
  }

  .payment-widget-body {
    padding: 10px;
  }

  .price-spots-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 12px;
  }

  .price-spots-widget--hero .price-spots-row {
    padding: 13px 12px;
  }

  .price-spots-label {
    font-size: 0.95rem;
  }

  .price-spots-value {
    font-size: 1.3rem;
  }

  .price-spots-widget--hero .price-spots-label {
    font-size: 0.98rem;
  }

  .price-spots-widget--hero .price-spots-value {
    font-size: 1.38rem;
  }
}

/* ==================== Blog / Article ==================== */
.breadcrumbs {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  margin: 24px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.breadcrumb-separator {
  opacity: 0.4;
}

.blog-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  margin-top: 36px;
  margin-bottom: 64px;
}

@media (max-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-section {
  background: #fff;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-hard);
}

.search-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.search-input {
  flex: 1;
  font-family: var(--font-code);
  font-size: 1rem;
  padding: 12px;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  outline: none;
  background: var(--color-bg);
}

.search-input:focus {
  box-shadow: 0 0 0 4px rgba(237, 122, 185, 0.2);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag-link {
  display: inline-block;
  padding: 6px 10px;
  border: 2px solid var(--color-ink);
  background: #fff;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: all 0.15s;
  cursor: pointer;
}

.tag-link:hover {
  background: var(--color-ink);
  color: #fff;
}

.tag-link.active {
  background: var(--color-highlight);
}

.filter-info {
  border: 2px solid var(--color-ink);
  background: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.clear-filter {
  text-decoration: underline;
  cursor: pointer;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  display: block;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.7;
}

.article-tags {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.empty-state {
  padding: 24px;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  background: #fff;
}

/* ==================== Article Page ==================== */
.article-page .article-container {
  padding-top: 24px;
  padding-bottom: 64px;
}

.article-header {
  margin-top: 30px;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  background: var(--color-ink);
  color: #fff;
  padding: 32px;
  box-shadow: 6px 6px 0px var(--color-pop-pink);
}

.article-title {
  font-family: var(--font-display);
  text-transform: none;
  line-height: 1.1;
  color: #fff;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  letter-spacing: -0.02em;
}

.article-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.7;
}

.article-author {
  opacity: 0.95;
}

.prose {
  margin-top: 28px;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  background: #fff;
  padding: 32px;
  box-shadow: var(--shadow-hard);
  font-family: var(--font-code);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Prevent long strings / mixed RU+EN technical text from overflowing article card */
.article-content.prose {
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden; /* final guardrail for malformed markdown / long list items */
}

.article-content.prose :where(ul, ol) {
  padding-inline-start: 1.35em;
  margin-left: 0;
}

.article-content.prose li {
  min-width: 0;
}

.article-content.prose li::marker {
  font-weight: 700;
}

.article-content.prose :where(h1, h2, h3) {
  font-family: var(--font-display);
  text-transform: none;
  margin-top: 1.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.article-content.prose :where(h1, h2, h3):first-child {
  margin-top: 0;
}

.article-content.prose h1 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.article-content.prose h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.article-content.prose h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.prose :where(p, ul, ol, pre, blockquote) {
  margin-top: 1em;
}

.article-content.prose :where(p, li, blockquote) {
  overflow-wrap: anywhere;
}

.article-content.prose :where(p, li, blockquote, code, a, strong, em) {
  word-break: break-word;
}

.prose pre {
  border: 2px solid var(--color-ink);
  padding: 14px;
  overflow: auto;
  border-radius: 6px;
  background: #1e1e2e;
  color: #cdd6f4;
  font-family: var(--font-code);
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.prose code {
  font-family: var(--font-code);
  background: rgba(237, 122, 185, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose blockquote {
  border-left: var(--border-thick) solid var(--color-pop-pink);
  padding-left: 16px;
  opacity: 0.85;
  font-style: italic;
}

.prose a {
  color: var(--color-pop-pink);
  text-decoration: underline;
}

.article-footer {
  margin-top: 18px;
}

.article-tags-full {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.related-section {
  padding: 64px 0;
  border-top: var(--border-thick) solid var(--color-ink);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-card {
  background: #fff;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  padding: 20px;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card h3 {
  font-size: 1.1rem;
  text-transform: none;
  line-height: 1.3;
  margin-bottom: 8px;
}

.related-card .reading-time {
  font-size: 0.8rem;
  opacity: 0.6;
}

.related-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hard);
}

/* ==================== Footer (compact) ==================== */
footer.site-footer {
  padding: 18px 40px;
  background: var(--color-ink);
  color: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}



.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: color 0.15s;
}

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

.footer-meta {
  opacity: 0.5;
  margin-top: 8px;
  font-size: 0.8rem;
}

.footer-meta a {
  color: var(--color-pop-pink);
}

@media (max-width: 900px) {
  footer.site-footer {
    padding: 28px 16px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-logo {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  .footer-links {
    gap: 10px;
  }

  .footer-links a {
    font-size: 0.7rem;
  }
}

/* ==================== 404 / Error Page ==================== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: var(--space-6) var(--space-3);
}

.error-content {
  text-align: center;
  max-width: 600px;
}

.error-content h1 {
  color: var(--color-pop-pink);
  text-shadow: 3px 3px 0 var(--color-ink);
  margin-bottom: var(--space-3);
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: #ff0040;
  animation: glitch1 2s infinite steps(1);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
  color: #00f5ff;
  animation: glitch2 2s infinite steps(1);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch1 {

  0%,
  90%,
  100% {
    transform: translate(0);
  }

  92% {
    transform: translate(-3px, 1px);
  }

  94% {
    transform: translate(3px, -1px);
  }

  96% {
    transform: translate(-2px, 2px);
  }
}

@keyframes glitch2 {

  0%,
  90%,
  100% {
    transform: translate(0);
  }

  91% {
    transform: translate(3px, -1px);
  }

  93% {
    transform: translate(-3px, 1px);
  }

  95% {
    transform: translate(2px, -2px);
  }
}

.error-code {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #666;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.error-msg {
  font-size: 1.2rem;
  margin-bottom: var(--space-4);
  opacity: 0.7;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.pacman-dead {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

/* ==================== Privacy / Terms ==================== */
.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  margin-bottom: var(--space-4);
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  color: var(--color-pop-pink);
}

.legal-page p,
.legal-page li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-2);
  max-width: 75ch;
}

.legal-page ul,
.legal-page ol {
  padding-left: var(--space-4);
}

/* ==================== Admin ==================== */
.admin-header {
  background: var(--color-ink);
  color: #fff;
  border-bottom: 2px solid var(--color-pop-pink);
}

/* ==================== Accessibility ==================== */
:focus-visible {
  outline: 2px solid var(--color-pop-pink);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== Extra Mobile Breakpoints ==================== */
@media (max-width: 600px) {
  .hero {
    gap: 32px;
    min-height: auto;
    padding: 48px 0;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content .tag {
    margin: 0 auto 8px;
  }

  .hero-content p {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .punk-anim {
    width: 220px;
    height: 220px;
  }

  .punk-eye {
    width: 50px;
    height: 50px;
  }

  .punk-pupil {
    width: 20px;
    height: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .course-item {
    grid-template-columns: 50px 1fr auto;
    gap: 14px;
    padding: 18px;
  }

  .course-number {
    font-size: 2rem;
  }

  .card {
    padding: 20px;
  }

  .product-visual {
    height: 120px;
    margin: -20px -20px 16px -20px;
    font-size: 3rem;
  }

  .marquee-container {
    margin: 32px 0;
  }

  .marquee-item {
    font-size: 1rem;
  }

  .sticker {
    display: none;
  }

  .prose {
    padding: 18px;
  }

  .article-header {
    padding: 20px;
  }
}

/* ==================== Accent Color Palettes ==================== */
/* ==================== Accent Color Palettes ==================== */
[data-accent="apricot"] {
  --color-pop-pink: #ED8936;
  --color-highlight: #FBD38D;
}

[data-accent="green"] {
  --color-pop-pink: #48BB78;
  --color-highlight: #9AE6B4;
}

/* default blue: inherited from :root */

/* ==================== Theme Toggle Button ==================== */
.theme-toggle {
  background: none;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-tight);
  padding: 6px 10px;
  font-family: var(--font-code);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 2px 2px 0px var(--color-ink);
  color: var(--color-ink);
}

.theme-toggle:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0;
}

/* ==================== Punk Anim — clickable indicator ==================== */
.punk-anim {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.punk-anim:active {
  transform: scale(0.92);
}

.punk-anim.color-flash {
  animation: punkFlash 0.35s ease-out;
}

@keyframes punkFlash {
  0% {
    transform: scale(1) rotate(0deg);
  }

  40% {
    transform: scale(1.12) rotate(8deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* ==================== Click Hint ==================== */
.click-hint {
  position: absolute;
  bottom: -64px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border: var(--border-thick) solid var(--color-ink);
  border-radius: var(--radius-tight);
  box-shadow: 3px 3px 0px var(--color-ink);
  white-space: nowrap;
  animation: hintBounce 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

.click-hint::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom: 6px solid var(--color-ink);
}

@keyframes hintBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

[data-theme="dark"] .click-hint {
  background: transparent;
  color: #E8E8EC;
  border-color: #E8E8EC;
  box-shadow: 3px 3px 0px rgba(232, 232, 236, 0.3);
}

[data-theme="dark"] .click-hint::before {
  border-bottom-color: #E8E8EC;
}

/* ==================== Dark Theme ==================== */
[data-theme="dark"] {
  --color-bg: #121215;
  --color-ink: #E8E8EC;
  --shadow-hard: 5px 5px 0px rgba(232, 232, 236, 0.25);
  --shadow-hover: 2px 2px 0px rgba(232, 232, 236, 0.2);
}

/* accent adjustments for dark mode */
[data-theme="dark"] {
  --color-pop-pink: #667EEA;
  --color-highlight: #A3BFFA;
}

[data-theme="dark"][data-accent="apricot"] {
  --color-pop-pink: #F6AD55;
  --color-highlight: #FEEBC8;
}

[data-theme="dark"][data-accent="green"] {
  --color-pop-pink: #68D391;
  --color-highlight: #C6F6D5;
}

[data-theme="dark"] body {
  color: var(--color-ink);
}

[data-theme="dark"] header.site-header {
  background: #121215;
}

[data-theme="dark"] .card,
[data-theme="dark"] .sidebar-section,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .course-item,
[data-theme="dark"] .filter-info,
[data-theme="dark"] .related-card {
  background: #1C1C21;
  border-color: #333;
}

[data-theme="dark"] .btn {
  background: #1C1C21;
  color: var(--color-ink);
  border-color: #444;
}

[data-theme="dark"] .btn--pink,
[data-theme="dark"] .btn--accent {
  background-color: var(--color-pop-pink);
  color: #121215;
}

[data-theme="dark"] .btn--black,
[data-theme="dark"] .btn--ink {
  background-color: #E8E8EC;
  color: #121215;
  box-shadow: 5px 5px 0px var(--color-pop-pink);
}

[data-theme="dark"] .tag {
  background: rgba(212, 168, 0, 0.3);
  border-color: #555;
  color: var(--color-ink);
}

[data-theme="dark"] .tag-link {
  background: #1C1C21;
  border-color: #444;
  color: var(--color-ink);
}

[data-theme="dark"] .tag-link:hover {
  background: var(--color-ink);
  color: #121215;
}

[data-theme="dark"] .tag-link.active {
  background: rgba(212, 168, 0, 0.4);
}

[data-theme="dark"] .search-input {
  background: #1C1C21;
  border-color: #444;
  color: var(--color-ink);
}

[data-theme="dark"] .search-input:focus {
  box-shadow: 0 0 0 3px rgba(240, 157, 208, 0.25);
}

[data-theme="dark"] .logo-mark {
  border-color: #555;
}

[data-theme="dark"] nav.site-nav a {
  color: var(--color-ink);
}

[data-theme="dark"] nav.site-nav a::after {
  background: var(--color-pop-pink);
}

[data-theme="dark"] .nav-cta {
  box-shadow: 3px 3px 0px rgba(232, 232, 236, 0.2);
}

[data-theme="dark"] .theme-toggle {
  border-color: #555;
  box-shadow: 2px 2px 0px rgba(232, 232, 236, 0.2);
  color: var(--color-ink);
}

[data-theme="dark"] .article-header {
  background: #1C1C21;
  border-color: #333;
  color: var(--color-ink);
  box-shadow: 5px 5px 0px var(--color-pop-pink);
}

[data-theme="dark"] .article-title {
  color: var(--color-ink);
}

@media (max-width: 640px) {
  .article-header {
    padding: 20px;
  }

  .article-meta {
    gap: 8px;
    font-size: 0.72rem;
  }

  .article-content.prose :where(h1, h2, h3) {
    line-height: 1.2;
  }
}

[data-theme="dark"] .prose {
  background: #1C1C21;
  border-color: #333;
}

[data-theme="dark"] .prose pre {
  background: #0D0D10;
  border-color: #333;
  color: #cdd6f4;
}

[data-theme="dark"] .prose code {
  background: rgba(240, 157, 208, 0.12);
}

[data-theme="dark"] .prose a {
  color: var(--color-pop-pink);
}

[data-theme="dark"] .punk-anim {
  background: var(--color-pop-pink);
  border-color: #555;
  box-shadow: 10px 10px 0px rgba(232, 232, 236, 0.15);
}

[data-theme="dark"] .punk-eye {
  background: #E8E8EC;
  border-color: #555;
}

[data-theme="dark"] .punk-pupil {
  background: #121215;
}

[data-theme="dark"] .pv-1 {
  background-color: #1a1a3e;
  color: #818cf8;
}

[data-theme="dark"] .pv-2 {
  background-color: #2a2210;
  color: #fbbf24;
}

[data-theme="dark"] .pv-3 {
  background-color: #0a2a1a;
  color: #34d399;
}

[data-theme="dark"] .product-visual {
  background: #1C1C21;
  border-color: #333;
}

[data-theme="dark"] .product-item {
  background: #1C1C21;
  border-color: #333;
}

[data-theme="dark"] .product-summary {
  color: var(--color-ink);
}

[data-theme="dark"] .product-item[open] .product-summary {
  background: rgba(102, 126, 234, 0.25);
}

[data-theme="dark"] .product-num {
  color: rgba(232, 232, 236, 0.35);
  opacity: 1;
}

[data-theme="dark"] .product-title {
  color: var(--color-ink);
}

[data-theme="dark"] .product-sub {
  color: rgba(232, 232, 236, 0.82);
}

[data-theme="dark"] .product-badge {
  color: #121215;
  border-color: #666;
  box-shadow: 2px 2px 0px rgba(232, 232, 236, 0.2);
}

[data-theme="dark"] .product-body {
  background: #17171C;
  border-top-color: #333;
}

[data-theme="dark"] .product-k {
  background: #1F1F25;
  border-color: #444;
}

[data-theme="dark"] .faq-item {
  background: #1C1C21;
  border-color: #333;
}

[data-theme="dark"] .faq-item summary {
  color: var(--color-ink);
}

[data-theme="dark"] .faq-item summary::after {
  color: var(--color-ink);
}

[data-theme="dark"] .faq-answer {
  color: rgba(232, 232, 236, 0.9);
}

[data-theme="dark"] .course-switch-tab {
  background: #1C1C21;
  border-color: #333;
  color: var(--color-ink);
  box-shadow: 4px 4px 0px rgba(232, 232, 236, 0.18);
}

[data-theme="dark"] .course-switch-tab:hover {
  box-shadow: 2px 2px 0px rgba(232, 232, 236, 0.14);
}

[data-theme="dark"] .course-switch-tab.is-active,
[data-theme="dark"] .course-switch-tab[aria-selected="true"] {
  background: rgba(102, 126, 234, 0.32);
  color: var(--color-ink);
  border-color: #5865d6;
}

[data-theme="dark"] .course-switch-panel {
  background: #1C1C21;
  border-color: #333;
  color: rgba(232, 232, 236, 0.92);
  box-shadow: 4px 4px 0px rgba(232, 232, 236, 0.18);
}

[data-theme="dark"] .bonus-highlight {
  background: #2B2B10;
  border-color: #6e6a22;
  color: #F5F1B5;
  box-shadow: 3px 3px 0px rgba(232, 232, 236, 0.16);
}

[data-theme="dark"] .bonus-note {
  background: #1C1C21;
  border-color: #333;
  color: rgba(232, 232, 236, 0.92);
  box-shadow: 4px 4px 0px rgba(232, 232, 236, 0.18);
}

[data-theme="dark"] .payment-widget-shell {
  background: #1C1C21;
  border-color: #333;
  box-shadow: 4px 4px 0px rgba(232, 232, 236, 0.18);
}

[data-theme="dark"] .payment-widget-head {
  background: #17171C;
  border-bottom-color: #333;
}

[data-theme="dark"] .payment-widget-body {
  background: #1C1C21;
}

[data-theme="dark"] .price-spots-widget {
  background: #1C1C21;
  border-color: #333;
  box-shadow: 4px 4px 0px rgba(232, 232, 236, 0.18);
}

[data-theme="dark"] .price-spots-widget--hero {
  background: #171A25;
  border-color: #5865d6;
  box-shadow: 6px 6px 0px rgba(232, 232, 236, 0.18);
}

[data-theme="dark"] .price-spots-row {
  background: #17171C;
  border-color: #333;
  box-shadow: 3px 3px 0px rgba(232, 232, 236, 0.16);
}

[data-theme="dark"] .price-spots-row--hot {
  background: rgba(102, 126, 234, 0.28);
  border-color: #5865d6;
}

[data-theme="dark"] .price-spots-note {
  color: rgba(232, 232, 236, 0.9);
}

[data-theme="dark"] .review-card,
[data-theme="dark"] .reviews-empty,
[data-theme="dark"] .review-image-card {
  background: #1C1C21;
  border-color: #333;
  box-shadow: 4px 4px 0px rgba(232, 232, 236, 0.18);
}

[data-theme="dark"] .review-image {
  border-color: #333;
  background: #17171C;
}

[data-theme="dark"] .review-quote,
[data-theme="dark"] .review-meta {
  color: rgba(232, 232, 236, 0.94);
}

[data-theme="dark"] .review-result {
  background: rgba(102, 126, 234, 0.28);
  border-color: #5865d6;
  color: var(--color-ink);
}

[data-theme="dark"] .course-item:hover {
  background: var(--color-pop-pink);
  color: #121215;
}

[data-theme="dark"] .course-item:hover .course-number {
  color: #121215;
}

[data-theme="dark"] .marquee-container {
  background: #E8E8EC;
  border-color: var(--color-pop-pink);
}

[data-theme="dark"] .marquee-item {
  color: #121215;
}

[data-theme="dark"] footer.site-footer {
  background: #0A0A0D;
}

[data-theme="dark"] .footer-links a {
  color: rgba(232, 232, 236, 0.7);
}

[data-theme="dark"] .accent {
  color: var(--color-pop-pink);
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .sticker {
  background: #1C1C21;
  border-color: #444;
}

[data-theme="dark"] .news-item {
  border-color: #333;
}

[data-theme="dark"] .news-date {
  color: #888;
}

[data-theme="dark"] .error-content h1 {
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .error-code {
  color: #888;
}

[data-theme="dark"] .legal-page h2 {
  color: var(--color-pop-pink);
}

[data-theme="dark"] .admin-header {
  background: #0A0A0D;
  border-color: var(--color-pop-pink);
}
/* Ensure dark mode removes grid */
[data-theme="dark"] body {
  background-color: #111;
  background-image: none;
}
