/* ── FONT FACE ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Neue Haas Grotesk Text';
  src: url('assets/fonts/NHaasGroteskTXPro-55Rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk Text';
  src: url('assets/fonts/NHaasGroteskTXPro-65Md.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk Text';
  src: url('assets/fonts/NHaasGroteskTXPro-75Bd.ttf') format('ttf');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── RESET ─────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  --color-bg: #ffffff;
  --color-black-900: #000000;
  --color-black-800: #555555;
  --color-black-700: #777777;
  --color-gray-subtle: #f5f5f5;
  --color-accent: #ff3b30;
  --color-line: #111111;

  --font-primary: 'Neue Haas Grotesk Text', sans-serif;

  /* Heading typography */
  --ls-heading: -0.02em;
  --lh-heading: 1;

  /* Body typography */
  --ls-body: normal;
  --lh-body: 1.6;

  --container-padding: clamp(13px, 4vw, 64px);
  --gutter: 24px;
}

/* ── BASE ──────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-black-900);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1,
h2,
h3 {
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  font-weight: 500;
}

p {
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

.eyebrow {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

/* ── LAYOUT ────────────────────────────────────────────────── */
.section {
  width: 100%;
  padding: 120px var(--container-padding);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.section:last-child {
  border-bottom: none;
}

.section__head {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: var(--gutter);
  margin-bottom: 48px;
}

.section__number {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: var(--ls-heading);
}

.section__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.section__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.section__body p {
  font-size: clamp(0.9rem, 1.3vw, 1.25rem);
  font-weight: 500;
  width: 95%;
  margin-bottom: 24px;
}

.section__body p:last-child {
  margin-bottom: 0;
}

/* ── IMAGES ────────────────────────────────────────────── */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 64px 0 48px;
}

.image-card {
  width: 100%;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  background-color: var(--color-gray-subtle);
  overflow: hidden;
  display: block;
}

.image-card__credit {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-black-900);
  line-height: 1.4;
}

#grid .image-grid {
  grid-template-columns: repeat(2, 1fr);
}

#grid .image-card img {
  aspect-ratio: 3 / 2;
}

/* ── ITEM LIST ────────────────────────────────────────────── */
.item-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
}

.item {
  padding: 32px 24px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item__index {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
}

.item__title {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
}

.item__text {
  font-size: 0.9rem;
  color: var(--color-black-900);
  font-weight: 500;
  margin-top: 16px;
}

#influences .item-list,
#masters .item-list {
  margin-top: 64px;
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__title {
  font-size: clamp(4rem, 7vw, 6rem);
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--color-black-900);
  font-weight: 500;
  max-width: 560px;
}

/* ── INFLUENCES ────────────────────────────────────────────── */
#influences .section__body {
  grid-template-columns: repeat(4, 1fr);
}

#influences .section__body p:first-child {
  grid-column: 3;
}

#influences .section__body p:last-child {
  grid-column: 4;
}

/* ── GRID DEMO ─────────────────────────────────────────────── */
.grid-demo {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  margin-top: 48px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 16px 0;
}

.grid-demo__col {
  background-color: var(--color-gray-subtle);
  text-align: center;
  font-size: 0.7rem;
  color: var(--color-black-900);
  padding: 24px 4px;
  font-weight: 500;
}

/* ── TYPOGRAPHY SECTION ────────────────────────────────────── */
#typography .section__body {
  grid-template-columns: repeat(4, 1fr);
}

#typography .section__body p:last-child {
  grid-column: 3;
}

.type-display {
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: var(--ls-heading);
  margin-bottom: 48px;
}

.type-name {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: var(--ls-heading);
  margin-bottom: 16px !important;
}

/* ── CLOSING ───────────────────────────────────────────────── */
.closing {
  text-align: left;
}

.closing__statement {
  margin-bottom: 64px;
}

.closing__statement p {
  font-size: clamp(4rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  margin: 0;
}

.closing__credit {
  font-size: 1rem;
  color: var(--color-black-900);
  font-weight: 500;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section {
    padding: 80px var(--container-padding);
    border-bottom: 8px solid var(--color-gray-subtle);
  }

  .section__head,
  .section__body,
  #influences .section__body,
  #typography .section__body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #influences .section__body p:first-child,
  #influences .section__body p:last-child,
  #typography .section__body p:last-child {
    grid-column: 1;
  }

  .section__body p {
    width: 100%;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 16px;
  }

  .item-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-demo {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 12px;
  }

  .grid-demo__col:nth-child(n + 5) {
    display: none;
  }

  .hero__title {
    font-size: 15vw;
  }

  .closing__statement p {
    font-size: 12vw;
  }
}

@media (max-width: 640px) {
  .image-grid,
  .item-list {
    grid-template-columns: 1fr !important;
  }

  .item__text {
    font-size: 0.875rem;
  }
}
