/* ============================================================
   RaceFront — public site  (v1.1 "daylight")
   Brand (RACEFRONT_Brand_For_Designers):
     warm orange #ED7029 · dark navy #102448 · neon lime #CFE81C
     warm off-white #F9F2E1 · off black #161616 · slate #666667
   Light warm page with off-black full-bleed bands (hero, podcast).
   ============================================================ */

:root {
  --cream: #f9f2e1;
  --cream-2: #f3ead4;          /* slightly deeper cream for surfaces */
  --paper: #fffdf8;            /* card faces */
  --navy: #102448;
  --navy-2: #1b3566;
  --ink: #102448;
  --muted: #5d6478;
  --line: rgba(16, 36, 72, 0.12);
  --line-strong: rgba(16, 36, 72, 0.24);

  --orange: #ed7029;
  --orange-deep: #d95f1b;
  --lime: #cfe81c;
  --violet: #6c3bff;
  --black: #161616;
  --black-2: #09090d;

  --ff-ar: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
  --ff-lat: 'Montserrat', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1240px;
  --gap: 24px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow: 0 10px 30px rgba(16, 36, 72, 0.08);
  --shadow-hover: 0 18px 44px rgba(16, 36, 72, 0.16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-ar);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Full-bleed colour bands. Content inside still uses .wrap. */
.band { width: 100%; }
.band--dark {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(237, 112, 41, 0.28), transparent 55%),
    radial-gradient(70% 100% at 0% 100%, rgba(108, 59, 255, 0.22), transparent 55%),
    linear-gradient(180deg, var(--black), var(--black-2));
  color: var(--cream);
  --ink: var(--cream);
  --muted: #b9b6c2;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --paper: rgba(255, 255, 255, 0.05);
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--lime);
  color: var(--navy);
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
}
.skip:focus { inset-inline-start: 20px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ topbar */

.topbar {
  background: var(--black);
  color: #c9c6d2;
  font-size: 12.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar__date { font-family: var(--ff-lat); letter-spacing: 0.02em; }
.topbar__social, .footer__social { display: flex; gap: 6px; }

.social {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: inherit;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social:hover { color: var(--lime); background: rgba(255,255,255,.08); transform: translateY(-1px); }

/* ------------------------------------------------------------ header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 242, 225, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { display: block; color: var(--navy); }
.brand__logo svg { height: 44px; width: auto; display: block; }

.search {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 6px;
  transition: border-color .18s ease, box-shadow .18s ease;
  min-width: 0;
}
.search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(237,112,41,.15); }
.search input {
  background: none; border: 0; outline: 0;
  color: var(--ink);
  font-family: var(--ff-ar);
  font-size: 14px;
  padding-inline: 12px;
  width: 200px;
  min-width: 0;
}
.search input::placeholder { color: var(--muted); }
.search button {
  background: var(--orange);
  border: 0;
  width: 32px; height: 32px;
  border-radius: 999px;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter .18s ease;
}
.search button:hover { filter: brightness(1.08); }
.search svg { width: 17px; height: 17px; fill: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 42px; height: 40px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

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

.nav { border-top: 1px solid var(--line); }
.nav__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__inner::-webkit-scrollbar { display: none; }

.nav__link {
  --chip: var(--orange);
  position: relative;
  white-space: nowrap;
  padding: 13px 15px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  transition: color .18s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 12px;
  bottom: -1px;
  height: 3px;
  background: var(--chip);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy); }

/* -------------------------------------------------------------- chips */

.chip {
  --chip: var(--orange);
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--chip);
  line-height: 1.7;
  transition: filter .18s ease, transform .18s ease;
}
.chip:hover { filter: brightness(1.08); transform: translateY(-1px); }
/* Lime is too light for white text. */
.chip[style*="#CFEB1C"], .chip[style*="#cfeb1c"], .chip[style*="#CFE81C"] { color: var(--navy); }

/* --------------------------------------------------------------- hero */

main { display: block; padding-bottom: 60px; }

.hero-band { padding-block: 36px 44px; margin-bottom: 52px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--gap);
}

.hero__main {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1d1d24;
  min-height: 480px;
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero__main:hover .hero__media img { transform: scale(1.04); }
.hero__placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy), var(--violet) 55%, var(--orange));
}
.hero__main::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,9,13,.95) 10%, rgba(9,9,13,.6) 42%, rgba(9,9,13,.05) 75%);
}
.hero__main:only-child { grid-column: 1 / -1; }

