/* =====================================================================
   AI Trends Magazine — theme.css
   Palette matches design handoff v2 (wine hero + gold + pink).
   ===================================================================== */

:root {
  /* Hero palette (v2) */
  --hero-bg:      #750044;
  --hero-bg-deep: #5A0034;
  --gold:         #FFD56A;
  --cream-warm:   #FFCC6A;
  --kicker:       #FB9EFF;

  /* Accents kept from v1 */
  --blue:         #1E6BFF;
  --blue-deep:    #1652CC;

  /* Neutrals */
  --ink:       #0E0E2C;
  --ink-soft:  #2A2A48;
  --mute:      #6A6A85;
  --paper:     #FFFFFF;
  --cream:     #FFF7E1;

  /* Features + newsletter */
  --magenta-hot: #E638DD;
  --peach-card:  #FFB3A4;

  /* Category pill palette */
  --c-red:    #E6384B;
  --c-orange: #FF7A2E;
  --c-teal:   #12B5A8;
  --c-green:  #2BB24C;
  --c-purple: #7C3AED;
  --c-pink:   #EC4899;
  --c-indigo: #4F46E5;

  /* Legacy aliases — some template-parts still reference these names */
  --yellow:      var(--gold);
  --yellow-deep: #F5B400;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ------------- HERO ------------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46%;
  background: #fff;
  clip-path: path('M 120 0 L 100% 0 L 100% 100% L 0 100% Q 260 50% 120 0 Z');
  z-index: 0;
}

.hero .wedge-a,
.hero .wedge-b {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.hero .wedge-a {
  top: 0;
  right: 48%;
  width: 120px;
  height: 100%;
  background: #FF7A2E;
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0% 100%);
  opacity: 0.95;
}
.hero .wedge-b {
  bottom: 0;
  right: 58%;
  width: 90px;
  height: 70%;
  background: #E65A1F;
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
}

