@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Oswald:wght@300;400;500&display=swap");

:root {
  color-scheme: dark;
  --ink: #06131b;
  --cream: #f2d9ba;
  --muted: #d7c2a9;
  --rust: #b65f40;
  --rust-light: #c97a58;
  --line: rgb(182 95 64 / 58%);
  --page-gutter: clamp(1.5rem, 5vw, 5.25rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--cream);
  font-family: "Oswald", "Arial Narrow", sans-serif;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
}

.hero__backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: url("assets/southland-dusk.webp");
  background-size: cover;
  background-position: 54% center;
  animation: reveal 1.4s ease-out both;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgb(6 19 27 / 96%) 0%, rgb(6 19 27 / 85%) 30%, transparent 58%);
  pointer-events: none;
}

.grain {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  padding: clamp(1.75rem, 4.5vh, 3.5rem) var(--page-gutter) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  width: clamp(14rem, 24vw, 21rem);
  height: auto;
  filter: drop-shadow(0 0.16rem 0.1rem rgb(0 0 0 / 35%));
}

.hero__content {
  align-self: center;
  width: min(42rem, 54vw);
  padding: 3rem 0 3rem var(--page-gutter);
  animation: rise 0.9s 0.15s ease-out both;
}

h1 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(4.3rem, 6.8vw, 7.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.86;
  text-wrap: balance;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.hero__content p {
  max-width: 32rem;
  margin: clamp(1.6rem, 3.5vh, 2.5rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.055em;
  line-height: 1.55;
}

.hero__content .hero__follow-up {
  margin-top: 0.75rem;
}

.actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(1.75rem, 3.8vh, 2.75rem);
}

.button {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.button {
  min-width: 13.5rem;
  padding: 1rem 1.6rem;
  border: 1px solid var(--rust-light);
  background: var(--rust);
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-2px);
}

.button:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

.site-footer {
  display: flex;
  position: relative;
  z-index: 4;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 4.75rem;
  border-top: 1px solid var(--line);
  background: rgb(6 19 27 / 77%);
  color: var(--rust-light);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.site-footer__dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: currentColor;
}

@keyframes reveal {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

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

  .hero__backdrop {
    background-position: 68% center;
    opacity: 0.62;
  }

  .hero::before {
    background: linear-gradient(180deg, rgb(6 19 27 / 92%) 0%, rgb(6 19 27 / 63%) 49%, rgb(6 19 27 / 93%) 88%);
  }

  .hero__content {
    align-self: end;
    width: 100%;
    padding: 4rem var(--page-gutter) 3rem;
  }

  h1 {
    font-size: clamp(3.35rem, 15vw, 5rem);
    line-height: 0.9;
  }

  h1 span {
    white-space: normal;
  }

  .hero__content p {
    max-width: 28rem;
    font-size: 1.05rem;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    min-height: 4rem;
    padding-inline: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
