/* Fonts are served from this site (no Google Fonts requests): Latin subsets, SIL Open Font License. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/instrument-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Layout: split hero (type left, arched family photo right), then a ripeness picker,
   the grove's varieties as a plain list, and the family note. */
:root {
  --bg: #f1f4e4;          /* pale pistachio, the flesh near the skin */
  --surface: #ffffff;
  --ink: #18260f;         /* deep skin green */
  --muted: #56634a;
  --leaf: #2f5a1c;        /* the headline green from the poster */
  --flesh: #d4e27f;       /* cut avocado */
  --pit: #8a5530;
  --pink: #d23a77;        /* her dress: the one loud colour */
  --line: #d6dcc2;
  --card: #18260f;         /* the dark ripeness card; stays dark in both themes */
  --card-ink: #f1f4e4;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11180c; --surface: #1a2414; --ink: #edf2dc; --muted: #a5b08f;
    --leaf: #b9d36a; --flesh: #c9d873; --pit: #c98a5c; --pink: #f0679e; --line: #2c3a22;
    --card: #26361c; --card-ink: #edf2dc;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11180c; --surface: #1a2414; --ink: #edf2dc; --muted: #a5b08f;
  --leaf: #b9d36a; --flesh: #c9d873; --pit: #c98a5c; --pink: #f0679e; --line: #2c3a22;
  --card: #26361c; --card-ink: #edf2dc;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
img { max-width: 100%; }
body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  padding-inline: clamp(16px, 4vw, 48px);
}
.wrap { max-width: 1120px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* nav */
nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.brand svg { width: 26px; height: 32px; flex: none; }
nav .links { display: flex; gap: 22px; font-weight: 500; font-size: .95rem; }
nav .links a { text-decoration: none; color: var(--muted); }
nav .links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  font: 600 .98rem var(--body); text-decoration: none;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--leaf); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: 24px 72px; }
.hero > * { min-width: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--muted); }
.hero h1 { margin-top: 14px; font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.05; color: var(--leaf); }
.hero h1 .big { display: block; font-weight: 800; font-size: clamp(3.4rem, 9vw, 6.8rem); line-height: .9; letter-spacing: -0.045em; color: var(--ink); }
.hero h1 .big em { font-style: normal; color: var(--leaf); }
.script { font-family: var(--script); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.05; color: var(--pink); margin-top: 22px; display: flex; align-items: center; gap: 12px; transform: rotate(-2deg); transform-origin: left; }
.script svg { width: 34px; height: 42px; flex: none; }
.lede { margin-top: 26px; max-width: 46ch; color: var(--muted); font-size: 1.12rem; }
.cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.photo { position: relative; justify-self: end; width: 100%; max-width: 470px; }
.photo .frame { aspect-ratio: 1024 / 1536; max-width: 100%; border-radius: 28px; overflow: hidden; background: var(--flesh); }
.photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.chip {
  position: absolute; left: -22px; bottom: 34px; background: var(--surface); color: var(--ink);
  border-radius: 18px; padding: 14px 18px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 18px 40px -18px rgba(24, 38, 15, .45); font-size: .9rem; line-height: 1.3;
}
.chip b { display: block; font-family: var(--display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.chip .dot { width: 14px; height: 14px; border-radius: 50%; background: #3b2a1e; box-shadow: 0 0 0 4px var(--flesh); flex: none; }

/* sections */
section.block { padding-block: 72px; border-top: 1px solid var(--line); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 36px; }
.head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; line-height: 1; max-width: 16ch; }
.head p { max-width: 44ch; color: var(--muted); }

/* ripeness picker */
.ripe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: stretch; }
.stages { display: grid; gap: 10px; }
.stage {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; text-align: left;
  width: 100%; padding: 14px 18px; border-radius: 16px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid var(--line); font: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.stage:hover { border-color: var(--muted); }
.stage[aria-pressed="true"] { background: var(--surface); border-color: var(--ink); }
.swatch { width: 44px; height: 44px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; box-shadow: inset 0 0 0 1px var(--line); }
.stage strong { display: block; font-weight: 600; }
.stage span.sub { color: var(--muted); font-size: .92rem; }
.stage .days { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.1rem; white-space: nowrap; }
.verdict { background: var(--card); color: var(--card-ink); border-radius: 28px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; justify-content: space-between; min-height: 320px; }
.verdict .eyebrow { color: var(--flesh); }
.verdict h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.02; }
.verdict p { max-width: 44ch; opacity: .85; }
.verdict .use { font-family: var(--script); font-size: 1.8rem; color: var(--flesh); }

/* varieties */
.varieties { list-style: none; margin: 0; padding: 0; }
.varieties li { display: grid; grid-template-columns: 1.1fr 2fr 1fr; gap: 12px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.varieties li > * { min-width: 0; }
.varieties h3 { font-size: 1.6rem; font-weight: 800; }
.varieties p { color: var(--muted); max-width: 52ch; }
.season { font-variant-numeric: tabular-nums; font-weight: 600; justify-self: end; text-align: right; }
.season small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }

/* family */
.family { display: grid; gap: clamp(40px, 6vw, 72px); }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(28px, 5vw, 64px); align-items: start; }
.quotes figure { margin: 0; }
.quote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.7vw, 2.05rem); line-height: 1.18; letter-spacing: -0.02em; }
.quote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--pink); font-weight: 800; }
.signed { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.signed img { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.sign { font-family: var(--script); font-size: 1.7rem; line-height: 1.1; color: var(--leaf); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 64px; align-items: end; padding-top: 32px; border-top: 1px solid var(--line); }
.story .text { display: grid; gap: 16px; color: var(--muted); max-width: 62ch; }
.facts { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.facts div { color: var(--ink); }
.facts b { display: block; font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { font-size: .88rem; color: var(--muted); }
.table-photo { margin: 0; grid-column: 1 / -1; }
.table-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.table-photo figcaption { margin-top: 12px; font-family: var(--script); font-size: 1.6rem; line-height: 1.1; color: var(--leaf); }
@media (min-width: 861px) {
  .story.with-photo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
  .story.with-photo .table-photo { grid-column: 1; grid-row: 1 / span 2; }
  .story.with-photo .facts { align-self: start; }
}

/* the game: a light card in the game's own colours (the game's art carries the look) */
.game {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  background: linear-gradient(165deg, #fbf6dc, #e2edbd); color: #18260f;
  border-radius: 32px; padding: clamp(24px, 5vw, 56px); overflow: hidden;
}
.game > * { min-width: 0; }
.game .title { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.game .title img { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: 0 10px 24px -12px rgba(24, 38, 15, .5); }
.game h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: .95; }
.game h2 span { display: block; color: #d9534f; }
.game .eyebrow { color: #56634a; }
.game .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.game .badge { background: #d23a77; color: #fff; border-radius: 999px; padding: 4px 10px; letter-spacing: .08em; }
.game .lede { color: #3d4a31; margin-top: 20px; }
.features { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.features li { padding-left: 30px; position: relative; font-size: .97rem; line-height: 1.4; color: #3d4a31; }
.features li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 22px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'%3E%3Cpath d='M13 1C7 1 3 9 2 17c-1 8 4 14 11 14s12-6 11-14C23 9 19 1 13 1z' fill='%232f5a1c'/%3E%3Cpath d='M13 7c-4 0-7 6-7.5 11-.5 5 3 9 7.5 9s8-4 7.5-9C20 13 17 7 13 7z' fill='%23d4e27f'/%3E%3Ccircle cx='13' cy='19' r='4.6' fill='%238a5530'/%3E%3C/svg%3E"); }
.features b { color: #18260f; display: block; }
.join { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(24, 38, 15, .15); }
.join h3 { font-size: 1.35rem; font-weight: 800; }
.join p { color: #3d4a31; margin-top: 6px; max-width: 48ch; }
.game .btn { background: #18260f; color: #fbf6dc; }
.game .btn:hover { background: #2f5a1c; }
.join .btn { margin-top: 16px; }
.join p.feedback { margin-top: 18px; font-size: .95rem; }
.join p.feedback a { color: #18260f; font-weight: 600; }
.phones { position: relative; display: flex; justify-content: center; padding-block: 12px 24px; }
.phones img.phone { width: min(48%, 250px); height: auto; filter: drop-shadow(0 22px 30px rgba(24, 38, 15, .35)); }
.phones img.phone:first-child { transform: rotate(-5deg) translate(14px, 18px); }
.phones img.phone:nth-child(2) { transform: rotate(4deg) translate(-14px, -6px); z-index: 1; }
.phones .mascot { position: absolute; z-index: 2; width: clamp(110px, 16vw, 170px); height: auto; right: -6px; bottom: -8px; filter: drop-shadow(0 12px 16px rgba(24, 38, 15, .3)); }


footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (max-width: 860px) {
  .hero, .ripe, .quotes, .story, .game { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .game .btn { padding: 11px 16px; font-size: .93rem; }
  .photo { justify-self: center; }
  .chip { left: 12px; }
  nav .links { display: none; }
  .varieties li { grid-template-columns: 1fr auto; }
  .varieties p { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .photo .frame { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 .big { animation: rise .7s .08s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}

/* language switch (EN / PT), kept visible on phones where the other links hide */
.lang { display: flex; gap: 2px; font-weight: 600; font-size: .85rem; letter-spacing: .04em; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 3px; }
.lang a { text-decoration: none; color: var(--muted); padding: 4px 10px; border-radius: 999px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }
nav .right { display: flex; align-items: center; gap: 22px; }

/* Chinese pages: the self-hosted fonts are Latin only, so Chinese text uses
   the system's Chinese fonts (and a brush-style Kai font for the script lines). */
html:lang(zh-Hans) {
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC";
  --cjk-script: "Kaiti SC", "STKaiti", "KaiTi", "AR PL UKai CN";
}
html:lang(zh-Hant) {
  --cjk: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Source Han Sans TC";
  --cjk-script: "Kaiti TC", "BiauKai", "DFKai-SB", "AR PL UKai TW";
}
html:lang(zh) {
  --display: "Bricolage Grotesque", var(--cjk), sans-serif;
  --body: "Instrument Sans", var(--cjk), system-ui, sans-serif;
  --script: "Caveat", var(--cjk-script), var(--cjk), cursive;
}
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .quote, :lang(zh) .hero h1 .big { letter-spacing: 0; }
:lang(zh) body { line-height: 1.75; }
:lang(zh) .hero h1 { line-height: 1.3; }
:lang(zh) .script { font-weight: 400; }
@media (max-width: 420px) { .lang a { padding: 4px 8px; } }

/* footer links: the game's privacy policy (in the page's language) and contact */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--muted); text-underline-offset: 3px; }
.foot-links a:hover { color: var(--ink); }
