:root {
  --cream: #fbf8f0;
  --ink: #1e3325;
  --ink-soft: #4a5f4e;
  --green: #3e9e52;
  --green-deep: #2a7742;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.scene svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cloud {
  will-change: transform;
}

.sun {
  will-change: transform;
  animation: sun-drift 320s ease-in-out infinite alternate;
}

@keyframes sun-drift {
  to {
    transform: translate(16px, 12px);
  }
}

.cloud-a {
  animation: drift-a 90s ease-in-out infinite alternate;
}
.cloud-b {
  animation: drift-b 110s ease-in-out infinite alternate;
}
.cloud-c {
  animation: drift-c 80s ease-in-out infinite alternate;
}
.cloud-d {
  animation: drift-d 130s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translateX(46px);
  }
}
@keyframes drift-b {
  to {
    transform: translateX(-52px);
  }
}
@keyframes drift-c {
  to {
    transform: translateX(64px);
  }
}
@keyframes drift-d {
  to {
    transform: translateX(-40px);
  }
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0.35 0 0 0 0 0 0.27 0 0 0 0 0 0.17 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 100% at 50% 38%,
    transparent 58%,
    rgba(31, 51, 37, 0.14) 100%
  );
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 1.5rem 2.5rem;
}

.hero {
  margin-top: 13vh;
  text-align: center;
  animation: rise 600ms cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.wordmark {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(4.5rem, 15vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tagline {
  margin-top: 0.9rem;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.products {
  width: 100%;
  max-width: 60rem;
  margin-bottom: 7vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem 1.3rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(251, 248, 240, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 30px -14px rgba(20, 40, 24, 0.4);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  animation: rise 500ms cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

.tile:nth-child(1) {
  animation-delay: 120ms;
}
.tile:nth-child(2) {
  animation-delay: 190ms;
}
.tile:nth-child(3) {
  animation-delay: 260ms;
}

.tile--blank {
  background: rgba(251, 248, 240, 0.4);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.5);
}

a.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(20, 40, 24, 0.5);
  border-color: rgba(62, 158, 82, 0.55);
}

.tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.tile-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.tile-arrow {
  color: var(--green);
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

a.tile:hover .tile-arrow {
  transform: translate(2px, -2px);
}

.tile-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.corner {
  position: fixed;
  bottom: 1.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.corner-left {
  left: 1.6rem;
}

.corner-right {
  right: 1.6rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.corner-right:hover {
  color: var(--green-deep);
}

@media (max-width: 620px) {
  .products {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }
  .tile--blank {
    display: none;
  }
  .hero {
    margin-top: 11vh;
  }
  main {
    justify-content: flex-start;
    gap: 8vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud,
  .sun,
  .hero,
  .tile {
    animation: none;
  }
}
