@font-face {
  font-family: "ModeSeven";
  src:
    local("ModeSeven"),
    url("https://static.wfonts.com/data/2015/05/09/modeseven/modes.woff") format("woff"),
    url("https://static.wfonts.com/data/2015/05/09/modeseven/modes.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f3f0e6;
  --ink: #20211e;
  --muted: #68685f;
  --rule: #d6d2c6;
  --button: #252620;

  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: inherit;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
  transition: color 140ms ease;
}

a:hover {
  color: var(--muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--muted);
  outline-offset: 3px;
}

.page-width {
  width: min(calc(100% - 40px), 760px);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-content,
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-family: "ModeSeven", ui-monospace, monospace;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
}

.header-content > a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.hero {
  padding-block: clamp(64px, 14vw, 96px) clamp(80px, 14vw, 112px);
}

.hero > .page-width {
  max-width: 820px;
}

h1,
h2 {
  max-width: 100%;
  overflow-wrap: break-word;
  color: var(--ink);
  font-family: "ModeSeven", ui-monospace, monospace;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 {
  max-width: 22ch;
  margin: 0 0 28px;
  font-size: clamp(2.35rem, 10vw, 4.75rem);
}

h2 {
  max-width: 25ch;
  margin: 0 0 28px;
  font-size: clamp(2rem, 7vw, 3.25rem);
}

p {
  max-width: 68ch;
  margin: 0 0 20px;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.68;
}

.hero > .page-width > p:first-of-type {
  max-width: 62ch;
}

.primary-action,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--paper);
  background: var(--button);
  font: 600 1rem/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.primary-action:hover,
button:not(:disabled):hover {
  color: var(--paper);
  background: #3a3b35;
}

.primary-action:active,
button:not(:disabled):active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.supporting-line {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.content-section {
  padding-block: clamp(80px, 12vw, 112px);
  border-top: 1px solid var(--rule);
}

.content-section p:last-child {
  margin-bottom: 0;
}

.emphasis {
  margin-top: 32px;
  color: var(--ink);
  font-weight: 700;
}

.waitlist-section {
  padding-bottom: clamp(88px, 12vw, 120px);
}

form {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin-top: 32px;
}

label {
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}

input::placeholder {
  color: var(--muted);
  opacity: 0.9;
}

input:hover {
  border-color: var(--muted);
}

input:focus {
  border-color: var(--ink);
}

form button {
  justify-self: start;
}

.site-footer {
  border-top: 1px solid var(--rule);
}

.footer-content {
  align-items: flex-start;
  padding-block: 28px 32px;
}

.footer-content p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 760px) {
  .page-width {
    width: min(calc(100% - 64px), 760px);
  }

  .hero > .page-width {
    width: min(calc(100% - 64px), 820px);
  }

  .hero {
    padding-block: clamp(96px, 10vw, 140px) clamp(120px, 12vw, 160px);
  }

  .content-section {
    padding-block: clamp(120px, 10vw, 160px);
  }

  .waitlist-section {
    padding-bottom: clamp(120px, 10vw, 160px);
  }

  h1 {
    font-size: clamp(3.5rem, 7vw, 4.75rem);
  }

  h2 {
    font-size: clamp(2.5rem, 5vw, 3.25rem);
  }
}

@media (max-width: 560px) {
  .primary-action,
  form button {
    width: 100%;
  }

  .footer-content {
    display: block;
  }

  .footer-content nav {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
