:root {
  --paper: #f6f7f5;
  --ink: #14181b;
  --teal: #1f6f6b;
  --flag: #b23a2e;
  --muted: #5b6570;
  --line: #d8dbd6;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.marker {
  color: var(--teal);
  font-size: 0.75em;
}

/* Header */

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

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

/* Hero */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 14ch;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 48px;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.credentials div {
  min-width: 180px;
}

.credentials dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 6px;
}

.credentials dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
}

/* Section shared */

section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 32px;
}

.services,
.engagement,
.about,
.contact {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
}

.service {
  display: flex;
  gap: 12px;
}

.service h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 6px;
}

.service p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Engagement */

.engagement-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.engagement-steps li {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.step-number {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--teal);
  flex-shrink: 0;
}

.engagement-steps h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 4px;
}

.engagement-steps p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* About */

.about p {
  max-width: 62ch;
  color: var(--ink);
  font-size: 0.98rem;
}

.about p:last-child {
  color: var(--muted);
}

.about a {
  color: var(--ink);
  text-decoration-color: var(--teal);
  text-underline-offset: 2px;
}

.about a:hover,
.about a:focus-visible {
  color: var(--teal);
}

/* Contact */

.contact {
  border-bottom: none;
}

.contact .lede {
  margin: 0 0 32px;
}

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

.contact-form[hidden] {
  display: none;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
}

.form-row input,
.form-row textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-row textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--paper);
  background: var(--teal);
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: var(--ink);
}

.form-status {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--teal);
  max-width: 480px;
}

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

/* Footer */

.site-footer {
  padding: 32px 0 56px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer span {
  font-family: var(--display);
  font-weight: 600;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

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

/* Legal pages */

.legal {
  padding: 56px 0 72px;
}

.legal h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.legal .updated {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.legal .intro {
  margin-top: 28px;
}

.legal h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  font-size: 0.95rem;
  color: var(--ink);
  max-width: 62ch;
}

.legal ul {
  margin: 0;
  padding-left: 1.2em;
}

.legal a {
  color: var(--teal);
}

.legal .back-link {
  display: inline-block;
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.legal .back-link:hover,
.legal .back-link:focus-visible {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
