/* The Whimsible garden, first version, in plain shapes. One explicit colour theme: blush cream, sage, foxglove, antique gold, plum. */
:root { --cream: #f6ead9; --paper: #fffaf0; --sage: #6f8f5f; --moss: #47633c; --fox: #b63f7a; --gold: #b8923f; --plum: #2c1230; --iron: #a39a8c; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--plum); font: 18px/1.6 Georgia, "Times New Roman", serif; }
main { max-width: 760px; margin: 0 auto; padding: 64px 18px 140px; }
.top { text-align: center; }
.top h1 { margin: 0; font: bold 52px/1.05 Georgia, serif; letter-spacing: .02em; color: var(--plum); }
.line { margin: 6px 0 0; font-style: italic; color: var(--fox); }
.ask { margin: 18px auto 0; max-width: 34em; }

.plot { position: relative; width: min(100%, 440px); margin: 26px auto 0; aspect-ratio: 400 / 600; }
.yard { position: absolute; inset: 0; width: 100%; height: 100%; }
.iron { fill: none; stroke: var(--iron); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.soil { fill: #8a6a4a; }
.stalk { fill: none; stroke: var(--moss); stroke-width: 9; stroke-linecap: round; }
.leaves path { fill: var(--sage); stroke: var(--moss); stroke-width: 2; }
.pods { position: absolute; inset: 0; }

/* a pod: a green capsule with its question on it. It hangs to the left or the right of the stalk. */
.pod { position: absolute; width: 46%; min-height: 54px; padding: 8px 14px; border: 3px solid var(--moss); border-radius: 30px 30px 30px 6px; background: var(--sage); color: #fffdf4;
  font: bold 16px/1.2 Georgia, serif; text-align: center; cursor: pointer; box-shadow: 0 4px 0 var(--moss); transform-origin: 100% 50%; transition: transform .25s ease, background .25s ease; }
.pod.right { border-radius: 30px 30px 6px 30px; transform-origin: 0 50%; }
.pod:hover, .pod:focus-visible { transform: rotate(-3deg) scale(1.04); outline: none; }
.pod.right:hover, .pod.right:focus-visible { transform: rotate(3deg) scale(1.04); }
.pod:focus-visible { box-shadow: 0 0 0 4px var(--gold), 0 4px 0 var(--moss); }
.pod .peas { display: none; margin-top: 6px; }
.pod .peas i { display: inline-block; width: 13px; height: 13px; margin: 0 2px; border-radius: 50%; background: #d9ec9a; border: 2px solid var(--moss); }
.pod.open { background: var(--fox); border-color: #7a1f4d; box-shadow: 0 4px 0 #7a1f4d; }
.pod.open .peas { display: block; }
.pod.bud { background: none; color: var(--moss); border-style: dashed; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .pod { animation: sway 5s ease-in-out infinite alternate; }
  .pod:nth-child(even) { animation-duration: 6.3s; animation-direction: alternate-reverse; }
  @keyframes sway { from { rotate: -1.5deg; } to { rotate: 1.5deg; } }
}

.hint { text-align: center; font-style: italic; color: var(--moss); }
.bed { margin: 22px 0 0; padding: 22px 22px 16px; border: 2px solid var(--moss); border-radius: 8px; background: var(--paper); }
.bed h2 { margin: 0 0 8px; font: bold 28px/1.2 Georgia, serif; color: var(--fox); }
.bed h3 { margin: 20px 0 4px; font: bold 20px/1.25 Georgia, serif; }
.bed p { margin: 8px 0; }
.bed ul { margin: 8px 0; padding-left: 22px; }
.bed li { margin: 6px 0; }
.bed .up { display: inline-block; margin-top: 12px; color: var(--fox); }
@media (prefers-reduced-motion: no-preference) { .bed { animation: grow .45s ease-out; transform-origin: 50% 0; } @keyframes grow { from { opacity: 0; transform: scaleY(.6); } to { opacity: 1; transform: none; } } }
.foot { margin-top: 44px; padding-top: 18px; border-top: 2px solid var(--gold); font-size: 16px; }
.foot p:last-child { font-style: italic; font-size: 14px; }
