/* ============================================
   LATE CULTURE — Base & Typography
   Reset, sections, utilities
   ============================================ */

/* ── Ensure text renders consistently on iOS/Android ── */
@supports (-webkit-touch-callout: none) {
  /* iOS-specific: force web fonts to load before rendering */
  body { -webkit-text-size-adjust: 100%; }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cloud);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Images ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

/* ── Lists ── */
ul, ol {
  list-style: none;
}

/* ── Buttons ── */
button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ── Section System ── */
.section {
  padding: var(--section-padding) 0;
  position: relative;
  background: var(--bg-section);
}

.section__container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

/* Section title with rose overline */
.section__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-lg);
  text-align: left;
  position: relative;
  padding-top: 56px;
}

.section__title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--rose3);
}

.section__nav-arrows {
  display: flex;
  gap: 8px;
}

/* ── Section Variants — all white backgrounds ── */
.section--white,
.section--cloud,
.section--rose {
  background: var(--bg-section);
}

.section--featured {
  background: var(--bg-section);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section--manifesto {
  background: var(--bg-section);
  text-align: center;
  padding: var(--space-4xl) 0;
}

.section--map {
  background: var(--bg-section);
}

.section--ink {
  background: var(--bg-section);
  color: var(--ink);
  padding-top: 80px;
  padding-bottom: var(--space-lg);
}

.section--ink .section__overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose3);
  display: block;
  margin-bottom: var(--space-sm);
}

.section--ink .section__hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.section--ink .section__hero-subtitle {
  color: var(--mid);
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 2vw, 20px);
}

/* Reduce top padding on listing section right after hero */
.section--ink + .section {
  padding-top: var(--space-xl);
}

/* ── Separator ── */
.separator {
  width: 100%;
  max-width: 200px;
  height: 1px;
  background: var(--separator);
  border: none;
  margin: 0 auto;
}

/* ── Flash / Shine effect on card images ── */
.venue-card__img {
  position: relative;
  overflow: hidden;
}

.venue-card__img::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
  transition: none;
}

.venue-card:hover .venue-card__img::before {
  animation: flashShine 0.6s ease-out;
}

@keyframes flashShine {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Focus States (Accessibility) ── */
.glass-nav__link:focus-visible,
.page-nav__link:focus-visible,
.nav__link:focus-visible,
.category-strip__btn:focus-visible,
.venue-card:focus-visible,
.card:focus-visible,
.tonight__card:focus-visible,
.arrow-btn:focus-visible,
.glass-nav__cta:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--rose3);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── View Transitions ── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 200ms ease-out both vt-fade-out; }
::view-transition-new(root) { animation: 300ms ease-in both vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