.hero__content {
  position: relative;
  z-index: 1;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 480px;
  justify-content: flex-end;
  color: #fff;
}
.hero__content > .chip { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1.3;
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
  max-width: 20ch;
  color: #fff;
}
.hero__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.hero__link { position: relative; }
.hero__excerpt { margin: 0; color: #dedbe6; font-size: 15.5px; max-width: 60ch; }
.hero__meta, .card__meta, .article__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
  font-family: var(--ff-lat); font-weight: 600;
}
.hero__meta { color: #c4c1cf; }

.hero__side { display: grid; gap: 12px; align-content: start; }
.hero__side .card--compact {
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .18s ease, border-color .18s ease;
}
.hero__side .card--compact:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
.hero__side .card__title a { color: #fff; }

/* --------------------------------------------------------------- grid */

.grid { display: grid; gap: var(--gap); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* -------------------------------------------------------------- cards */

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.card--default {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px 10px 16px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card--default:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card--default .card__body { padding-inline: 6px; }

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder {
  --chip: var(--orange);
  position: absolute; inset: 0;
  background: linear-gradient(140deg, var(--navy), var(--chip));
}
.card__play {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-end: 10px;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(9,9,13,.7);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.card__play::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.card__body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.card__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
  color: var(--ink);
}
.card__title a { background-image: linear-gradient(var(--orange), var(--orange)); background-size: 0 2px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .3s ease; }
.card:hover .card__title a { background-size: 100% 2px; }
.card__excerpt { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

.card--compact { flex-direction: row; gap: 12px; align-items: flex-start; }
.card--compact .card__media { width: 104px; flex-shrink: 0; aspect-ratio: 1 / 1; border-radius: 10px; }
.card--compact .card__title { font-size: 15px; }
.card--compact .card__meta { font-size: 11.5px; }

/* Podcast episode cards link out to the platform. */
.card--episode .card__media { aspect-ratio: 1 / 1; }
.card__platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.platform {
  font-family: var(--ff-lat);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.platform--yt:hover { background: #ff0000; border-color: #ff0000; color: #fff; }
.platform--apple:hover { background: var(--violet); border-color: var(--violet); color: #fff; }

/* -------------------------------------------------------------- rails */

.rail { margin-bottom: 56px; }
.rail__head {
  --chip: var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-inline-start: 16px;
  border-inline-start: 5px solid var(--chip);
}
.rail__title { margin: 0; font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.rail__more {
  font-size: 13.5px; color: var(--navy); font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.rail__more:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* ---------------------------------------------------------- page head */

.page-head {
  --chip: var(--orange);
  margin: 40px 0 32px;
  padding-inline-start: 18px;
  border-inline-start: 6px solid var(--chip);
}
.page-head h1 { margin: 0 0 2px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--navy); }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; font-family: var(--ff-lat); font-weight: 600; }

/* -------------------------------------------------------------- promo */

.promo { margin-bottom: 56px; }
.promo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 34px 36px;
  border-radius: var(--radius-lg);
  color: var(--cream);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(237,112,41,.5), transparent 58%),
    radial-gradient(120% 160% at 0% 100%, rgba(108,59,255,.4), transparent 58%),
    var(--black);
  box-shadow: 0 24px 60px rgba(16,36,72,.18);
}
.promo__kicker {
  font-family: var(--ff-lat);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--lime);
  text-transform: uppercase;
}
.promo h2 { margin: 6px 0 4px; font-size: 26px; font-weight: 800; color: #fff; }
.promo p { margin: 0; color: #cfccd8; font-size: 14.5px; }
.promo__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.promo--flat .promo__inner { margin-bottom: 32px; }
.promo__episodes { margin-top: 32px; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--lime { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.btn--ghost { background: transparent; }
.promo .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.promo .btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ------------------------------------------------------------ article
   Everything sits in ONE centred column so the headline, the cover and
   the body always share the same edges (RTL and LTR alike). */

.article { display: block; padding-top: 36px; }
.article__col { max-width: 800px; margin-inline: auto; }

.article__head { text-align: center; padding-block: 8px 26px; }
.article__title {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.35;
  font-weight: 800;
  margin: 14px 0 12px;
  text-wrap: balance;
  color: var(--navy);
}
.article__standfirst { color: #3c4560; font-size: 18px; margin: 0 0 16px; line-height: 1.8; }
.article__meta { justify-content: center; }

.article__cover {
  margin: 0 0 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--shadow);
}
.article__cover img { width: 100%; max-height: 720px; object-fit: cover; }

.article__body { max-width: none; }

.article__related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }

.draft-note {
  background: rgba(207,232,28,.25);
  border: 1px solid rgba(160,180,0,.5);
  color: var(--navy);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

/* --------------------------------------------------------------- prose */

.prose { font-size: 18px; line-height: 2.05; color: #1e2b48; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.35em; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 2em 0 .6em; line-height: 1.45; color: var(--navy); }
.prose h3 { font-size: 21px; font-weight: 700; margin: 1.7em 0 .5em; color: var(--navy); }
.prose h2::before {
  content: '';
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--orange);
  border-radius: 2px;
  margin-inline-end: 10px;
  vertical-align: middle;
}
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy); }
.prose ul, .prose ol { margin: 0 0 1.35em; padding-inline-start: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; width: 100%; }
.prose blockquote {
  margin: 1.8em 0;
  padding: 14px 22px;
  border-inline-start: 5px solid var(--orange);
  background: var(--paper);
  border-radius: 0 12px 12px 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 500;
}
[dir="rtl"] .prose blockquote { border-radius: 12px 0 0 12px; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code {
  background: var(--cream-2);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .9em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.prose pre { background: var(--navy); color: var(--cream); padding: 18px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: start; }
.prose th { background: var(--cream-2); font-weight: 700; }

/* -------------------------------------------------------------- embed */

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2em 0;
  background: #000;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------ gallery */

.gallery { margin: 2.6em 0; }
.gallery__title { font-size: 18px; font-weight: 800; margin: 0 0 14px; color: var(--navy); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery__item {
  padding: 0; border: 0; cursor: zoom-in;
  border-radius: 10px; overflow: hidden;
  background: var(--cream-2);
  aspect-ratio: 1 / 1;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s ease; }
.gallery__item:hover img { transform: scale(1.06); opacity: .9; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(9,9,13,.95);
  display: grid;
  place-items: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 10px; }
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  display: grid; place-items: center;
  transition: background .18s ease;
}
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox__close { top: 22px; inset-inline-end: 22px; }
.lightbox__prev { inset-inline-end: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-start: 22px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------- tags/share */

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2em 0 1.4em; }
.tag {
  font-size: 13px; font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .18s ease, border-color .18s ease;
}
.tag:hover { color: var(--orange-deep); border-color: var(--orange); }

.share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.share a, .share__copy {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.share a:hover, .share__copy:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }

/* -------------------------------------------------------------- empty */

.empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  display: grid;
  gap: 16px;
  justify-items: center;
  background: var(--paper);
}
.empty--tall { padding: 110px 20px; }
.empty p { margin: 0; }
.error-code {
  font-family: var(--ff-lat);
  font-size: 84px;
  font-weight: 900;
  font-style: italic;
  margin: 0;
  background: linear-gradient(120deg, var(--orange), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------- footer */

.footer {
  background: var(--navy);
  color: #cfd6e6;
  padding-block: 52px 24px;
  margin-top: 40px;
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 34px;
}
.footer__logo { display: block; color: var(--cream); margin-bottom: 16px; }
.footer__logo svg { height: 46px; width: auto; }
.footer__brand p { margin: 0 0 18px; color: #b6c0d6; font-size: 14px; max-width: 46ch; }
.footer .social { color: #cfd6e6; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer__cols h4 { margin: 0 0 12px; font-size: 13px; font-weight: 800; color: var(--lime); letter-spacing: .04em; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__cols a { color: #cfd6e6; font-size: 14px; transition: color .18s ease; }
.footer__cols a:hover { color: #fff; }

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 12.5px;
  color: #a9b4cc;
}
.footer__tag {
  font-family: var(--ff-lat);
  font-weight: 900;
  font-style: italic;
  letter-spacing: .14em;
  color: var(--lime);
}

/* --------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__main, .hero__content { min-height: 400px; }
  .hero__side { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  main { padding-bottom: 44px; }
  .hero-band { padding-block: 22px 30px; margin-bottom: 36px; }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header__inner { min-height: 66px; gap: 12px; }
  .brand__logo svg { height: 36px; }
  .search { order: 3; width: 100%; margin-inline-start: 0; }
  .search input { width: 100%; }
  .search { display: none; }
  .header.is-open .search { display: flex; }
  .nav-toggle { display: flex; margin-inline-start: auto; }
  .nav { display: none; }
  .header.is-open .nav { display: block; }
  .nav__inner { flex-direction: column; padding-block: 8px 14px; }
  .hero__content { padding: 22px; }
  .article { padding-top: 22px; }
  .article__cover { border-radius: 14px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .prose { font-size: 16.5px; line-height: 1.95; }
  .promo__inner { padding: 24px; }
  .rail__title { font-size: 22px; }
}

@media (max-width: 520px) {
  .grid--4, .grid--3, .hero__side { grid-template-columns: minmax(0, 1fr); }
  .card--compact .card__media { width: 92px; }
  .lightbox { padding: 16px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}

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