/* ==========================================================================
   AI Impish — Editorial light redesign
   Fraunces (display) + Manrope (UI/body)
   ========================================================================== */

:root {
  --ink: #15141F;
  --ink-soft: #7A7768;
  --paper: #F1EFE6;
  --paper-deep: #E8E4D8;
  --plum: #7C4DFF;
  --plum-deep: #5E35D6;
  --gold: #FFB238;
  --yellow: #FFB238;
  --gold-deep: #D9922A;
  --line: rgba(21, 20, 31, 0.12);
  --line-dark: rgba(241, 239, 230, 0.14);
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(21, 20, 31, 0.06);
  --shadow-md: 0 8px 28px rgba(21, 20, 31, 0.08);
  --shadow-lg: 0 18px 48px rgba(21, 20, 31, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --wrap: 1120px;
  --gutter: clamp(1.1rem, 3.5vw, 1.75rem);
  --header-h: 68px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(124, 77, 255, 0.35);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--plum);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h5 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

p {
  margin: 0;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

section {
  padding: clamp(3rem, 7vw, 5.25rem) 0;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(241, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
  z-index: 2;
}

.logo:hover {
  color: var(--ink);
}

.logo svg {
  flex-shrink: 0;
}

.links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  margin-left: auto;
}

.links a {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s var(--ease);
}

.links a:hover,
.links a.active {
  color: var(--plum);
}

.links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.menu-toggle:hover {
  background: rgba(21, 20, 31, 0.06);
}

.menu-toggle:focus-visible {
  box-shadow: var(--focus);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-solid {
  background: var(--gold);
  color: var(--ink);
  border: 1.5px solid var(--gold);
}

.btn-solid:hover {
  background: #ffc05a;
  border-color: #ffc05a;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(255, 178, 56, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.dark-section .btn-outline,
.page-hero.dark-section .btn-outline {
  border-color: var(--paper);
  color: var(--paper);
}

.dark-section .btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  position: relative;
}

.eyebrow-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 1.1rem;
}

.eyebrow-mark svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero h1 {
  margin-bottom: 1.15rem;
}

.squiggle-wrap {
  position: relative;
  display: inline-block;
}

.squiggle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15em;
  width: 100%;
  height: 12px;
  pointer-events: none;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42ch;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Cover card */
.cover-card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2rem);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.cover-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.cover-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.45) 0%, transparent 70%);
  top: -20px;
  right: -20px;
  z-index: 0;
  pointer-events: none;
}

.cover-card .issue-tag,
.cover-card .cat-chip,
.cover-card h3,
.cover-card .meta {
  position: relative;
  z-index: 1;
}

.issue-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.cat-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 178, 56, 0.18);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.cover-card h3 {
  color: var(--paper);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-bottom: 0.85rem;
  max-width: 18ch;
}

.cover-card h3 a:hover {
  color: var(--gold);
}

.meta {
  font-size: 0.82rem;
  color: rgba(241, 239, 230, 0.55);
  font-weight: 500;
}

.circuit-deco {
  position: absolute;
  width: min(280px, 40vw);
  height: auto;
  right: -2%;
  top: -8%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 0.85rem 0;
}

.ticker-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.ticker-track b {
  color: var(--ink);
  font-weight: 750;
}

