/* ==========================================================================
   Link Garden — link-in-bio page
   Mobile-first single card on an animated garden gradient.
   Type: Bricolage Grotesque (display) + Figtree (text)
   Themes: light (default) / dark via [data-theme] on <html>
   ========================================================================== */

/* ---------- Tokens: light ---------- */
:root {
  --leaf: #1F7A4D;
  --leaf-dk: #145C39;
  --leaf-lt: #DDF3E4;
  --coral: #F0715A;
  --coral-lt: #FDE3DC;
  --butter: #FFD66B;
  --butter-lt: #FFF3CC;
  --lilac: #8F7CF0;
  --lilac-lt: #ECE8FE;
  --teal: #1A8C86;
  --teal-lt: #D8F1EF;
  --rose: #C24A6B;
  --rose-lt: #FBE1E8;

  --card: rgba(255, 252, 245, .9);
  --surface: #FFFFFF;
  --surface-2: #F6F2E8;
  --ink: #15241B;
  --ink-dim: #4A5A50;
  --line: rgba(21, 36, 27, .1);
  --accent-text: #145C39;
  --shadow-link: 0 1px 0 rgba(21, 36, 27, .06), 0 10px 24px -18px rgba(21, 36, 27, .55);
  --card-shadow: 0 40px 100px -40px rgba(6, 30, 20, .75);

  --g-base: #0F3B2C;
  --g-a: #2E9C67;
  --g-b: #F28C6B;
  --g-c: #F7C948;
  --g-d: #8F7CF0;
  --g-e: #1BA39C;
  --g-opacity: .9;

  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .9, .3, 1);
  --r: 20px;

  color-scheme: light;
}

/* ---------- Tokens: dark ---------- */
[data-theme="dark"] {
  --card: rgba(14, 24, 19, .86);
  --surface: #18271F;
  --surface-2: #1F3128;
  --ink: #EDF5EF;
  --ink-dim: #A9BDB0;
  --line: rgba(237, 245, 239, .12);
  --accent-text: #7FDCA6;
  --leaf-lt: rgba(63, 165, 107, .2);
  --coral-lt: rgba(240, 113, 90, .2);
  --butter-lt: rgba(255, 214, 107, .18);
  --lilac-lt: rgba(143, 124, 240, .22);
  --teal-lt: rgba(26, 140, 134, .24);
  --rose-lt: rgba(194, 74, 107, .24);
  --shadow-link: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 28px -18px rgba(0, 0, 0, .9);
  --card-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);

  --g-base: #06120D;
  --g-opacity: .55;

  color-scheme: dark;
}
/* No-JS fallback: follow the system theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --card: rgba(14, 24, 19, .86); --surface: #18271F; --surface-2: #1F3128;
    --ink: #EDF5EF; --ink-dim: #A9BDB0; --line: rgba(237, 245, 239, .12); --accent-text: #7FDCA6;
    --g-base: #06120D; --g-opacity: .55; color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-text);
  font-size: 16px; line-height: 1.55;
  color: var(--ink);
  background: var(--g-base);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding: 12px 12px calc(96px + env(safe-area-inset-bottom, 0px));
  transition: background-color .5s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 50;
  background: var(--butter); color: #15241B; font-weight: 700; padding: 10px 16px; border-radius: 99px;
}
.skip-link:focus { left: 10px; }

/* ---------- Animated gradient background ---------- */
.garden { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--g-base); transition: background-color .5s; }
.garden::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.3px);
  background-size: 22px 22px;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: var(--g-opacity);
  will-change: transform; transition: opacity .5s;
}
.blob--a { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: var(--g-a); animation: roam-a 22s ease-in-out infinite alternate; }
.blob--b { width: 46vmax; height: 46vmax; right: -14vmax; top: 8vh; background: var(--g-b); animation: roam-b 26s ease-in-out infinite alternate; }
.blob--c { width: 40vmax; height: 40vmax; left: 18vw; bottom: -20vmax; background: var(--g-c); animation: roam-c 24s ease-in-out infinite alternate; }
.blob--d { width: 36vmax; height: 36vmax; left: -10vmax; bottom: 4vh; background: var(--g-d); animation: roam-b 30s ease-in-out infinite alternate-reverse; }
.blob--e { width: 30vmax; height: 30vmax; right: 6vw; bottom: -8vmax; background: var(--g-e); animation: roam-a 28s ease-in-out infinite alternate-reverse; }

