:root {
  /* Brand */
  --color-primary: #f26b4a;
  --color-primary-hover: #d95435;
  --color-primary-soft: #fff0eb;

  /* Backgrounds */
  --color-background: #fbf9f7;
  --color-surface: #fbf9f7;
  --color-surface-dark: #1d1d1d;

  /* Text */
  --color-text: #1d1d1d;
  --color-text-muted: #6f6f69;
  --color-text-inverse: #ffffff;

  /* Borders and states */
  --color-border: #dfdfda;
  --color-focus: #f26b4a;
  --color-success: #2f855a;
  --color-error: #c53030;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  font-family: system-ui, sans-serif;
}

main {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.container {
  width: 100%;
  min-height: 0;
  margin-inline: auto;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.site-header {
  width: 100%;
  background: var(--color-surface);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  padding-block: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  color: var(--color-text-inverse);
  background: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.button:hover {
  background: var(--color-primary-hover);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 1rem 3rem rgb(29 29 29 / 15%);
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-items a {
  color: var(--color-text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-items a:hover {
  color: var(--color-text);
}

.nav a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.content {
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: end center;
  padding-top: 1rem;
}

.hero {
  position: relative;
  width: 100%;
}

.hero h1 {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 6%;
  width: 44%;
  margin: 0;
  transform: translateY(-50%);
  font-family: system-ui, sans-serif;
  font-size: clamp(4rem, 7vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-align: center;
}

.hero-subheading {
  position: absolute;
  z-index: 1;
  top: calc(50% + clamp(2.75rem, 4vw, 5rem));
  left: 6%;
  width: 44%;
  margin: 1rem 0 0;
  color: var(--color-text-muted);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-image {
  display: block;
  width: 100%;
  max-height: calc(100svh - 7rem);
  height: auto;
  object-fit: contain;
  object-position: right bottom;
}

.error-page {
  display: grid;
  min-height: 100vh;
  padding: 1rem;
  place-items: center;
  box-sizing: border-box;
}

.error-content {
  max-width: 32rem;
  text-align: center;
}

.error-logo {
  display: block;
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.5rem;
  border-radius: 1.5rem;
  object-fit: cover;
}

.error-content h1 {
  margin-block: 0 0.75rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.error-content p {
  margin-block: 0 1.5rem;
  color: var(--color-text-muted);
}

@media (max-width: 42rem) {
  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-items {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .nav-cta {
    padding: 0.625rem 1rem;
  }

  .content {
    align-items: stretch;
    padding-top: 2rem;
  }

  .hero {
    display: flex;
    height: 100%;
    flex-direction: column;
  }

  .hero h1 {
    position: static;
    width: auto;
    margin-bottom: 0;
    transform: none;
    font-size: clamp(3.25rem, 16vw, 5.5rem);
    line-height: 1;
    text-align: center;
  }

  .hero-subheading {
    position: static;
    width: auto;
    margin: 0.75rem 0 1rem;
    font-size: 1.125rem;
  }

  .hero-image {
    height: 0;
    min-height: 0;
    flex: 1;
    border-radius: 0;
    object-fit: cover;
    object-position: right bottom;
  }
}
