/* ============================================================
   LUMEN Fashion — magazine site styles
   Typography: Fraunces (serif display) + Inter (UI body)
   Palette: off-black / cream / gold
   ============================================================ */

:root {
  --ink: #0e0e0e;
  --ink-2: #1a1a1a;
  --ink-3: #2a2a2a;
  --cream: #f5efe4;
  --cream-2: #ece3d1;
  --paper: #ffffff;
  --line: rgba(14, 14, 14, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --muted: rgba(14, 14, 14, 0.62);
  --muted-light: rgba(255, 255, 255, 0.66);
  --accent: #b8935a;
  --accent-2: #dcb77d;
  --accent-ink: #3a2a14;

  --font-serif: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --shadow-sm: 0 2px 10px rgba(14, 14, 14, 0.06);
  --shadow-md: 0 20px 60px rgba(14, 14, 14, 0.12);
  --shadow-lg: 0 40px 100px rgba(14, 14, 14, 0.22);

  --header-h: 72px;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
}

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

.section--cream {
  background: var(--cream);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 72px);
  text-align: center;
}

.section-head--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  text-align: left;
  max-width: none;
  margin: 0 0 clamp(40px, 5vw, 72px);
}

.section-head__aside {
  color: var(--muted);
  max-width: 42ch;
  justify-self: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- Typography ---------- */
.h-display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  font-variation-settings: "opsz" 144;
}

.h-display--light {
  color: #fff;
}

.h-display em,
.h-display .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 62ch;
}

.lead--light {
  color: var(--muted-light);
}

.section-head .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.22s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn--link {
  background: transparent;
  padding: 6px 0;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.btn--link:hover {
  color: var(--accent);
}

.btn--wide {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
}

.header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.logo--light {
  color: #fff;
}

.logo__mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.logo__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.logo__line {
  font-size: 14px;
  letter-spacing: 0.28em;
  font-weight: 700;
  text-transform: uppercase;
}

.logo__line--italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 16px;
  color: var(--accent);
}

.logo--light .logo__line--italic {
  color: var(--accent-2);
}

.nav__list {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.nav a {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header__cta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  padding: 0;
  position: relative;
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.burger span:nth-child(1) {
  top: 16px;
}

.burger span:nth-child(2) {
  top: 21px;
}

.burger span:nth-child(3) {
  top: 26px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 960px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 70% 40%, rgba(184, 147, 90, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(14, 14, 14, 0.35), rgba(14, 14, 14, 0.9));
}

.hero__inner {
  position: relative;
  padding: clamp(120px, 16vh, 200px) 0 clamp(80px, 10vh, 120px);
  max-width: 960px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(54px, 10.5vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 16px 0 28px;
  font-variation-settings: "opsz" 144;
}

.hero__line {
  display: block;
}

.hero__line--italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-2);
  padding-left: clamp(30px, 8vw, 120px);
}

.hero__line--serif {
  font-weight: 400;
}

.hero__lead {
  max-width: 60ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 36px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.hero__ctas .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.hero__ctas .btn--primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.hero__ctas .btn--link {
  color: #fff;
}

.hero__ctas .btn--link:hover {
  color: var(--accent-2);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 8vh, 88px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__meta strong {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

.hero__meta span {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
  padding: 22px 0;
}

.marquee__track {
  display: inline-flex;
  gap: 32px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.82);
}

.marquee__track span + span {
  color: var(--accent);
}

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

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-md);
}

.frame--portrait {
  aspect-ratio: 4 / 5;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(14, 14, 14, 0.72);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.pillar {
  padding: 36px 28px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(184, 147, 90, 0.06);
}

.pillar__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.pillar h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 10px;
  color: #fff;
}

.pillar p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Issues rail ---------- */
.issues__rail {
  position: relative;
}

.issues__list {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--gutter);
  padding: 10px 2px 28px;
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scrollbar-width: none;
}

.issues__list::-webkit-scrollbar {
  display: none;
}

.issue {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.issue--featured {
  flex: 0 0 320px;
}

.issue__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s ease;
}

.issue__card:hover {
  transform: translateY(-6px);
}

.issue__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  background: var(--ink);
  isolation: isolate;
}

.issue__cover::before {
  content: "LUMEN fashion";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
}

.issue__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0) 40%, rgba(14, 14, 14, 0.7));
  z-index: -1;
}

.issue__no {
  align-self: flex-start;
  margin-top: 40px;
  font-family: var(--font-serif);
  font-size: 62px;
  font-weight: 300;
  line-height: 1;
}

.issue__topic {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.1;
}

