/* Passo Norte: the design system's dark theme. Square corners, thin borders,
   flat fills, no shadows but the focus ring. Space is in steps of 8px. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #171614;
  --line: #2e2b27;
  --ink: #f1eadc;
  --ink-muted: #a8a194;
  --accent: #1f3fc8;
  --accent-text: #5f79e6;
  --on-accent: #f1eadc;
  --focus-ring: 0 0 0 2px #0a0a0a, 0 0 0 4px #5f79e6;
  --gutter: 32px;
  --section: 64px;
}

@media (min-width: 900px) {
  :root { --gutter: 64px; }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
}

h1, h2, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

.wrap {
  width: min(100% - 2 * var(--gutter), 1152px);
  margin-inline: auto;
}

/* Type */
.label { font-size: 13px; line-height: 16px; font-weight: 500; }
.muted { color: var(--ink-muted); }
.lead { font-size: 20px; line-height: 30px; max-width: 34em; }
.heading { font-size: 40px; line-height: 44px; font-weight: 500; }
.nowrap { white-space: nowrap; }

/* Links and focus */
a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color 120ms ease-out, background-color 120ms ease-out, border-color 120ms ease-out;
}
a:hover { color: var(--ink); }
a:focus-visible, .shots:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
}
.brand { display: block; flex: none; }
.brand img { width: auto; height: 40px; }
.site-header nav { display: flex; gap: 8px; margin-right: -8px; }
.site-header nav a {
  display: block;
  padding: 14px 8px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}
.site-header nav a:hover { color: var(--ink); }
@media (max-width: 360px) {
  .site-header { gap: 8px; }
  .site-header nav { gap: 0; }
}

/* Hero */
.hero { padding-block: 64px var(--section); }
.hero .label { margin-bottom: 16px; }
h1 {
  font-size: clamp(44px, 11vw, 96px);
  line-height: .958;
  font-weight: 500;
  text-wrap: balance;
}
@media (min-width: 900px) {
  .hero { padding-top: 128px; }
}

/* The logo's square full stop, as in the design system. The "." stays in the
   text for copying and screen readers. */
.stop {
  display: inline-block;
  width: .123em;
  height: .123em;
  margin-left: .06em;
  vertical-align: -.014em;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 1em;
  background: var(--accent);
}

.not-found { margin-top: 24px; }

/* About */
.about { padding-bottom: var(--section); }
.about .label { margin-bottom: 16px; }

/* Flocksum */
.flocksum { background: var(--surface); padding-block: var(--section); }
.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 24px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding-inline: 8px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--ink-muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding-inline: 24px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
}
.button:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); }

/* Screenshots: four across when they fit, otherwise a row that scrolls sideways
   and shows the edge of the next one. Captions share a row so the images line up. */
.shots {
  display: grid;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  grid-auto-columns: minmax(232px, 1fr);
  gap: 16px 32px;
  margin: 64px calc(var(--gutter) * -1) 0;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
}
.shots figure {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  scroll-snap-align: start;
}
.shots figcaption { color: var(--ink-muted); }
.shots figcaption strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
}
.shots img { width: 100%; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .shots { grid-auto-columns: min(72vw, 300px); }
}

/* Contact */
.contact { padding-block: var(--section); }
.contact .heading { margin-bottom: 24px; }
.email {
  margin-bottom: 8px;
  font-size: clamp(18px, 5.4vw, 24px);
  line-height: 32px;
  font-weight: 500;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--section); }
.site-footer .label { margin-bottom: 24px; }
.site-footer dl { display: grid; gap: 16px; }
.site-footer dt { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.site-footer dd { max-width: 40em; }
@media (min-width: 640px) {
  .site-footer dl { gap: 8px; }
  .site-footer dl > div {
    display: grid;
    grid-template-columns: 176px 1fr;
    gap: 16px;
    align-items: baseline;
  }
}
