/* Kristin Farnsworth Art
   A clean white page, soft washes, and a rainbow pulled straight from the paintings. */

:root {
  --paper: #ffffff;
  --paper-2: #f5f0ea;
  --card: #ffffff;
  --ink: #3f332d;
  --ink-soft: #6e5f55;
  --line: #e7dccb;

  /* the rainbow from the paintings, blended halfway toward the old colour-wheel logo */
  --rose: #e487a4;
  --apricot: #e5a24f;
  --butter: #f2cc62;
  --sage: #9db264;
  --sky: #5eabc9;
  --lilac: #8e72ad;


  /* Fonts (Google Fonts, loaded in <head>): a soft, characterful serif for headings,
     a clean geometric sans for reading, and a loose pen signature for the name. */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --hand: "La Belle Aurore", "Segoe Script", cursive;
  --heading: #5b534c;      /* soft warm grey for big headings, like a gallery wall label */
  --track: .14em;          /* letter-spacing for small capitals */

  --radius: 18px;
  --shadow: 0 1px 2px rgba(63, 51, 45, .08), 0 8px 24px -10px rgba(63, 51, 45, .25);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; scrollbar-gutter: stable; } /* nothing hanging off the side can make the page wobble sideways on phones */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--body);
  overflow-x: clip; /* not "hidden": that would turn the page body into its own scroller and unstick the top bar */
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-optical-sizing: auto; font-variation-settings: "SOFT" 50; font-weight: 600; line-height: 1.05; margin: 0; color: var(--heading); }
.script { font-family: var(--hand); font-weight: 400; }
.center { text-align: center; margin-top: 2.2rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .5em 1em; border-radius: 99px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--gutter);
  /* frosted, like tracing paper: the page glides by underneath, softened */
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid rgba(231, 220, 203, .45);
}
/* browsers without the frost get a more solid bar, so the menu stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top { background: rgba(255, 255, 255, .92); }
}
.wordmark { --wm-size: 1.75rem; text-decoration: none; display: flex; align-items: baseline; gap: .5rem; white-space: nowrap; }
/* The pen name, with the handwriting's wide word gap pulled in. */
.wm-name { font-family: var(--hand); font-size: var(--wm-size); word-spacing: -.28em; line-height: 1; color: var(--ink); padding-top: .2rem; }
/* Same font size as the name: these capitals are 3/4 of an em, matching the handwriting's K and F. */
.wm-art { font-family: var(--body); font-size: var(--wm-size); font-weight: 600; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--rose);
  /* the six paints washing into each other across the letters, in colour-wheel order */
  background: linear-gradient(90deg, var(--rose), var(--apricot), var(--butter), var(--sage), var(--sky), var(--lilac));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: calc(100% - .08em) 100%; background-repeat: no-repeat; /* end the wash at the T, not in the space after it */ }
