/* Peanuts in a Bowl LLC: day (a sunny garden) and night (the same garden after dark). The theme follows the visitor's system and the toggle in the header remembers their choice. */
:root {
  --paper: #f6f0e1; --paper-2: #efe6d0; --card: #fffaf0; --line: #e0d4b8; --ink: #4a3220; --ink-soft: #7a644f;
  --leaf: #6f8a45; --patina: #5f9488; --peanut: #c98f4b; --accent: #a8672a; --shadow: 0 10px 30px #5b3a2222;
  --art-filter: none; --leafy: 1; --fireflies: 0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="night"] {
  --paper: #11140f; --paper-2: #171b14; --card: #1a1e17; --line: #2b3226; --ink: #efe6d2; --ink-soft: #aa9f87;
  --leaf: #8fae5d; --patina: #7fb5a8; --peanut: #d4a373; --accent: #e0b27a; --shadow: 0 10px 30px #00000066;
  --art-filter: brightness(.66) saturate(.92) contrast(1.05); --leafy: 0; --fireflies: 1;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]):not([data-theme="night"]) {
  --paper: #11140f; --paper-2: #171b14; --card: #1a1e17; --line: #2b3226; --ink: #efe6d2; --ink-soft: #aa9f87;
  --leaf: #8fae5d; --patina: #7fb5a8; --peanut: #d4a373; --accent: #e0b27a; --shadow: 0 10px 30px #00000066;
  --art-filter: brightness(.66) saturate(.92) contrast(1.05); --leafy: 0; --fireflies: 1; color-scheme: dark; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); min-height: 100vh; overflow-x: hidden; transition: background-color .6s, color .6s; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60rem 36rem at 50% -8%, #ffffff55, transparent 70%), radial-gradient(40rem 30rem at 100% 100%, color-mix(in srgb, var(--leaf) 12%, transparent), transparent 70%); }
:root[data-theme="night"] body::before { background: radial-gradient(60rem 36rem at 50% -8%, #8fae5d14, transparent 70%), radial-gradient(40rem 30rem at 100% 100%, #5f948814, transparent 70%); }
a { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 700 1.05rem var(--serif); letter-spacing: .01em; }
.brand svg { height: 2.5rem; width: auto; display: block; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 1.2rem; font-size: .95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; } .nav a:hover { color: var(--ink); }
.toggle { appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 2.4rem; height: 2.4rem; border-radius: 999px; cursor: pointer; display: grid; place-items: center; transition: transform .2s, border-color .2s; }
.toggle:hover { transform: rotate(14deg); border-color: var(--peanut); } .toggle:focus-visible, .toss:focus-visible, .card:focus-visible, .nav a:focus-visible { outline: 3px solid var(--peanut); outline-offset: 3px; }
.toggle svg { width: 1.25rem; height: 1.25rem; } .toggle .moon { display: none; } :root[data-theme="night"] .toggle .sun { display: none; } :root[data-theme="night"] .toggle .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]):not([data-theme="night"]) .toggle .sun { display: none; } :root:not([data-theme="day"]):not([data-theme="night"]) .toggle .moon { display: block; } }