.issue__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.issue__badge--read {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.issue__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.issue__meta span:first-child {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}

/* Issue cover variants — layered backgrounds (no external images) */
.issue__cover--n1 {
  background:
    radial-gradient(120% 80% at 0% 0%, #42342a 0%, transparent 55%),
    linear-gradient(160deg, #1c1915 0%, #2b1f13 100%);
}

.issue__cover--n2 {
  background:
    radial-gradient(100% 70% at 100% 0%, #b8935a 0%, transparent 55%),
    linear-gradient(160deg, #2a1c1a 0%, #3a231b 100%);
}

.issue__cover--n3 {
  background:
    radial-gradient(80% 60% at 50% 100%, #dcb77d 0%, transparent 55%),
    linear-gradient(200deg, #20201e 0%, #352c20 100%);
}

.issue__cover--n4 {
  background:
    radial-gradient(120% 80% at 50% 0%, #685030 0%, transparent 65%),
    linear-gradient(160deg, #131313 0%, #241c13 100%);
}

.issue__cover--n5 {
  background:
    radial-gradient(80% 80% at 0% 100%, #a07646 0%, transparent 55%),
    linear-gradient(210deg, #201a16 0%, #3c2c1c 100%);
}

.issue__cover--n6 {
  background:
    radial-gradient(100% 70% at 100% 50%, #8d6a3e 0%, transparent 55%),
    linear-gradient(180deg, #181613 0%, #2e2318 100%);
}

.issue__cover--n7 {
  background:
    radial-gradient(120% 80% at 40% 100%, #52402a 0%, transparent 60%),
    linear-gradient(160deg, #1b1a17 0%, #2a2418 100%);
}

.issue__cover--n8 {
  background:
    radial-gradient(100% 70% at 50% 0%, #c79c62 0%, transparent 55%),
    linear-gradient(200deg, #191613 0%, #2b1f13 100%);
}

.issue__cover--n9 {
  background:
    radial-gradient(90% 70% at 100% 100%, #7a5a34 0%, transparent 55%),
    linear-gradient(160deg, #1a1916 0%, #38291a 100%);
}

.issue__cover--n10 {
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.1) 30%, rgba(14, 14, 14, 0.82) 100%),
    url('../img/articles/cowboy-kseniya.jpg') center 20% / cover no-repeat #2a1f12;
}

.issue__cover--n10::before {
  color: #fff;
  text-shadow: 0 1px 8px rgba(14, 14, 14, 0.4);
}

.issue__cover--n11 {
  background:
    radial-gradient(120% 90% at 30% 10%, #dcb77d 0%, transparent 60%),
    radial-gradient(100% 80% at 80% 80%, #b8935a 0%, transparent 55%),
    linear-gradient(160deg, #1a140b 0%, #3a2a14 100%);
}

.issue__cover--xl {
  aspect-ratio: 3 / 4;
  max-width: 440px;
  padding: 32px;
}

.issue__cover--xl .issue__no {
  font-size: 96px;
  margin-top: 56px;
}

.issue__cover--xl .issue__topic {
  font-size: 32px;
}

.rail-btn {
  position: absolute;
  top: 36%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  display: inline-grid;
  place-items: center;
  z-index: 2;
  transition: all 0.2s;
}

.rail-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.rail-btn--prev {
  left: -8px;
}

.rail-btn--next {
  right: -8px;
}

/* ---------- Feature ---------- */
.feature {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.feature__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.feature__media {
  display: flex;
  justify-content: center;
}

.feature__photo {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
  max-width: 480px;
  margin: 0 auto;
  background: var(--ink);
}

.feature__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s ease;
}

.feature__photo:hover img {
  transform: scale(1.03);
}

.feature__photo-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.next-issue {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  padding-top: clamp(40px, 4vw, 60px);
  margin-top: clamp(40px, 4vw, 60px);
  border-top: 1px solid var(--line);
}

.next-issue__cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.next-issue__cover::before {
  content: "LUMEN";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
}

.next-issue__cover .issue__no {
  align-self: flex-start;
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
}

.next-issue__cover .issue__badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.next-issue__text h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  margin: 8px 0 8px;
}

.next-issue__text p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.next-issue__text a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}

.next-issue__text a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.feature__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 28px;
}

.feature__list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
}

.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.feature__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

/* ---------- Heroes ---------- */
.heroes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

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

.hero-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-2);
}

.hero-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-card__media img {
  transform: scale(1.04);
}

.hero-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 22px 24px 8px;
}

.hero-card p {
  margin: 0 24px 24px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Contributors ---------- */
.contributors__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}

.contrib-card {
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--radius-lg);
}

.contrib-card--dark {
  background: var(--ink);
  color: #fff;
}

.contrib-card--cream {
  background: var(--cream);
  color: var(--ink);
}

.contrib__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 28px;
}

.contrib__list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
}

.contrib__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.contrib__list--light li {
  color: rgba(255, 255, 255, 0.86);
}

.contrib-card--dark .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.contrib-card--dark .btn--primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* ---------- Distribution ---------- */
.distribution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.distribution__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.distribution__tags li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.distribution__map {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---------- Social partners ---------- */
.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.partner {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 0.3s, border-color 0.3s;
}

.partner:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.partner__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: var(--accent-2);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.partner h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 6px;
}

.partner p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Ecosystem ---------- */
.ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.eco {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.eco:hover {
  background: rgba(184, 147, 90, 0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.eco__num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-2);
  font-size: 28px;
  margin-bottom: 12px;
}

.eco h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
  color: #fff;
}

.eco p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Contacts ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.contacts__list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.contacts__list span:first-child {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}

.contacts__list a {
  font-family: var(--font-serif);
  font-size: 20px;
  transition: color 0.2s;
}

.contacts__list a:hover {
  color: var(--accent);
}

.form {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.field__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  background: #fff;
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(14, 14, 14, 0.06);
}

textarea.field__input {
  resize: vertical;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
}

.consent input {
  margin-top: 3px;
  accent-color: var(--ink);
}

.form__note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  min-height: 1em;
}

.form__note.is-success {
  color: #1f7a3a;
}

.form__note.is-error {
  color: #b03a2e;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 28px;
  font-size: 14px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-light);
}

.footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer ul li {
  margin: 8px 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent-2);
}

.footer__brand p {
  max-width: 36ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-grid;
  }

  .site-header[data-open="true"] {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }

  .site-header[data-open="true"] .nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 32px var(--gutter) 48px;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(14, 14, 14, 0.12);
    z-index: 49;
  }

  .site-header[data-open="true"] .nav__list {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }

  .site-header[data-open="true"] .nav a {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .pillars,
  .heroes__grid,
  .partners,
  .ecosystem__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid,
  .feature__grid,
  .distribution__grid,
  .contributors__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .contributors__grid {
    gap: 20px;
  }

  .feature__media {
    order: -1;
  }

  .section-head--row {
    grid-template-columns: 1fr;
  }

  .section-head__aside {
    justify-self: start;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header__cta .btn--ghost {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero__line--italic {
    padding-left: 20px;
  }

  .hero__meta {
    gap: 24px;
    padding-top: 20px;
    margin-top: 40px;
  }

  .pillars,
  .heroes__grid,
  .partners,
  .ecosystem__grid {
    grid-template-columns: 1fr;
  }

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

  .contacts__list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 6px;
  }

  .rail-btn {
    display: none;
  }

  .issue {
    flex: 0 0 220px;
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Hero supertitle ---------- */
.hero__supertitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--accent-2);
  margin: 12px 0 0;
  max-width: 48ch;
  letter-spacing: 0.005em;
}

/* ---------- Why section ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.why-card {
  padding: 30px 24px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: #fffefb;
}

.why-card__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
}

.why-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.why-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1024px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- Distribution stats ---------- */
.distribution__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  padding: 22px 0;
  margin: 10px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.distribution__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.distribution__stats strong {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1;
}

.distribution__stats span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.distribution__block {
  margin-top: 22px;
}

.distribution__caption {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
}

.distribution__tags--cities li {
  background: transparent;
  border-color: var(--ink);
}

/* ---------- Contrib card CTAs ---------- */
.contrib-card__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* ---------- Contacts socials ---------- */
.contacts__socials a {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  transition: color 0.2s;
}

.contacts__socials a:hover {
  color: var(--accent);
}

/* ---------- Hero meta adjustments (4 items) ---------- */
@media (max-width: 1024px) {
  .hero__meta {
    gap: 20px;
  }
}

/* ============================================================
   COVER GENERATOR — интерактив
   ============================================================ */

.cover-gen {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cover-gen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 50% at 80% 20%, rgba(184, 147, 90, 0.22), transparent 65%),
    radial-gradient(40% 50% at 10% 90%, rgba(220, 183, 125, 0.14), transparent 65%);
  pointer-events: none;
}

.cover-gen__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.cover-gen__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cover-gen__intro .h-display em.italic {
  color: var(--accent-2);
  font-style: italic;
}

.cover-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
  padding: clamp(24px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.cover-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cover-form .field__label {
  color: rgba(255, 255, 255, 0.7);
}

.cover-form .field__input {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cover-form .field__input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.cover-form .field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.cover-form select.field__input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-2) 50%),
    linear-gradient(135deg, var(--accent-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.cover-form select.field__input option {
  background: var(--ink);
  color: #fff;
}

.cover-form .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  align-self: flex-start;
}

.cover-form .btn--primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.cover-form .form__note {
  color: rgba(255, 255, 255, 0.72);
  min-height: 1.2em;
  margin: 0;
  font-size: 13px;
}

.cover-form .form__note.is-error { color: #f4b7a6; }
.cover-form .form__note.is-success { color: var(--accent-2); }

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 8px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.cover-meta strong {
  color: var(--accent-2);
  font-weight: 600;
  margin-right: 4px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* ---------- Canvas preview ---------- */
.cover-gen__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cover-gen__frame {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  background: var(--ink-2);
  position: relative;
}

.cover-gen__frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cover-gen__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.cover-gen__actions .btn--primary {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.cover-gen__actions .btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.cover-gen__actions .btn--primary[disabled],
.cover-gen__actions .btn--link[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.cover-gen__actions .btn--link {
  color: var(--accent-2);
}

.cover-gen__actions .btn--link:hover {
  color: #fff;
}

.cover-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

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

  .cover-gen__preview {
    order: -1;
  }

  .cover-form__row {
    grid-template-columns: 1fr;
  }
}