.nav { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap;
  padding: .4rem .75rem; border-radius: 99px; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav .nav-shop { background: var(--ink); color: var(--paper); }
.nav .nav-shop:hover { background: #2c231f; color: var(--paper); }

@media (max-width: 720px) {
  .top { flex-direction: column; align-items: stretch; gap: .35rem; padding-top: .55rem; padding-bottom: .5rem; }
  .wordmark { justify-content: center; }
  .nav { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .nav { gap: 0; justify-content: safe center; }
  .nav a { padding: .32rem .36rem; font-size: .7rem; letter-spacing: .05em; }
  html { scroll-padding-top: 100px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .95em 1.6em; border-radius: 99px;
  font-weight: 600; text-decoration: none; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 6px 16px -8px rgba(63, 51, 45, .6); }
.btn-paper { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); }
.link { font-weight: 600; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Washes (static SVGs, painted once rather than filtered live) ---------- */
/* Each wash belongs to what it decorates, so it lines up on every screen, and reaches
   well past it so the paint bleeds out softly instead of stopping at a hard edge. */
.hero-text::before, .hero-prints::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: center / 100% 100% no-repeat;
}
/* the green splotch "Well, Hello Love!" starts in */
.hero-text::before { left: -22%; top: -30%; width: 78%; height: 70%; background-image: var(--wash-text, url("../images/decor/wash-text.svg?v=2")); /* js/daylight.js tints it for the time of day */ }
/* pink, butter and sky behind the prints */
.hero-prints::before { inset: -30% -35%; background-image: var(--wash-prints, url("../images/decor/wash-prints.svg")); }
.hello-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--wash-hello, url("../images/decor/wash-hello.svg")) center / cover no-repeat;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) clamp(3rem, 8vw, 7rem);
  max-width: 1280px; margin: 0 auto;
}
.hero-text, .hero-prints { position: relative; z-index: 1; }
.hello { font-size: 1.9rem; word-spacing: -.3em; color: var(--rose); margin: 0 0 .3rem; transform: rotate(-3deg); transform-origin: left; } /* the handwriting spaces words wide; this keeps "Love" close to "hello" */
.hero h1 { font-size: clamp(3.2rem, 9vw, 6.4rem); font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.tagline { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: .7rem 0 1.1rem; color: var(--ink-soft); font-variation-settings: "SOFT" 50; }
.amp { color: var(--rose); }
.lede { max-width: 34ch; margin: 0 0 1.8rem; color: var(--ink-soft); }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-prints { height: clamp(340px, 42vw, 540px); }
.print {
  margin: 0; background: var(--card); padding: 10px 10px 12px; border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative;
}
.print img { border-radius: 2px; }
.tape {
  position: absolute; top: -12px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(242, 204, 98, .72); border-radius: 2px; z-index: 2;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
/* The three prints taped up by the name: each lifted well off the page, its bottom
   corners curling up (the shadows tucked under them) and the paper gently bowed. */
.hero-prints .lift {
  position: absolute; margin: 0;
  transform: perspective(900px) rotateX(var(--rx, 3deg)) rotateY(var(--ry, 0deg)) rotate(var(--rot, 0deg));
  transition: transform .45s cubic-bezier(.3, .7, .3, 1.3);
}
.hero-prints .p1 { width: 58%; left: 4%; top: 6%; --rot: -5deg; --ry: 5deg; z-index: 2; }
.hero-prints .p2 { width: 38%; right: 2%; top: 0; --rot: 6deg; --ry: -6deg; z-index: 1; }
.hero-prints .p3 { width: 46%; right: 8%; bottom: 0; --rot: -2deg; --ry: 4deg; z-index: 3; }
.hero-prints .p2 .tape { background: rgba(94, 171, 201, .7); }
.hero-prints .p3 .tape { background: rgba(228, 135, 164, .7); transform: translateX(-50%) rotate(3deg); }
.hero-prints .print {
  box-shadow: 0 1px 2px rgba(63, 51, 45, .12), 0 10px 18px -8px rgba(63, 51, 45, .28), 0 30px 46px -22px rgba(63, 51, 45, .42);
}
/* curled-up bottom corners: a shadow tucked under each corner, lighter in the middle */
.hero-prints .print::before, .hero-prints .print::after {
  content: ""; position: absolute; z-index: -1; bottom: 14px; width: 44%; height: 30%;
  box-shadow: 0 16px 14px rgba(63, 51, 45, .34);
  transition: box-shadow .45s ease;
}
.hero-prints .print::before { left: 10px; transform: skewX(-10deg) rotate(-5deg); }
.hero-prints .print::after { right: 10px; transform: skewX(10deg) rotate(5deg); }
/* the bow: a touch of shade toward the edges of the paper, a little light across the middle */
.hero-prints .bend {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(63, 51, 45, .08), transparent 14%, rgba(255, 255, 255, .08) 50%, transparent 86%, rgba(63, 51, 45, .08)),
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 35%, transparent 78%, rgba(63, 51, 45, .09));
}
/* Every so often a breeze drifts through: each print, held by its tape at the top, lifts at
   the bottom, swings, flutters and settles. The gust reaches them one after another. */
