/* The Hundredth Fruit — website (Docs/158). Self-hosted fonts, no third-party requests. */
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --lavender: #6c4fbf;
  --lavender-deep: #3b2a7a;
  --lavender-soft: #ece6fb;
  --cream: #fff9f1;
  --paper: #ffffff;
  --honey: #f4b545;
  --peach: #ffb38a;
  --rose: #f28ba8;
  --sky: #cfeaff;
  --leaf: #5fae74;
  --ink: #2b2140;
  --muted: #675d7c;
  --line: rgba(59, 42, 122, .12);
  --shadow: 0 18px 50px -20px rgba(59, 42, 122, .35);
  --radius: 26px;
  --display: "Fredoka", "Hiragino Maru Gothic ProN", "PingFang SC", "PingFang TC", "Apple SD Gothic Neo", "Noto Sans CJK SC", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "PingFang TC", "Apple SD Gothic Neo", "Noto Sans CJK SC", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--body); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--lavender); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4.2vw, 46px); }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
.kicker { font: 600 13px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); margin-bottom: 14px; }
.kicker--light { color: #ffe7b8; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head p:last-child { color: var(--muted); font-size: 18px; }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .35s, box-shadow .35s, color .35s; color: var(--ink); background: rgba(255, 249, 241, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top--hero:not(.is-solid) { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.top__inner { display: flex; align-items: center; gap: 24px; height: 68px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 20px/1 var(--display); color: inherit; text-decoration: none; white-space: nowrap; }
.brand__fruit { width: 30px; height: 30px; border-radius: 50%; background: url("/favicon.svg") center/cover; box-shadow: 0 4px 12px rgba(59, 42, 122, .3); flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: inherit; text-decoration: none; font: 500 15px/1 var(--display); opacity: .88; }
.nav a:hover { opacity: 1; }
.lang { position: relative; margin-left: 4px; }
.top:not(:has(.nav)) .lang { margin-left: auto; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid currentColor; font: 500 14px/1 var(--display); opacity: .9; }
.lang summary::-webkit-details-marker { display: none; }
.lang svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); min-width: 170px; }
.lang li a { display: block; padding: 9px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a[aria-current] { background: var(--lavender-soft); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #6d4f86 url("/media/provence-poster.webp") center/cover; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 901px) and (min-aspect-ratio: 4/3) {
  /* Wide screens: Puff walks on the right, the title sits on the left. */
  .hero__video { width: 132%; left: 0; right: auto; }
  .hero__shade { background: linear-gradient(90deg, rgba(34, 18, 64, .72) 0%, rgba(34, 18, 64, .35) 34%, rgba(34, 18, 64, 0) 55%), linear-gradient(180deg, rgba(40, 24, 70, .4) 0%, rgba(40, 24, 70, 0) 22%, rgba(40, 24, 70, 0) 70%, rgba(34, 18, 64, .55) 100%); }
  .hero { align-items: center; }
  .hero__content { padding: 60px 0 0; }
  .hero__tagline { max-width: 26em; }
}
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 24, 70, .42) 0%, rgba(40, 24, 70, 0) 22%, rgba(40, 24, 70, 0) 58%, rgba(34, 18, 64, .82) 100%); }
.hero__content { position: relative; z-index: 2; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 clamp(40px, 7vh, 80px); }
.hero__title { font-size: clamp(44px, 6.4vw, 92px); line-height: 1; margin: 0 0 16px; text-shadow: 0 6px 30px rgba(30, 10, 60, .45); max-width: 9.5ch; }
.hero__tagline { font-size: clamp(17px, 1.9vw, 21px); max-width: 34em; text-shadow: 0 2px 16px rgba(30, 10, 60, .55); margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge-soon { display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; padding: 13px 22px 13px 18px; border-radius: 16px; font: 500 16px/1 var(--display); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.badge-soon svg { width: 22px; height: 22px; fill: #fff; }
.btn { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 16px; font: 500 16px/1 var(--display); text-decoration: none; }
.btn--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(255, 255, 255, .08); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.hero__toggle { position: absolute; z-index: 3; right: max(16px, calc((100% - 1180px) / 2)); bottom: 28px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .2); cursor: pointer; display: grid; place-items: center; }
.hero__toggle span { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.hero__toggle.is-paused span { border: 0; width: 0; height: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.hero__sparkles i { position: absolute; z-index: 1; width: 6px; height: 6px; border-radius: 50%; background: #fff6c9; box-shadow: 0 0 12px 4px rgba(255, 233, 150, .7); opacity: 0; animation: float 9s infinite ease-in-out; }
.hero__sparkles i:nth-child(1) { left: 12%; top: 62%; animation-delay: 0s; }
.hero__sparkles i:nth-child(2) { left: 28%; top: 40%; animation-delay: 1.4s; }
.hero__sparkles i:nth-child(3) { left: 46%; top: 70%; animation-delay: 2.8s; }
.hero__sparkles i:nth-child(4) { left: 63%; top: 34%; animation-delay: 4.2s; }
.hero__sparkles i:nth-child(5) { left: 78%; top: 58%; animation-delay: 5.6s; }
.hero__sparkles i:nth-child(6) { left: 88%; top: 26%; animation-delay: 7s; }
.hero__sparkles i:nth-child(7) { left: 36%; top: 22%; animation-delay: 8.2s; }
@keyframes float { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 30% { opacity: .9; } 70% { opacity: .7; } 100% { opacity: 0; transform: translateY(-60px) scale(1); } }

/* Story */
.story { background: radial-gradient(1200px 500px at 85% 0%, var(--lavender-soft), transparent 60%), var(--cream); }
.story__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story__text p { font-size: 18px; color: #3e3555; }
.story__lead { font-family: var(--display); font-size: 21px !important; color: var(--lavender-deep) !important; }
.story__art { position: relative; min-height: 420px; }
.polaroid { position: absolute; background: var(--paper); padding: 10px 10px 34px; border-radius: 18px; box-shadow: var(--shadow); }
.polaroid img { border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; }
.polaroid--a { width: 88%; top: 0; right: 0; transform: rotate(2.5deg); }
.polaroid--b { width: 58%; bottom: 0; left: 0; transform: rotate(-4deg); }
.stats { list-style: none; padding: 0; margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats li { background: var(--paper); border-radius: var(--radius); padding: 26px 16px; text-align: center; box-shadow: 0 10px 30px -18px rgba(59, 42, 122, .4); }
.stats strong { display: block; font: 600 clamp(36px, 5vw, 54px)/1 var(--display); color: var(--lavender); }
.stats span { color: var(--muted); font-size: 15px; }

/* Provence */
.provence { background: linear-gradient(180deg, var(--cream), #f6efff); }
.provence__grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.provence__viewer { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; background: #3b2a7a; }
.timeshot { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.timeshot.is-on { opacity: 1; }
.timeshot img { width: 100%; height: 100%; object-fit: cover; }
.provence__tabs { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.provence__tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: 500 15px/1 var(--display); color: var(--ink); cursor: pointer; white-space: nowrap; }
.provence__tabs button[aria-selected="true"] { background: var(--lavender); color: #fff; }
.provence__text p:last-child { font-size: 18px; color: #3e3555; }

/* World */
.world { background: #f6efff; }
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-place { margin: 0; position: relative; border-radius: 22px; overflow: hidden; cursor: zoom-in; box-shadow: 0 14px 34px -22px rgba(59, 42, 122, .6); background: #ddd; aspect-ratio: 16/10; }
.card-place:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.card-place:last-child { grid-column: span 2; aspect-ratio: auto; }
.card-place img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card-place:hover img { transform: scale(1.05); }
.card-place figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .9); font: 500 14px/1.2 var(--display); color: var(--ink); }

/* Features */
.features { background: var(--cream); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--paper); border-radius: var(--radius); padding: 30px 28px; box-shadow: 0 12px 34px -24px rgba(59, 42, 122, .5); border: 1px solid var(--line); }
.feature h3 { font-size: 22px; }
.feature p { color: var(--muted); margin: 0; }
.feature__icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; background: var(--lavender-soft); }
.feature:nth-child(2) .feature__icon { background: #e4f4e8; } .feature:nth-child(3) .feature__icon { background: #e3f1ff; }
.feature:nth-child(4) .feature__icon { background: #fff0dc; } .feature:nth-child(5) .feature__icon { background: #ffe6ee; } .feature:nth-child(6) .feature__icon { background: #eef0f7; }
.feature__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--lavender-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Price */
.price { background: linear-gradient(180deg, var(--cream), #fff3e2); }
.price__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.price__grid p { font-size: 18px; color: #3e3555; }
.price__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pcard { background: var(--paper); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); box-shadow: 0 12px 34px -24px rgba(59, 42, 122, .5); }
.pcard span { display: block; color: var(--muted); font: 500 15px/1.3 var(--display); margin-bottom: 10px; }
.pcard strong { font: 600 clamp(24px, 3vw, 32px)/1.1 var(--display); color: var(--leaf); }
.pcard--full { background: linear-gradient(145deg, var(--lavender), var(--lavender-deep)); border: 0; }
.pcard--full span { color: #e6defd; } .pcard--full strong { color: #fff; }
.price__note { grid-column: 1 / -1; font-size: 14px !important; color: var(--muted) !important; margin: 0; }

/* Giving */
.giving { background: radial-gradient(900px 500px at 15% 20%, #2f8f9d 0%, transparent 60%), linear-gradient(135deg, #24507e, #2d2a6e 60%, #3b2a7a); color: #fff; }
.giving__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; max-width: 980px; }
.giving__inner p { color: #e7e6ff; font-size: 18px; }
.giving__partner { font-size: 15px !important; color: #bfc3ef !important; border-left: 3px solid var(--honey); padding-left: 14px; }
.giving__badge svg { width: clamp(120px, 16vw, 180px); height: auto; fill: none; stroke: #bfe6ff; stroke-width: 1.6; stroke-linecap: round; }
.giving__badge .heart { fill: var(--rose); stroke: none; transform-origin: 32px 40px; animation: beat 2.6s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } }

/* FAQ */
.faq { background: var(--cream); }
.faq__wrap { max-width: 820px; }
.qa { background: var(--paper); border-radius: 20px; border: 1px solid var(--line); margin-bottom: 12px; padding: 0 24px; }
.qa summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font: 500 18px/1.35 var(--display); position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--lavender); transition: transform .3s; }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { color: var(--muted); margin: 0 0 20px; }

/* Footer */
.foot { background: #241a3d; color: #d9d2ee; padding: 48px 0 40px; }
.foot__inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.foot__brand { display: flex; gap: 12px; align-items: center; }
.foot__brand strong { font: 600 19px/1.2 var(--display); color: #fff; }
.foot__brand p { margin: 2px 0 0; font-size: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot__links a { color: #fff; text-decoration: none; font-size: 15px; }
.foot__legal { grid-column: 1 / -1; font-size: 13px; color: #9f96bb; margin: 8px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; }

/* Documents */
.page-doc { background: var(--cream); }
.doc { padding: 120px 0 80px; }
.doc__wrap { max-width: 780px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 22px; margin-top: 1.8em; }
.doc .lead { font-size: 19px; color: #3e3555; }
.doc .updated, .doc .muted, .doc .note { color: var(--muted); font-size: 15px; }
.doc ul { padding-left: 1.2em; }
.back { display: inline-block; margin-bottom: 26px; text-decoration: none; font: 500 15px/1 var(--display); }
.mailcard { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; text-decoration: none; margin: 8px 0 18px; box-shadow: 0 12px 34px -24px rgba(59, 42, 122, .5); }
.mailcard span { display: block; color: var(--muted); font-size: 14px; } .mailcard strong { font: 600 22px/1.3 var(--display); color: var(--lavender); word-break: break-all; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); }
.lightbox::backdrop { background: rgba(20, 12, 40, .86); }
.lightbox img { border-radius: 18px; max-height: 82vh; width: auto; }
.lightbox p { color: #fff; text-align: center; font: 500 17px/1.3 var(--display); margin: 14px 0 0; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 26px; cursor: pointer; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .story__grid, .provence__grid, .price__grid { grid-template-columns: 1fr; }
  .story__art { min-height: 0; aspect-ratio: 4/3; }
  .feature-grid, .places { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top__inner { height: 60px; }
  .brand { font-size: 17px; }
  .lang summary span { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .feature-grid, .places, .price__cards { grid-template-columns: 1fr; }
  .card-place:first-child, .card-place:last-child { grid-column: auto; grid-row: auto; aspect-ratio: 16/10; }
  .giving__inner { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; }
  .provence__tabs button { padding: 8px 11px; font-size: 14px; }
  .hero__toggle { bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__sparkles, .giving__badge .heart { animation: none; display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .timeshot { transition: none; }
}
