/**
 * XNEV — Editorial travel journal styles
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(255, 90, 60, 0.16), transparent 55%),
    radial-gradient(ellipse 42% 45% at 100% 8%, rgba(232, 195, 106, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 38% at 80% 100%, rgba(107, 140, 255, 0.1), transparent 55%);
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

body.is-nav-open,
body.is-search-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 500;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--ivory);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h1 {
  font-size: var(--fs-hero);
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-lg);
}

.eyebrow,
.loc-label,
.hero-kicker,
.hero-index,
.finder__n,
.brand__name,
.site-nav__list a,
.tool-link {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  color: var(--vermilion);
  margin-bottom: 0.85rem;
}

.eyebrow--light {
  color: var(--sand);
}

.lead {
  color: var(--muted);
  max-width: 40rem;
  margin-top: 0.85rem;
}

.section {
  padding-block: var(--section);
}

.section--sand {
  background: var(--bg-muted);
}

.section__header {
  margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem);
}

.section__header h2 {
  max-width: 16ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--vermilion);
  background: var(--vermilion);
  color: var(--ivory);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  transition: background var(--t), color var(--t), transform var(--t), border-color var(--t);
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn__arrow {
  transition: transform var(--t);
}

.btn:hover .btn__arrow,
.explore:hover span {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line-strong);
}

.btn--light {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

.btn--ghost-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(245, 241, 232, 0.45);
}

.btn--solid {
  background: var(--vermilion);
  color: var(--ivory);
  border-color: var(--vermilion);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(11, 14, 22, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: background var(--t), border-color var(--t), color var(--t);
}

.site-header.is-over-hero {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  color: var(--ivory);
  backdrop-filter: none;
}

.site-header.is-scrolled,
.site-header.is-over-hero.is-scrolled {
  background: rgba(11, 14, 22, 0.9);
  color: var(--ivory);
  border-bottom-color: rgba(255, 90, 60, 0.28);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.brand__mark {
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-bottom: 1px solid currentColor;
}

.brand__name {
  font-size: 0.78rem;
}

.site-nav {
  flex: 1;
  display: none;
}

.site-nav__list {
  display: flex;
  justify-content: center;
  gap: clamp(0.7rem, 0.4rem + 1vw, 1.35rem);
}

.site-nav__list a {
  position: relative;
  padding-block: 0.4rem;
  opacity: 0.86;
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--t);
}

.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after {
  width: 100%;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.icon-btn,
.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: inherit;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tool-link {
  display: none;
  padding: 0.35rem 0.2rem;
}

.nav-toggle__bars {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(5.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-5.25px) rotate(-45deg);
}

body.is-nav-open .site-header {
  z-index: calc(var(--z-overlay) + 2);
  background: rgba(11, 14, 22, 0.96);
  color: var(--ivory);
  border-bottom-color: rgba(255, 90, 60, 0.28);
}

.nav-overlay,
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--bg-dark);
  color: var(--ivory);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-slow), visibility var(--t-slow);
}

.nav-overlay.is-open,
.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay__panel {
  height: 100%;
  overflow: auto;
  padding: 5.5rem var(--gutter) 2.5rem;
  max-width: 32rem;
}

.nav-overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nav-overlay__meta {
  letter-spacing: var(--ls-label);
  font-size: var(--fs-xs);
  color: var(--sand);
  margin-bottom: 0;
}

.nav-overlay__close {
  position: static;
  min-height: 44px;
  padding: 0.35rem 0.15rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: var(--fs-xs);
  text-transform: uppercase;
}

.nav-overlay__list a {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  padding: 0.45rem 0;
  color: var(--ivory);
}

.nav-overlay__list a:hover,
.nav-overlay__list a:focus-visible {
  color: var(--gold);
}

.nav-acc {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(245, 241, 232, 0.16);
  padding-top: 1rem;
}

.nav-acc__btn {
  min-height: 48px;
  width: 100%;
  text-align: left;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-size: var(--fs-xs);
}

.nav-acc__list a {
  display: block;
  padding: 0.7rem 0;
  min-height: 44px;
}

.nav-overlay__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.search-overlay {
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.search-overlay__form {
  display: flex;
  gap: 0.75rem;
  width: min(36rem, 100%);
}

.search-overlay__form input {
  flex: 1;
  min-height: 52px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sand);
  color: var(--ivory);
  font-size: 16px;
}

.search-overlay__close {
  position: absolute;
  top: 1.2rem;
  right: var(--gutter);
  min-height: 44px;
  color: var(--ivory);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  color: var(--ivory);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 22s var(--ease) infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 14, 22, 0.28) 0%, rgba(11, 14, 22, 0.72) 100%),
    linear-gradient(90deg, rgba(255, 90, 60, 0.18), transparent 55%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 0 var(--gutter) clamp(4rem, 8vh, 6.5rem);
  max-width: var(--container-wide);
  margin-inline: auto;
  width: 100%;
}

.hero-kicker {
  margin-bottom: 1rem;
  opacity: 0.85;
}

.hero h1 {
  max-width: 10ch;
}

.hero__text {
  max-width: 28rem;
  margin-top: 1.1rem;
  color: rgba(245, 241, 232, 0.88);
}

.hero-index {
  margin-top: 1.75rem;
  opacity: 0.7;
}

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
}

.scroll-hint__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--ivory), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img,
  html {
    animation: none;
    scroll-behavior: auto;
  }
}

/* Region explorer */
.region-explorer {
  display: grid;
  gap: 1.5rem;
}

