/*
 * Silk Road Legacy (Figma node 19:128)
 * Only Akkurat Regular is available; bold and italic are synthesized by the browser.
 * Add Akkurat-Bold / Akkurat-Italic @font-face rules here if those files are obtained.
 */
@font-face {
  font-family: "Akkurat";
  src: url("fonts/Akkurat.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "struggle";
  src: url("fonts/struggle-regular.woff2") format("woff2"),
       url("fonts/struggle-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #090909;
  --text: #ffffff;
  --muted: #948a8a;

  --font-body: "Akkurat", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-num: "struggle", "Roboto", sans-serif;
  --font-nav: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: 64px;          /* page side padding */
  --num-col: 322px;        /* width of the 01–11 column */
  --text-max: 866px;
  --section-y: 80px;
  --media-gap: 10px;
  --radius: 20px;

  --fs-title: 64px;
  --fs-h2: 40px;
  --fs-h3: 32px;
  --fs-num: 60px;
  --fs-body: 20px;
  --lh-body: 30px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
b { font-weight: 700; }

/* ---------- Header / footer ---------- */
.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin-inline: auto;
  padding: 24px var(--gutter);
}
/* Sticky header: hides while scrolling down, slides back in on scroll up (see header.js) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 84px;
  max-width: none;
  /* full-width background, content still aligned to the 1440px layout */
  padding-inline: max(var(--gutter), (100% - 1440px) / 2 + var(--gutter));
  background: var(--bg);
  transition: transform .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}
.logo img { width: 271.6px; height: 31.626px; }
/* Short "ZB" mark shown instead of the full name on phones (Figma node 170:747) */
.logo-mark {
  display: none;
  font-family: var(--font-num);
  font-size: 42px;
  line-height: 1;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 50px;
  font-family: var(--font-nav);
  font-size: 18px;
  line-height: normal;
}

.footer-nav {
  display: flex;
  gap: 48px;
  width: 158px;
  font-size: 20px;
  line-height: 30px;
}
.social { display: flex; align-items: center; gap: 40px; }
.social img { width: 48px; height: 48px; }
.social .linkedin {
  display: flex;
  width: 48px;
  height: 48px;
  padding: 12.16px 12.8px 13.44px;
  border-radius: 24px;
  background: var(--muted);
}
.social .linkedin img { width: 22.4px; height: 22.4px; }

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  height: auto;
  aspect-ratio: 2560 / 1280;
  object-fit: cover;
}

/* ---------- Text sections ---------- */
main > * { margin-inline: auto; }

.intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1440px;
  padding: var(--section-y) var(--gutter);
}
h1 {
  font-family: var(--font-head);
  font-size: var(--fs-title);
  line-height: normal;
}

.row {
  display: grid;
  grid-template-columns: var(--num-col) minmax(0, var(--text-max));
  align-items: start;
}
.section {
  max-width: 1440px;
  padding: var(--section-y) var(--gutter);
}
.section.follow { padding-top: 0; }
.sub > .col { grid-column: 2; }

.num {
  font-family: var(--font-num);
  font-size: var(--fs-num);
  line-height: 75px;
  color: var(--muted);
}

.col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.col.gap-80 { gap: 80px; }

h2 {
  display: flex;
  align-items: flex-end;
  min-height: 78px;
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  line-height: normal;
}
.sub h2 { min-height: 0; }

h3 {
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  line-height: normal;
}

.body { max-width: 866px; }
.body p + p { margin-top: var(--lh-body); }
.body.tight p + p { margin-top: 0; }
.credit { font-style: italic; max-width: 783px; }

/* ---------- Media ---------- */
.media,
.media-stack {
  width: min(1312px, 100% - 2 * var(--gutter));
}
.media.wide,
.media-stack.wide {
  width: min(1400px, 100% - 40px);
}

.media,
.media-stack img {
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}
.media-stack > img { width: 100%; }

.media-stack {
  display: flex;
  flex-direction: column;
  gap: var(--media-gap);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--media-gap);
}
.pair img {
  width: 100%;
  aspect-ratio: var(--ar);
  border-radius: var(--r, var(--radius));
}

/* Way-finding row: three images sharing a 329px-tall row at 1400px */
.triple {
  display: grid;
  grid-template-columns: 493.4fr 459.3fr 427.3fr;
  gap: var(--media-gap);
  aspect-ratio: 1400 / 329;
}
.triple img {
  width: 100%;
  height: 100%;
  border-radius: 10.365px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root {
    --gutter: 40px;
    --num-col: 160px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --section-y: 56px;
    --radius: 12px;
    --fs-title: 40px;
    --fs-h2: 28px;
    --fs-h3: 24px;
    --fs-num: 40px;
    --fs-body: 17px;
    --lh-body: 26px;
  }
  .row { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .sub > .col { grid-column: 1; }
  .num { line-height: 1.2; }
  h2 { min-height: 0; }
  .media.wide, .media-stack.wide { width: calc(100% - 2 * var(--gutter)); }

  .pair { grid-template-columns: 1fr; }
  .pair img { aspect-ratio: auto; height: auto; }
  .triple { grid-template-columns: 1fr; aspect-ratio: auto; }
  .triple img { height: auto; aspect-ratio: 3 / 2; border-radius: var(--radius); }

  .logo img { display: none; }
  .logo-mark { display: block; }
  .site-nav { gap: 24px; font-size: 16px; }
  .site-footer { flex-direction: column; gap: 24px; }
  .footer-nav { width: auto; }
  .social { gap: 24px; }
}