.ticker-track span {
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

/* --------------------------------------------------------------------------
   Section heads / trending
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  flex-wrap: wrap;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-top: 0.5rem;
  max-width: 48ch;
}

.trend-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.55rem;
}

.see-all {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.55rem 0.95rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.see-all:hover {
  background: var(--ink);
  color: var(--paper);
}

.dark-section .see-all {
  color: var(--paper);
  border-color: rgba(241, 239, 230, 0.35);
}

.dark-section .see-all:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.trend-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.trend-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.trend-card a {
  display: block;
  color: inherit;
}

.trend-card a:hover {
  color: inherit;
}

.trend-card h4 {
  margin: 0.35rem 0 0.65rem;
  transition: color 0.2s var(--ease);
}

.trend-card a:hover h4 {
  color: var(--plum);
}

.trend-body {
  padding: 1rem 1.1rem 1.2rem;
}

.cat-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
}

.trend-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--ink);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.trend-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 550;
}

.trend-stat svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dark-section .trend-card {
  background: rgba(241, 239, 230, 0.04);
  border-color: var(--line-dark);
}

.dark-section .trend-card h4 {
  color: var(--paper);
}

.dark-section .trend-stat {
  color: rgba(241, 239, 230, 0.55);
}

.dark-section .cat-label {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Placeholder tech gradients
   -------------------------------------------------------------------------- */

.ph-tech {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2a2540 0%, #15141f 50%, #3d2a1a 100%);
  overflow: hidden;
}

.ph-tech::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 77, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 178, 56, 0.25), transparent 40%);
  pointer-events: none;
}

.ph-tech.v1 {
  background: linear-gradient(145deg, #1a1630 0%, #3b2a6b 45%, #ffb238 160%);
}

.ph-tech.v2 {
  background: linear-gradient(160deg, #15141f 0%, #2d1f4a 40%, #7c4dff 100%);
}

.ph-tech.v3 {
  background: linear-gradient(135deg, #2a1a10 0%, #5c3a12 50%, #ffb238 120%);
}

.ph-tech.v4 {
  background: linear-gradient(150deg, #0f1a2a 0%, #1e3a5f 45%, #7c4dff 110%);
}

.ph-tech.v5 {
  background: linear-gradient(140deg, #1a1020 0%, #4a2060 50%, #ff6b9d 130%);
}

.ph-tech.v6 {
  background: linear-gradient(155deg, #101818 0%, #1a3a35 45%, #2ee6c5 120%);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.play-btn svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.trend-card:hover .play-btn,
a:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ffc05a;
}

.duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(21, 20, 31, 0.85);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Dark section
   -------------------------------------------------------------------------- */

.dark-section {
  background: var(--ink);
  color: var(--paper);
}

.dark-section h2,
.dark-section h3 {
  color: var(--paper);
}

.dark-section .trend-eyebrow {
  color: var(--gold);
}

.dark-section .section-head p {
  color: rgba(241, 239, 230, 0.6);
}

/* --------------------------------------------------------------------------
   Shop
   -------------------------------------------------------------------------- */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.shop-card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 1.5rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}

.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.shop-card h4 {
  color: var(--paper);
  margin: 0.85rem 0 0.5rem;
  font-size: 1.1rem;
}

.shop-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(241, 239, 230, 0.6);
  flex: 1;
}

.shop-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(124, 77, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124, 77, 255, 0.35);
}

.ribbon {
  position: absolute;
  top: 14px;
  right: -28px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 2.2rem;
  transform: rotate(35deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.price {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Latest / stories
   -------------------------------------------------------------------------- */

.latest-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: start;
}

.feature-story .cat-label {
  margin-bottom: 0.55rem;
}

.feature-story h3 {
  margin: 0.4rem 0 0.85rem;
}

.feature-story h3 a:hover {
  color: var(--plum);
}

.feature-story p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 1rem;
}

.story-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 550;
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-row {
  border-bottom: 1px solid var(--line);
}

.story-row:last-child {
  border-bottom: 0;
}

.story-row a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  color: inherit;
}

.story-row a:hover {
  color: inherit;
}

.story-row a:hover h4 {
  color: var(--plum);
}

.story-row .ph-tech {
  aspect-ratio: 1;
  border-radius: 8px;
  width: 96px;
}

.story-row h4 {
  margin: 0.25rem 0 0.35rem;
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Chips
   -------------------------------------------------------------------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 650;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

a.chip:hover,
button.chip:hover {
  border-color: var(--plum);
  color: var(--plum);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip.active:hover {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--paper);
}

.chip:focus-visible {
  box-shadow: var(--focus);
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */

.news-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
  overflow: hidden;
}

.news-band::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.35), transparent 70%);
  top: -60px;
  right: -40px;
  pointer-events: none;
}

.news-band h2 {
  color: var(--paper);
  margin-bottom: 0.65rem;
}

.news-band p {
  color: rgba(241, 239, 230, 0.65);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 42ch;
}

.news-form {
  display: flex;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.news-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(241, 239, 230, 0.2);
  background: rgba(241, 239, 230, 0.06);
  color: var(--paper);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.news-form input[type="email"]::placeholder {
  color: rgba(241, 239, 230, 0.4);
}

.news-form input[type="email"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 178, 56, 0.2);
}

.news-form .btn-solid {
  flex-shrink: 0;
}

.news-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: rgba(241, 239, 230, 0.45);
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.foot-tag {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 32ch;
}

.social-row {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.social-row a:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.social-row a:hover svg {
  stroke: var(--paper);
}

.social-row a:hover svg [fill="#15141F"] {
  fill: var(--paper);
}

footer h5 {
  margin-bottom: 0.85rem;
  color: var(--ink);
}

footer ul li {
  margin-bottom: 0.45rem;
}

footer ul a {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-soft);
}

footer ul a:hover {
  color: var(--plum);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Page hero / about
   -------------------------------------------------------------------------- */

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.75rem, 4vw, 2.5rem);
}

