/* Backlot Labs company site */

@font-face {
  font-family: "Karrik";
  src: url("../fonts/Karrik-Regular.subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #111113;
  --bg-raised: #17171A;
  --bg-raised-hover: #19191C;
  --ink: #EDEAE4;
  --muted: #8F8B85;
  --faint: #5C5955;
  --edge: rgba(237, 234, 228, 0.13);
  --edge-strong: rgba(237, 234, 228, 0.3);
}

* { box-sizing: border-box; margin: 0 }
html { scroll-behavior: smooth }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { width: 100%; max-width: 840px; margin: 0 auto; padding: 0 28px }

/* Hero */
header.hero { padding: clamp(48px, 9vh, 96px) 0 44px }
.stripes { display: block; height: 20px; width: 136px; margin-bottom: 26px }
.stripes path { fill: var(--ink) }
.wordmark { display: block; width: min(480px, 100%); color: var(--ink) }
.hero p {
  margin-top: 22px;
  max-width: 34em;
  color: var(--muted);
  font-size: 18px;
}
.hero p b { color: var(--ink); font-weight: 500 }

/* Sections */
section { padding: 26px 0 }
section:last-of-type { padding-bottom: 72px }
h2 {
  font-family: "Karrik", system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
}

/* Project cards: grid grows as projects are added */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
a.project {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px 18px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  background: var(--bg-raised);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 24px 26px;
  transition: border-color 160ms ease, background-color 160ms ease;
}
a.project:hover, a.project:focus-visible {
  border-color: var(--edge-strong);
  background: var(--bg-raised-hover);
}
a.project:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }
.project img.mark { width: 44px; height: 44px; display: block; grid-row: 1 / span 3 }
.project .name {
  font-family: "Karrik", system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.25;
  color: var(--accent, var(--ink));
}
a.project:hover, a.project:focus-visible { border-color: color-mix(in srgb, var(--accent, var(--ink)) 45%, transparent) }
.project .tag { color: var(--muted) }
.project .url { color: var(--faint); margin-top: 10px; font-size: 14px }
a.project:hover .url { color: var(--muted) }

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--edge);
  padding: 26px 0 34px;
  color: var(--faint);
  font-size: 14px;
}
footer .wrap { display: flex; flex-direction: column; gap: 6px }
footer .row { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between }
footer a { color: var(--muted); text-decoration: none }
footer a:hover, footer a:focus-visible { color: var(--ink) }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  a.project { transition: none }
}

/* Subpages (legal, brand) */
.subhead { padding: 7vh 0 4vh }
.subhead a.home { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink) }
.subhead .stripes { height: 14px; width: 94px; margin: 0 }
.subhead .home-name { font-family: "Karrik", system-ui, sans-serif; font-size: 18px }
.subhead h1 {
  font-family: "Karrik", system-ui, sans-serif;
  font-weight: 400;
  font-size: 34px;
  margin-top: 40px;
}
.page { padding: 2vh 0 10vh }
.page h2 { margin-top: 40px }
.page p, .page li { color: var(--muted); max-width: 44em }
.page ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px }
.page a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px }
.page a:hover { color: #fff }
.page .fact { color: var(--ink) }

/* Brand kit */
.specimens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 4px }
.specimen { border: 1px solid var(--edge); border-radius: 14px; padding: 28px; display: flex; align-items: center; justify-content: center; min-height: 150px }
.specimen.dark { background: var(--bg-raised) }
.specimen.light { background: #FAF9F7 }
.specimen img { max-width: 100%; height: auto; display: block }
.specimen img.sq { width: 96px; height: 96px }
.dl { margin-top: 10px; font-size: 14px }
.palette { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px }
.swatch-chip { border: 1px solid var(--edge); border-radius: 10px; padding: 10px 14px 12px; min-width: 128px }
.swatch-chip .chip { height: 34px; border-radius: 6px; border: 1px solid var(--edge); margin-bottom: 8px }
.swatch-chip .label { font-size: 13px; color: var(--muted) }
.swatch-chip .hex { font-size: 13px; color: var(--ink) }

/* About */
p.about { color: var(--muted); max-width: 40em }
p.about + p.about { margin-top: 10px }

.specimen.pbxdark { background: #0C0C0E }
