:root {
  --forest: #0c1f18;
  --forest-mid: #163529;
  --forest-soft: #1f4637;
  --ink: #14241c;
  --paper: #f2eee6;
  --paper-deep: #e6dfd2;
  --muted: #5a6b62;
  --accent: #9a7b4f;
  --accent-hover: #7e633d;
  --line: rgba(20, 36, 28, 0.12);
  --max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.home {
  margin: 0;
  font-family: "Figtree", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 12% 18%, rgba(154, 123, 79, 0.18), transparent 55%),
    radial-gradient(90% 70% at 88% 8%, rgba(31, 70, 55, 0.55), transparent 50%),
    linear-gradient(
      165deg,
      #081510 0%,
      var(--forest) 38%,
      var(--forest-mid) 72%,
      #243f34 100%
    );
  animation: atmosphere-drift 22s ease-in-out infinite alternate;
}

.hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='xMidYMax slice'%3E%3Cpath fill='%230a1813' fill-opacity='0.55' d='M0 620c120-90 260-140 420-120 180 22 280 110 460 95 140-12 260-70 360-40v345H0z'/%3E%3Cpath fill='%230d2119' fill-opacity='0.7' d='M0 700c160-70 300-40 460-55 200-18 320-95 500-70 140 20 280 80 480 40v285H0z'/%3E%3Cpath fill='%23112a21' d='M0 780c140-40 280-20 420-35s280-70 440-50c180 22 340 60 580 20v185H0z'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom center;
  animation: hills-rise 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.012) 3px,
      rgba(255, 255, 255, 0.012) 4px
    );
  pointer-events: none;
}

.hero-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
}

.brand {
  margin: 0 0 1.1rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 8.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.brand span {
  display: block;
  font-size: 0.38em;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 0.55rem;
  font-family: "Figtree", sans-serif;
}

.headline {
  margin: 0 0 0.85rem;
  max-width: 22ch;
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(242, 238, 230, 0.92);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: rgba(242, 238, 230, 0.68);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

.cta a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.cta .primary {
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: #14140f;
  border: 1px solid transparent;
}

.cta .primary:hover,
.cta .primary:focus-visible {
  background: #b8925c;
  outline: none;
}

.cta .ghost {
  padding: 0.7rem 0.15rem;
  color: rgba(242, 238, 230, 0.82);
  border-bottom: 1px solid rgba(242, 238, 230, 0.28);
}

.cta .ghost:hover,
.cta .ghost:focus-visible {
  color: #fff;
  border-bottom-color: rgba(242, 238, 230, 0.7);
  outline: none;
}

.about {
  width: min(100% - 2.5rem, 40rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 6rem) 0;
}

.about h2 {
  margin: 0 0 0.85rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--forest);
}

.about p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36ch;
}

.site-footer {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 2.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--forest);
  border-bottom-color: var(--accent);
  outline: none;
}

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

@keyframes hills-rise {
  from {
    opacity: 0;
    transform: translateY(2.5rem) scale(1.04);
  }
  to {
    opacity: 0.35;
    transform: translateY(0) scale(1);
  }
}

@keyframes atmosphere-drift {
  from {
    filter: hue-rotate(0deg) brightness(1);
  }
  to {
    filter: hue-rotate(-6deg) brightness(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere,
  .hero-atmosphere::before,
  .brand,
  .headline,
  .lede,
  .cta {
    animation: none !important;
  }
}

@media (max-width: 520px) {
  .cta .ghost {
    padding-inline: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