.leafy { position: absolute; width: 120px; color: rgba(189, 235, 201, .35); display: none; animation: sway 9s ease-in-out infinite; transform-origin: bottom center; }
.leafy--1 { left: 7vw; top: 12vh; width: 150px; }
.leafy--2 { right: 8vw; top: 58vh; width: 130px; animation-delay: -3s; color: rgba(255, 214, 107, .3); }
.leafy--3 { left: 14vw; bottom: 6vh; width: 90px; animation-delay: -5s; color: rgba(240, 113, 90, .3); }
.leafy--4 { right: 15vw; top: 6vh; width: 80px; animation-delay: -1.5s; }

.stickers { display: none; }

@keyframes roam-a { to { transform: translate(14vw, 12vh) scale(1.15); } }
@keyframes roam-b { to { transform: translate(-12vw, 16vh) scale(.9); } }
@keyframes roam-c { to { transform: translate(10vw, -14vh) scale(1.1); } }
@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg); } }

/* ---------- Card ---------- */
.card {
  position: relative;
  width: 100%; max-width: 480px; margin: 0 auto;
  background: var(--card);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 28px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  padding-bottom: 8px;
}

/* Cover + toolbar */
.cover { position: relative; height: 150px; }
.cover__art { width: 100%; height: 100%; }
.toolbar {
  position: absolute; inset: 14px 14px auto 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.toolbar__brand {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-display); font-weight: 700; font-size: .92rem; color: #fff;
  background: rgba(15, 59, 44, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 7px 12px 7px 9px; border-radius: 99px;
}
.toolbar__brand svg { width: 18px; height: 18px; color: var(--butter); }
.toolbar__actions { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .88); color: #15241B;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease), background .3s;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-6deg); }
.icon-btn svg { width: 21px; height: 21px; }
[data-theme="dark"] .icon-btn { background: rgba(14, 24, 19, .8); color: var(--butter); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Profile */
.profile { text-align: center; padding: 0 22px 6px; margin-top: -58px; position: relative; }
.avatar { position: relative; width: 116px; height: 116px; margin: 0 auto 14px; }
.avatar::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--butter), var(--coral), var(--lilac), var(--g-a), var(--butter));
  animation: turn 8s linear infinite;
}
.avatar::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--surface); }
.avatar svg { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; padding: 3px; }
.avatar__status {
  position: absolute; z-index: 2; right: -6px; bottom: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--leaf); color: #fff; padding: 3px 9px; border-radius: 99px;
  border: 2px solid var(--surface);
}
.profile__name {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display); font-weight: 800; font-size: 1.85rem; line-height: 1.1; letter-spacing: -.02em;
}
.profile__badge { width: 24px; height: 24px; }
.profile__handle { color: var(--accent-text); font-weight: 600; font-size: .95rem; margin-top: 2px; }
.profile__bio { color: var(--ink-dim); margin: 10px auto 14px; max-width: 36ch; font-size: .98rem; }
.profile__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.profile__meta li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--ink);
  background: var(--surface-2); padding: 6px 12px; border-radius: 99px;
}
.profile__meta svg { width: 15px; height: 15px; color: var(--leaf); }
[data-theme="dark"] .profile__meta svg { color: var(--accent-text); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  margin-bottom: 20px;
}
.stats li { padding: 12px 6px; display: flex; flex-direction: column; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; }
.stats span { font-size: .76rem; color: var(--ink-dim); }

