:root {
  --ground: #FBF8F2;
  --surface: #F1EBE1;
  --text: #2F3A40;
  --text-muted: #6F6A61;
  --border: #DFD8CC;
  --hairline: rgba(47, 58, 64, 0.16);
  --accent: #3F5A6B;
  --on-accent: #FBF8F2;
  --eyebrow: #4D6353;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #2F3A40;
    --surface: #3A464D;
    --text: #FBF8F2;
    --text-muted: #B2AFA6;
    --border: #4E5A61;
    --hairline: rgba(251, 248, 242, 0.18);
    --accent: #C3D4DD;
    --on-accent: #2F3A40;
    --eyebrow: #C6D2C4;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.wrap {
  max-width: 38rem;
  margin: 0 auto;
  padding: 80px 20px 52px;
}

.hero {
  text-align: center;
  margin-bottom: 80px;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 600;
  color: var(--eyebrow);
  margin: 0 0 10px;
}

h1 {
  font-family: 'Marcellus', 'Hoefler Text', Georgia, serif;
  font-weight: 400;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0 0 20px;
  color: var(--text);
}

.lede {
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}

.socials {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: none;
  border-radius: 0;
  padding: 14px 28px;
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 40px;
}

.contact-card h2 {
  font-family: 'Marcellus', 'Hoefler Text', Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--text);
}

.contact-card .body-sm {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 62ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 600;
  color: var(--eyebrow);
}

.field input,
.field textarea {
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--ground);
  color: var(--text);
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

footer {
  text-align: center;
  margin-top: 80px;
}

.mono-sm {
  font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .wrap { padding: 52px 20px 40px; }
  .hero { margin-bottom: 52px; }
  .socials { margin-bottom: 52px; }
  h1 { font-size: 40px; }
  .contact-card { padding: 28px; }
}
