@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/roboto-latin.woff2") format("woff2");
}

:root {
  --ink: #1c1c1c;
  --text: #1d2330;
  --bg: #ffffff;
  --gutter: max(16px, 4vw);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  z-index: 10;
}

.skip-link:focus {
  top: 8px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2vw var(--gutter);
  padding-top: max(16px, 2vw);
  padding-bottom: max(16px, 2vw);
  color: var(--ink);
}

.site-title {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
}

.site-nav a {
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-underline-offset: 3px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

main {
  flex: 1;
}

/* Home */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  min-height: calc(100dvh - 160px);
  padding: 0 var(--gutter);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  color: #000;
}

.hero .bang {
  color: #fff;
}

/* Long-form pages (privacy policy, 404) */

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) 16px 64px;
  font-size: 1rem;
  line-height: 1.55;
}

.prose h1 {
  margin: 0 0 0.6em;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.prose h2 {
  margin: 1.5em 0 0.5em;
  font-size: 1.1em;
  font-weight: 500;
  color: var(--ink);
}

.prose p {
  margin: 0 0 1em;
}

.prose a {
  text-underline-offset: 2px;
}
