/* My Lovely Pony, option B: a day in the paddock. The art is the app's own:
   PonyPainter's ponies and PaddockPainter's day, sunset and night, rendered
   large. Paper sections use the stall palette's warm wall and planks. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7efe4;          /* StallPalette.light.wall */
  --paper-deep: #ecdfd0;     /* planks */
  --post: #c9ac92;
  --edge: #8a6e58;
  --ink: #3b2412;            /* stall ink */
  --ink-soft: #6e5644;
  --plum: #7d3e5a;
  --lavender: #b7a3e3;
  --day-sky: #bee2f6;
  --sunset-sky: #7c87b3;
  --night-sky: #6e7ec0;
  --night-ground: #437263;
  --night-deep: #2f4f4a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
body.home { background: var(--night-deep); }
.paper { background: var(--paper); }

h1, h2, .sub, .tagline, .soon, .closing, .langs, .caption, .growth span {
  font-family: "Fredoka", system-ui, sans-serif;
}
h1, h2 { color: var(--plum); font-weight: 600; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 14px; }
a { color: var(--plum); text-underline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

ul { margin: 0; padding: 0; list-style: none; }
.card li, .care li { position: relative; padding-left: 30px; margin: 10px 0; }
.card li::before, .care li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 16px;
  height: 16px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b7a3e3' d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.3 2.6.7-1.4 2.2-2.6 4.3-2.6 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
}

/* ---------- Scenes: the paddock art sits on the bottom edge, and a flat
   colour matching its top continues the sky above it. ---------- */
.scene {
  position: relative;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: max(100%, 960px) auto;
}
.scene.day    { background-color: var(--day-sky);    background-image: url("img/paddock/day.webp"); }
.scene.sunset { background-color: var(--sunset-sky); background-image: url("img/paddock/sunset.webp"); }
.scene.night  { background-color: var(--night-sky);  background-image: url("img/paddock/night.webp"); }

.herd {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin: 0 auto;
  padding: 0 8px 36px;
  max-width: 1040px;
}
.pony { display: block; height: auto; }
.flip { transform: scaleX(-1); }

