/* The site's look: the app's black page, white text, Lexend Deca, and the splash's warm glow. */
/* The app's fonts, served from this site (copied in by scripts/build-website.js). */
@font-face { font-family: 'Lexend Deca'; font-weight: 300; font-display: swap; src: url('/fonts/LexendDeca_300Light.ttf') format('truetype'); }
@font-face { font-family: 'Lexend Deca'; font-weight: 400; font-display: swap; src: url('/fonts/LexendDeca_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Lexend Deca'; font-weight: 500; font-display: swap; src: url('/fonts/LexendDeca_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Lexend Deca'; font-weight: 600; font-display: swap; src: url('/fonts/LexendDeca_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Lexend Deca'; font-weight: 700; font-display: swap; src: url('/fonts/LexendDeca_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Fraunces'; font-weight: 800; font-display: swap; src: url('/fonts/Fraunces_800ExtraBold.ttf') format('truetype'); }

:root {
  --page: #000000;
  --surface: #141414;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.14);
  --glow: #e98a5c;
  --gutter: 20px;
  --measure: 640px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Lexend Deca', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

/* Top bar */
header.bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px var(--gutter);
}
header.bar .wordmark { font-size: 28px; }
header.bar nav { display: flex; gap: 22px; font-size: 15px; font-weight: 400; }
header.bar nav a { text-decoration: none; color: var(--muted); }
header.bar nav a:hover, header.bar nav a[aria-current='page'] { color: var(--text); }

/* Home */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 55%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 50%, #000 100%);
}
.hero .copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(76px, 16vw, 140px);
  line-height: 0.95;
}
.hero p.lede {
  margin: 14px 0 28px;
  max-width: 30ch;
  font-size: clamp(19px, 2.6vw, 24px);
  color: var(--text);
}
.badge {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--faint);
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 400;
  font-size: 15px;
}

.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px var(--gutter) 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.features div {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px 22px 24px;
}
.features h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

/* Text pages */
main.text {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 120px var(--gutter) 72px;
}
main.text h1 { margin: 0 0 4px; font-size: 34px; font-weight: 700; line-height: 1.2; }
main.text .meta { margin: 0 0 36px; color: var(--muted); font-size: 15px; }
main.text h2 { margin: 32px 0 6px; font-size: 19px; font-weight: 600; }
main.text p { margin: 0 0 12px; color: var(--muted); }
main.text strong { color: var(--text); font-weight: 500; }

/* Footer */
footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Home: the big wordmark is the logo, so the bar's small one steps aside. */
body.home header.bar .wordmark { visibility: hidden; }

/* Wide screens: the words on the left, the picture on the right fading into the page. */
@media (min-width: 900px) {
  .hero { min-height: min(100svh, 980px); align-items: center; }
  .hero img {
    left: auto;
    width: 58%;
    object-position: 50% 62%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
    mask-image: linear-gradient(to right, transparent 0%, #000 35%);
  }
  .hero::after { background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, #000 100%); }
  .hero .copy { padding-bottom: 0; }
}

@media (max-width: 480px) {
  header.bar nav { gap: 16px; font-size: 14px; }
  body { font-size: 16px; }
}