.region-map {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
}

.region-map button {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 48px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  letter-spacing: 0.08em;
}

.region-map button.is-active {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.region-stage {
  position: relative;
  min-height: 22rem;
}

.region-stage img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.region-stage__copy {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  color: var(--ivory);
  max-width: 22rem;
}

.region-dests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.region-dests a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

/* Destination grid */
.dest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.dest-card {
  display: grid;
  grid-template-rows: 1fr auto;
  color: inherit;
  height: 100%;
  width: 100%;
}

.dest-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
  background: var(--surface);
}

.dest-card--lg .dest-card__media,
.dest-card--md .dest-card__media,
.dest-card--sm .dest-card__media {
  aspect-ratio: 4 / 5;
}

.dest-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.dest-card:hover img {
  transform: scale(1.06);
}

.dest-card__body {
  padding: 1rem 0.1rem 0.4rem;
}

.dest-card h3 {
  transition: transform var(--t);
}

.dest-card:hover h3 {
  transform: translateX(6px);
}

.explore {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.dest-card:hover .explore {
  border-bottom-color: var(--ink);
}

/* Finder */
.finder__steps {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.finder__n {
  color: var(--vermilion);
  margin-bottom: 0.35rem;
}

.chip-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: transparent;
}

.chip.is-active {
  background: var(--vermilion);
  color: var(--ivory);
  border-color: var(--vermilion);
}

.finder__progress {
  margin-top: 1.1rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}

[data-finder-reset] {
  margin-top: 0.75rem;
}

.finder__results {
  display: grid;
  gap: 1rem;
}

.finder-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.finder-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.finder__empty {
  color: var(--muted);
}

/* Season */
.season-stage {
  display: grid;
  gap: 1.25rem;
}

.season-stage__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.season-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
}

.season-tabs button {
  min-height: 48px;
  padding: 0.5rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.season-tabs button.is-active {
  border-bottom-color: var(--vermilion);
  color: var(--vermilion);
}

.season-panel[hidden] {
  display: none;
}

/* Experience carousel */
.exp-slide {
  height: auto;
}

.exp-card {
  display: block;
}

.exp-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.exp-card__body {
  padding-top: 0.9rem;
}

.swiper-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.swiper-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
}

.swiper-pagination-progressbar {
  background: var(--sand);
  height: 2px !important;
  flex: 1;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: var(--ink);
}

/* Food */
.food-layout {
  display: grid;
  gap: 1rem;
}

.food-hero img,
.food-side img {
  width: 100%;
  object-fit: cover;
}

.food-hero img {
  aspect-ratio: 16 / 11;
}

.food-side img {
  aspect-ratio: 16 / 10;
}

.food-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-top: 1.5rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
}

/* Culture */
.culture-block {
  display: grid;
  gap: 1.25rem;
}

.culture-block img {
  width: 100%;
  object-fit: cover;
}

.culture-vert {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  letter-spacing: 0.18em;
  height: 12rem;
}