/* Links */
.links { display: grid; gap: 12px; padding: 0 18px; }
.link {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 72px; padding: 12px 16px 12px 12px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-link);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.link:hover { transform: translateY(-3px); border-color: rgba(46, 156, 103, .45); box-shadow: 0 18px 34px -20px rgba(6, 30, 20, .7); }
.link:active { transform: translateY(0) scale(.99); }
.link__icon {
  flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: var(--leaf-lt); color: var(--leaf);
}
.link__icon svg { width: 24px; height: 24px; }
.link__icon--coral { background: var(--coral-lt); color: #C2452E; }
.link__icon--lilac { background: var(--lilac-lt); color: #5B45C9; }
.link__icon--butter { background: var(--butter-lt); color: #8A5A00; }
.link__icon--teal { background: var(--teal-lt); color: #116B66; }
.link__icon--rose { background: var(--rose-lt); color: var(--rose); }
[data-theme="dark"] .link__icon { color: #8FE3B3; }
[data-theme="dark"] .link__icon--coral { color: #FFA48F; }
[data-theme="dark"] .link__icon--lilac { color: #C2B6FF; }
[data-theme="dark"] .link__icon--butter { color: #FFD66B; }
[data-theme="dark"] .link__icon--teal { color: #7FE0D9; }
[data-theme="dark"] .link__icon--rose { color: #FF9DB7; }
.link__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.link__title { font-family: var(--f-display); font-weight: 700; font-size: 1.06rem; line-height: 1.25; }
.link__sub { font-size: .84rem; color: var(--ink-dim); }
.link__go { flex: none; width: 20px; height: 20px; color: var(--ink-dim); transition: transform .35s var(--ease), color .3s; }
.link:hover .link__go { transform: translate(3px, -3px); color: var(--accent-text); }

.link--featured {
  border: 0; color: #fff; min-height: 84px;
  background: linear-gradient(120deg, #0F4D2E 0%, #176B43 50%, #1F7A4D 100%);
  box-shadow: 0 20px 40px -20px rgba(20, 92, 57, .9);
  overflow: hidden;
}
.link--featured::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite;
}
.link--featured .link__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.link--featured .link__title { font-size: 1.16rem; }
.link--featured .link__sub { color: rgba(255, 255, 255, .85); }
.link__tag {
  flex: none; position: relative;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--butter); color: #15241B; padding: 4px 10px; border-radius: 99px;
}
.link__tag::after {
  content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--butter);
  animation: ping 2s ease-out infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes ping { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes turn { to { transform: rotate(360deg); } }

/* Products */
.shop { padding: 30px 18px 6px; scroll-margin-top: 16px; }
.shop__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.shop__head h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.shop__head p { font-size: .82rem; color: var(--ink-dim); }
.product {
  display: grid; grid-template-columns: 108px 1fr; gap: 14px;
  padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-link); margin-bottom: 12px;
}
.product__art { border-radius: 16px; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; align-self: start; }
.product__art img { width: 92%; height: auto; transition: transform .5s var(--ease); }
.product:hover .product__art img { transform: scale(1.06) rotate(-3deg); }
.product__art--mango { background: radial-gradient(circle at 50% 40%, #FFE6A8, #FFC56B); }
.product__art--podi { background: radial-gradient(circle at 50% 40%, #FFE0D6, #F5A68F); }
.product__art--herb { background: radial-gradient(circle at 50% 40%, #DFF5E6, #9ED7B3); }
.product__body { min-width: 0; display: flex; flex-direction: column; }
.product__tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); background: var(--leaf-lt); padding: 2px 8px; border-radius: 99px; margin-bottom: 4px;
}
.product__tag--coral { color: #B03A24; background: var(--coral-lt); }
.product__tag--lilac { color: #4C38B5; background: var(--lilac-lt); }
[data-theme="dark"] .product__tag--coral { color: #FFA48F; }
[data-theme="dark"] .product__tag--lilac { color: #C2B6FF; }
.product h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.product__desc { font-size: .84rem; color: var(--ink-dim); margin: 3px 0 10px; }
.product__row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.product__price { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.product__price span { font-family: var(--f-text); font-weight: 500; font-size: .78rem; color: var(--ink-dim); margin-left: 2px; }

.btn--wa {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 99px; background: #136B3F; color: #fff; font-weight: 700; font-size: .84rem;
  transition: transform .3s var(--ease), background .3s;
}
.btn--wa svg { width: 17px; height: 17px; }
.btn--wa:hover { background: #0F5532; transform: translateY(-2px); }

/* Offline card */
.offline {
  margin: 8px 18px 0; padding: 14px; border-radius: 22px;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, var(--butter-lt), var(--coral-lt));
  border: 1px solid var(--line);
}
.offline__date {
  flex: none; width: 62px; height: 66px; border-radius: 16px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  box-shadow: var(--shadow-link);
}
.offline__date span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #B03A24; }
[data-theme="dark"] .offline__date span { color: #FFA48F; }
.offline__date strong { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; }
.offline h2 { font-family: var(--f-display); font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.offline p { font-size: .82rem; color: var(--ink-dim); margin: 2px 0 4px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .86rem; color: var(--accent-text); border-bottom: 1.5px solid currentColor; }
.text-link svg { width: 15px; height: 15px; }

/* Social + footer */
.social { display: flex; justify-content: center; gap: 10px; padding: 26px 18px 8px; flex-wrap: wrap; }
.social a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.social a:hover { transform: translateY(-3px); background: var(--leaf); color: #fff; }
.social svg { width: 22px; height: 22px; }
.foot { text-align: center; padding: 14px 18px 18px; font-size: .78rem; color: var(--ink-dim); display: grid; gap: 2px; }
.foot p:last-child { font-weight: 600; }

/* Sticky CTA (mobile) */
.sticky {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  transition: transform .45s var(--ease), opacity .3s;
}
.sticky.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
.sticky__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 480px; margin: 0 auto; min-height: 56px; border-radius: 99px;
  background: var(--butter); color: #15241B; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .6);
}
.sticky__btn svg { width: 22px; height: 22px; }

/* Toast */
.toast {
  position: fixed; left: 50%; top: 18px; z-index: 60;
  translate: -50% -160%; opacity: 0;
  background: #15241B; color: #fff; font-weight: 600; font-size: .9rem;
  padding: 10px 18px; border-radius: 99px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  transition: translate .45s var(--ease), opacity .3s; pointer-events: none;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { translate: -50% 0; opacity: 1; }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  body { padding: 48px 24px 64px; }
  .card { border-radius: 34px; }
  .cover { height: 170px; }
  .profile { margin-top: -64px; }
  .avatar { width: 128px; height: 128px; }
  .profile__name { font-size: 2.1rem; }
  .sticky { display: none; }
}
@media (min-width: 1000px) {
  .leafy { display: block; }
  .stickers { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; }
  .sticker {
    position: absolute; display: flex; flex-direction: column; align-items: center; text-align: center;
    font-family: var(--f-display); font-weight: 700; color: #15241B; line-height: 1.2;
    background: #FFF8E6; border-radius: 24px; padding: 16px 20px; font-size: .95rem;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
    animation: bob 6s ease-in-out infinite;
  }
  .sticker strong { font-size: 1.6rem; font-weight: 800; color: #145C39; }
  .sticker--a { left: calc(50% - 470px); top: 22vh; rotate: -8deg; }
  .sticker--b { right: calc(50% - 470px); top: 30vh; rotate: 7deg; background: var(--butter); animation-delay: -2s; }
  .sticker--b strong { color: #15241B; }
  .sticker--c { left: calc(50% - 440px); top: 58vh; rotate: 6deg; padding: 10px; border-radius: 28px; background: #FFE6A8; animation-delay: -4s; }
  .sticker--c img { width: 104px; height: 104px; }
  .card { z-index: 1; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 380px) {
  .links, .shop { padding-inline: 12px; }
  .offline { margin-inline: 12px; }
  .product { grid-template-columns: 84px 1fr; gap: 12px; }
  .link__title { font-size: 1rem; }
  .btn--wa { width: 100%; justify-content: center; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
