/* ============================================================
   nbk & partner — base: fonts, reset, typography, chrome
   (header, menu, preloader, cursor, buttons, footer, legal)
   ============================================================ */

/* Fonts — self-hosted (Google Fonts, latin subset) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

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

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

ul[role="list"],
ol[role="list"],
nav ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Typography — Inter Tight headlines with Instrument-Serif-italic inflections */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 em,
h2 em,
h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: 0;
  color: inherit;
}

/* Handwritten accents */
.hand {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.35em;
  line-height: 1.2;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.eyebrow::before {
  content: "";
  width: 2.2em;
  height: 1px;
  background: var(--blue);
}

.on-dark .eyebrow {
  color: var(--white-60);
}

.on-dark .eyebrow::before {
  background: var(--brass);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
}

/* Layout helpers */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.section-head {
  display: grid;
  gap: 1.5rem clamp(2rem, 6vw, 8rem);
  align-items: end;
  margin-bottom: var(--space-block);
}

.section-head h2 {
  font-size: var(--text-h2);
  margin-top: 1.1rem;
  max-width: 12em;
}

.section-head > p {
  color: var(--ink-soft);
  max-width: 30em;
}

@media (min-width: 60rem) {
  .section-head {
    grid-template-columns: 1.4fr 1fr;
  }
  .section-head > p {
    justify-self: end;
    padding-bottom: 0.5rem;
  }
}

/* Split-text scaffolding (built by JS) */
.split .word {
  display: inline-block;
  overflow: clip;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.split .char,
.split .word-inner {
  display: inline-block;
  will-change: transform;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100vmax;
  overflow: clip;
  isolation: isolate;
  transition: color var(--duration-normal) var(--ease-out-expo);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform var(--duration-normal) var(--ease-snap);
}

.btn--solid {
  background: var(--brass);
  color: var(--ink-deep);
}

.btn--solid::after {
  background: var(--ink-deep);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  color: var(--brass);
}

.btn--ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 30%, transparent);
}

.btn--ghost::after {
  background: var(--ink);
}

.btn--ghost:hover {
  color: var(--white);
}

/* on dark surfaces: same lime pill */
.btn--light {
  background: var(--brass);
  color: var(--ink-deep);
}

.btn--light::after {
  background: var(--paper);
}

.btn--light:hover {
  color: var(--ink-deep);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateY(0);
}

.btn .btn-arrow {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn:hover .btn-arrow {
  transform: translateX(0.35em);
}

/* Text links with sliding underline */
.tlink {
  position: relative;
  padding-bottom: 0.15em;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--duration-normal) var(--ease-snap);
}

.tlink:hover {
  background-size: 0% 1px;
  background-position: 100% 100%;
}
