/* ===== Base — Reset + Typography + Grid ===== */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

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

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

/* Container — 1265px max, 10px padding, working width 1245px */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Section spacing */
.section {
  padding: 80px 0;
}

.section-gap {
  margin-bottom: var(--section-gap);
}

/* Typography presets */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--c-black);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
}

.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

.caption {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
  color: var(--c-muted);
}

.nav-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-nav);
  line-height: var(--lh-nav);
  letter-spacing: var(--ls-nav);
}

/* CTA link — text-only with bottom underline border */
.cta-link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: all var(--hover-ease) 0.2s;
  cursor: pointer;
}
.cta-link:hover {
  opacity: 0.6;
}

.cta-link--large {
  font-size: 20px;
}

/* Inverted (on dark bg) */
.inverted {
  color: var(--c-on-image);
}

/* Meta table row */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}
.meta-row:last-child {
  border-bottom: none;
}
.meta-label {
  color: var(--c-muted);
  font-size: var(--fs-caption);
}
.meta-value {
  color: var(--c-text);
  font-size: var(--fs-body);
}

/* Image wrappers — prevent layout shift */
.img-fit {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full-bleed */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

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

/* ===== Burger menu ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 10px;
  position: relative;
}
.burger__line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--frame-ease),
              opacity 0.2s var(--hover-ease);
  position: absolute;
}
.burger__line:nth-child(1) { transform: translateY(-7px); }
.burger__line:nth-child(2) { transform: translateY(0); }
.burger__line:nth-child(3) { transform: translateY(7px); }

.burger--active .burger__line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.burger--active .burger__line:nth-child(2) { opacity: 0; }
.burger--active .burger__line:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Overlay menu */
.burger-overlay {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--frame-ease),
              visibility 0.35s var(--frame-ease);
}
.burger-overlay--visible {
  opacity: 1;
  visibility: visible;
}
.burger-nav {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.burger-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--c-black);
  transition: opacity 0.2s var(--hover-ease);
  display: block;
  padding: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.burger-nav a:hover,
.burger-nav a:focus-visible {
  opacity: 0.5;
  outline: none;
}

/* ===== Responsive ===== */

/* Tablet — 1200px */
@media (max-width: 1200px) {
  :root {
    --fs-display: clamp(36px, 5.5vw, 48px);
    --lh-display: clamp(30px, 4.5vw, 42px);
  }
  .section {
    padding: 60px 0;
  }
}

/* Mobile — 810px */
@media (max-width: 810px) {
  :root {
    --fs-display: 36px;
    --lh-display: 30px;
    --fs-h3: 18px;
    --lh-h3: 18px;
    --section-gap: 24px;
  }
  .section {
    padding: 48px 0;
  }
  .meta-row {
    flex-direction: column;
    gap: 4px;
  }
  /* Burger menu visibility */
  .burger {
    display: flex;
  }
  .nav__links {
    display: none;
  }
  /* Hero: 100svh and mobile padding */
  .hero {
    height: 100svh;
  }
}