@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('assets/fonts/newsreader-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  color-scheme: dark;
  --ink: #080907;
  --paper: #f5f3eb;
  --muted: #aaa9a2;
  --line: rgba(244, 241, 230, 0.17);
  --acid: #cdf500;
  --serif: 'Newsreader Variable', Georgia, serif;
  --sans: 'Inter Variable', Arial, sans-serif;
  --mono: 'Geist Mono Variable', monospace;
  --shell-gutter: clamp(1.5rem, 6vw, 8rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  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='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  content: '';
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 140px var(--shell-gutter) 125px;
}

.hero-art,
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-art {
  background: url('assets/ancient-oak-hero.jpg') center / cover no-repeat;
  animation: reveal 1.3s ease-out both;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 9, 7, 0.15) 0%, rgba(8, 9, 7, 0.02) 50%, rgba(8, 9, 7, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 9, 7, 0.72) 0%, transparent 35%),
    linear-gradient(180deg, rgba(8, 9, 7, 0.28) 0%, transparent 28%);
}

.header {
  position: absolute;
  top: 0;
  right: var(--shell-gutter);
  left: var(--shell-gutter);
  display: flex;
  height: 88px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 500 32px/1 var(--serif);
  letter-spacing: -0.055em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  transform: translateY(-2px);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content {
  width: min(720px, 58vw);
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .hero-copy {
  animation: text-enter 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content .eyebrow {
  animation-delay: 160ms;
}

.hero-content h1 {
  animation-delay: 320ms;
}

.hero-content .hero-copy {
  animation-delay: 480ms;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--acid);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font: 400 clamp(68px, 7vw, 108px)/0.88 var(--serif);
  letter-spacing: -0.06em;
}

h1 em {
  color: var(--acid);
  font-weight: 400;
}

.hero-copy {
  max-width: 630px;
  margin: 31px 0 35px;
  color: #c0beb6;
  font-size: 17px;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 0 25px;
  border: 1px solid var(--acid);
  border-radius: 7px;
  background: var(--acid);
  color: #0b0d04;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms, box-shadow 160ms;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(205, 245, 0, 0.18);
}

.button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.x-logo {
  position: absolute;
  right: var(--shell-gutter);
  bottom: 38px;
  color: var(--paper);
  opacity: 0.8;
}

.x-logo svg {
  display: block;
  width: 21px;
  fill: currentColor;
}

@keyframes text-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 760px) {
  .hero {
    align-items: flex-start;
    padding: 168px 23px 135px;
  }

  .hero-art {
    left: -74%;
    width: 174%;
    background-position: 60% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 9, 7, 0.05), rgba(8, 9, 7, 0.02)),
      linear-gradient(0deg, rgba(8, 9, 7, 0.75), transparent 42%),
      linear-gradient(180deg, rgba(8, 9, 7, 0.25), transparent 30%);
  }

  .header {
    right: 23px;
    left: 23px;
    height: 76px;
  }

  .brand {
    font-size: 29.6px;
  }

  .hero-content {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(54px, 15vw, 72px);
  }

  .hero-copy {
    max-width: 420px;
    margin: 25px 0 29px;
    font-size: 14px;
  }

  .x-logo {
    right: 23px;
    bottom: 25px;
  }
}

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