/* Little Leaf example for the sway: the palette of the hero example in "Create an SVG Hero Illustration with Space for Your Headline", one hero and a bench of four embeddings. No framework. */
:root {
  color-scheme: light;
  --ink: #153c2d;
  --paper: #f7faf8;
  --line: #b8ccc0;
  --accent: #20563f;
  --muted: #3f5f52;
  font: 100%/1.55 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.page-width { width: min(100% - 2rem, 76rem); margin-inline: auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.site-header a { font-size: .875rem; }
.brand { margin: 0; font-size: 1.25rem; font-weight: 750; letter-spacing: -.04em; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 2rem; padding-block: clamp(2rem, 5vw, 4rem); }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 1rem; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; max-width: 11ch; font-size: clamp(2.9rem, 7vw, 5.5rem); line-height: 1.04; letter-spacing: -.055em; overflow-wrap: anywhere; }
.hero-description { max-width: 28ch; margin-block: 1.3rem 1.8rem; font-size: 1.2rem; }
.hero-art { display: block; min-width: 0; }
.hero-art img { display: block; width: min(100%, 32rem); height: auto; margin-inline: auto; }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .7rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: .4rem;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--ink); }

.bench { padding-block: 2rem 3rem; border-top: 1px solid var(--line); }
.bench h2 { margin: 0 0 .75rem; font-size: 1.6rem; letter-spacing: -.02em; }
.bench > p { max-width: 62ch; margin: 0 0 1.25rem; color: var(--muted); }
.bench-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1.5rem; }
.bench-controls p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
figure { margin: 0; min-width: 0; }
.frame { padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: .5rem; }
.frame svg, .frame img { display: block; width: 100%; height: auto; }
/* The background box takes the plant's own shape (1092 x 1152), so nothing is cropped or stretched. */
.bench-bg { aspect-ratio: 1092 / 1152; background: url("assets/little-leaf-sway.svg") center / contain no-repeat; }
figcaption { margin-top: .5rem; font-size: .9rem; color: var(--muted); }
figcaption strong { display: block; color: var(--ink); }

footer { padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
footer p { margin: 0; max-width: 70ch; }

@media (min-width: 48rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 47.99rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