.hero-prints .sway {
  transform-origin: 50% 0; /* hinged at the tape */
  animation: print-breeze 10s ease-in-out infinite; animation-delay: var(--gust-at, 0s);
}
.hero-prints .p1 .sway { --gust: 1; --gust-at: 2s; }
.hero-prints .p2 .sway { --gust: .8; --gust-at: 2.3s; }
.hero-prints .p3 .sway { --gust: 1.15; --gust-at: 2.55s; }
@keyframes print-breeze {
  0%, 52%   { transform: perspective(700px) rotateX(0deg) rotate(0deg); }
  58%       { transform: perspective(700px) rotateX(calc(10deg * var(--gust, 1))) rotate(calc(1.3deg * var(--gust, 1))); }
  65%       { transform: perspective(700px) rotateX(calc(-3deg * var(--gust, 1))) rotate(calc(-.8deg * var(--gust, 1))); }
  72%       { transform: perspective(700px) rotateX(calc(5deg * var(--gust, 1))) rotate(calc(.5deg * var(--gust, 1))); }
  80%       { transform: perspective(700px) rotateX(calc(-1.5deg * var(--gust, 1))) rotate(calc(-.2deg * var(--gust, 1))); }
  88%, 100% { transform: perspective(700px) rotateX(0deg) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-prints .sway { animation: none; }
}

/* Light glides across the paper: when the breeze lifts a print it catches the light
   (timed to that print's own gust), and while you hover it shimmers gently. */
.hero-prints .bend::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 48%, rgba(255, 255, 255, .15) 54%, transparent 64%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0; mix-blend-mode: screen;
  transition: opacity .6s ease;
  animation: breeze-glint 10s ease-in-out infinite; animation-delay: var(--gust-at, 0s); /* same clock as the breeze */
}
@keyframes breeze-glint {
  0%, 54%   { opacity: 0; background-position: 130% 0; }
  59%       { opacity: 1; }
  74%       { opacity: .9; }
  80%, 100% { opacity: 0; background-position: -30% 0; }
}
.hero-prints .lift:hover .bend::after { opacity: 1; animation: print-shimmer 3.2s ease-in-out infinite; }
@keyframes print-shimmer {
  0%   { background-position: 130% 0; }
  60%, 100% { background-position: -30% 0; } /* a sweep, then a little rest before the next */
}
@media (prefers-reduced-motion: reduce) {
  .hero-prints .bend::after { animation: none; }
  .hero-prints .lift:hover .bend::after { animation: none; opacity: .5; background-position: 50% 0; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-prints { height: 92vw; max-height: 480px; margin-top: .5rem; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.section > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 2.4rem; }
.kicker { font-family: var(--body); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--rose); margin: 0 0 .7rem; }
.section-head h2, .about-text h2, .hello-card h2 { font-size: clamp(2rem, 5vw, 3.1rem); text-transform: uppercase; letter-spacing: .06em; }
.swash { display: block; width: 180px; height: 16px; margin: .45rem auto 0; overflow: visible; }
.s-rose { fill: var(--rose); } .s-sage { fill: var(--sage); } .s-sky { fill: var(--sky); } .s-butter { fill: var(--butter); }
.section-note { max-width: 46ch; margin: 1.1rem auto 0; color: var(--ink-soft); }

/* ---------- New work: a messy paint palette ---------- */
/* The pieces sit in lumpy circles piled up like dabs of paint (js/site.js places them),
   with loose paint tucked under and smeared over them. Everything multiplies like
   watercolour, so overlaps mix. A popped piece comes to the front, clean, with its name. */
.nw-palette { position: relative; isolation: isolate; min-height: 200px; }
.nw-art, .nw-paint { position: absolute; }
.nw-disc, .nw-paint {
  border-radius: var(--br1, 50%);
  animation: nw-wobble var(--wobt, 10s) ease-in-out infinite; animation-delay: var(--wob, 0s);
}
@keyframes nw-wobble {
  0%, 100% { border-radius: var(--br1, 50%); }
  33%      { border-radius: var(--br2, 50%); }
  66%      { border-radius: var(--br3, 50%); }
}
.nw-art {
  display: block; z-index: var(--z, 10); color: inherit; text-decoration: none;
  mix-blend-mode: multiply; /* laid over paint, the colours mix like washes */
  transform: rotate(var(--tilt, 0deg));
  transition: transform .5s cubic-bezier(.3, 1.5, .5, 1);
}
.nw-art:focus-visible { outline: none; }
.nw-art:focus-visible .nw-disc { outline: 3px solid var(--sky); outline-offset: 3px; }
.nw-disc {
  position: absolute; inset: 0; overflow: hidden; transition: box-shadow .4s ease;
  /* a pale wash behind the art, so white backgrounds still read as a coloured dab */
  background: radial-gradient(circle at 40% 36%, #fff 0%, color-mix(in srgb, var(--tint, #e7dccb) 28%, #fff) 70%, color-mix(in srgb, var(--tint, #e7dccb) 46%, #fff) 100%);
}
.nw-disc img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s ease; }
.nw-paint {
  pointer-events: none; mix-blend-mode: multiply; opacity: .8;
  transform: rotate(var(--tilt, 0deg));
  background: var(--paint);
  /* a watercolour dab: paler in the middle, pigment pooled at the edge */
  background: radial-gradient(circle at 38% 34%, color-mix(in srgb, var(--paint) 50%, #fff) 0%, var(--paint) 64%, color-mix(in srgb, var(--paint) 78%, #3f332d) 100%);
}
/* paint tucked under a piece: softer, so it tints the edges it mixes with */
.nw-paint.soft { opacity: .55; }
/* spatter: little flicked drops and streaks; they stay still once they land */
.nw-paint.dot { animation: none; opacity: .78; background: var(--paint); }
/* the little "Shop everything" dab in the middle of the palette */
.nw-shop {
  display: grid; place-items: center; text-align: center; mix-blend-mode: normal;
  /* a pale wash, like the other dabs, so it sits quietly among the art */
  background: radial-gradient(circle at 38% 34%, #fff 0%, color-mix(in srgb, var(--rose) 22%, #fff) 62%, color-mix(in srgb, var(--rose) 42%, #fff) 100%);
  color: var(--ink-soft);
  border-radius: var(--br1, 50%); animation: nw-wobble var(--wobt, 10s) ease-in-out infinite; animation-delay: var(--wob, 0s);
  box-shadow: 0 8px 18px -12px rgba(63, 51, 45, .35);
}
.nw-shop span { font-size: .56rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; line-height: 1.3; }
.nw-shop b { display: block; font-family: var(--hand); font-weight: 400; font-size: 1.55rem; letter-spacing: 0; text-transform: none; line-height: 1; margin-bottom: .1rem; color: var(--rose-deep, #c9605b); }
.nw-shop.pop { transform: rotate(0deg) scale(1.12); }
/* the name tag */
.nw-name {
  position: absolute; left: 50%; top: calc(100% - .9rem); z-index: 4; pointer-events: none;
  width: max-content; max-width: min(300px, 80vw); padding: .55rem 1.05rem .6rem; text-align: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 22px 18px 24px 16px / 18px 24px 16px 22px; /* a wobbly little tag */
  opacity: 0; transform: translate(calc(-50% + var(--nudge, 0px)), 12px) scale(.6);
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .25s ease;
}
.nw-name b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--heading); font-variation-settings: "SOFT" 50; }
.nw-name span { display: block; margin-top: .1rem; font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--rose); }
/* popped: to the very front, shown clean (no mixing), lifted, with its name */
.nw-art.pop { z-index: 100; mix-blend-mode: normal; transform: rotate(0deg) scale(1.12); }
.nw-art.pop .nw-disc { box-shadow: 0 20px 36px -14px rgba(63, 51, 45, .5); }
.nw-art.pop .nw-disc img { transform: scale(1.04); }
.nw-art.pop .nw-name { opacity: 1; transform: translate(calc(-50% + var(--nudge, 0px)), 0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .nw-disc, .nw-paint, .nw-shop { animation: none; }
}
/* resting while scrolled out of view (js/site.js) */
#new-grid.resting .nw-disc, #new-grid.resting .nw-paint, #new-grid.resting .nw-shop,
#book.resting .bb, #book.resting .bb::before { animation-play-state: paused; }

/* ---------- Gallery ---------- */

/* Gallery: flip-through circles (js/site.js). Pages of paintings in circles of every size,
   with soft faded colour circles floating behind; flip them like turning a page. Hover (or
   tap) a circle and it lifts with its name on a little tag. */
.acc-hint { text-align: center; margin: -1.2rem auto 1rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); }
.acc-hint .touch { display: none; }
@media (hover: none) { .acc-hint .mouse { display: none; } .acc-hint .touch { display: inline; } }
.section > .acc-wrap { position: relative; max-width: none; margin: 0 calc(var(--gutter) * -1); }
/* paint that splurts out under the pages when you play with them (js/splash.js) */
.acc-paint { position: absolute; inset: -70px 0; z-index: 0; pointer-events: none; }
.acc-paint .splash { position: absolute; z-index: auto; }
.book {
  position: relative; z-index: 1; height: clamp(460px, 62vh, 580px); overflow: hidden; outline: none;
  cursor: url("../images/cursors/hand-open.svg?v=2") 16 16, grab; /* her little painted hand, with a dab of paint on a fingertip */
  touch-action: pan-y pinch-zoom; /* sideways swipes turn the page; up/down still scrolls */
  -webkit-user-select: none; user-select: none;
}
.book:focus-visible { box-shadow: inset 0 0 0 3px var(--sky); border-radius: 18px; }
.book.dragging, .book.dragging * { cursor: url("../images/cursors/hand-closed.svg?v=2") 16 16, grabbing; }
.leaf { position: absolute; inset: 0; will-change: transform; }
.leaf .bg { position: absolute; inset: 0; will-change: transform; pointer-events: none; }
.fade { position: absolute; border-radius: 50%; background: var(--c); opacity: var(--o); mix-blend-mode: multiply; }
.fade.ring { background: none; border: 2px solid var(--c); }
.bb {
  position: absolute; padding: 0; border: 0; background: none; font: inherit; color: inherit;
  cursor: url("../images/cursors/zoom-in.svg?v=2") 13 13, zoom-in; /* a cute magnifying glass: click to see it large */
  animation: bb-float var(--fd, 9s) ease-in-out var(--fdl, 0s) infinite; /* a gentle float, like bubbles on water */
}
.bb.on, .leaf[inert] .bb { animation-play-state: paused; } /* still while you look at it */
@keyframes bb-float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(var(--fx1, 0), var(--fy1, 0)); }
  66% { transform: translate(var(--fx2, 0), var(--fy2, 0)); }
}
/* a painted ring in one of her colours hugging each circle, never quite perfectly round */
.bb::before {
  content: ""; position: absolute; inset: -10px; pointer-events: none;
  border: 5px solid var(--ring, var(--rose)); opacity: .82;
  border-radius: 50% 47% 52% 49% / 48% 52% 47% 51%; transform: rotate(var(--tilt, 0deg));
  animation: ring-turn var(--rt, 60s) linear infinite var(--rdir, normal); /* the uneven ring slowly turns */
  transition: transform .55s cubic-bezier(.3, 1.4, .5, 1);
}
.bb.on::before { transform: rotate(var(--tilt, 0deg)) scale(1.12); }
@keyframes ring-turn { to { rotate: 360deg; } }
.bb .ph {
  display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--paper-2);
  border: 4px solid #fff; box-shadow: var(--shadow);
  transition: transform .55s cubic-bezier(.3, 1.4, .5, 1), box-shadow .4s ease;
}
.bb img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.bb .tag {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, -4px) rotate(-2deg); white-space: nowrap;
  background: #fff; border-radius: 99px; padding: .2rem .8rem .25rem; box-shadow: var(--shadow);
  font-family: var(--hand); font-size: 1.15rem; color: var(--ink); opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.bb.on { z-index: 5; }