.culture-topics {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.culture-topics li {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

/* Split */
.split {
  display: grid;
}

.split__pane {
  position: relative;
  min-height: 22rem;
  color: var(--ivory);
}

.split__pane img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__copy {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(22, 25, 22, 0.55));
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

/* Journal */
.journal-grid {
  display: grid;
  gap: 1.25rem;
}

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.story-card--feature img {
  aspect-ratio: 16 / 10;
}

.story-card h3 {
  margin-top: 0.55rem;
}

/* Guides */
.guide-grid {
  display: grid;
  gap: 1rem;
}

.guide-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.guide-card h3 {
  margin-top: 0.5rem;
}

/* Page hero */
.page-hero {
  position: relative;
  min-height: 68svh;
  display: grid;
  color: var(--ivory);
}

.page-hero__media,
.page-hero__veil {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__veil {
  background: linear-gradient(180deg, rgba(22, 25, 22, 0.2), rgba(22, 25, 22, 0.62));
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  align-self: end;
  padding-bottom: 3.5rem;
  padding-top: 7rem;
}

.page-hero .breadcrumb a,
.page-hero .breadcrumb span {
  color: var(--ivory);
}

.page-hero__lead {
  max-width: 36rem;
  margin-top: 1rem;
}

.breadcrumb {
  margin-bottom: 1.1rem;
  font-size: var(--fs-sm);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  opacity: 0.55;
}

/* FAQ */
.faq__item {
  border-top: 1px solid var(--line);
}

.faq__question {
  width: 100%;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
}

.faq__icon::before {
  content: "+";
}

.faq__item.is-open .faq__icon::before {
  content: "–";
}

.faq__answer-inner {
  padding-bottom: 1rem;
  color: var(--muted);
}

/* Final CTA */
.final-cta {
  position: relative;
  min-height: 28rem;
  color: var(--ivory);
  display: grid;
}

.final-cta__media,
.final-cta__veil {
  position: absolute;
  inset: 0;
}

.final-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta__veil {
  background: rgba(22, 25, 22, 0.5);
}

.final-cta__content {
  position: relative;
  z-index: 1;
  padding-block: 6rem;
}

/* Article */
.article-wrap {
  padding-block: 2.5rem var(--section);
}

.article-wrap img {
  width: 100%;
  margin: 1.5rem 0;
}

.article-wrap .lead {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--text);
}

.article-meta {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 1rem 0 1.5rem;
}

.article-body h2 {
  font-size: var(--fs-xl);
  margin: 2rem 0 0.8rem;
}

.takeaways {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--bg-muted);
}

.takeaways li {
  list-style: disc;
  margin-left: 1.1rem;
}

/* Forms */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field input,
.field textarea {
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 16px;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.alert {
  padding: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
}

.alert--ok {
  background: var(--bg-muted);
}

.alert--err {
  border-color: var(--vermilion);
}

.legal {
  max-width: 42rem;
}

.legal h2 {
  font-size: var(--fs-lg);
  margin: 2rem 0 0.7rem;
}

.legal p,
.legal li {
  margin-bottom: 0.8rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.prose p {
  margin-bottom: 1rem;
}

.area-grid,
.topic-grid {
  display: grid;
  gap: 1rem;
}

.area-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.map-board {
  display: grid;
  gap: 1rem;
}

.map-regions button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.map-regions button.is-active {
  color: var(--vermilion);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.exp-grid {
  display: grid;
  gap: 1rem;
}

.site-footer {
  background: var(--bg-dark);
  color: var(--ivory);
  padding-block: 3.5rem 1.5rem;
}

.site-footer a:hover {
  color: var(--sand);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

.site-footer__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.site-footer__tagline {
  margin: 0.5rem 0 1rem;
}

.site-footer__note,
.site-footer__contact,
.site-footer a {
  color: rgba(245, 241, 232, 0.78);
  font-size: var(--fs-sm);
}

.site-footer__h {
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  margin-bottom: 0.8rem;
  color: var(--sand);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  font-size: var(--fs-sm);
}

.site-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.related-row {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.night-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
  background: rgba(21, 25, 34, 0.85);
}

.night-rail article {
  padding: 1.15rem var(--gutter);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.night-rail article:nth-child(even) { border-right: 0; }
.night-rail span {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  color: var(--vermilion);
  margin-bottom: 0.35rem;
}
.night-rail article:nth-child(2) span { color: var(--gold); }
.night-rail article:nth-child(3) span { color: var(--indigo); }
.night-rail article:nth-child(4) span { color: var(--sand); }
.night-rail strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.night-rail p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

.xn-marquee {
  overflow: hidden;
  background: var(--vermilion);
  color: var(--ivory);
  padding: 0.85rem 0;
}

.xn-marquee__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: xn-marquee 32s linear infinite;
}

.xn-marquee__track span {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .xn-marquee__track { animation: none; }
}

@media (min-width: 768px) {
  .night-rail {
    grid-template-columns: repeat(4, 1fr);
  }
  .night-rail article { border-bottom: 0; }
  .night-rail article:nth-child(even) { border-right: 1px solid var(--line); }
  .night-rail article:last-child { border-right: 0; }
}
