:root {
  --bg: #ffffff;
  --fg: #0a0a0b;
  --muted: #5c6570;
  --border: #e2e6eb;
  --surface: #f4f6f8;
  --brand: #9bb890;
  --brand-deep: #7d9674;
  --brand-700: #48563f;
  --brand-soft: #f3f6f1;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-deep);
}

.wrap {
  width: min(72rem, calc(100% - 3rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 38rem);
  display: flex;
  flex-direction: column;
  color: #fff;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.45) 0%,
    rgba(10, 10, 11, 0.28) 42%,
    rgba(10, 10, 11, 0.55) 100%
  );
}

.hero-bar {
  padding: 1.5rem 0 0;
}

.hero-copy {
  margin-top: auto;
  padding: 3.5rem 0 3.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
  width: fit-content;
}

.brand strong {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.brand span {
  opacity: 0.88;
  font-size: 0.8125rem;
}

h1 {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lede {
  margin: 0;
  max-width: 40rem;
  font-size: 1.125rem;
  opacity: 0.92;
}

.page-header {
  padding: 1.5rem 0 1.15rem;
  border-bottom: 1px solid var(--border);
}

.page-header .brand {
  color: var(--fg);
}

.page-header .brand span {
  color: var(--muted);
  opacity: 1;
}

main {
  flex: 1;
  padding: 3.25rem 0 4.5rem;
}

.intro {
  max-width: 46rem;
}

p {
  margin: 0 0 1rem;
}

.panels {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 800px) {
  .panels {
    grid-template-columns: 1fr 1fr;
  }
}

.contacts {
  margin: 0;
  padding: 1.5rem 1.6rem 1.65rem;
  background: var(--brand-soft);
  border: 1px solid #e5ede1;
  border-radius: 2px;
}

.contacts h2 {
  margin: 0 0 0.95rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.contacts dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contacts dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts dd {
  margin: 0.15rem 0 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.legal dd {
  font-size: 0.95rem;
}

.note {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.35rem 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.error-code {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.narrow {
  max-width: 40rem;
}