/* hero: the logo is the picture; the garden around it moves a little */
.hero { text-align: center; padding-bottom: 1rem; }
/* the whole picture, the line under it and the button fit one screen: the width is limited by the window's height (the picture is 1.353 times as wide as it is tall) */
.stage { position: relative; width: min(64rem, 100%); margin: 0 auto; aspect-ratio: 1926 / 1424; isolation: isolate; }
.art { width: 100%; height: 100%; display: block; object-fit: cover; filter: var(--art-filter); transition: filter .8s;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(180deg, transparent, #000 11%, #000 89%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(180deg, transparent, #000 11%, #000 89%, transparent); mask-composite: intersect;
  animation: breathe 14s ease-in-out infinite alternate; transform-origin: 50% 60%; mix-blend-mode: multiply; }
:root[data-theme="night"] .art { mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; border-radius: 1.3rem; box-shadow: 0 18px 50px #000a, 0 0 0 1px #ffffff14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]):not([data-theme="night"]) .art { mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; border-radius: 1.3rem; box-shadow: 0 18px 50px #000a, 0 0 0 1px #ffffff14; } }
@keyframes breathe { from { transform: scale(1) translateY(0); } to { transform: scale(1.025) translateY(-4px); } }
.layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.leaf { position: absolute; top: -8%; left: var(--x); width: var(--s); aspect-ratio: 1; opacity: calc(var(--leafy) * .8); color: var(--leaf); animation: fall var(--d) linear var(--delay) infinite; transition: opacity .8s; }
.leaf svg { width: 100%; height: 100%; display: block; animation: sway calc(var(--d) / 4) ease-in-out infinite alternate; }
@keyframes fall { from { transform: translate3d(0, 0, 0) rotate(0); } to { transform: translate3d(var(--drift), 112vh, 0) rotate(var(--spin)); } }
@keyframes sway { from { transform: rotate(-26deg); } to { transform: rotate(30deg); } }
.firefly { position: absolute; left: var(--x); top: var(--y); width: .42rem; aspect-ratio: 1; border-radius: 50%; background: #f7e79a; box-shadow: 0 0 .7rem .25rem #f7e79a99; opacity: 0; animation: glow var(--d) ease-in-out var(--delay) infinite, wander calc(var(--d) * 2.3) ease-in-out var(--delay) infinite alternate; }
:root[data-theme="night"] .firefly { opacity: 1; } @media (prefers-color-scheme: dark) { :root:not([data-theme="day"]):not([data-theme="night"]) .firefly { opacity: 1; } }
@keyframes glow { 0%, 100% { filter: opacity(.05); } 45%, 60% { filter: opacity(1); } }
@keyframes wander { from { translate: 0 0; } to { translate: var(--dx) var(--dy); } }

/* a cardinal or a blue jay crossing the sky now and then, and carrying off a peanut */
.flyer { position: absolute; z-index: 3; width: clamp(2.8rem, 8.5vw, 5.4rem); left: -12%; top: var(--top, 14%); pointer-events: none; will-change: transform; }
.flyer svg { width: 100%; display: block; overflow: visible; } .flyer .wing { transform-box: fill-box; transform-origin: 70% 90%; animation: flap .26s ease-in-out infinite alternate; }
.flyer .wing.far { animation-delay: -.13s; opacity: .8; }
@keyframes flap { from { transform: rotate(18deg) scaleY(.7); } to { transform: rotate(-38deg) scaleY(1.05); } }

/* peanuts you toss land in the bowl */
.peanut { position: absolute; z-index: 4; width: 2.1%; left: var(--x); top: 0; pointer-events: none; will-change: transform; filter: drop-shadow(0 2px 2px #0003); }
.plink { position: absolute; z-index: 3; width: 5%; aspect-ratio: 2.6; border: 2px solid #fff9; border-radius: 50%; pointer-events: none; opacity: 0; }
.plink.go { animation: plink .7s ease-out; }
@keyframes plink { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

.tagline { font: 400 clamp(1.15rem, 2.6vw, 1.5rem)/1.5 var(--serif); color: var(--ink); max-width: 38rem; margin: .8rem auto 1.4rem; text-wrap: balance; }
.play { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .9rem 1.2rem; margin-bottom: 1rem; }
.toss { appearance: none; border: 0; cursor: pointer; font: 700 1rem var(--sans); color: #fffaf0; background: linear-gradient(180deg, color-mix(in srgb, var(--peanut) 90%, #fff), var(--accent)); padding: .8rem 1.4rem; border-radius: 999px; box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 60%, #000), var(--shadow); transition: transform .12s, box-shadow .12s; }
.toss:hover { transform: translateY(-1px); } .toss:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 60%, #000), var(--shadow); }
.count { font: 500 .95rem var(--mono); color: var(--ink-soft); min-height: 1.4em; } .count b { color: var(--ink); } .count.bump b { animation: bump .45s ease-out; display: inline-block; }
@keyframes bump { 30% { transform: scale(1.4); color: var(--accent); } }

/* sections */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.label { font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; }
.label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
h2 { font: 700 clamp(1.6rem, 3.4vw, 2.2rem)/1.2 var(--serif); margin-bottom: .6rem; letter-spacing: -.01em; }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.card { position: relative; display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.4rem 1.5rem 1.5rem; box-shadow: 0 1px 0 #fff6 inset, 0 2px 8px #5b3a2210; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--leaf), var(--peanut), var(--patina)); opacity: 0; transition: opacity .25s; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--peanut) 55%, var(--line)); } .card:hover::before { opacity: 1; }
.icon { width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--peanut)) 18%, var(--card)); color: var(--c, var(--peanut)); margin-bottom: .9rem; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.card:hover .icon { transform: scale(1.12) rotate(-6deg); } .icon svg { width: 1.7rem; height: 1.7rem; }
.card h3 { font: 700 1.2rem/1.25 var(--serif); margin-bottom: .15rem; } .tag { font: 500 .75rem var(--mono); color: var(--ink-soft); letter-spacing: .04em; display: block; margin-bottom: .6rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card.soft { background: transparent; border-style: dashed; }
.about { display: grid; gap: 1.2rem 3.5rem; grid-template-columns: 1fr; align-items: start; } @media (min-width: 52rem) { .about { grid-template-columns: .85fr 1.15fr; } }
.about h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin-bottom: 0; } .about .about-text p { font-size: 1.12rem; max-width: none; }
.about p { color: var(--ink-soft); max-width: 40rem; margin-bottom: 1rem; }
.bowlist { list-style: none; display: grid; gap: .7rem; } .bowlist li { display: flex; gap: .75rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: .9rem; padding: .8rem 1rem; font-size: .97rem; color: var(--ink-soft); }
.bowlist li svg { flex: none; width: 1.7rem; margin-top: .15rem; }
footer { border-top: 1px solid var(--line); padding: 1.8rem 0 2.6rem; color: var(--ink-soft); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: center; }
footer a { font-family: var(--mono); text-decoration: none; } footer a:hover { text-decoration: underline; }

@media (max-width: 40rem) { .nav a { display: none; } .brand svg { height: 2.1rem; } }

.card .tag, .card span.tag { font: 500 .75rem var(--mono); color: var(--ink-soft); letter-spacing: .04em; display: block; margin-bottom: .6rem; }

/* a project card: the Lotvale card is the pattern; every project takes its own colours from variables */
.feats { display: grid; gap: 1.6rem; }
.feature { --fa: #2a1565; --fb: #170d42; --fglow: #6a35b4; --facc: #ffe27a; --fline: #4a3490;
  display: grid; gap: 1.6rem; text-decoration: none; color: #f4f0ff; border-radius: 1.6rem; padding: clamp(1.4rem, 3.5vw, 2.4rem); background: radial-gradient(60rem 30rem at 100% 0%, var(--fglow) 0%, transparent 60%), linear-gradient(135deg, var(--fa), var(--fb)); border: 1px solid var(--fline); box-shadow: 0 18px 50px #0003; position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 26px 60px #0005; border-color: var(--facc); }
.feature.static { cursor: default; } .feature.soft { border-style: dashed; }
@media (min-width: 52rem) { .feature { grid-template-columns: .9fr 1.1fr; align-items: center; } .feature:nth-child(even) { grid-template-columns: 1.1fr .9fr; } .feature:nth-child(even) .feat-art { order: 2; } }
.feat-art { position: relative; height: clamp(13rem, 34vw, 19rem); } .feat-art img { position: absolute; width: clamp(7rem, 17vw, 10.5rem); height: auto; aspect-ratio: 1; border-radius: 22.37%; box-shadow: 0 12px 30px #000a, 0 0 0 1px #ffffff2a; left: 50%; top: 50%; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.feat-art img:nth-child(1) { transform: translate(-118%, -62%) rotate(-13deg); } .feat-art img:nth-child(2) { transform: translate(10%, -80%) rotate(9deg); } .feat-art img:nth-child(3) { transform: translate(-96%, 8%) rotate(7deg); } .feat-art img:nth-child(4) { transform: translate(18%, 0%) rotate(-8deg); }
.feat-art.three img:nth-child(1) { transform: translate(-112%, -58%) rotate(-11deg); } .feat-art.three img:nth-child(2) { transform: translate(6%, -72%) rotate(8deg); } .feat-art.three img:nth-child(3) { transform: translate(-48%, 6%) rotate(-3deg); }
.feature:hover .feat-art img:nth-child(1) { transform: translate(-126%, -68%) rotate(-18deg); } .feature:hover .feat-art img:nth-child(2) { transform: translate(16%, -86%) rotate(13deg); } .feature:hover .feat-art img:nth-child(3) { transform: translate(-102%, 14%) rotate(11deg); } .feature:hover .feat-art img:nth-child(4) { transform: translate(24%, 6%) rotate(-12deg); }
.feature:hover .feat-art.three img:nth-child(1) { transform: translate(-120%, -64%) rotate(-16deg); } .feature:hover .feat-art.three img:nth-child(2) { transform: translate(12%, -78%) rotate(12deg); } .feature:hover .feat-art.three img:nth-child(3) { transform: translate(-48%, 12%) rotate(0deg); }
.feat-tag { font: 600 .75rem var(--mono); letter-spacing: .1em; color: var(--facc); background: #ffffff14; border: 1px solid #ffffff3a; border-radius: 999px; padding: .2rem .7rem; display: inline-block; margin-bottom: .8rem; }
.feature h2 { font: 800 clamp(1.9rem, 4.4vw, 3rem)/1.05 var(--sans); letter-spacing: -.03em; background: linear-gradient(180deg, #fff, var(--facc) 135%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .3rem; }
.feat-sub { font: 600 1.2rem var(--serif); color: var(--facc); margin-bottom: .7rem; } .feature p { color: #ffffffbf; max-width: 34rem; }
.feat-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .35rem 1rem; margin: 1rem 0 1.2rem; color: #ffffffbf; font-size: .97rem; } .feat-list li::before { content: "\2022"; color: var(--facc); margin-right: .5rem; } .feat-list b { color: #fff; }
.feat-go { display: inline-flex; gap: .6rem; align-items: center; font: 700 1rem var(--sans); color: #2a1565; background: linear-gradient(180deg, #ffe27a, #ffc93c); padding: .7rem 1.3rem; border-radius: 999px; box-shadow: 0 4px 0 #b8860b; transition: transform .15s; } .feature:hover .feat-go { transform: translateX(3px); } .feat-go i { font-style: normal; }
@media (prefers-reduced-motion: reduce) { .feature:hover { transform: none; } .feature:hover .feat-art img { transform: revert-layer; } .feat-art img { transition: none; } }

.ideas { display: grid; gap: 1.1rem; margin-top: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.idea { background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.4rem 1.5rem 1.5rem; transition: transform .25s, box-shadow .25s; } .idea:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.idea .ic { width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--peanut)) 18%, var(--card)); color: var(--c, var(--peanut)); margin-bottom: .9rem; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); } .idea:hover .ic { transform: scale(1.12) rotate(-6deg); } .idea .ic svg { width: 1.7rem; height: 1.7rem; }
.idea h3 { font: 700 1.2rem/1.25 var(--serif); margin-bottom: .3rem; } .idea p { color: var(--ink-soft); font-size: .97rem; }

.feature h2.wm-h { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; margin-bottom: .5rem; } .feature h2.wm-h img { display: block; height: clamp(2.6rem, 6vw, 4rem); width: auto; overflow: visible; filter: drop-shadow(0 0 14px rgba(255, 210, 60, .4)) drop-shadow(0 2px 2px rgba(20, 10, 0, .6)); }

/* scroll reveal */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--i, 0ms); } .rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .art, .leaf, .leaf svg, .firefly, .flyer .wing { animation: none !important; } .rise { opacity: 1; transform: none; transition: none; } .card:hover, .toggle:hover, .idea:hover { transform: none; }
  .firefly { opacity: 0 !important; } .leaf { display: none; }
}
