:root {
  --purple: #6e2fcf;
  --purple-dark: #3a106e;
  --purple-soft: #8d4ce4;
  --ink: #14121f;
  --muted: #777383;
  --line: #eceaf1;
  --gold: #d9af45;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  height: 76px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  padding: 0 60px;
  background: var(--white);
  border-bottom: 1px solid rgba(20, 18, 31, 0.08);
  position: relative;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--purple);
  line-height: 1;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 3px;
}

.brand strong {
  font-size: 24px;
  text-transform: lowercase;
  font-weight: 800;
}

.brand em {
  color: #23182b;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  text-transform: lowercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  height: 100%;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  white-space: nowrap;
}

.main-nav a.active {
  color: var(--purple);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  background: var(--purple);
  border-radius: 99px;
}

.main-nav span {
  font-size: 11px;
  transform: translateY(1px);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}

.icon-button,
.hero-arrow,
.row-arrow {
  border: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
}

svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.browse-button {
  height: 42px;
  min-width: 118px;
  border-radius: 7px;
  background: var(--purple);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 12px 22px rgba(110, 47, 207, 0.24);
}

.browse-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.hero {
  height: 334px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(13, 5, 30, 0.95) 0%, rgba(24, 8, 54, 0.78) 34%, rgba(24, 8, 54, 0.22) 66%, rgba(4, 3, 8, 0.32) 100%),
    var(--feature-image, url("assets/hero-review-desk.png"));
  background-size: cover;
  background-position: center;
}

.hero-content {
  width: 700px;
  margin-left: 145px;
  color: var(--white);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 8px;
  font-size: 50px;
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
  max-width: 720px;
}

.hero p {
  margin: 0;
  width: 520px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.48;
}

.primary-button {
  margin-top: 20px;
  height: 46px;
  min-width: 158px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 7px;
  background: var(--purple);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(65, 20, 132, 0.32);
}

.primary-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: rgba(110, 47, 207, 0.88);
  color: var(--white);
}

.hero-arrow-left {
  left: 46px;
}

.hero-arrow-right {
  right: 46px;
}

.hero-arrow svg {
  width: 25px;
  height: 25px;
  stroke-width: 3;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dots span,
.hero-dots a,
.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.hero-dots .current {
  width: 21px;
  border-radius: 999px;
  background: var(--purple-soft);
}

.content-section {
  position: relative;
  padding: 28px 60px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  position: relative;
  padding-left: 20px;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 5px;
  height: 24px;
  border-radius: 99px;
  background: var(--purple);
}

.section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--purple);
  font-weight: 900;
  font-size: 14px;
}

.section-heading a span {
  font-size: 24px;
  line-height: 1;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.review-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(20, 18, 31, 0.12);
}

.card-image {
  height: 124px;
  display: block;
  position: relative;
  overflow: hidden;
}

.card-image img,
.feature-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.12));
}

.card-image span,
.feature-card span {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 15px;
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: var(--purple);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-body {
  min-height: 84px;
  padding: 15px 15px 13px;
}

.card-body h3 {
  margin: 0 0 13px;
  min-height: 22px;
  color: var(--purple);
  font-size: 18px;
  line-height: 1.16;
  font-weight: 900;
}

.card-body p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.card-body p svg,
.feature-card p svg {
  width: 15px;
  height: 15px;
  color: var(--purple);
  stroke-width: 2.2;
  flex: 0 0 auto;
}

.row-arrow {
  position: absolute;
  top: 117px;
  right: 34px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--purple);
  box-shadow: 0 10px 28px rgba(20, 18, 31, 0.18);
}

.row-arrow svg {
  width: 25px;
  height: 25px;
  stroke-width: 3.2;
}

.feature-section {
  padding-top: 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.feature-card {
  height: 158px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #1a1322;
  box-shadow: 0 2px 10px rgba(20, 18, 31, 0.13);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18));
}

.feature-card > div {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 18px 15px;
  color: var(--white);
}

.feature-card span {
  position: static;
  width: max-content;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 9px;
  max-width: 92%;
  font-size: 19px;
  line-height: 1.22;
  font-weight: 900;
}

.feature-card p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1;
}

.feature-card p svg {
  color: var(--white);
}

.feature-arrow {
  top: 108px;
}

