@font-face {
  font-family: "Sour Gummy";
  src: url("/assets/SourGummy-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/Nunito-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fff9ef;
  --paper: #fffdfa;
  --ink: #302332;
  --plum: #56324f;
  --plum-soft: #76536d;
  --gold: #b4702f;
  --line: #e9d8cc;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #f9eee6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
img { display: block; max-width: 100%; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #8a4d70; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .55rem .9rem;
  background: var(--paper);
  border-radius: .6rem;
}
.skip-link:focus { top: 1rem; }

.site-header,
.site-footer {
  width: min(100% - 2.5rem, 1260px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header { min-height: 76px; }
.small-brand {
  font: 700 1.45rem/1 "Sour Gummy", sans-serif;
  color: var(--plum);
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav,
.site-footer > div { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.75rem); }
.site-header nav a,
.site-footer a { font-size: .94rem; font-weight: 700; }

.home-main { width: min(100% - 2.5rem, 1260px); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr);
  min-height: min(770px, calc(100svh - 154px));
  border: 1px solid #e8d8cd;
  border-radius: 38px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 22px 60px #674a3b18;
}
.garden-stage {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background-image: url("/assets/garden.webp");
  background-size: cover;
  background-position: center 54%;
}
.garden-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, #fffdfa2b 100%);
  pointer-events: none;
}
.garden-logo {
  position: absolute;
  z-index: 1;
  top: 6%;
  left: 7%;
  width: 86%;
  height: auto;
  filter: drop-shadow(0 6px 5px #54394622);
  animation: logo-arrive .8s ease-out both;
}
.garden-doofs {
  position: absolute;
  z-index: 1;
  width: 103%;
  max-width: none;
  left: -1.5%;
  bottom: 1%;
  height: auto;
  filter: drop-shadow(0 12px 9px #382f2928);
  animation: doofs-hello 4.8s ease-out both;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5.5rem);
  animation: copy-arrive .65s .12s ease-out both;
}
.eyebrow { margin: 0 0 1.1rem; color: var(--gold); font-size: .9rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Sour Gummy", sans-serif; font-weight: 700; color: var(--plum); }
h1 { font-size: clamp(2.65rem, 4vw, 4.5rem); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 1.7rem; max-width: 11ch; }
.hero-copy > p:not(.eyebrow) { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 39ch; margin: 0 0 1.1rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .7rem; margin: .8rem 0 .2rem; }
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .65rem 1rem;
  border-radius: 15px;
  border: 1px solid var(--plum);
  background: var(--plum);
  color: var(--paper);
  font-family: "Sour Gummy", sans-serif;
  font-size: 1.04rem;
  text-decoration: none;
  transition: translate .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.hero-link:hover { color: var(--paper); background: #6b3d62; box-shadow: 0 6px 12px #56324f29; translate: 0 -2px; }
.hero-link-soft { background: var(--paper); color: var(--plum); }
.hero-link-soft:hover { color: var(--plum); background: #f4e6f0; }
.launch-note {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  align-self: flex-start;
  margin-top: 1.35rem;
  padding: .85rem 1.2rem;
  border-radius: 18px;
  background: #f4e6f0;
  border: 1px solid #dfc7d9;
  color: var(--plum);
  font-size: .88rem;
}
.launch-note-title { font: 700 1.2rem/1.25 "Sour Gummy", sans-serif; }

.gallery-section, .rules-section { padding-block: clamp(3.4rem, 7vw, 6rem); }
.gallery-section, .rules-section { position: relative; isolation: isolate; }
.gallery-section::before, .rules-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  pointer-events: none;
}
.gallery-section::before { background: linear-gradient(180deg, #56324f 0%, #64415c 83%, #56324f 100%); }
.gallery-section .eyebrow { color: #f2ca77; }
.gallery-section h2, .gallery-section .section-heading > p:last-child { color: #fff3de; }
.rules-section::before { background: #f4e5d8; }
.section-heading { max-width: 670px; margin: 0 auto 2.4rem; text-align: center; }
.section-heading .eyebrow, .strategy-intro .eyebrow { margin-bottom: .6rem; }
.section-heading h2, .strategy-intro h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; margin: 0 0 .75rem; }
.section-heading > p:last-child, .strategy-intro > p:last-child { font-size: 1.08rem; margin: 0; color: var(--plum-soft); }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: clamp(1rem, 2.2vw, 2rem); max-width: 1010px; margin-inline: auto; }
.screenshot-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(.65rem, 1vw, .9rem);
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #fff9ef;
  box-shadow: 0 16px 32px #674a3b13;
  transition: translate .22s ease, box-shadow .22s ease;
}
.screenshot-card img { width: 100%; height: auto; border-radius: 21px; border: 1px solid #eaded4; }
.screenshot-card figcaption { display: flex; flex: 1; flex-direction: column; gap: .12rem; padding: 1rem .45rem .3rem; color: var(--plum-soft); font-size: .92rem; }
.screenshot-card figcaption strong { color: var(--plum); font: 700 1.22rem/1.2 "Sour Gummy", sans-serif; }
.rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rule-card { min-height: 220px; padding: clamp(1.3rem, 2.6vw, 2.2rem); background: var(--paper); border: 1px solid var(--line); border-radius: 27px; box-shadow: 0 8px 24px #674a3b0d; transition: translate .22s ease, box-shadow .22s ease; }
.rule-card:nth-child(1) { border-top: 5px solid #e9c569; }
.rule-card:nth-child(2) { border-top: 5px solid #9fcdbb; }
.rule-card:nth-child(3) { border-top: 5px solid #c7a8db; }
.rule-number { display: block; color: var(--gold); font: 700 .88rem/1 "Nunito", sans-serif; letter-spacing: .13em; }
.rule-card h3 { font-size: clamp(1.4rem, 2.3vw, 1.8rem); line-height: 1.15; margin: 1.25rem 0 .4rem; }
.rule-card p { font-size: 1.05rem; margin: 0; }
.controls-note { max-width: 750px; margin: 1.8rem auto 0; text-align: center; color: var(--plum-soft); font-size: 1rem; }
.strategies-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-block: clamp(2rem, 4vw, 3rem) clamp(3.5rem, 7vw, 6rem); padding: clamp(2rem, 5vw, 4.5rem); border-radius: 34px; background: #dce9df; border: 1px solid #c5d7c9; }
.strategy-intro h2 { max-width: 14ch; }
.strategy-list { list-style: none; counter-reset: strategy; margin: 0; padding: 0; display: grid; gap: .8rem; }
.strategy-list li { counter-increment: strategy; position: relative; display: flex; flex-direction: column; gap: .15rem; min-height: 96px; padding: 1rem 1.2rem 1rem 4.1rem; border-radius: 20px; background: var(--paper); border: 1px solid #e6d5df; }
.strategy-list li::before { content: counter(strategy); position: absolute; top: 1rem; left: 1.15rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #f5e3af; color: var(--plum); font: 700 1rem/1 "Sour Gummy", sans-serif; }
.strategy-list strong { color: var(--plum); font: 700 1.23rem/1.2 "Sour Gummy", sans-serif; }
.strategy-list span { font-size: .98rem; }
.site-footer { min-height: 76px; color: var(--plum-soft); font-size: .9rem; }

@media (hover: hover) {
  .screenshot-card:hover, .rule-card:hover { translate: 0 -4px; box-shadow: 0 20px 36px #674a3b1d; }
}
@keyframes logo-arrive { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
@keyframes copy-arrive { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes doofs-hello {
  0% { opacity: 0; translate: 0 24px; }
  17% { opacity: 1; translate: 0 0; }
  42% { translate: 0 -7px; }
  64% { translate: 0 0; }
  80% { translate: 0 -3px; }
  100% { translate: 0 0; }
}

.policy-page { background: #f9eee6; }
.policy-main { width: min(100% - 2.5rem, 820px); margin: 1.5rem auto 4rem; }
.policy-card { background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: clamp(1.5rem, 5vw, 4rem); box-shadow: 0 18px 48px #674a3b14; }
.policy-card h1 { max-width: none; font-size: clamp(2.5rem, 6vw, 3.65rem); margin-bottom: .4rem; }
.policy-card h2 { font-size: 1.5rem; margin: 2rem 0 .55rem; }
.policy-card p, .policy-card li { font-size: 1rem; }
.policy-card p { margin: 0 0 1rem; }
.policy-card ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.policy-card li + li { margin-top: .45rem; }
.policy-meta { color: var(--plum-soft); font-size: .9rem; margin-bottom: 2rem !important; }
.policy-back { display: inline-block; margin-top: 2.5rem; font-weight: 700; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .garden-stage { min-height: min(96vw, 680px); background-position: center 48%; }
  .garden-logo { width: 80%; left: 10%; top: 4%; }
  .garden-doofs { width: min(95%, 630px); left: 50%; bottom: -7%; transform: translateX(-50%); }
  .hero-copy { padding: 2.2rem clamp(1.5rem, 5vw, 3rem) 2.8rem; }
  h1 { max-width: 17ch; }
  .strategies-section { grid-template-columns: 1fr; }
  .strategy-intro h2 { max-width: none; }
}

@media (max-width: 520px) {
  .site-header, .site-footer, .home-main { width: min(100% - 1.25rem, 1260px); }
  .site-header { min-height: 64px; }
  .site-header nav { gap: .65rem; }
  .site-header nav a { font-size: .86rem; }
  .site-header nav a:last-child { display: none; }
  .hero { border-radius: 26px; }
  .garden-stage { min-height: min(105vw, 420px); }
  .garden-doofs { width: 112%; bottom: -4%; }
  .hero-copy { padding: 1.8rem 1.4rem 2.2rem; }
  .eyebrow { font-size: .78rem; }
  h1 { font-size: clamp(2.35rem, 9vw, 3.25rem); }
  .gallery-section, .rules-section { padding-block: 3.2rem; }
  .section-heading { margin-bottom: 1.6rem; }
  .screenshot-grid, .rule-grid { grid-template-columns: 1fr; max-width: 370px; margin-inline: auto; }
  .screenshot-card { border-radius: 24px; }
  .screenshot-card img { border-radius: 17px; }
  .rule-card { min-height: auto; }
  .strategies-section { padding: 1.7rem 1.1rem; border-radius: 26px; }
  .strategy-list li { padding-right: .9rem; }
  .site-footer { min-height: 96px; flex-wrap: wrap; align-content: center; gap: .5rem; padding-block: 1rem; }
  .policy-main { width: min(100% - 1.25rem, 820px); margin-top: .3rem; }
  .policy-card { border-radius: 24px; }
}

@media (max-width: 760px) and (min-width: 521px) { .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rule-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .garden-logo, .garden-doofs, .hero-copy { animation: none; }
  .hero-link, .screenshot-card, .rule-card { transition: none; }
  .hero-link:hover, .screenshot-card:hover, .rule-card:hover { translate: none; }
}