.bb.on .ph { transform: scale(1.12); box-shadow: 0 4px 8px rgba(63, 51, 45, .12), 0 24px 40px -14px rgba(63, 51, 45, .5); }
.bb.on .tag { opacity: 1; transform: translate(-50%, 10px) rotate(-2deg); transition-delay: .12s; }
.bb:focus-visible { outline: none; }
.bb:focus-visible .ph { outline: 3px solid var(--sky); outline-offset: 12px; } /* outside the ring */
/* one dot per page, in the palette colours */
.book-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: .6rem; position: relative; z-index: 1; }
.book-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: transform .3s, background .3s; }
.book-dots button[aria-current="true"] { background: var(--dot, var(--rose)); transform: scale(1.35); }
.book-dots[hidden] { display: none; }
/* ‹ › to turn the pages (mouse users; phones just swipe) */
.acc-nav {
  position: absolute; top: 50%; z-index: 6; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 0 0 3px;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--ink);
  font: 400 1.7rem/1 var(--display); cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.acc-nav:hover { border-color: var(--ink-soft); transform: translateY(-50%) scale(1.06); }
.acc-nav[hidden] { display: none; }
.acc-prev { left: max(10px, calc(var(--gutter) - 6px)); }
.acc-next { right: max(10px, calc(var(--gutter) - 6px)); }
@media (hover: none) { .acc-nav { display: none; } }
@media (max-width: 640px) { .book { height: 470px; } .bb .tag { font-size: 1rem; } .bb::before { inset: -8px; border-width: 4px; } }
@media (prefers-reduced-motion: reduce) {
  .bb .ph, .bb::before, .bb .tag, .book-dots button { transition-duration: .01s !important; transition-delay: 0s !important; }
  .bb, .bb::before { animation: none; }
}