.library-cta {
  min-height: 96px;
  margin-top: 26px;
  padding: 18px 295px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(112deg, var(--purple), var(--purple-dark));
  color: var(--white);
}

.cta-icon {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.cta-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.8;
}

.library-cta h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.library-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.library-cta > a {
  height: 46px;
  border-radius: 7px;
  background: #ffffff;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(30, 7, 68, 0.18);
}

.library-cta > a svg {
  width: 20px;
  height: 20px;
  stroke-width: 3;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 28px;
  }

  .main-nav {
    display: none;
  }

  .hero-content {
    margin-left: 90px;
  }

  .review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-cta {
    padding: 22px 40px;
    grid-template-columns: 62px minmax(0, 1fr) 210px;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 78px;
    padding: 12px 18px;
    gap: 14px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand em {
    font-size: 12px;
  }

  .header-actions {
    gap: 10px;
  }

  .browse-button {
    display: none;
  }

  .hero {
    height: 390px;
  }

  .hero-content {
    width: auto;
    margin: 0 34px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    width: auto;
    max-width: 310px;
    font-size: 14px;
  }

  .hero-arrow {
    display: none;
  }

  .content-section {
    padding: 26px 18px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .section-heading a {
    font-size: 13px;
    padding-top: 1px;
    white-space: nowrap;
  }

  .review-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 170px;
  }

  .card-body p {
    flex-wrap: wrap;
    line-height: 1.35;
    white-space: normal;
  }

  .row-arrow {
    display: none;
  }

  .feature-card {
    height: 190px;
  }

  .library-cta {
    padding: 24px 20px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .library-cta > a {
    width: 100%;
  }
}


/* Localized content pages */
.signup-button {
  height: 42px;
  min-width: 118px;
  border-radius: 7px;
  background: var(--purple);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 12px 22px rgba(110, 47, 207, 0.24);
}

.signup-button svg {
  width: 18px;
  height: 18px;
}

.page-hero {
  min-height: 250px;
  display: flex;
  align-items: center;
  padding: 42px 60px;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(13, 5, 30, 0.96), rgba(24, 8, 54, 0.72), rgba(4, 3, 8, 0.35)),
    url("assets/hero-review-desk.png");
  background-size: cover;
  background-position: center;
}

.page-hero div {
  max-width: 820px;
}

.page-hero h1 {
  margin: 16px 0 10px;
  font-size: 48px;
  line-height: 1;
  text-transform: uppercase;
}

.page-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.5;
}

.page-content {
  padding-bottom: 42px;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.archive-item a,
.resource-panel,
.spotlight-panel,
.contact-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(20, 18, 31, 0.1);
}

.archive-item a {
  min-height: 110px;
  padding: 18px;
}

.archive-item strong {
  display: block;
  color: var(--purple);
  font-size: 16px;
  margin-bottom: 10px;
}

.archive-item span {
  display: block;
  color: var(--ink);
  line-height: 1.35;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.category-nav a,
.category-block li a,
.category-block li span,
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(110, 47, 207, 0.1);
  color: var(--purple);
  font-weight: 800;
}

.category-list {
  display: grid;
  gap: 20px;
}

.category-block {
  scroll-margin-top: 20px;
}

.category-block h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.category-block ul,
.resource-panel ul,
.reading-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-block ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.article-shell {
  width: min(1080px, calc(100% - 48px));
  margin: 34px auto 54px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.article-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(110, 47, 207, 0.1);
  color: var(--purple);
  font-weight: 800;
}

.article-shell h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 30px;
}

.article-shell p {
  color: #4f4a5f;
  font-size: 16px;
  line-height: 1.65;
}

.article-meta,
.source-note {
  color: var(--muted);
}

.embed-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(20, 18, 31, 0.12);
}

.embed-card iframe {
  display: block;
  width: 100%;
  min-height: 680px;
  border: 0;
}

.embed-card.compact iframe {
  min-height: 310px;
}