.page-hero.dark-section {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.page-hero .lede {
  margin-top: 1.1rem;
}

.about-story {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.about-story p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.15rem;
}

.about-story p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.about-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--ink);
  overflow: hidden;
  min-height: 260px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
}

.dark-section .pillar-card {
  background: rgba(241, 239, 230, 0.04);
  border-color: var(--line-dark);
}

.pillar-card .num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.pillar-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

.pillar-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffb238 0%, transparent 45%),
    radial-gradient(circle at 70% 70%, #7c4dff 0%, transparent 50%),
    linear-gradient(145deg, #2a2540, #15141f);
  flex-shrink: 0;
  border: 2px solid rgba(255, 178, 56, 0.35);
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.article-head {
  max-width: 720px;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 1.5rem;
}

.article-head h1 {
  margin: 0.65rem 0 1.35rem;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-name {
  font-weight: 750;
  font-size: 0.95rem;
}

.author-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.article-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 12px;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.article-body {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}

.article-body p {
  margin-bottom: 1.35rem;
}

.article-body h2 {
  font-size: 1.45rem;
  margin: 2.25rem 0 0.85rem;
}

.article-body.dropcap > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.6em;
  float: left;
  line-height: 0.8;
  padding: 0.08em 0.12em 0 0;
  font-weight: 700;
  color: var(--plum);
}

.pull-quote {
  margin: 2rem 0;
  padding: 1.5rem 0 1.5rem 1.35rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  quotes: none;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0 2.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.related-strip {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Responsive ~960
   -------------------------------------------------------------------------- */

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

  .circuit-deco {
    display: none;
  }

  .cover-card {
    min-height: 280px;
    max-width: 520px;
  }

  .trend-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-grid,
  .shop-grid[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

  .news-band {
    grid-template-columns: 1fr;
  }

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

  .about-story {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 360px;
  }

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

  .article-cover {
    aspect-ratio: 16 / 9;
  }

  .nav-right .btn {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive ~640 — mobile nav
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: rgba(241, 239, 230, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s var(--ease),
      visibility 0.25s;
    z-index: 99;
  }

  .links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .links a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .links a:last-child {
    border-bottom: 0;
  }

  .links a.active::after {
    display: none;
  }

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

  .shop-grid,
  .shop-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .foot-bottom {
    flex-direction: column;
  }

  .news-form {
    flex-direction: column;
  }

  .news-form .btn-solid {
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
  }

  .story-row a {
    grid-template-columns: 72px 1fr;
    gap: 0.85rem;
  }

  .story-row .ph-tech {
    width: 72px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

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

  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin-inline: calc(var(--gutter) * -0.15);
    padding-inline: 0.15rem;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .section-head .chip-row {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Misc polish
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: rgba(124, 77, 255, 0.25);
  color: var(--ink);
}