/* ---- Nav ---- */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 26px;
  color: #fff;
}
.brand img.custom-logo { max-height: 48px; width: auto; }
.brand .mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  display: inline-block;
}
.brand .mark::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  top: 8px; left: 8px;
}
.brand .mark::before {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  top: -4px; right: -6px;
  box-shadow: 0 0 0 3px var(--gold);
}
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name small {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  margin-top: 4px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 44px;
  font-weight: 500;
  font-size: 15px;
  color: #fff;
}
.menu li { list-style: none; }
.menu a { position: relative; padding: 6px 0; color: #fff; }
.menu a.active,
.menu .current-menu-item > a { font-weight: 700; color: var(--gold); }
.menu a.active::after,
.menu .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--gold);
}
.menu a:hover { color: var(--gold); }
.menu .search {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.menu .search:hover { background: var(--gold); border-color: var(--gold); color: var(--hero-bg); }

/* ---- Hero nav: items sit over the white wedge on the right side, so
       paint them maroon-on-white with the hero's orange as the hover. ---- */
.hero .menu a,
.hero .menu .auth-link {
  color: var(--hero-bg);
  font-weight: 600;
}
.hero .menu a:hover,
.hero .menu .auth-link:hover { color: #FF7A2E; }
.hero .menu a.active,
.hero .menu .current-menu-item > a { color: var(--hero-bg); }
.hero .menu a.active::after,
.hero .menu .current-menu-item > a::after { background: #FF7A2E; }
.hero .menu .search {
  border-color: var(--hero-bg);
  color: var(--hero-bg);
}
.hero .menu .search:hover {
  background: #FF7A2E;
  border-color: #FF7A2E;
  color: #fff;
}
.hero .menu .auth-link-cta {
  background: #FF7A2E;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: background .15s, color .15s;
}
.hero .menu .auth-link-cta:hover {
  background: var(--hero-bg);
  color: #fff;
}

/* ---- Hero content ---- */
.hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 30px 0 56px;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 13px;
  font-weight: 600;
  color: var(--kicker);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 34px; height: 2px; background: var(--kicker);
}

.hero h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  color: #fff;
  max-width: 640px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.hero p.lede {
  font-size: 15.5px;
  color: var(--cream-warm);
  max-width: 440px;
  margin: 0 0 26px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px 14px 14px;
  border-radius: 999px;
  background: linear-gradient(95deg, var(--blue) 0%, #4DA2FF 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(30,107,255,0.5);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -8px rgba(30,107,255,0.6); }
.btn .play {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
}
.btn .play svg { width: 10px; height: 10px; }
.btn.ghost {
  background: transparent;
  color: #fff;
  box-shadow: none;
  padding: 14px 6px;
  border: none;
}
.btn.ghost:hover { transform: none; color: var(--gold); }

.issue-meta {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1.5px solid rgba(255,255,255,0.25);
  max-width: 520px;
  position: relative;
  z-index: 4;
}
.issue-meta div { font-size: 12px; color: var(--gold); }
.issue-meta strong { display: block; font-size: 19px; color: var(--gold); font-weight: 700; margin-bottom: 2px; letter-spacing: -0.01em; }

/* Magazine stage */
.mag-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}
.mag-bg-circle {
  position: absolute;
  width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(255,255,255,0));
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.mag-frame {
  position: relative;
  width: 320px;
  aspect-ratio: 390 / 545;
  transform: rotate(3deg);
  filter: drop-shadow(-20px 30px 40px rgba(14,14,44,0.25)) drop-shadow(0 0 1px rgba(0,0,0,0.1));
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.mag-frame:hover { transform: rotate(0deg) scale(1.02); }
.mag-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.mag-tag {
  position: absolute;
  right: -30px; top: 40px;
  background: var(--ink);
  color: var(--gold);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(6deg);
  box-shadow: 0 10px 20px -6px rgba(14,14,44,0.35);
}
.mag-tag span { display: block; font-size: 20px; letter-spacing: -0.01em; color: #fff; text-transform: none; margin-top: 4px; font-weight: 800; }

.mag-float {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 40px -12px rgba(14,14,44,0.25);
  font-size: 13px;
  color: var(--ink);
}
.mag-float .dot {
  width: 10px; height: 10px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
}
.mag-float.f1 { left: -10px; top: 90px; }
.mag-float.f2 { right: -20px; bottom: 80px; padding: 12px 14px; }
.mag-float.f2 .stars { color: #F5B400; letter-spacing: 2px; font-size: 14px; }
.mag-float strong { display: block; font-weight: 700; font-size: 14px; color: var(--ink); }
.mag-float small { color: var(--mute); font-size: 11px; }

/* Marquee strip */
.strip {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.strip-track {
  display: flex;
  gap: 72px;
  padding: 22px 0;
  white-space: nowrap;
  animation: aitm-slide 35s linear infinite;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.strip-track span { display: inline-flex; align-items: center; gap: 22px; }
.strip-track span::after {
  content: "";
  width: 8px; height: 8px; background: var(--gold); border-radius: 50%;
  display: inline-block;
}
@keyframes aitm-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}

/* ------------- FEATURES ------------- */
.sec { padding: 90px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 40px; flex-wrap: wrap; }
.sec-head h2 {
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  max-width: 640px;
}
.sec-head h2 em { font-style: normal; color: var(--magenta-hot); }
.sec-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 12px;
  font-weight: 600;
  color: var(--magenta-hot);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.sec-head .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--magenta-hot); }
.sec-head p { color: var(--mute); max-width: 360px; margin: 0; font-size: 15px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff;
  border: 1.5px solid #EEEEF2;
  border-radius: 20px;
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
  min-height: 360px;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -20px rgba(14,14,44,0.2);
  border-color: var(--ink);
}
.card .thumb {
  aspect-ratio: 16/10;
  border-radius: 12px;
  background: linear-gradient(135deg, #F3F3F7 0%, #E8E8F0 100%);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.card .thumb:not([data-has-image])::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(14,14,44,0.04) 0 8px, transparent 8px 16px);
}
.card .thumb img.thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.card .thumb .badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
}
.badge.red    { background: var(--c-red); color: #fff; }
.badge.orange { background: var(--c-orange); color: #fff; }
.badge.teal   { background: var(--c-teal); color: #fff; }
.badge.green  { background: var(--c-green); color: #fff; }
.badge.purple { background: var(--c-purple); color: #fff; }
.badge.pink   { background: var(--c-pink); color: #fff; }
.badge.indigo { background: var(--c-indigo); color: #fff; }
.badge.gold   { background: var(--gold); color: var(--ink); }

.card .thumb.t-red    { background: linear-gradient(135deg, #FFE5E9 0%, #FFC5CD 100%); }
.card .thumb.t-orange { background: linear-gradient(135deg, #FFE8D6 0%, #FFCFA8 100%); }
.card .thumb.t-teal   { background: linear-gradient(135deg, #D2F4F0 0%, #9FE4DD 100%); }
.card .thumb.t-green  { background: linear-gradient(135deg, #DFF4E3 0%, #A8DEB4 100%); }
.card .thumb.t-purple { background: linear-gradient(135deg, #EDE4FF 0%, #C9B4FF 100%); }
.card .thumb.t-pink   { background: linear-gradient(135deg, #FFE1EE 0%, #FFB5D4 100%); }
.card .thumb.t-indigo { background: linear-gradient(135deg, #E2E0FC 0%, #B6B2F1 100%); }
.card .thumb.t-gold   { background: linear-gradient(135deg, #FFF1C2 0%, #FFDB7A 100%); }

.card.c-red    .meta, .card.c-red    .more { color: var(--c-red); }
.card.c-orange .meta, .card.c-orange .more { color: var(--c-orange); }
.card.c-teal   .meta, .card.c-teal   .more { color: var(--c-teal); }
.card.c-green  .meta, .card.c-green  .more { color: var(--c-green); }
.card.c-purple .meta, .card.c-purple .more { color: var(--c-purple); }
.card.c-pink   .meta, .card.c-pink   .more { color: var(--c-pink); }
.card.c-indigo .meta, .card.c-indigo .more { color: var(--c-indigo); }

.card .thumb .ph {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #8F8FA8;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 12px;
}
.card .meta { color: var(--mute); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
  text-wrap: balance;
}
.card p { color: var(--mute); font-size: 14px; margin: 0 0 18px; }
.card .more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
}
.card .more svg { transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

.card.feat {
  grid-column: span 2;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.card.feat .thumb {
  flex: 1;
  border-radius: 0;
  margin: 0;
  aspect-ratio: auto;
  background: linear-gradient(135deg, #1A1A38 0%, #2E2E58 100%);
}
.card.feat .thumb:not([data-has-image])::before {
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 8px, transparent 8px 16px);
}
.card.feat .thumb .ph { color: rgba(255,255,255,0.45); }
.card.feat .body { flex: 1; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; }
.card.feat h3 { font-size: 30px; color: #fff; }
.card.feat p { color: rgba(255,255,255,0.7); font-size: 15px; }
.card.feat .meta { color: var(--gold); }
.card.feat .more { color: var(--gold); }

/* ------------- TECHNOLOGY SECTION ------------- */
.tech-sec { padding: 40px 0 90px; background: #fff; }
.tech-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px;
  border-bottom: 1.5px solid #F0E8F5;
  margin-bottom: 36px;
}
.tech-head h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink);
}
.tech-head .view-all {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-pink);
  display: inline-flex; gap: 8px; align-items: center;
}
.tech-head .view-all:hover { color: var(--ink); }

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}
.tech-col { display: flex; flex-direction: column; gap: 24px; }

.t-card { background: transparent; cursor: pointer; text-decoration: none; color: inherit; }
.t-thumb {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  transition: transform .3s ease;
  background: linear-gradient(135deg, #2A2A48 0%, #1E6BFF 100%);
}
.t-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.t-card:hover .t-thumb { transform: translateY(-3px); }
.t-card h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
  text-wrap: pretty;
}
.t-meta { font-size: 12px; color: var(--mute); }
.t-meta .sep { margin: 0 6px; color: #D1D1DD; }
.t-meta :last-child { color: var(--c-pink); font-weight: 500; }

.t-feat-col { gap: 16px; }
.t-feat { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; }
.t-feat-thumb {
  aspect-ratio: 16/10;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2A2A48 0%, #1E6BFF 50%, var(--gold) 120%);
}
.t-feat-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: all .2s;
}
.play-btn:hover { background: #fff; }
.play-btn:hover svg polygon { fill: var(--ink); }
.t-feat-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  text-wrap: balance;
}
.t-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t-mini {
  aspect-ratio: 4/3;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  background: linear-gradient(135deg, var(--gold) 0%, var(--c-orange) 100%);
  text-decoration: none;
}
.t-mini img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.t-mini:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(14,14,44,0.4); }
.t-mini:nth-child(2) { background: linear-gradient(135deg, var(--c-teal) 0%, var(--blue) 100%); }
.t-mini:nth-child(3) { background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-pink) 100%); }
.t-mini:nth-child(4) { background: linear-gradient(135deg, var(--c-red) 0%, var(--c-orange) 100%); }

.t-thumb .ph, .t-feat-thumb .ph, .t-mini .ph-s {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 12px;
}
.t-mini .ph-s { font-size: 10px; }

/* ------------- TOPICS BAND ------------- */
.topics {
  background: var(--cream);
  padding: 110px 0;
}
.topics-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: center;
}
.topics-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.topic {
  padding: 20px 22px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1.5px solid transparent;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.topic:hover { border-color: var(--ink); transform: translateX(4px); }
.topic .num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gold);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
}
.topic.c-red    .num { background: var(--c-red);    color: #fff; }
.topic.c-orange .num { background: var(--c-orange); color: #fff; }
.topic.c-teal   .num { background: var(--c-teal);   color: #fff; }
.topic.c-green  .num { background: var(--c-green);  color: #fff; }
.topic.c-purple .num { background: var(--c-purple); color: #fff; }
.topic.c-pink   .num { background: var(--c-pink);   color: #fff; }
.topic.c-indigo .num { background: var(--c-indigo); color: #fff; }

.topic strong { display: block; font-weight: 700; font-size: 15px; }
.topic small { color: var(--mute); font-size: 12px; }

/* ------------- QUOTE ------------- */
.quote {
  padding: 130px 0;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: "\201C";
  position: absolute;
  font-family: 'Poppins', serif;
  font-size: 520px;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.12;
  top: -40px; left: 40px;
  font-weight: 900;
}
.quote-body {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.quote p {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  text-wrap: balance;
}
.quote p em { color: var(--gold); font-style: normal; }
.attr { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; }
.attr .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--kicker));
  overflow: hidden;
}
.attr .avatar img { width: 100%; height: 100%; object-fit: cover; }
.attr strong { display: block; font-weight: 700; }
.attr small { color: rgba(255,255,255,0.55); }

/* ------------- NEWSLETTER ------------- */
.news {
  padding: 120px 0;
  background: #fff;
}
.news-card {
  background: var(--peach-card);
  border-radius: 28px;
  padding: 70px 80px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.news-card::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 280px; height: 280px;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0.15;
}
.news-card::before {
  content: "";
  position: absolute;
  right: 40px; top: -40px;
  width: 120px; height: 120px;
  background: var(--ink);
  border-radius: 50%;
  opacity: 0.08;
}
.news-card h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink);
}
.news-card .eyebrow { color: var(--ink); }
.news-card p { color: var(--ink-soft); margin: 0; }
.news-form {
  position: relative;
  z-index: 2;
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 18px 38px -14px rgba(14,14,44,0.22);
}
.news-form input {
  flex: 1;
  border: 0;
  padding: 16px 22px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  outline: none;
  color: var(--ink);
}
.news-form button {
  border: 0;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}
.news-form button:hover { background: var(--hero-bg); }
.news-cta {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.news-cta:hover { background: var(--hero-bg); color: #fff; transform: translateY(-1px); }
.news-note { font-size: 12px; color: var(--ink-soft); margin-top: 14px; }

/* ------------- FOOTER ------------- */
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
.foot-grid h5 {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 22px;
  font-weight: 700;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.foot-grid ul li { margin: 0; padding: 0; }
.foot-grid a { color: rgba(255,255,255,0.7); }
.foot-grid a:hover { color: var(--gold); }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #fff; font-size: 24px; font-weight: 800; }
.foot-brand .mark { background: var(--gold); }
.foot-brand .mark::after { background: var(--ink); }
.foot-brand .mark::before { background: var(--gold); box-shadow: 0 0 0 3px var(--ink); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 14px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center;
  color: #fff;
  transition: all .2s;
}
.socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ------------- ARCHIVE HEAD ------------- */
.archive-head {
  padding: 80px 0 40px;
  background: var(--cream);
}
.archive-head h1 {
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.archive-head p { color: var(--ink-soft); max-width: 640px; margin: 0; }

/* ------------- Responsive ------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0 80px; }
  .mag-stage { min-height: 560px; }
  .hero::before { display: none; }
  .hero .wedge-a, .hero .wedge-b { display: none; }
  /* White wedge gone at this width — restore white-on-maroon so the nav
     stays visible against the now-fullwidth maroon background. */
  .hero .menu a,
  .hero .menu .auth-link { color: #fff; }
  .hero .menu a:hover,
  .hero .menu .auth-link:hover { color: var(--gold); }
  .hero .menu .search { border-color: rgba(255,255,255,0.55); color: #fff; }
  .hero .menu .search:hover { background: var(--gold); border-color: var(--gold); color: var(--hero-bg); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .card.feat { grid-column: span 2; flex-direction: column; }
  .topics-grid { grid-template-columns: 1fr; gap: 40px; }
  .news-card { grid-template-columns: 1fr; padding: 50px 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .t-feat-col { grid-column: span 2; order: -1; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .menu { gap: 20px; }
  .menu a:not(.search) { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .card.feat { grid-column: span 1; }
  .topics-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-bottom { flex-direction: column; gap: 14px; }
  .issue-meta { gap: 24px; flex-wrap: wrap; }
  .mag-frame { width: 280px; }
  .mag-tag { right: -10px; }
  .tech-grid { grid-template-columns: 1fr; }
  .t-feat-col { grid-column: auto; }
}