.embed-stack {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.centered-shell {
  text-align: center;
  max-width: 760px;
}

.inline-button {
  color: #ffffff;
}

.landing-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resource-panel {
  grid-column: 1 / -1;
}

.resource-panel,
.spotlight-panel,
.contact-card {
  padding: 22px;
}

.resource-panel h2,
.spotlight-panel h2,
.contact-card h2,
.text-section h2 {
  margin: 0 0 10px;
  color: var(--ink);
}

.resource-panel li + li,
.reading-block li + li {
  margin-top: 10px;
}

.resource-panel a {
  color: var(--purple);
  font-weight: 800;
}

.about-images {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 28px;
}

.about-images img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(20, 18, 31, 0.12);
}

.text-section {
  margin-top: 28px;
}

.reading-block {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.reading-block h3 {
  margin: 0 0 12px;
  color: var(--purple);
}

.intro-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(141, 76, 228, 0.28), transparent 24%),
    linear-gradient(120deg, rgba(12, 4, 27, 0.96), rgba(42, 13, 83, 0.92)),
    url("assets/hero-review-desk.png");
  background-size: cover;
  background-position: center;
}

.intro-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 24px;
}

.intro-hero {
  width: min(1060px, 100%);
  display: grid;
  gap: 22px;
  color: #ffffff;
}

.intro-copy {
  text-align: center;
}

.intro-copy h1 {
  margin: 16px 0 8px;
  font-size: 56px;
  line-height: 0.95;
  text-transform: uppercase;
}

.intro-copy p {
  margin: 0 auto;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.intro-video {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 4, 18, 0.8);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}

.intro-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.intro-video-fallback {
  display: none;
}

.file-video-fallback .intro-video iframe {
  display: none;
}

.file-video-fallback .intro-video-fallback {
  display: grid;
  place-items: center;
  position: relative;
  height: 100%;
  color: #ffffff;
}

.intro-video-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52) saturate(1.15);
}

.intro-video-fallback span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(110, 47, 207, 0.92);
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.intro-video-fallback svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.secondary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 7px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.archive-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.archive-item a {
  min-height: 150px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 242, 255, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(110, 47, 207, 0.2), transparent 34%);
}

.archive-item a::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
}

.archive-item .archive-issue {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), #2f0b65);
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(71, 20, 144, 0.22);
}

.archive-copy {
  display: grid;
  align-content: start;
  gap: 7px;
}

.archive-copy strong {
  margin: 0;
  color: #4f4a5f;
  font-size: 13px;
  text-transform: uppercase;
}

