:root {
  color-scheme: dark;
  --ink: #f7f2e8;
  --muted: #d7c8b3;
  --line: rgba(247, 242, 232, 0.22);
  --dark: #12100d;
  --accent: #c99b5a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -2;
  background-image: url("/assets/relay-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 16, 13, 0.94) 0%, rgba(18, 16, 13, 0.74) 42%, rgba(18, 16, 13, 0.34) 100%),
    linear-gradient(180deg, rgba(18, 16, 13, 0.14) 0%, rgba(18, 16, 13, 0.66) 100%);
}

.hero__content {
  align-self: center;
  width: min(720px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 120px);
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.intro {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 36px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
  }

  .hero__image {
    background-position: 60% center;
  }

  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(18, 16, 13, 0.93) 0%, rgba(18, 16, 13, 0.72) 62%, rgba(18, 16, 13, 0.38) 100%),
      linear-gradient(180deg, rgba(18, 16, 13, 0.22) 0%, rgba(18, 16, 13, 0.76) 100%);
  }

  .hero__content {
    align-self: end;
    width: min(100% - 32px, 620px);
    margin: 0 auto;
    padding: 64px 0 44px;
  }

  h1 {
    font-size: clamp(2.75rem, 17vw, 4.8rem);
  }
}
