:root {
  --paper: light-dark(#f5f4f1, #322619);
  --ink: light-dark(#3a362f, #f1ede4);
  --slate: light-dark(#5a564f, #b8b2a6);
  --amber: light-dark(#e65c00, #ff7a1f);
  --green: light-dark(#55903a, #a7c48d);
  --moss: light-dark(#566246, #9cb67a);
  --line: light-dark(#dad7d0, #4b4034);

  --display: "Bricolage Grotesque", var(--sans);
  --sans:
    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--amber);
  color: var(--paper);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */

header {
  padding: 2.75rem 0 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.lang-switch {
  display: flex;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(4rem, 9vw, 7.5rem) 0 4rem;
}

h1 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(2.65rem, 8.5vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  max-width: 22ch;
}

h1 em {
  font-style: normal;
  color: var(--amber);
}

.lede {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 42ch;
  margin: 0;
  text-wrap-mode: balance;
}

.lede a {
  color: var(--ink);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---------- rule ---------- */

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- what/who ---------- */

.split {
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.split p,
.colophon-intro {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink);
}

/* ---------- contact ---------- */

.contact {
  padding: 4rem 0;
}

.contact h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 30rem;
  margin-top: 2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.55rem 0;
  transition: border-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate);
  opacity: 0.65;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--amber);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.5;
}

.hidden {
  position: absolute;
  left: -9999px;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paper);
  background: var(--ink);
  border: none;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.submit-btn .arrow {
  font-family: var(--mono);
  font-weight: 400;
  transition: transform 0.25s ease;
}

.submit-btn:hover:not(:disabled),
.submit-btn:focus-visible {
  background: var(--amber);
  color: var(--paper);
  border: none;
}

.submit-btn:hover:not(:disabled) .arrow,
.submit-btn:focus-visible .arrow {
  transform: translateX(4px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.92rem;
  margin: 0;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="success"] {
  color: var(--moss);
}

.form-status[data-state="error"] {
  color: var(--ink);
  font-weight: 600;
}

.form-status a {
  color: inherit;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---------- footer ---------- */

footer {
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--slate);
}

@media (max-width: 640px) {
  .split {
    grid-template-columns: 1fr;
  }

  .colophon li {
    flex-direction: column;
    gap: 0.25rem;
  }

  .colophon dt {
    flex: none;
  }
}
