/* Wild Fern — florist. Playfair Display + Figtree. Cream, petal, berry, leaf. */
:root {
  --bg: #fbf5ee;
  --petal: #f5e0dc;
  --berry: #5b1a30;
  --ink: #2c1820;
  --muted: #7c6a6e;
  --line: rgba(44, 24, 32, 0.14);
  --accent: #d5627a;
  --leaf: #4d6b50;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'Figtree', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--berry); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding-inline: var(--pad); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf); margin-bottom: 20px; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 76px); line-height: 1.04; letter-spacing: -0.02em; max-width: 14ch; }
em { font-style: italic; color: var(--accent); }

/* Motion primitives */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > img { clip-path: circle(0% at 50% 60%); transition: clip-path 1.9s var(--ease) var(--d, 0ms) !important; }
.js [data-reveal="clip"].is-in > img { clip-path: circle(120% at 50% 60%); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.w-i { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform 1.3s var(--ease); }
.is-in .w-i { transform: none; }
[hidden] { display: none !important; }

.media { position: relative; overflow: hidden; background: var(--petal); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media img[data-parallax] { position: absolute; left: 0; top: -8%; height: 116%; will-change: transform; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 17px 30px; border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer; border: 0; transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn--berry { background: var(--berry); color: var(--bg); }
.btn--berry:hover { background: var(--accent); }
.btn--cream { background: var(--bg); color: var(--berry); }
.btn--cream:hover { background: var(--accent); color: #fff; }
.link { font-weight: 600; padding-bottom: 4px; border-bottom: 1.5px solid currentColor; transition: color 0.4s var(--ease); }
.link:hover { color: var(--accent); }

/* Ribbon */
.ribbon { overflow: hidden; background: var(--berry); color: var(--petal); padding: 9px 0; }
.ribbon__track { display: flex; align-items: center; gap: 28px; width: max-content; padding-left: 28px; animation: marquee 44s linear infinite; }
.ribbon span { font-size: 14px; font-weight: 500; white-space: nowrap; }
.ribbon i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Header */
.header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 18px var(--pad); background: rgba(251, 245, 238, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: padding 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.header.is-scrolled { padding-block: 10px; box-shadow: 0 1px 0 var(--line); }
.brand { font-family: var(--display); font-weight: 500; font-size: 32px; letter-spacing: -0.02em; line-height: 1; }
.brand i { font-style: italic; color: var(--accent); }
.nav { display: flex; gap: clamp(14px, 2.2vw, 32px); }
.nav a, .header__right > a:first-child { font-weight: 500; font-size: 15px; position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3c5-4 5 4 10 0s5 4 10 0 5 4 10 0 5 4 10 0' fill='none' stroke='%23d5627a' stroke-width='1.500'/%3E%3C/svg%3E") repeat-x left / 40px 6px; opacity: 0; transform: translateY(3px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.nav a:hover::after { opacity: 1; transform: none; }
.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.bag { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--petal); transition: background 0.4s var(--ease); }
.bag:hover { background: var(--accent); color: #fff; }
.bag svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.bag span { position: absolute; right: -4px; top: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--berry); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.bag.is-bumped { animation: bump 0.6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.22) rotate(-8deg); } }
.burger { display: none; width: 46px; height: 46px; background: none; border: 0; cursor: pointer; position: relative; justify-self: end; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.nav-open .burger span:first-child { top: 23px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 23px; transform: rotate(-45deg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(40px, 6vw, 90px) clamp(72px, 9vw, 130px); }
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 8.4vw, 140px); line-height: 0.96; letter-spacing: -0.03em; }
.hero__lede { margin-top: 28px; max-width: 44ch; color: var(--muted); font-size: 19px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 36px; }
.hero__visual { position: relative; padding: 0 0 14% 16%; }
.hero__a { aspect-ratio: 4 / 5; border-radius: 6px; rotate: 2deg; }
.hero__b { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border-radius: 6px; rotate: -5deg; outline: 10px solid var(--bg); }
.hero__tag { position: absolute; right: -2%; top: 8%; background: var(--bg); padding: 12px 18px; border-radius: 4px; font-size: 13px; color: var(--muted); rotate: 5deg; box-shadow: 0 18px 30px -20px rgba(44, 24, 32, 0.5); }
.hero__tag b { display: block; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 20px; color: var(--berry); }
.petal { position: absolute; width: 34px; height: 34px; fill: var(--accent); opacity: 0.75; animation: fall 9s ease-in-out infinite; }
.petal--1 { left: 4%; top: 6%; }
.petal--2 { right: 8%; bottom: 20%; width: 24px; fill: #eda7b3; animation-delay: -3s; }
.petal--3 { left: 40%; top: -4%; width: 20px; fill: var(--leaf); animation-delay: -6s; }
@keyframes fall { 0%, 100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(18px) rotate(16deg); } }

/* Shop */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > p { max-width: 36ch; color: var(--muted); }
.shop { padding-bottom: clamp(80px, 10vw, 150px); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.product figure { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--petal); border-radius: 6px; }
.product img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.product:hover img { transform: scale(1.06) rotate(1deg); }
.product figure span { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 600; }
.product__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.product h3 { font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.1; letter-spacing: -0.01em; }
.product b { font-weight: 600; font-size: 15px; white-space: nowrap; }
.product p { font-size: 15px; color: var(--muted); margin-top: 2px; }
.product button { margin-top: 14px; width: 100%; padding: 13px; border-radius: 999px; border: 1.5px solid var(--berry); background: none; color: var(--berry); font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.product button:hover { background: var(--berry); color: var(--bg); }

/* Occasions */
.occasions { padding-bottom: clamp(80px, 10vw, 150px); }
.bigs li { border-top: 1px solid var(--line); }
.bigs li:last-child { border-bottom: 1px solid var(--line); }
.bigs a { display: grid; grid-template-columns: 1fr auto 40px; align-items: center; gap: 24px; padding: clamp(14px, 1.8vw, 24px) 0; transition: padding 0.7s var(--ease), color 0.5s var(--ease); }
.bigs span { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6.4vw, 104px); line-height: 1.05; letter-spacing: -0.03em; transition: font-style 0s, transform 0.7s var(--ease); }
.bigs small { font-size: 15px; color: var(--muted); opacity: 0; transform: translateX(-12px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.bigs svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform 0.6s var(--ease); }
.bigs a:hover { padding-left: 18px; color: var(--accent); }
.bigs a:hover span { font-style: italic; }
.bigs a:hover small { opacity: 1; transform: none; }
.bigs a:hover svg { transform: translate(4px, -4px); }

/* Weekly */
.weekly { background: var(--berry); color: var(--bg); padding-block: clamp(80px, 10vw, 150px); }
.weekly .eyebrow { color: #f0b3bd; }
.weekly em { color: #f0b3bd; }
.weekly__inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.weekly__media { aspect-ratio: 4 / 5; border-radius: 6px; background: #6d2540; }
.weekly__lede { margin-top: 24px; max-width: 44ch; opacity: 0.8; }
.plans { margin-top: 36px; }
.plans__tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(251, 245, 238, 0.12); }
.plans__tabs button { padding: 11px 24px; border-radius: 999px; border: 0; background: none; color: var(--bg); font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.plans__tabs button.is-active { background: var(--bg); color: var(--berry); }
.plan { min-height: 190px; padding-top: 26px; }
.plan.is-shown { animation: rise 0.8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.plan__price { font-family: var(--display); font-size: clamp(64px, 7vw, 108px); line-height: 1; letter-spacing: -0.03em; }
.plan__price small { font-family: var(--sans); font-size: 15px; letter-spacing: 0; margin-left: 12px; opacity: 0.7; }
.plan > p:last-child { margin-top: 12px; max-width: 40ch; opacity: 0.8; }

/* Promise */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(80px, 10vw, 150px); }
.promise svg { width: 50px; height: 50px; fill: none; stroke: var(--leaf); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.8s var(--ease); }
.promise article:hover svg { transform: rotate(-8deg) scale(1.08); }
.promise h3 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: -0.01em; margin: 20px 0 8px; }
.promise p { color: var(--muted); max-width: 32ch; }

/* Events */
.events { position: relative; overflow: hidden; color: #fff; padding-block: clamp(100px, 14vw, 220px); }
.events__media { position: absolute; inset: 0; background: var(--ink); }
.events__media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.events__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 14, 20, 0.86), rgba(30, 14, 20, 0.25)); }
.events__inner { position: relative; }
.events .eyebrow { color: #f0b3bd; }
.events em { color: #f0b3bd; }
.events__title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6.4vw, 104px); line-height: 1; letter-spacing: -0.025em; max-width: 14ch; }
.events__inner > p:not(.eyebrow) { margin: 26px 0 34px; max-width: 46ch; opacity: 0.88; }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; padding-block: clamp(80px, 10vw, 150px); }
.info { margin-top: 36px; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info dt { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf); padding-top: 3px; }
.info a { border-bottom: 1px solid var(--line); }
.letter { background: var(--petal); border-radius: 6px; padding: clamp(28px, 4vw, 56px); rotate: 1.2deg; }
.letter h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; color: var(--berry); }
.letter > p:first-of-type { margin: 12px 0 26px; color: var(--muted); max-width: 38ch; }
.letter__row { position: relative; }
.letter input { width: 100%; padding: 18px 70px 18px 24px; border-radius: 999px; border: 1.5px solid var(--berry); background: var(--bg); font-size: 16px; transition: box-shadow 0.4s var(--ease); }
.letter input:focus { outline: none; box-shadow: 0 0 0 4px rgba(213, 98, 122, 0.3); }
.letter button { position: absolute; right: 6px; top: 6px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--berry); color: var(--bg); cursor: pointer; display: grid; place-items: center; transition: background 0.4s var(--ease), transform 0.5s var(--ease); }
.letter button:hover { background: var(--accent); transform: rotate(-20deg); }
.letter button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.letter__note { margin-top: 14px; font-family: var(--display); font-style: italic; font-size: 19px; color: var(--berry); min-height: 1.6em; opacity: 0; transition: opacity 0.6s var(--ease); }
.letter__note.is-shown { opacity: 1; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 32px; font-size: 14px; color: var(--muted); }
.footer .brand { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 26px; font-weight: 500; }
.footer nav a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1020px) {
  .header { grid-template-columns: 1fr auto auto; }
  .brand { grid-column: 1; grid-row: 1; }
  .header__right > a:first-child { display: none; }
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 6px var(--pad) 20px; background: var(--bg); box-shadow: 0 30px 40px -30px rgba(44, 24, 32, 0.4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0.4s; }
  .nav a { font-family: var(--display); font-size: 30px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .hero, .weekly__inner, .visit { grid-template-columns: 1fr; }
  .hero__visual { width: min(88%, 460px); margin-inline: auto; }
  .products { grid-template-columns: 1fr 1fr; }
  .promise { grid-template-columns: 1fr; }
  .bigs small { display: none; }
  .bigs a { grid-template-columns: 1fr 30px; }
  .weekly__media { max-width: 420px; }
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .plans__tabs button { padding-inline: 16px; }
  .hero__tag { right: 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@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; }
}
