/* version 1 */

@font-face {
  font-family: 'Tektur';
  src: url('/assets/fonts/Tektur-Bold.woff2') format('woff2'),
       url('/assets/fonts/Tektur-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tektur';
  src: url('/assets/fonts/Tektur-ExtraBold.woff2') format('woff2'),
       url('/assets/fonts/Tektur-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tektur';
  src: url('/assets/fonts/Tektur-Black.woff2') format('woff2'),
       url('/assets/fonts/Tektur-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:     #000;
  --color-fg:     #fff;
  --color-accent: #2466FF;
  --color-muted:  rgba(255, 255, 255, 0.45);
  --color-border: rgba(255, 255, 255, 0.08);

  /* Fonts */
  --font-tektur: 'Tektur', system-ui, sans-serif;

  /* Type scale */
  --font-size-h1: clamp(2.25rem, 9vw, 15rem);
  --font-size-h2: clamp(1.5rem,  5.5vw,  7.5rem);

  /* Layout */
  --width-max:  100vw;
  --padding-x:  2.5rem;
  --padding-y:  1.5rem;
  --grid-gap:   1.5rem;
  --nav-height: 3.5rem;
}

@media (max-width: 48em) {
  :root {
    --padding-x: 1.5rem;
    --padding-y: 0.5rem;
    --grid-gap: 1rem;
  }
}

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

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ── Base ────────────────────────────────────────────────── */
html {
  font-family: var(--font-tektur);
  background-color: var(--color-bg);
  color: var(--color-fg);
}

/* ── Navigation ──────────────────────────────────────────── */
body > nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(var(--padding-x), calc((100% - var(--width-max)) / 2 + var(--padding-x)));
  height: var(--nav-height);
  background: var(--color-bg);
  z-index: 100;
}

body[data-fixed-nav] > nav {
  position: sticky;
  top: 0;
}

body > nav > a, body > nav ul a {
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--color-fg);
  text-decoration: none;
  white-space: nowrap;
}

body > nav ul {
  list-style: none;
  display: flex;
  gap: clamp(0.5rem, 2vw, 2rem);
}

body > nav ul a:hover,
body > nav ul a[aria-current="page"] {
  color: var(--color-fg);
}

/* ── Layout grid ─────────────────────────────────────────── */
main > section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  padding: var(--padding-y) var(--padding-x);
  max-width: var(--width-max);
  margin-inline: auto;
}

main > section > div {
  grid-column: span var(--columns, 12);
}

main>section:first-child {
  align-items: center;
}

main>section.header-section {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

main>section.header-section div figure video {
  max-height: 28vw;
}

@media (max-width: 48em) {

  main[data-stacked] > section:not(.header-section) > div {
    grid-column: 1 / -1;
  }

  main > section.header-section > div {
    grid-column: 1 / -1;
  }

  main > section.header-section > div:last-child {
    order: -1;
  }

  main > section.header-section > div figure video {
    max-height: unset;
  }
}



/* ── Typography ──────────────────────────────────────────── */
h1 {
  font-size: var(--font-size-h1);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-fg);
}

h2 {
  text-transform: uppercase;
  line-height: 0.85;
  font-weight: 900;
}

h2, h3 {
  font-size: var(--font-size-h2);
  letter-spacing: -0.01em;
  color: var(--color-muted);
}

h3 {
  font-weight: 700;
  line-height: 0.9;
}

h2 strong, h3 strong {
  color: var(--color-fg);
}

@media (max-width: 48em) {
  h1, h2, h3 {
    line-height: 0.95;
  }
}


/* ── Image block ─────────────────────────────────────────── */
main > section figure > img {
  width: 100%;
}

/* ── Gallery block ───────────────────────────────────────── */
figure ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  list-style: none;
}

figure ul img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

/* ── Video ───────────────────────────────────────────────── */
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.header-section figure img,
section.header-section figure video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Footer media ────────────────────────────────────────── */
body > footer video,
body > footer img {
  width: 100%;
  height: auto;
}

@media (max-width: 48em) {
  body > footer video,
  body > footer img {
    aspect-ratio: 1;
    height: 100%;
    object-fit: cover;
  }
}

/* ── Accent link ─────────────────────────────────────────── */
a.accent, h2 a, h3 a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 700;
  letter-spacing: 0.05em;
}

a.accent:hover {
  text-decoration: underline;
}

/* ── Video embed ─────────────────────────────────────────── */
figure.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}


figure.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