.archive-copy em {
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--purple);
  background: rgba(110, 47, 207, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-copy span {
  color: #171121;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.15;
}

.archive-tone-1 a::before { background: linear-gradient(90deg, #6e2fcf, #d9af45); }
.archive-tone-2 a::before { background: linear-gradient(90deg, #2853d8, #6e2fcf); }
.archive-tone-3 a::before { background: linear-gradient(90deg, #b42770, #d9af45); }
.archive-tone-4 a::before { background: linear-gradient(90deg, #12695f, #6e2fcf); }
.archive-tone-5 a::before { background: linear-gradient(90deg, #25233a, #d9af45); }

.genre-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.genre-choice-grid .genre-choice {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(110, 47, 207, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 10%, rgba(217, 175, 69, 0.28), transparent 24%),
    linear-gradient(135deg, #ffffff, #f2ecff);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(20, 18, 31, 0.08);
}

.genre-choice-grid .genre-choice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--purple), var(--gold));
}

.genre-choice span {
  position: relative;
  color: var(--purple);
  font-size: 17px;
  font-weight: 950;
}

.genre-choice em {
  position: relative;
  color: #756d86;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.category-list {
  gap: 24px;
}

.category-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 255, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(110, 47, 207, 0.11), transparent 26%);
  box-shadow: 0 2px 12px rgba(20, 18, 31, 0.08);
}

.category-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(110, 47, 207, 0.14);
}

.category-block-head h3 {
  margin: 0;
  font-size: 24px;
}

.category-block-head h3 a {
  color: var(--ink);
}

.category-block-head span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--purple);
  background: rgba(110, 47, 207, 0.1);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-block li a,
.category-block li span {
  min-height: 36px;
  border: 1px solid rgba(110, 47, 207, 0.08);
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(20, 18, 31, 0.06);
}

@media (max-width: 1320px) {
  .site-header {
    grid-template-columns: 230px minmax(0, 1fr) 124px;
    padding: 0 30px;
  }

  .main-nav {
    gap: 16px;
    font-size: 13px;
  }

  .genre-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .signup-button {
    min-width: 108px;
  }
}

@media (max-width: 760px) {
  .signup-button {
    display: none;
  }

  .page-hero {
    min-height: 280px;
    padding: 34px 24px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .archive-list,
  .landing-layout,
  .about-images,
  .genre-choice-grid {
    grid-template-columns: 1fr;
  }

  .intro-copy h1 {
    font-size: 36px;
  }

  .archive-item a {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .archive-issue {
    min-height: 58px;
    font-size: 16px;
  }

  .archive-copy span {
    font-size: 17px;
  }

  .article-shell {
    width: min(100% - 36px, 1080px);
  }

  .article-shell h2 {
    font-size: 24px;
  }

  .embed-card iframe {
    min-height: 560px;
  }
}

/* Welcome-page and Home carousel refinements */
.intro-actions > .primary-button,
.intro-actions > .secondary-button {
  box-sizing: border-box;
  flex: 0 1 320px;
  width: 320px;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  margin-top: 0;
  padding: 0 20px;
  border: 1px solid transparent;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.intro-actions > .primary-button {
  border-color: var(--purple);
}

.intro-actions > .secondary-button {
  border-color: rgba(255, 255, 255, 0.42);
}

.intro-actions > .secondary-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.intro-actions > a:hover {
  transform: translateY(-1px);
}

.intro-actions > a:focus-visible,
.intro-video-fallback:focus-visible,
.row-carousel-controls .row-arrow:focus-visible,
.hero-arrow:focus-visible,
.hero-dots button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.card-carousel-page[hidden] {
  display: none;
}

.row-carousel-controls {
  min-height: 50px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
}

.row-carousel-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.row-carousel-controls .row-arrow {
  position: static;
  display: inline-grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(110, 47, 207, 0.12);
  background: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.row-carousel-controls .row-arrow:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 30px rgba(20, 18, 31, 0.22);
}

.row-carousel-controls .row-arrow svg {
  transition: transform 180ms ease;
}

.row-carousel-controls .row-arrow.is-returning svg {
  transform: rotate(180deg);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--purple);
  font-weight: 900;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--gold);
}

.welcome-editorial-body {
  background: #f8f6fc;
}

.welcome-editorial-hero {
  min-height: 300px;
}

.welcome-editorial-hero > div {
  width: min(680px, 100%);
  min-width: 0;
  padding: 24px 28px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(13, 5, 30, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(5px);
}

.welcome-editorial-shell {
  margin-top: 32px;
}

.welcome-editorial-panel {
  margin-bottom: 18px;
  padding: 18px 20px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-left: 5px solid var(--purple);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(20, 18, 31, 0.08);
}

.welcome-editorial-panel p {
  margin: 0;
  color: #4f4a5f;
  line-height: 1.6;
}

.welcome-editorial-video {
  width: 100%;
  border: 1px solid var(--line);
  border-top: 5px solid var(--purple);
  background: #120a1f;
  box-shadow: 0 12px 34px rgba(20, 18, 31, 0.16);
}

.welcome-editorial-actions {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(20, 18, 31, 0.08);
}

.welcome-editorial-actions > .primary-button,
.welcome-editorial-actions > .secondary-button {
  flex-basis: 300px;
  width: 300px;
  height: 48px;
  min-height: 48px;
  border-color: var(--purple);
}

.welcome-editorial-actions > .secondary-button {
  color: var(--purple);
  background: #ffffff;
  backdrop-filter: none;
}

.review-card .card-body p {
  flex-wrap: wrap;
  row-gap: 6px;
  white-space: normal;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .intro-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .intro-actions > .primary-button,
  .intro-actions > .secondary-button {
    flex-basis: auto;
    width: 100%;
    height: auto;
    min-height: 50px;
  }

  .row-carousel-controls {
    margin-top: 16px;
  }

  .welcome-editorial-hero {
    min-height: 270px;
  }

  .welcome-editorial-hero > div {
    padding: 20px;
  }

  .welcome-editorial-shell {
    width: min(100% - 36px, 1080px);
    margin-top: 24px;
  }

  .welcome-editorial-actions {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-actions > a,
  .row-carousel-controls .row-arrow,
  .row-carousel-controls .row-arrow svg {
    transition: none;
  }
}
