:root {
  color-scheme: dark;
  --background: #181a19;
  --foreground: #eeece4;
  --muted: #a6a79f;
  --rule: #353834;
  --accent: #96534f;
  --gutter: clamp(1.5rem, 6vw, 5rem);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page {
  width: min(calc(100% - var(--gutter) * 2), 64rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-top: max(clamp(2rem, 7vh, 4.5rem), env(safe-area-inset-top));
  padding-bottom: max(2.25rem, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.wordmark {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

main {
  padding-block: clamp(4.5rem, 15vh, 9rem) 6rem;
}

h1 {
  max-inline-size: 21ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-wrap: balance;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 2.25rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.status::before {
  content: "";
  flex: 0 0 1.25rem;
  height: 2px;
  background: var(--accent);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--foreground);
  font-size: 0.875rem;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.contact:hover {
  text-decoration-color: currentColor;
}

.contact:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--foreground);
  outline-offset: 6px;
  text-decoration-color: currentColor;
}

.company {
  margin: 0;
  color: var(--muted);
}

.company span {
  padding-inline: 0.25em;
}

::selection {
  background: var(--foreground);
  color: var(--background);
}

@media (max-width: 36rem) {
  .page {
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
  }

  main {
    padding-block: clamp(4rem, 12vh, 6.5rem) 4rem;
  }

  h1 {
    max-inline-size: 18ch;
  }

  .status {
    margin-top: 1.75rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.375rem;
    padding-top: 0.875rem;
  }
}

@media (forced-colors: active) {
  .contact {
    text-decoration-color: LinkText;
  }

  .status::before {
    background: CanvasText;
  }
}