/* Hero */
.hero { padding-top: 40px; text-align: center; }
.icon {
  width: 112px;
  height: 112px;
  border-radius: 30%;
  background: var(--lavender);
  box-shadow: 0 8px 24px rgba(59, 36, 18, 0.18);
}
.hero h1 { font-size: clamp(2.6rem, 10vw, 4.4rem); margin-top: 16px; }
.sub { margin: 4px 0 0; font-size: clamp(1.2rem, 4vw, 1.6rem); font-weight: 500; color: #9c5f7b; }
.tagline {
  margin: 18px auto 0;
  max-width: 30ch;
  font-size: clamp(1.2rem, 3.6vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.soon {
  display: inline-block;
  margin: 22px 0 0;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(125, 62, 90, 0.25);
}
.hero .herd { margin-top: 36px; }
.hero .herd { padding-left: 0; padding-right: 0; }
.hero .pony { width: 22%; max-width: 230px; margin: 0 -1.5%; }
.hero .h2 { width: 14%; max-width: 136px; }
.hero .h1, .hero .h5 { width: 20%; max-width: 196px; margin-bottom: 14px; }

/* Paper sections */
.paper { padding: 56px 0; }
.intro { font-size: 1.15rem; text-align: center; padding-bottom: 24px; }
.intro p { margin: 0 0 14px; }

.care { padding-top: 24px; }
.split { display: grid; gap: 24px; align-items: center; }
.care-art { position: relative; width: min(84%, 360px); margin: 0 auto; padding-top: 16px; }
.care-pony { width: 100%; }
/* The three care actions, in the app's button order, on the empty sky at
   the pony's upper left: over the background, never over the pony. */
.bubbles { position: absolute; top: 0; left: 0; display: flex; gap: 10px; }
.bubble {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fbe3ec;
  box-shadow: 0 4px 12px rgba(59, 36, 18, 0.14);
  font-size: 24px;
  line-height: 1;
}
.b2 { background: #e3f0fb; }
.b3 { background: #efe8fb; }

/* Growth: the three ages to scale, on the sunset grass */
.card {
  background: rgba(255, 251, 246, 0.92);
  border-radius: 24px;
  padding: 24px 22px 18px;
  box-shadow: 0 10px 30px rgba(40, 30, 60, 0.18);
  max-width: 640px;
}
.grow { padding-top: 56px; }
.grow .card { margin: 0 16px; }
.growth { list-style: none; gap: 3%; margin-top: 40px; }
.growth li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.growth span {
  margin-top: 6px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.9);
  color: var(--plum);
  font-weight: 600;
  font-size: 0.95rem;
}
.g1 { width: 19%; } .g2 { width: 26%; } .g3 { width: 33%; }
.growth { max-width: 820px; }
.growth .pony { width: 100%; }

/* Stable: every pony in its own box */
.stable { text-align: center; }
.boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  padding: 0 16px;
  list-style: none;
}
.box {
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 10px 8px;
  border: 6px solid var(--post);
  border-top-width: 12px;
  border-radius: 10px;
  background:
    linear-gradient(transparent 78%, #d9b04a33 78%),
    repeating-linear-gradient(0deg, var(--paper-deep) 0 22px, #e2d2c0 22px 24px);
  box-shadow: inset 0 0 0 1px var(--edge);
  min-width: 0;
  overflow: hidden;
}
.box .pony { width: auto; max-width: 92%; max-height: 100%; object-fit: contain; }
.caption { margin: 18px 0 0; color: var(--plum); font-weight: 500; font-size: 1.15rem; }

/* Night: the bond, and the page ends under the stars */
.bond { padding-top: 64px; }
.card.dark { background: rgba(35, 45, 90, 0.55); color: #f3f1ff; box-shadow: none; margin: 0 16px; }
.card.dark h2 { color: #fff4c8; }
.card.dark p { margin: 0; }
.bond .herd { margin-top: 48px; }
.bond .pony { width: 31%; max-width: 230px; margin: 0 1%; }
.bond .s2 { width: 26%; max-width: 190px; }

.night-tail {
  background: linear-gradient(var(--night-ground), var(--night-deep));
  color: #e7f1ec;
  text-align: center;
  padding: 8px 16px 0;
}
.closing {
  max-width: 30ch;
  margin: 0 auto;
  padding: 24px 0 8px;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Footer: shared markup; light on the night ground, dark on paper */
.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--ink-soft);
  border-top: 1px solid var(--paper-deep);
}
.site-footer p { margin: 8px 0; }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-weight: 500; margin-bottom: 12px; }
.langs a { text-decoration: none; }
.langs [aria-current] { text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.small { font-size: 0.85rem; }
.night-tail .site-footer { color: #cfe0d8; border-top-color: rgba(255, 255, 255, 0.15); }
.night-tail a { color: #fff4c8; }
.night-tail .langs [aria-current] { color: #fff; }

/* Privacy policy: a paper page */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 16px 16px; }
.doc h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
.doc h2 { font-size: 1.3rem; margin: 28px 0 4px; }
.doc p { margin: 0 0 12px; }
.back { font-size: 0.95rem; margin-bottom: 24px !important; }
.meta { color: var(--ink-soft); font-size: 0.95rem; margin-top: 8px !important; }
.summary {
  background: #fffaf3;
  border: 1px solid var(--paper-deep);
  border-left: 6px solid var(--lavender);
  border-radius: 16px;
  padding: 16px 20px 4px;
  margin: 24px 0 8px;
}
.summary h2 { margin-top: 0; }
.doc a { overflow-wrap: anywhere; }

@media (min-width: 760px) {
  .hero .pony { width: 25%; }
  .hero .h2 { width: 16%; }
  .hero .h1, .hero .h5 { width: 23%; }
  .hero { padding-top: 64px; }
  .split { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .grow .card, .card.dark { margin: 0 auto; }
  .boxes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .paper { padding: 80px 0; }
  .intro { padding-bottom: 24px; }
  .care { padding-top: 24px; }
}
