@font-face {
  font-family: 'Beirut Display';
  src: url('/fonts/BeirutDisplay-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'Beirut Display';
  src: url('/fonts/BeirutDisplay-SemiBold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Beirut Text';
  src: url('/fonts/BeirutText-Book.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('/fonts/SuisseIntl-Book.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('/fonts/SuisseIntl-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --lime: #ecff00;
  --ink: #080808;
  --surface: #111111;
  --card-bg: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --icon: #52525b;
  --stone: #878b89;
  --meta: #a1a1aa;
  --muted: #d4d4d8;
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Suisse Intl', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

h1,
h2,
h3,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
}

/* ── Header ─────────────────────────────────── */

.bg-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
}

.bg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Beirut Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bg-nav {
  display: flex;
  gap: 32px;
  font-size: 20px;
}

.bg-nav a {
  transition: color 200ms ease;
}

.bg-nav a:hover {
  color: var(--muted);
}

/* ── Hero ───────────────────────────────────── */

.bg-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: clamp(80px, 12vw, 200px) var(--gutter) clamp(64px, 9vw, 160px);
  text-align: center;
}

.bg-eyebrow {
  color: var(--meta);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bg-hero h1 {
  max-width: 18ch;
  font-family: 'Beirut Text', 'Suisse Intl', Arial, sans-serif;
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ── Sections ───────────────────────────────── */

.bg-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  border-top: 1px solid var(--line);
}

.bg-section-head {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 36px;
  align-items: start;
  margin-bottom: 32px;
}

.bg-index {
  color: var(--lime);
  font-size: 20px;
  font-weight: 600;
}

.bg-section-head h2 {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.bg-section-head p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.3;
}

.bg-subhead {
  margin-top: 32px;
  color: var(--meta);
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bg-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 36px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}

.bg-rules li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.bg-rules strong {
  margin-right: 6px;
  color: var(--white);
  font-weight: 600;
}

/* ── Typography ─────────────────────────────── */

.bg-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bg-type-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 420px;
  padding: 40px;
  border-radius: 24px;
  background: var(--card-bg);
}

.bg-type-specimen {
  font-size: 64px;
  line-height: 1;
}

.bg-type-specimen--display {
  font-family: 'Beirut Display', Georgia, serif;
  font-size: clamp(56px, 6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bg-type-specimen--text {
  font-family: 'Beirut Text', Georgia, serif;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.bg-type-specimen--sans {
  font-size: clamp(44px, 4.4vw, 72px);
  font-weight: 600;
}

.bg-type-meta h3 {
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
}

.bg-type-meta dl,
.bg-spec {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px 16px;
  font-size: 16px;
  line-height: 1.4;
}

.bg-type-meta dt,
.bg-spec dt {
  color: var(--meta);
}

.bg-scale {
  padding: 0;
  list-style: none;
}

.bg-scale li {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr);
  gap: 24px 36px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.bg-scale-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 17px;
  font-weight: 600;
}

.bg-scale-label small {
  color: var(--meta);
  font-size: 14px;
  font-weight: 400;
}

.bg-scale-sample {
  overflow-wrap: anywhere;
}

.bg-scale-sample--hero {
  font-family: 'Beirut Text', Georgia, serif;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.bg-scale-sample--statement,
.bg-scale-sample--heading,
.bg-scale-sample--card {
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.bg-scale-sample--statement {
  font-size: clamp(32px, 4.5vw, 72px);
}

.bg-scale-sample--heading {
  font-size: clamp(40px, 4.5vw, 64px);
}

.bg-scale-sample--card {
  font-size: clamp(24px, 2.2vw, 32px);
}

.bg-scale-sample--lead {
  font-size: 25px;
  line-height: 30px;
}

.bg-scale-sample--nav {
  font-size: 24px;
  line-height: 22px;
}

.bg-scale-sample--label {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
}

.bg-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}

/* ── Colour ─────────────────────────────────── */

.bg-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.bg-swatches--core {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bg-swatch {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.bg-chip {
  height: 160px;
  background: var(--c);
}

.bg-swatches--core .bg-chip {
  height: 280px;
}

.bg-swatch figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px 24px;
  font-size: 15px;
  color: var(--meta);
}

.bg-swatch strong {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
}

.bg-swatch code {
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
}

.bg-swatch--black { --c: var(--black); }
.bg-swatch--white { --c: var(--white); }
.bg-swatch--lime { --c: var(--lime); }
.bg-swatch--ink { --c: var(--ink); }
.bg-swatch--surface { --c: var(--surface); }
.bg-swatch--card { --c: var(--card-bg); }
.bg-swatch--icon { --c: var(--icon); }
.bg-swatch--stone { --c: var(--stone); }
.bg-swatch--meta { --c: var(--meta); }
.bg-swatch--muted { --c: var(--muted); }

.bg-opacity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bg-opacity span {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px;
  border-radius: 24px;
  background: var(--surface);
  color: rgba(255, 255, 255, var(--a));
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
}

.bg-opacity small {
  font-size: 16px;
  font-weight: 400;
}

/* ── Icons ──────────────────────────────────── */

.bg-symbol-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(240px, 1.2fr);
  gap: 16px;
  align-items: stretch;
}

.bg-symbol-tile,
.bg-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 280px;
  padding: 32px;
  border-radius: 24px;
  background: var(--card-bg);
}

.bg-symbol-tile figcaption,
.bg-icon-card figcaption {
  color: var(--meta);
  font-size: 15px;
}

.bg-symbol {
  width: 120px;
  height: 120px;
  color: var(--lime);
}

.bg-monogram {
  font-family: 'Beirut Display', Georgia, serif;
  font-size: 140px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.bg-symbol-row .bg-spec {
  align-content: center;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.bg-spec--wide {
  grid-template-columns: 160px minmax(0, 1fr);
  margin-top: 16px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--line);
  font-size: 18px;
}

.bg-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bg-icon-card img {
  width: 72px;
  height: 72px;
  opacity: 0.55;
  filter: brightness(0) invert(1);
}

.bg-icon-grid--ui .bg-icon-card {
  min-height: 200px;
}

.bg-icon-grid--ui svg {
  width: 40px;
  height: 40px;
  color: var(--white);
}

/* ── Footer ─────────────────────────────────── */

.bg-footer {
  overflow: clip;
  padding: 120px var(--gutter) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.bg-footer p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.bg-footer-wordmark {
  margin-top: 64px;
  margin-bottom: -0.16em;
  color: var(--stone);
  font-family: 'Beirut Display', Georgia, serif;
  font-size: clamp(140px, 26vw, 480px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.04em;
  white-space: nowrap;
  user-select: none;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 1100px) {
  .bg-type-grid,
  .bg-icon-grid {
    grid-template-columns: 1fr;
  }

  .bg-symbol-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bg-symbol-row .bg-spec {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .bg-nav {
    gap: 16px;
    font-size: 16px;
  }

  .bg-brand span {
    display: none;
  }

  .bg-section-head,
  .bg-scale li,
  .bg-rules,
  .bg-swatches--core,
  .bg-opacity,
  .bg-symbol-row {
    grid-template-columns: 1fr;
  }

  .bg-section-head {
    gap: 12px;
  }

  .bg-type-card {
    min-height: 0;
    padding: 28px;
  }

  .bg-spec--wide {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bg-spec--wide dd {
    margin-bottom: 12px;
  }
}
