:root {
  --bark: #1a1410;
  --canopy: #243528;
  --leaf: #6f9b6a;
  --sun: #e8d5a3;
  --paper: #f4efe6;
  --muted: rgba(244, 239, 230, 0.7);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--bark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, rgba(111, 155, 106, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 20%, rgba(232, 213, 163, 0.12), transparent 50%),
    linear-gradient(160deg, #120e0b 0%, var(--bark) 40%, var(--canopy) 100%);
  animation: canopy 22s ease-in-out infinite alternate;
}

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

@keyframes canopy {
  from {
    filter: saturate(1);
  }
  to {
    filter: saturate(1.15);
  }
}

main {
  flex: 1;
  width: min(40rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
}

.hero {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 2.5rem;
}

.brand {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 5.25rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
  animation: lift 0.85s ease both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--sun);
  max-width: 22ch;
  animation: lift 0.85s ease 0.1s both;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
  animation: lift 0.85s ease 0.2s both;
}

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

.brands {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  animation: lift 0.85s ease 0.28s both;
}

.brands h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
}

.brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.brand-link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.25rem;
  padding: 1.15rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
  transition: color 0.2s ease;
}

.brand-name {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.brand-desc {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.98rem;
}

.brand-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--leaf);
  font-size: 1.35rem;
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-name {
  color: var(--sun);
}

.brand-link:hover .brand-go {
  transform: translateX(4px);
}

.aside {
  padding: 1.5rem 0 0;
  color: rgba(244, 239, 230, 0.55);
  font-size: 0.95rem;
}

.aside a {
  color: var(--leaf);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 155, 106, 0.35);
}

.aside a:hover {
  color: var(--sun);
  border-color: rgba(232, 213, 163, 0.45);
}

footer {
  width: min(40rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  color: rgba(244, 239, 230, 0.4);
  font-size: 0.85rem;
}

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