/* Shared across every page. Colours are src/theme/palette.ts, so the site is
   made of the same material as the app rather than a separate identity built
   for the web. */
:root {
  --basalt: #131211;
  --slate: #1d1c1a;
  --stone: #292724;
  --seam: #383531;
  --chalk: #f0eeea;
  --ash: #c2bbb0;
  --smoke: #948e84;
  --ember: #c8531f;
  --serif: 'Fraunces', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--basalt);
  color: var(--chalk);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* 1140 with generous gutters. 1060 left a third of a large monitor empty; 1320
   went too far the other way and ran the content into the window edge, which
   reads as a page with no margins rather than a page using its width. The
   gutter is what stops it hugging. */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 900px) {
  .wrap {
    padding: 0 32px;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 22px;
  }
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(19, 18, 17, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--seam);
}
.nav .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 900px) {
  .nav .inner {
    padding: 0 32px;
  }
}
@media (max-width: 640px) {
  .nav .inner {
    padding: 0 22px;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chalk);
  text-decoration: none;
  white-space: nowrap;
}
.brand i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--ember);
  flex: none;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav a.link {
  display: block;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ash);
  text-decoration: none;
  font-size: 14.5px;
}
.nav a.link:hover {
  color: var(--chalk);
  background: var(--slate);
}
.nav a.link[aria-current='page'] {
  color: var(--chalk);
  background: var(--slate);
}

/* The toggle only exists on narrow screens, where the links stack instead. */
.navtoggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--seam);
  border-radius: 8px;
  color: var(--chalk);
  width: 40px;
  height: 34px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.navtoggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--chalk);
}

@media (max-width: 780px) {
  .navtoggle {
    display: flex;
  }
  .nav ul {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    flex-direction: column;
    gap: 0;
    background: var(--basalt);
    border-bottom: 1px solid var(--seam);
    padding: 8px 20px 16px;
  }
  .nav.open ul {
    display: flex;
  }
  .nav a.link {
    padding: 12px 4px;
    font-size: 16px;
  }
}

/* ----------------------------------------------------------------- footer */
footer {
  margin-top: 110px;
  padding: 26px 0 46px;
  border-top: 1px solid var(--seam);
  color: var(--smoke);
  font-size: 13px;
}
footer .inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a {
  color: var(--ash);
  text-decoration: none;
}
footer a:hover {
  color: var(--chalk);
}

/* ------------------------------------------------- work in progress pages */
.page-head {
  padding: 74px 0 0;
}
.page-head h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin: 0;
  line-height: 1;
}
.page-head p {
  color: var(--ash);
  font-size: 17.5px;
  max-width: 54ch;
  margin: 18px 0 0;
}

.wip {
  margin: 44px 0 0;
  border: 1px dashed var(--seam);
  border-radius: 18px;
  padding: 54px 32px;
  text-align: center;
  background: var(--slate);
}
.wip .badge {
  display: inline-block;
  border: 1px solid var(--ember);
  color: var(--ember);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wip h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 20px 0 10px;
}
.wip p {
  color: var(--smoke);
  max-width: 44ch;
  margin: 0 auto;
  font-size: 15.5px;
}
.wip .bars {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 30px;
}
.wip .bars i {
  width: 34px;
  height: 7px;
  border-radius: 3px;
  background: var(--stone);
}
.wip .bars i.on {
  background: var(--ember);
}

/* ------------------------------------------------------- showcase figures */
.shot {
  margin: 46px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.shot:nth-of-type(even) img {
  order: 2;
}
@media (max-width: 820px) {
  .shot {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .shot:nth-of-type(even) img {
    order: 0;
  }
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}
.shot figcaption {
  color: var(--ash);
  font-size: 16px;
  line-height: 1.6;
  max-width: 42ch;
}
.shot figcaption b {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--chalk);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
