:root {
  --main-bg: #f5f4f0;
  --accent: #1f291e;
  --line: rgba(31, 41, 30, 0.18);
  --page-pad: 2rem;
  --container: calc(100vw - (var(--page-pad) * 2));
  --fs-xs: 0.66rem;
  --fs-sm: 0.74rem;
  --fs-md: 0.82rem;
  --fs-lg: 0.94rem;
  --fs-xl: clamp(1.1rem, 2.2vw, 1.5rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, sans-serif;
  background: var(--main-bg);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.45;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  padding: 1.2rem var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: normal;
}

.site-header .brand {
  width: 150px;
}

.site-header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.site-header a {
  color: var(--main-bg);
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: var(--fs-xs);
}

.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg,
.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--main-bg);
  padding-bottom: 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.kicker {
  margin: 0 0 0.9rem;
  letter-spacing: 0.15em;
  font-size: var(--fs-xs);
  text-transform: uppercase;
}

.hero h1 {
  max-width: 22ch;
  margin: 0;
  font-size: var(--fs-xl);
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.btn {
  display: inline-block;
  margin-top: 1.3rem;
  padding: 0.75rem 1.35rem;
  text-decoration: none;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--main-bg);
  background: rgba(31, 41, 30, 0.16);
  border: 1px solid rgba(245, 244, 240, 0.44);
  backdrop-filter: blur(5px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: scale(1.03);
  background: rgba(31, 41, 30, 0.28);
}

.product-scroll-section {
  padding: 9rem 0;
  overflow: hidden;
  background: var(--main-bg);
  color: var(--accent);
}

.section-intro h2,
.cta-content h2 {
  margin: 0;
  font-size: var(--fs-xl);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.section-intro {
  margin-bottom: 2.8rem;
}

.product-pin-wrap {
  width: 100vw;
  padding-left: calc((100vw - var(--container)) / 2);
}

.product-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  will-change: transform;
  padding-right: 3rem;
}

.product-card {
  width: clamp(220px, calc((var(--container) - (3 * 1.4rem)) / 4), 320px);
  background: transparent;
  border: 0;
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.85);
}

.product-card h3 {
  margin: 0.9rem 0 0.28rem;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.product-card p {
  margin: 0;
  color: rgba(31, 41, 30, 0.8);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.story-section {
  background:
    linear-gradient(rgba(31, 41, 30, 0.82), rgba(31, 41, 30, 0.82)),
    url('./assets/florals/uploaded-story-floral.jpg') center/cover no-repeat;
  color: var(--main-bg);
}

.story-pin {
  min-height: 100svh;
}

.story-stage {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.story-panel {
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

.story-panel .kicker {
  color: rgba(245, 244, 240, 0.82);
  margin-bottom: 1.2rem;
}

.story-panel h2,
.story-panel p {
  margin: 0;
  color: var(--main-bg);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.story-panel h2 {
  font-size: var(--fs-xl);
}

.story-panel p {
  font-size: var(--fs-lg);
  max-width: 70ch;
  margin: 0 auto;
}

.subscription-cta {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cta-content {
  position: relative;
  z-index: 1;
  color: var(--main-bg);
  max-width: 760px;
  padding: 4rem 0;
}

.cta-content p {
  max-width: 52ch;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.site-footer {
  min-height: 75svh;
  background: var(--accent);
  color: var(--main-bg);
  display: flex;
  align-items: stretch;
  padding: 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2.2rem;
  width: var(--container);
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-left p,
.footer-right p {
  margin: 0;
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  color: rgba(245, 244, 240, 0.9);
}

.footer-left ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.4rem;
}

.footer-left a {
  text-decoration: none;
  color: var(--main-bg);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
}

.footer-right {
  text-align: right;
  align-items: flex-end;
}

.footer-right img {
  width: 172px;
  margin-top: 1rem;
}

@media (max-width: 980px) {
  :root {
    --page-pad: 1.1rem;
  }

  .site-header {
    padding: 1rem 1.1rem;
  }

  .site-header .brand {
    width: 112px;
  }

  .site-header nav ul {
    gap: 0.9rem;
  }

  .site-header a {
    font-size: 0.6rem;
  }

  .hero-content {
    padding-bottom: 1.6rem;
  }

  .hero h1 {
    max-width: 18ch;
    font-size: clamp(0.9rem, 3.6vw, 1.05rem);
  }

  .product-scroll-section {
    padding: 6rem 0;
  }

  .product-pin-wrap {
    padding-left: 1.1rem;
  }

  .product-track {
    padding-right: 1.1rem;
  }

  .product-track::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    width: min(68vw, 300px);
    flex-shrink: 0;
  }

  .story-panel p {
    font-size: clamp(0.84rem, 3.1vw, 0.95rem);
  }

  .footer-grid {
    flex-direction: column;
    padding: 3.2rem 0 2.7rem;
  }

  .footer-right {
    text-align: left;
    align-items: flex-start;
    gap: 0.9rem;
  }
}
