:root {
  color-scheme: dark;
  --ink: #f2ecdd;
  --ink-muted: rgba(242, 236, 221, 0.72);
  --leaf: #b7c99a;
  --night: #101d17;
  --edge: rgba(242, 236, 221, 0.28);
  --sans: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--night);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.hero {
  --shift-x: 0px;
  --shift-y: 0px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 3rem) clamp(1.25rem, 5vw, 5.5rem) clamp(1.25rem, 3vw, 2.5rem);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  inset: -2.5%;
  background-image: url("images/linden-evening-hero.webp");
  background-position: 54% center;
  background-size: cover;
  transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.045);
  animation: breathe 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 15, 11, 0.88) 0%, rgba(7, 15, 11, 0.58) 35%, rgba(7, 15, 11, 0.11) 67%, rgba(7, 15, 11, 0.27) 100%),
    linear-gradient(0deg, rgba(6, 13, 9, 0.64) 0%, transparent 40%, rgba(6, 13, 9, 0.28) 100%);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--edge);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.wordmark__mark {
  width: 2rem;
  height: 2rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
  transition: color 300ms ease, transform 500ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.wordmark:hover .wordmark__mark {
  color: var(--leaf);
  transform: rotate(-4deg) scale(1.05);
}

.site-header__status {
  display: flex;
  align-items: center;
  color: var(--ink-muted);
  font-size: clamp(0.68rem, 1vw, 0.76rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(183, 201, 154, 0.5);
  animation: pulse 2.8s ease-out infinite;
}

.hero__content {
  align-self: center;
  width: min(58rem, 92%);
  padding: clamp(2rem, 7vh, 6rem) 0;
}

.kicker {
  margin: 0 0 clamp(1rem, 2.4vh, 1.8rem);
  color: var(--leaf);
  font-size: clamp(0.68rem, 1vw, 0.8rem);
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand {
  max-width: 10ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 10.3vw, 10.6rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.72;
  text-wrap: balance;
}

.brand span {
  display: block;
}

.brand span:last-child {
  margin-left: clamp(1rem, 5vw, 5rem);
  font-size: 0.65em;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.message {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-top: clamp(2.2rem, 5vh, 4.5rem);
  color: var(--ink-muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  line-height: 1.35;
}

.message p {
  margin: 0;
}

.message__primary {
  color: var(--ink);
}

.message__rule {
  width: clamp(2.5rem, 6vw, 6rem);
  height: 1px;
  background: var(--edge);
}

.site-footer {
  align-items: flex-end;
  color: var(--ink-muted);
  font-size: clamp(0.68rem, 1vw, 0.76rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child span[aria-hidden] {
  padding: 0 0.45rem;
  color: var(--leaf);
}

.site-footer__domain {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.14em;
}

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  animation: reveal 450ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.reveal--1 { animation-delay: 60ms; }
.reveal--2 { animation-delay: 100ms; }
.reveal--3 { animation-delay: 140ms; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  from { transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.045); }
  to { transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.085); }
}

@keyframes pulse {
  70%, 100% { box-shadow: 0 0 0 0.55rem rgba(183, 201, 154, 0); }
}

@media (max-width: 680px) {
  .hero {
    padding: 1.2rem 1.15rem 1.15rem;
  }

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

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(7, 15, 11, 0.86) 0%, rgba(7, 15, 11, 0.45) 77%, rgba(7, 15, 11, 0.3) 100%),
      linear-gradient(0deg, rgba(6, 13, 9, 0.8) 0%, transparent 48%, rgba(6, 13, 9, 0.36) 100%);
  }

  .site-header__status {
    max-width: 11rem;
    justify-content: flex-end;
    text-align: right;
    line-height: 1.35;
  }

  .hero__content {
    width: 100%;
    padding: 2.5rem 0;
  }

  .brand {
    font-size: clamp(4rem, 20vw, 6.2rem);
    line-height: 0.78;
  }

  .brand span:last-child {
    margin-left: 0.45rem;
  }

  .message {
    align-items: flex-start;
    gap: 0.9rem;
    font-size: 1rem;
  }

  .message__rule {
    width: 1px;
    height: 2.8rem;
    margin-top: 0.1rem;
  }

  .site-footer {
    align-items: flex-start;
    gap: 1rem;
  }

  .site-footer p:first-child {
    max-width: 15rem;
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  .wordmark span {
    display: none;
  }

  .site-footer {
    display: block;
  }

  .site-footer__domain {
    margin-top: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__image {
    transform: none;
  }
}
