/* Eden Match website. A restored garden in morning light: meadow greens, sky, sunlit gold and parchment. */

@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --leaf: #3f9a37;
  --leaf-deep: #2a6e23;
  --leaf-dark: #1d4f18;
  --meadow: #eef7dc;
  --meadow-2: #e1f0c6;
  --sky: #e3f3fb;
  --parchment: #fff8e6;
  --parchment-2: #fbeccb;
  --gold: #f2c240;
  --gold-deep: #c58f1b;
  --orange: #ec8a24;
  --ink: #233a1d;
  --ink-soft: #46613c;
  --line: rgba(197, 143, 27, .35);
  --radius: 22px;
  --shadow: 0 2px 0 rgba(197, 143, 27, .55), 0 14px 34px rgba(36, 70, 24, .14);
  --wrap: 1120px;
  --display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--meadow);
  color: var(--ink);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-deep); text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; color: var(--leaf-dark); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding: 0; margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--parchment); font-weight: 700; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ header and footer */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 248, 230, .9);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 248, 230, .78); backdrop-filter: blur(10px) saturate(1.2); } }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: block; flex: none; }
.brand-logo { width: 116px; }
.site-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: none; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font: 600 .98rem/1 var(--display); color: var(--leaf-dark);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--meadow-2); color: var(--leaf-deep); }
/* Small phones: the logo and three links fit on one line (the gardens are the first thing below the hero anyway). */
@media (max-width: 440px) {
  .brand-logo { width: 92px; }
  .site-nav a { padding: 8px 9px; font-size: .92rem; }
  .site-nav .nav-gardens { display: none; }
}