/* ---------- Videos ---------- */
.videos { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.video { margin: 0; }
.video .player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--ink) center / cover no-repeat;
}
.video button.player { width: 100%; border: 0; padding: 0; cursor: pointer; display: block; }
.video .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s;
}
.video .play::after { content: ""; border-left: 20px solid var(--rose); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 5px; }
.video button.player:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video figcaption { font-weight: 700; font-size: .95rem; letter-spacing: .02em; color: var(--heading); margin-top: .8rem; text-align: center; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about > * { margin: 0; max-width: none; }
.about { max-width: none; }
.about-art { position: relative; max-width: 520px; justify-self: end; width: 100%; }
.about-palette { transform: rotate(-3deg); }
.about-palette .tape { background: rgba(157, 178, 100, .72); }
.about-brush { width: 88%; margin: 1.6rem auto 0; transform: rotate(-6deg); opacity: .95; }
.about-text { max-width: 60ch; }
.about-text .swash { margin-left: 0; }
.about-text p { color: var(--ink-soft); }
.signoff { font-size: 2.2rem; color: var(--rose); margin: .2rem 0 1.2rem; transform: rotate(-4deg); transform-origin: left; }
.about-quote { max-width: min(420px, 100%); border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
@media (max-width: 820px) {
  .about { grid-template-columns: minmax(0, 1fr); } /* minmax: never wider than the phone */
  .about-art { justify-self: center; max-width: 440px; }
}

/* ---------- Hello ---------- */
.hello-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.2rem, 4vw, 3rem);
  max-width: 900px;
}
.hello-card > * { position: relative; z-index: 1; }
.hello-card > p:not(.kicker) { color: var(--ink-soft); max-width: 44ch; margin: 1rem auto 1.8rem; }
/* icon-only circles, each a little hand-made (no two quite round); paint bleeds into them on hover (js/splash.js) */
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.socials a {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; text-decoration: none; color: var(--ink);
  border-radius: 50% 47% 52% 49% / 48% 52% 47% 51%; background: var(--paper); border: 1.5px solid var(--line);
  transition: transform .15s, border-color .2s, background .2s;
}
.socials li:nth-child(2n) a { border-radius: 47% 53% 49% 51% / 52% 47% 53% 48%; }
.socials li:nth-child(3n) a { border-radius: 52% 48% 46% 54% / 49% 53% 47% 51%; }
.socials a:hover { transform: translateY(-2px); border-color: var(--ink-soft); background: #fff; }
.socials svg { width: 22px; height: 22px; }
@media (max-width: 480px) { /* all of them in one row on a phone */
  .socials { gap: .5rem; }
  .socials a { width: 2.95rem; height: 2.95rem; }
  .socials svg { width: 20px; height: 20px; }
}
/* the newsletter sign-up in the "Let's be friends" card (js/letters.js) */
.letters { margin: 2.4rem auto 0; padding-top: 2rem; border-top: 1.5px dashed var(--line); max-width: 560px; }
.letters-title { font-size: 1.6rem; color: var(--rose); margin: 0; line-height: 1.2; }
.letters-note { color: var(--ink-soft); font-size: .92rem; margin: .5rem auto 1.2rem; max-width: 42ch; }
.letters-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.letters input[type="email"] {
  flex: 1 1 240px; max-width: 330px; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem 1.2rem; border-radius: 99px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.letters input[type="email"]::placeholder { color: #b3a79c; }
.letters input[type="email"]:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(94, 171, 201, .18); }
.letters .btn[disabled] { opacity: .6; cursor: progress; }
.letters-msg { min-height: 1.5em; margin: .9rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.letters-msg.ok { color: var(--ink); font-weight: 600; }
.letters-msg.oops { color: #b4546e; }
.letters.done .letters-row { display: none; } /* signed up: the thank-you takes its place */
.letters-honey, .letters-post { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; border: 0; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 2rem var(--gutter) 3rem; color: var(--ink-soft); font-size: .92rem; }
.foot p { margin: .2rem 0; }
.foot .script { font-size: 1.5rem; margin-top: .4rem; color: var(--rose); }
/* the little mushroom after "thank you for visiting" */
.shroom { width: 1.2em; height: 1.2em; vertical-align: -.2em; margin-left: .1em; transform: rotate(9deg); overflow: visible; }
.shroom path { stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.shroom-cap { fill: var(--rose); }
.shroom-stem { fill: #fbf1e3; }
.shroom circle { fill: #fff; }
/* boop it: it bounces and puffs out spores (js/shroom.js) */
.shroom-btn {
  position: relative; display: inline-block; padding: .4em; margin: -.4em -.4em -.4em -.3em; border: 0; background: none;
  font: inherit; color: inherit; line-height: 0; vertical-align: -.2em; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.shroom-btn .shroom { vertical-align: 0; margin: 0; transform-origin: 50% 90%; }
.shroom-btn:hover .shroom { animation: shroom-wiggle .7s ease-in-out; }
@keyframes shroom-wiggle { 30% { transform: rotate(0deg); } 60% { transform: rotate(15deg); } }
.shroom-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 0; border-radius: 50%; }
.spore {
  position: absolute; left: 50%; top: 42%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; background: var(--c); pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .shroom-btn:hover .shroom { animation: none; } }
.noscript { text-align: center; padding: 1rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: rgba(33, 27, 24, .92); color: #fff;
  display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: transparent; }
/* the page behind stays put while a piece is shown large */
html:has(dialog.lightbox[open]) { overflow: hidden; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: calc(100vw - 140px); }
.lb-fig img { max-width: 100%; max-height: calc(100dvh - 130px); width: auto; object-fit: contain; cursor: url("../images/cursors/zoom-out.svg?v=2") 13 13, zoom-out; border-radius: 6px; will-change: transform; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lb-fig figcaption { text-align: center; font-family: var(--display); font-size: 1.15rem; font-weight: 500; font-variation-settings: "SOFT" 50; }
.lb-words { display: block; max-width: 40ch; margin: .8rem auto 0; font-style: italic; font-size: 1rem; font-weight: 400; line-height: 1.5; opacity: .92; animation: lb-note .9s ease .45s both; }
.lb-by { display: block; font-family: var(--hand); font-style: normal; font-size: 1.35rem; margin-top: .25rem; color: color-mix(in srgb, var(--rose) 72%, #fff); }
@keyframes lb-note { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .lb-words { animation: none; } }
.lb-fig figcaption .k { display: block; font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; margin-top: .3rem; opacity: .7; }
.lb-close, .lb-nav {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12);
  border-radius: 50%; display: grid; place-items: center; transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; padding-bottom: 4px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
@media (max-width: 640px) {
  .lb-fig { max-width: calc(100vw - 24px); }
  .lb-nav { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
  .lb-fig img { max-height: calc(100dvh - 190px); }
}

.load-error { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); }

/* Pause / play switch for the moving gallery */
.acc-pause {
  margin-left: .8rem; padding: .3rem .75rem; border-radius: 99px; cursor: pointer; vertical-align: middle;
  font: 600 .66rem var(--body); text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-soft); background: #fff; border: 1.5px solid var(--line);
}
.acc-pause:hover { border-color: var(--ink-soft); color: var(--ink); }
.acc-pause.stopped { background: var(--ink); color: #fff; border-color: var(--ink); }

/* read aloud, never shown */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* New work: a little less air above it, so heading and palette fit on one screen */
.section#new { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
#new .section-head { margin-bottom: 1.4rem; }

/* ---------- Brush strokes between sections: a wet edge sweeps them on once (js/doodles.js) ---------- */
/* The same brush stroke as under the headings, just bigger. The first time one scrolls into
   view, a soft wet edge glides across and leaves the paint behind (right to left on the
   flipped ones), then it stays until the page is refreshed. The svg box is padded out and
   pulled back so the mask also covers the rough brush edges that spill past it. */
.doodle {
  display: flow-root; width: clamp(220px, 38vw, 480px); height: clamp(16px, 1.9vw, 24px);
  margin: .4rem auto; pointer-events: none; transform: rotate(-1.2deg);
}
.doodle.flip { transform: scaleX(-1) rotate(-1.5deg); } /* painted from the other side */
.doodle[hidden] { display: none; }
.doodle svg {
  display: block; box-sizing: content-box; width: 100%; height: 100%; padding: 8px; margin: -8px;
  overflow: visible; fill: var(--line, var(--rose));
}
.doodle.waiting svg, .doodle.in svg {
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 250% 100% no-repeat;
          mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 250% 100% no-repeat;
}
.doodle.in svg { animation: stroke-sweep 1.7s cubic-bezier(.45, .1, .35, 1) both; }
@keyframes stroke-sweep {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0 0;    mask-position: 0 0; }
}

/* a gentle nudge toward commissions, at the end of About */
/* ---------- Kind words: buyers' notes taped up under About (one is on the commissions page too) ---------- */
.kind-words { grid-column: 1 / -1; min-width: 0; margin-top: clamp(1rem, 3vw, 2.2rem); text-align: center; }
.kw-title { font-size: clamp(1.9rem, 4.2vw, 2.5rem); color: var(--rose); margin: 0 0 1.4rem; }
.kw { list-style: none; margin: 0; padding: 1.2rem .6rem 1.6rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 2.6vw, 2.2rem); align-items: start; text-align: left; }
.kw-note { position: relative; transform: rotate(var(--tilt, 0deg)); }
.kw-note::before { /* a soft wash of colour soaked into the wall behind the note */
  content: ""; position: absolute; inset: -16px -12px -20px -18px;
  border-radius: 46% 54% 42% 58% / 55% 45% 58% 42%;
  background: radial-gradient(circle at 42% 46%, color-mix(in srgb, var(--c) 42%, transparent), color-mix(in srgb, var(--c) 16%, transparent) 66%, transparent 72%);
  filter: blur(2px);
}
.kw-note .tape { background: var(--t, rgba(242, 204, 98, .72)); width: 74px; }
.kw-note:nth-child(2n) .tape { transform: translateX(-50%) rotate(3deg); }
.kw-paper { position: relative; padding: 1.5rem 1.25rem 1.1rem; background: #fffdf8; border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow); }
.kw-paper blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: 1rem; line-height: 1.55; color: var(--ink); font-variation-settings: "SOFT" 60; }
.kw-paper blockquote::before { content: "“"; display: block; height: .55em; font-size: 2.6rem; line-height: 1; color: color-mix(in srgb, var(--c) 80%, var(--ink)); }
.kw-by { margin: .7rem 0 0; font-family: var(--hand); font-size: 1.45rem; line-height: 1.2; color: var(--ink); }
.kw-by span { display: block; font-family: var(--body); font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-soft); margin-top: .45rem; }
/* Now and then a breeze catches the notes: held up by their tape, their bottoms lift, flutter and
   settle, the gust reaching them one after another (like the taped prints at the top). */
.kw-paper { transform-origin: 50% 0; animation: note-flutter 8s ease-in-out infinite; animation-delay: calc(1.5s + var(--i, 0) * .22s); }
.kw-note:nth-child(2) .kw-paper { --i: 1; --gust: .85; }
.kw-note:nth-child(3) .kw-paper { --i: 2; --gust: 1.15; }
.kw-note:nth-child(4) .kw-paper { --i: 3; --gust: .95; }
@keyframes note-flutter {
  0%, 50%   { transform: perspective(600px) rotateX(0deg) skewX(0deg); }
  55%       { transform: perspective(600px) rotateX(calc(14deg * var(--gust, 1))) skewX(calc(-1.2deg * var(--gust, 1))); }
  61%       { transform: perspective(600px) rotateX(calc(-4deg * var(--gust, 1))) skewX(calc(.8deg * var(--gust, 1))); }
  67%       { transform: perspective(600px) rotateX(calc(8deg * var(--gust, 1))) skewX(calc(-.5deg * var(--gust, 1))); }
  73%       { transform: perspective(600px) rotateX(calc(-2deg * var(--gust, 1))) skewX(calc(.2deg * var(--gust, 1))); }
  79%       { transform: perspective(600px) rotateX(calc(3deg * var(--gust, 1))) skewX(0deg); }
  86%, 100% { transform: perspective(600px) rotateX(0deg) skewX(0deg); }
}
@media (prefers-reduced-motion: reduce) { .kw-paper { animation: none; } }
/* piled up (js/kindwords.js): the top note shows, the rest peek out underneath until the breeze takes it */
.kw.stacked { display: flex; justify-content: center; overflow: visible; padding: 2.8rem 1rem 2.6rem; scroll-snap-type: none; }
.kw-stack { position: relative; flex: 0 1 21rem; min-width: 0; }
/* the ink spreads under the whole pile and changes colour, softly, when the top note blows away */
.kw-ink { position: absolute; left: -26%; top: -24%; width: 152%; height: 148%; overflow: visible; z-index: 0; pointer-events: none;
  color: var(--kw-ink, #f2cc62); transition: color 1.4s ease; transform: rotate(-4deg); } /* (not --ink: that is the text colour) */
/* every note in the pile is the same size of paper; the words are sized to fit it (kindwords.js) */
.kw-pile { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; aspect-ratio: 1 / .92; }
.kw-pile .kw-note { position: absolute; inset: 0 0 auto 0; transition: transform .8s cubic-bezier(.3, .7, .3, 1); }
.kw-pile .kw-note::before { display: none; } /* the pile's ink replaces each note's own wash */
.kw-pile .kw-note .kw-paper { /* the breeze is kindwords.js's job here */
  animation: none; aspect-ratio: 1 / .92; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: 1.5rem 1.6rem 1.4rem;
}
.kw-pile .kw-paper blockquote { line-height: 1.5; }
.kw-pile .kw-by { margin-top: .9rem; }
.kw-pile .kw-note.on-top { cursor: pointer; }
@media (max-width: 700px) { .kw-stack { flex-basis: min(21rem, 72vw); } } /* room for the wonky corners on a phone */
@media (max-width: 1000px) { .kw { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { /* a row of notes to swipe through; the next one peeks in */
  .kw { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.1rem; padding: 1.4rem 1.2rem 1.8rem; scrollbar-width: none; }
  .kw::-webkit-scrollbar { display: none; }
  .kw-note { flex: 0 0 80%; scroll-snap-align: center; }
}
/* the single note by the price on the commissions page */
.kw-solo { max-width: 26rem; margin: 2.4rem auto 0; text-align: left; }
.about-commission { color: var(--ink-soft); margin: .4rem 0 1.4rem; }
.about-commission a { color: var(--ink); font-weight: 600; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 3px; }
