:root {
  color-scheme: light;
  --background: #f5f5f2;
  --surface: #ffffff;
  --text: #121212;
  --muted: #6d6d68;
  --line: #d9d9d3;
  --danger: #a52a2a;
  --success: #1d6536;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.page,
.site-footer {
  width: min(100% - 48px, 800px);
  margin-inline: auto;
}

.page {
  min-height: calc(100svh - 74px);
  padding: 32px 0 72px;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: 8px;
  content: "/";
}

.site-header,
.contact-heading,
.form-actions,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.launch-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.launch-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}

.project {
  padding: clamp(64px, 12vw, 112px) 0 clamp(72px, 12vw, 112px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.description {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}

.contact {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-heading {
  margin-bottom: 28px;
}

.contact-heading h2 {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.contact-heading a {
  color: var(--muted);
  font-size: 14px;
}

.fields {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.field-group {
  min-width: 0;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

input,
textarea,
button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

input,
textarea {
  display: block;
  padding: 14px 15px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

input {
  min-height: 54px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #999993;
  opacity: 1;
}

input:focus,
textarea:focus {
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.field-group.has-error input,
.field-group.has-error textarea {
  border-color: var(--danger);
}

.field-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  align-items: flex-start;
  margin-top: 2px;
}

button {
  display: inline-flex;
  width: auto;
  min-width: 176px;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 16px;
  color: #fff;
  background: var(--text);
  border-color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

button:hover {
  background: #333;
  border-color: #333;
}

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

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.form-status {
  max-width: 440px;
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.site-footer {
  min-height: 74px;
  padding: 24px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

@media (max-width: 640px) {
  .page,
  .site-footer {
    width: min(100% - 36px, 800px);
  }

  .page {
    padding-top: 22px;
    padding-bottom: 52px;
  }

  .breadcrumbs ol {
    margin-bottom: 34px;
  }

  .project {
    padding: 56px 0 68px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .fields {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-heading,
  .form-actions,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-heading {
    gap: 6px;
  }

  button {
    width: 100%;
  }

  .form-status {
    min-height: 0;
    margin-top: 0;
    text-align: left;
  }

  .site-footer {
    justify-content: center;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