.site-footer { background: var(--leaf-dark); color: #e9f3dd; padding: 44px 0 26px; margin-top: 0; }
.site-footer a { color: #fff3c7; }
.footer-row { display: grid; gap: 28px; }
.footer-logo { width: 150px; margin-bottom: 10px; }
.footer-brand p { margin-bottom: .4em; }
.footer-small { font-size: .9rem; opacity: .85; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .82rem; opacity: .75; }
@media (min-width: 720px) {
  .footer-row { grid-template-columns: 1.4fr 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------ shared pieces */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.eyebrow {
  display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px;
  background: var(--parchment); border: 1px solid var(--line);
  font: 600 .8rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep);
}
.section-lead { max-width: 62ch; color: var(--ink-soft); font-size: 1.1rem; }
.button, .store {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px 10px; border-radius: 999px;
  background: var(--leaf); border-bottom: 5px solid var(--leaf-deep); color: #fff;
  font: 700 1.1rem/1.1 var(--display); text-decoration: none; text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}
.button:hover { background: #46a83d; color: #fff; }
.text-link { font-weight: 700; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Store buttons: not the official badges (those need the stores' own artwork); a plain pair until then. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store { flex-direction: column; gap: 2px; min-width: 186px; padding: 10px 22px 8px; }
.store-small { font: 600 .74rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.store-big { font: 700 1.2rem/1.1 var(--display); }
.store-soon { background: rgba(35, 58, 29, .82); border-bottom-color: rgba(0, 0, 0, .35); cursor: default; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; min-height: min(92vh, 900px); display: grid; align-items: center; padding: 48px 0 64px; text-align: center; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 250, 228, .72), rgba(255, 250, 228, .25) 60%, transparent 80%),
    linear-gradient(to bottom, rgba(255, 250, 228, .15), rgba(238, 247, 220, 0) 55%, var(--meadow) 99%);
}
.hero-inner { display: grid; justify-items: center; }
.hero-logo { width: min(520px, 84vw); margin-bottom: 4px; filter: drop-shadow(0 10px 18px rgba(80, 60, 10, .25)); }
.hero h1 { font-size: clamp(1.75rem, 5.4vw, 3rem); max-width: 18ch; color: var(--leaf-dark); text-shadow: 0 2px 0 rgba(255, 255, 255, .6); }
.hero-lead { max-width: 52ch; font-size: clamp(1.02rem, 2.6vw, 1.2rem); color: var(--ink); margin-bottom: 22px; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.piece-row { list-style: none; display: flex; gap: clamp(6px, 2vw, 16px); margin-top: 30px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 248, 230, .78); box-shadow: var(--shadow); }
.piece-row img { width: clamp(34px, 8vw, 54px); }

/* ------------------------------------------------------------------ how it plays */
.how { background: var(--meadow); }
.how .wrap { text-align: center; }
.steps { list-style: none; display: grid; gap: 18px; margin-top: 30px; counter-reset: step; }
.step {
  position: relative; padding: 26px 20px 20px; border-radius: var(--radius);
  background: var(--parchment); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 50%; translate: -50% 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--leaf-dark); font: 700 1rem/1 var(--display);
  box-shadow: 0 2px 0 var(--gold-deep);
}
.step-art { height: 108px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.step-art img { max-height: 104px; width: auto; }
.step-pieces img { max-height: 64px; margin: 0 -4px; }
.step p { color: var(--ink-soft); margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------------ before and after */
.restore-section { background: linear-gradient(var(--sky), var(--meadow)); }
.restore-layout { display: grid; gap: 30px; align-items: center; }
.restore-copy p { color: var(--ink-soft); font-size: 1.08rem; }
.restore-copy .hint { font-size: .98rem; }
.restore {
  --pos: 50%;
  position: relative; width: min(460px, 100%); margin-inline: auto; aspect-ratio: 4 / 5;
  border-radius: 28px; overflow: hidden; box-shadow: 0 3px 0 var(--gold-deep), 0 24px 50px rgba(30, 60, 20, .25);
  border: 4px solid var(--parchment);
}
.restore img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The garden before restoring, as the game shows it: faded, grey and dim. */
.restore-before { filter: grayscale(.9) sepia(.25) brightness(.62) contrast(.92); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.restore-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; translate: -2px 0; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.restore-line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%;
  background: var(--parchment) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6' fill='none' stroke='%232a6e23' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 2px 0 var(--gold-deep), 0 6px 14px rgba(0, 0, 0, .25);
}
.restore-tag { position: absolute; bottom: 14px; padding: 4px 12px; border-radius: 999px; font: 700 .85rem/1.3 var(--display); pointer-events: none; }
.restore-tag-before { left: 14px; background: rgba(40, 40, 40, .7); color: #fff; }
.restore-tag-after { right: 14px; background: var(--parchment); color: var(--leaf-deep); }
.restore-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.restore-range:focus-visible + .restore-line, .restore:focus-within .restore-line::after { outline: 3px solid var(--orange); outline-offset: 2px; }
html:not(.js) .restore-range { display: none; }
@media (min-width: 900px) { .restore-layout { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ------------------------------------------------------------------ twelve gardens */
.gardens { background: var(--meadow); padding-bottom: clamp(40px, 7vw, 80px); }
.garden-strip {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 62vw);
  gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 26px max(16px, calc((100vw - var(--wrap)) / 2)) 24px; scroll-padding-inline: max(16px, calc((100vw - var(--wrap)) / 2));
  scrollbar-width: thin; scrollbar-color: var(--leaf) transparent;
}
.garden-card {
  position: relative; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4;
  box-shadow: var(--shadow); border: 3px solid var(--parchment); background: var(--meadow-2);
}
.garden-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.garden-card div { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(16, 40, 12, .82)); color: #fff; }
.garden-card span { font: 600 .78rem/1.2 var(--display); letter-spacing: .03em; color: #ffe9a8; }
.garden-card h3 { color: #fff; font-size: 1.25rem; margin: 2px 0 0; }
@media (hover: hover) { .garden-card:hover img { transform: scale(1.05); } }
@media (min-width: 720px) { .garden-strip { grid-auto-columns: 270px; } }

/* ------------------------------------------------------------------ power-ups */
.powers { background: linear-gradient(var(--meadow), var(--parchment-2)); text-align: center; }
.power-grid { list-style: none; display: grid; gap: 18px; margin-top: 30px; grid-template-columns: repeat(2, 1fr); }
.power { padding: 22px 14px 16px; border-radius: var(--radius); background: var(--parchment); border: 1px solid var(--line); box-shadow: var(--shadow); }
.power img { width: auto; max-height: 96px; margin: 0 auto 10px; }
.power .how { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--meadow-2); font: 600 .82rem/1.3 var(--display); color: var(--leaf-deep); }
.power p:last-child { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.combo { margin-top: 24px; font: 600 1.1rem/1.4 var(--display); color: var(--gold-deep); }
.boosters { margin-top: 28px; padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .55); border: 1px dashed var(--line); }
.boosters-title { font: 600 1.05rem/1.3 var(--display); color: var(--leaf-dark); }
.boosters ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.boosters li { display: grid; justify-items: center; gap: 6px; font-weight: 600; font-size: .92rem; }
.boosters img { height: 58px; width: auto; }
@media (min-width: 900px) { .power-grid { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------------ Eden Life */
.life { background: linear-gradient(var(--parchment-2), var(--meadow)); }
.life-layout { display: grid; gap: 26px; align-items: center; }
.life-copy p { color: var(--ink-soft); font-size: 1.08rem; }
.life-copy .ticks { color: var(--ink); }
/* A little garden made of the game's own objects, standing on a lawn. */
.life-scene { position: relative; width: min(520px, 100%); margin-inline: auto; aspect-ratio: 1 / .86; }
.life-scene::before {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 3%; height: 54%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #9ed36a, #6fb447 62%, #5aa03b 78%, rgba(90, 160, 59, 0) 80%);
}
.life-scene img { position: absolute; height: auto; filter: drop-shadow(0 8px 6px rgba(30, 60, 20, .25)); }
.ls-cherry { width: 40%; left: 8%; bottom: 34%; }
.ls-olive { width: 36%; right: 6%; bottom: 36%; }
.ls-well { width: 22%; left: 40%; bottom: 40%; }
.ls-wheat { width: 18%; left: 14%; bottom: 14%; }
.ls-pumpkins { width: 17%; right: 18%; bottom: 13%; }
.ls-rabbit { width: 17%; left: 31%; bottom: 10%; }
.ls-lamb { width: 19%; left: 50%; bottom: 17%; }
.ls-duck { width: 12%; right: 7%; bottom: 27%; }
.ls-deer { width: 15%; left: 2%; bottom: 26%; }
.wonders { margin-top: clamp(40px, 7vw, 70px); text-align: center; }
.wonders > p { max-width: 64ch; margin-inline: auto; color: var(--ink-soft); }
.wonder-row { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.wonder-row li { display: grid; justify-items: center; align-content: end; gap: 8px; padding: 16px 10px 14px; border-radius: var(--radius); background: rgba(255, 248, 230, .8); border: 1px solid var(--line); }
.wonder-row img { max-height: 130px; width: auto; }
.wonder-row span { font: 600 .92rem/1.25 var(--display); color: var(--leaf-dark); }
@media (min-width: 640px) { .wonder-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .life-layout { grid-template-columns: 1fr 1fr; } .wonder-row { grid-template-columns: repeat(5, 1fr); } }

/* ------------------------------------------------------------------ scripture */
.word { background: var(--leaf-dark); color: #f4f9ec; text-align: center; }
.word h2 { color: #fff; }
.word .section-lead { margin-inline: auto; color: #d7e8c6; }
.word .eyebrow { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #ffe39a; }
.verses { display: grid; gap: 18px; margin-top: 30px; text-align: left; }
.verse {
  margin: 0; padding: 26px 24px 20px; border-radius: 18px; color: var(--ink);
  background: linear-gradient(var(--parchment), var(--parchment-2)); box-shadow: 0 3px 0 var(--gold-deep), 0 16px 34px rgba(0, 0, 0, .25);
}
.verse p { font: 600 1.08rem/1.5 var(--display); color: #4a3412; }
.verse cite { font-style: normal; font-weight: 700; color: var(--gold-deep); }
.translation { margin-top: 18px; font-size: .88rem; color: #bcd3a8; }
@media (min-width: 900px) { .verses { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------ families and call to action */
.family { background: var(--meadow); }
.family-layout { display: grid; gap: 24px; align-items: center; }
.family-mascot { width: min(260px, 60vw); margin-inline: auto; }
.family .ticks { margin: 10px 0 18px; font-size: 1.06rem; }
@media (min-width: 760px) { .family-layout { grid-template-columns: 300px 1fr; gap: 48px; } }

.cta { background: linear-gradient(var(--meadow), var(--sky)); text-align: center; }
.cta-inner { display: grid; justify-items: center; }
.cta-seed { width: 76px; margin-bottom: 8px; }
.cta p { color: var(--ink-soft); font-size: 1.1rem; }
.cta .stores { margin: 8px 0 18px; }
.cta-small { font-size: .98rem !important; }

/* ------------------------------------------------------------------ text pages */
.prose { max-width: 760px; padding: clamp(36px, 7vw, 72px) 0 72px; }
.prose h1 { margin-bottom: .3em; }
.prose h2 { font-size: clamp(1.3rem, 3.4vw, 1.6rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; }
.prose .lead { font-size: 1.15rem; color: var(--ink-soft); }
.updated { color: var(--ink-soft); font-size: .95rem; }
.summary { margin: 22px 0 8px; padding: 20px 22px 14px; border-radius: var(--radius); background: var(--parchment); border: 1px solid var(--line); box-shadow: var(--shadow); }
.summary h2 { margin-top: 0; }
.faq { display: grid; gap: 12px; margin: 26px 0; }
.faq details { border-radius: 18px; background: var(--parchment); border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(197, 143, 27, .4); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font: 600 1.08rem/1.35 var(--display); color: var(--leaf-dark); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 1.5rem; color: var(--gold-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-soft); }
.facts { display: grid; gap: 14px; margin: 24px 0 8px; }
.fact { padding: 18px 20px; border-radius: 18px; background: var(--parchment); border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(197, 143, 27, .4); }
.fact h2 { margin: 0 0 4px; font-size: 1.2rem; }
.fact p { margin: 0; color: var(--ink-soft); }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }

.notfound { min-height: 62vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 56px 0; }
.notfound img { width: 200px; margin-bottom: 10px; }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-logo { animation: rise .9s cubic-bezier(.2, .9, .3, 1.2) both, float 6s ease-in-out .9s infinite; }
  .piece-row li { animation: bob 3.6s ease-in-out infinite; }
  .piece-row li:nth-child(2) { animation-delay: -.6s; } .piece-row li:nth-child(3) { animation-delay: -1.2s; }
  .piece-row li:nth-child(4) { animation-delay: -1.8s; } .piece-row li:nth-child(5) { animation-delay: -2.4s; }
  .piece-row li:nth-child(6) { animation-delay: -3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes float { 50% { transform: translateY(-6px); } }
  @keyframes bob { 50% { transform: translateY(-5px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
