/* barbaramicallef.com — one stylesheet for every page.
   The wall is quiet so the work is not: warm paper, one serif, and the only strong colour on
   any page comes out of Barbara's own paintings (see _build/prepare-art.py). */
:root{
  --paper:#f3efe8;
  --paper-2:#ece7dd;
  --ink:#241e19;
  --ink-2:#5f564d;
  --ink-3:#8b8176;
  --rule:#ddd5c8;
  --serif:'EB Garamond',Georgia,'Times New Roman',serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --hand:'Caveat','Segoe Script',cursive;
  color-scheme:light;
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  background:var(--paper);color:var(--ink);font-family:var(--serif);
  font-size:18px;line-height:1.6;-webkit-font-smoothing:antialiased;padding:0 0 90px;
}
img,video{max-width:100%}
/* Wider since Oct 9 (Rich: "a bit narrow"). The wall has room for three columns on a laptop;
   the paintings do not widen with it — each piece keeps its own max, centred, because a
   watercolour blown up to 1100px is a photograph of a watercolour blown up to 1100px. */
.wrap{max-width:1180px;margin:0 auto;padding:0 22px}
.label{font-family:var(--sans);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-3)}

/* ---------- masthead, on every page ----------
   Sticky, so the rooms are always one tap away while you scroll a long wall of paintings.
   It gives up height once you are moving (.is-stuck): on a phone the nav is worth keeping,
   the generous padding is not. The paper background is opaque — a translucent bar over a
   painting reads as a smudge on the glass. */
.mast{position:sticky;top:0;z-index:20;
  padding:clamp(26px,5vw,44px) 0 clamp(18px,3vw,26px);
  transition:padding .2s ease}
/* The bar itself lives inside the 1180px column, but its paper, its hairline and its shadow run the
   whole width of the screen (Rich, Oct 17: "the header doesn't go all the way across"). */
.mast::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;
  transform:translateX(-50%);background:var(--paper);pointer-events:none;
  transition:box-shadow .2s ease}
.mast.is-stuck{padding-top:11px;padding-bottom:10px}
.mast.is-stuck::before{box-shadow:0 10px 18px -16px rgba(36,30,25,.8)}
body{overflow-x:clip}   /* 100vw counts the scrollbar on a laptop; never let that become a sideways scroll */
.mast.is-stuck .home b{font-size:clamp(17px,2.6vw,21px)}
.mast.is-stuck nav{margin-top:9px;padding-top:9px}
.mast .home b{transition:font-size .2s ease}
.mast nav{transition:margin-top .2s ease, padding-top .2s ease}
/* the sticky bar would otherwise sit on top of whatever you jump to */
:target{scroll-margin-top:110px}
.mast .home{display:inline-block;text-decoration:none;color:inherit}
.mast .home:hover b{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.mast .home b{font-weight:400;font-size:clamp(23px,3.6vw,30px);letter-spacing:-.01em}
.mast nav{position:relative;margin-top:14px;display:flex;gap:20px;flex-wrap:wrap;padding-top:13px}
.mast nav::before{content:"";position:absolute;top:0;left:50%;width:100vw;transform:translateX(-50%);
  border-top:1px solid var(--rule);pointer-events:none}
.mast nav a{font-family:var(--sans);font-size:11.5px;letter-spacing:.15em;text-transform:uppercase;
  color:var(--ink-2);text-decoration:none;padding-bottom:2px;border-bottom:1px solid transparent}
.mast nav a:hover{color:var(--ink)}
.mast nav a[aria-current="page"]{color:var(--ink);border-bottom-color:var(--ink)}
/* Five rooms stopped fitting one phone line when Collage arrived, and WISHES dropped alone to the
   second row (Rich, Oct 12: "the menu is a little funny the way it wraps"). At 375px the five
   labels want 342px of a 331px line — barely over — so a small step down in size and tracking
   puts them all back on one row, justified edge to edge so it reads as a deliberate rule rather
   than a stranded word. This has to sit AFTER the base rule or it loses to it on source order. */
@media(max-width:560px){
  .mast nav{gap:0 10px;row-gap:9px;justify-content:space-between}
  /* Four labels since "Home" came off (Oct 14) — the masthead name is the way back — so the
     phone nav can have some size back: 10.5px, measured to one row at 375px with room to spare. */
  .mast nav a{font-size:10.5px;letter-spacing:.03em}
}

/* ---------- home ----------
   Barbara beside the welcome, not in a frame: the frames belong to her paintings, and putting
   her photograph in one would make her another picture on the wall. A plain print, a soft
   shadow, and the words sitting on its baseline. */
/* Words only up top now; the portrait moved down to open the About section (Rich, Oct 14). */
.hero{padding:clamp(28px,6vw,64px) 0 clamp(26px,4vw,44px)}
/* The About section: a rule above it marks the turn from the rooms to her, and she sits at the
   top of it at a modest size — a photograph beside a few paragraphs, not a billboard. Same size
   on a phone; it was "a little in your face" at full width. */
/* Her photograph and name on the left, the story beside them (Rich, Oct 16) — stacked, the
   block filled the left half of a wide screen and left the right half empty. Below 700px it
   returns to one column, which is what a phone wants anyway. */
.about{border-top:1px solid var(--rule);padding-top:clamp(34px,5vw,56px);margin-top:clamp(40px,6vw,70px);
  display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);
  column-gap:clamp(30px,5vw,64px);align-items:start}
/* A quiet line under the About section: this is a starter, and Mom will shape the rest (Rich, Oct 16). */
.starter-note{margin:clamp(30px,4.5vw,46px) 0 0;font-family:var(--serif);font-style:italic;
  font-size:clamp(15px,1.5vw,17px);line-height:1.5;color:var(--ink-3)}
@media print{.starter-note{font-size:9pt;color:#555}}
.about .who{min-width:0}
.about .bio{min-width:0}
@media(max-width:700px){.about{grid-template-columns:1fr;row-gap:4px}}
.portrait{margin:0 0 clamp(14px,2vw,20px)}
.portrait img{display:block;width:clamp(120px,15vw,170px);height:auto;border-radius:2px;
  box-shadow:0 1px 2px rgba(36,30,25,.18), 0 16px 34px -20px rgba(36,30,25,.6)}
/* Her full name, set in the handwriting face so it reads the way a signature does on the
   paper itself, with a quiet gloss after it. The About section carries the longer version. */
.fullname{font-family:var(--hand);font-size:clamp(23px,3.6vw,30px);color:var(--ink-2);
  margin:12px 0 20px;line-height:1.2}
.fullname span{display:block;font-family:var(--sans);font-size:10.5px;letter-spacing:.11em;
  line-height:1.7;text-transform:uppercase;color:var(--ink-3);margin-top:8px;max-width:44ch}
  /* 44ch, up from 34: the gloss lost "her maiden name" (Oct 14) and now fits one line at
     every width — the old cap was breaking it in two for no reason. */
@media(max-width:620px){.fullname span{letter-spacing:.09em}}
.hero .for{font-family:var(--hand);font-size:clamp(21px,3.6vw,28px);color:var(--ink-2);margin-bottom:10px}
/* The hero heading is the same size and face as every room title (Rich, Oct 14) */
.hero h1{font-weight:400;font-size:clamp(32px,6vw,50px);letter-spacing:-.012em;line-height:1.15}
/* full width (Rich, Oct 14): no column cap and no balancing, so it runs one line where it fits */
/* The show has a title and a subtitle now (Rich, Oct 14): the subtitle in the italic, one step
   quieter, like the second line on an exhibition wall. */
.hero .sub{margin-top:10px;max-width:none;font-style:italic;font-size:clamp(18px,2.3vw,23px);
  line-height:1.4;color:var(--ink-2);text-wrap:balance}   /* no stranded last word on a phone */
/* The O'Keeffe line, at the foot of the Watercolors room (Rich, Oct 14): a rule across to close
   the gallery, the quote in the italic on the page's left spine, the source in small caps. */
.epigraph{margin:clamp(44px,6vw,72px) 0 0;padding-top:clamp(26px,3.6vw,40px);
  border-top:1px solid var(--rule);max-width:none}
.epigraph p{margin:0;font-style:italic;font-size:clamp(20px,2.6vw,27px);line-height:1.4;color:var(--ink-2)}
.epigraph cite{display:block;margin-top:9px;font-style:normal;font-family:var(--sans);
  font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.hero p{margin-top:16px;color:var(--ink-2);font-size:clamp(17px,2.2vw,21px);max-width:40ch}

/* beside the photograph the byline is a caption, not a headline: close to the picture,
   a little air before the paragraphs */
.about .fullname{margin:0 0 clamp(16px,2.4vw,24px)}
.rooms{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:clamp(20px,4vw,38px)}
/* four rooms since the collages got their own (Oct 11): four across on a wide screen,
   two-by-two on a tablet, stacked on a phone — never three and a lonely fourth. */
@media(max-width:1000px){.rooms{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.rooms{grid-template-columns:1fr}}
.room{text-decoration:none;color:inherit;display:block}
/* a <span> by default is inline, so aspect-ratio and overflow were both ignored and the
   cover painting spilled over the caption underneath it */
.room .shot{display:block;aspect-ratio:4/3;background:var(--paper-2);overflow:hidden;border-radius:2px;
  box-shadow:0 1px 2px rgba(36,30,25,.14), 0 14px 30px -18px rgba(36,30,25,.5)}
.room .shot img{width:100%;height:100%;object-fit:cover;display:block}
/* A little party on the Birthday wishes door (Rich, Oct 16): confetti and balloons that bob
   gently over the photograph. Decoration only, so it stays still for anyone who asks for that. */
.room .shot.party{position:relative}
.room .shot.party i{position:absolute;left:var(--x);top:var(--y);font-style:normal;font-size:var(--s);
  line-height:1;pointer-events:none;filter:drop-shadow(0 0 5px rgba(255,255,255,.85)) drop-shadow(0 2px 3px rgba(36,30,25,.4));
  animation:bm-bob 3.2s ease-in-out var(--d) infinite}
@keyframes bm-bob{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-6px) rotate(7deg)}}
@media(prefers-reduced-motion:reduce){.room .shot.party i{animation:none}}
@media print{.room .shot.party i{display:none}}
.room .shot.empty{display:grid;place-items:center;color:var(--ink-3);font-size:15px;text-align:center;padding:14px}
.room h2{font-weight:400;font-size:21px;margin-top:11px}
.room p{color:var(--ink-2);font-size:15.5px;line-height:1.45}
.room:hover h2{text-decoration:underline;text-underline-offset:3px}

/* ---------- page heads ----------
   The title, then two paragraphs side by side: what the room is on the left, and the note about
   what is still coming on the right, smaller. Stacked, the two of them were pushing the work
   itself below the fold (Rich, Oct 10: "I don't like how tall those are getting"). */
.page-head{padding:clamp(14px,3vw,30px) 0 clamp(24px,3.5vw,40px)}
/* Headings and their one-line subheadings run the full width of the page — never a
   column (Rich, Oct 16). Only body paragraphs get a measure. */
.page-head h1{font-weight:400;font-size:clamp(32px,6vw,50px);letter-spacing:-.012em;max-width:none}
.page-head .head-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.72fr);
  gap:clamp(18px,3vw,40px);align-items:start;margin-top:12px}
.page-head p{color:var(--ink-2);max-width:none;margin:0}
.page-head .soon{margin:0;padding-left:clamp(14px,2vw,22px);border-left:1px solid var(--rule);
  font-family:var(--hand);font-size:clamp(17px,2vw,20px);line-height:1.3;color:var(--ink-3);max-width:34ch}
@media(max-width:700px){
  .page-head .head-cols{grid-template-columns:1fr;gap:14px}
  .page-head .soon{padding-left:0;border-left:0;border-top:1px solid var(--rule);padding-top:12px}
}
.about p,.hero p{max-width:60ch}
/* One welcoming line under each room title. The two-column head with its "more to come" note
   was doing too much explaining for a gift (Rich, Oct 14) — the pictures can speak. */
.page-head .lede{margin-top:12px;max-width:none;
  font-size:clamp(17px,2.1vw,20px);line-height:1.45;color:var(--ink-2)}


/* The line that says who this is from (Rich, Oct 14). It sits under the page head on the wishes
   page only — a small festive band in her own handwriting face, warm enough to read as a card
   and quiet enough not to fight the wall of messages underneath it. */
/* `.page-head p` clamps paragraphs to 52ch and outranks a bare `.gift`, so this has to be
   scoped to the parent to win on specificity — otherwise the band is a column, not a banner. */
.page-head .gift{max-width:none;margin:0 0 clamp(34px,5vw,56px)}
/* the margin lives here too: `.page-head p{margin:0}` outranks a bare `.gift`, so the gap
   under the band was 0 whatever `.gift` said (measured, Oct 14) */
/* Laid out like a birthday card (Rich, Oct 14): the cake on top, the greeting under it in her
   handwriting face, and who it is from in a smaller line beneath. */
.gift{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(6px,1vw,10px);
  margin:0 0 clamp(34px,5vw,56px);
  padding:clamp(22px,3.4vw,36px) clamp(16px,3vw,26px) clamp(20px,3vw,32px);
  background:linear-gradient(176deg,#fdfbf7 0%,#f4eee3 100%);
  border:1px solid var(--rule);border-radius:3px;text-align:center;
  font-family:var(--hand);line-height:1.2;color:#30291f}
.gift .cake{flex:none;width:clamp(64px,8vw,92px);height:auto;margin-bottom:clamp(6px,1vw,10px)}
.gift .greet{font-size:clamp(32px,4.6vw,48px);font-weight:500;color:var(--ink);text-wrap:balance}
.gift .from{font-size:clamp(19px,2.3vw,25px);font-weight:400;color:var(--ink-2)}
.gift .from b{font-weight:500;color:var(--ink)}
.gift .cake .tier{fill:#8d6b4e}
.gift .cake .ice{fill:#c9a97f}
.gift .cake .plate{fill:var(--ink-3)}
.gift .cake .wick{fill:#5c4a38}
.gift .cake .flame{fill:#d9a033}


/* ---------- a piece on the wall ----------
   Barbara picks a frame that answers the painting — the dark of the line work, or a colour the
   picture already leans on, never anything ornate. Every frame here is picked the same way, by
   reading the painting's own pixels. --frame/--mat/--accent are set per piece. */
.piece{margin:0 auto clamp(54px,9vw,96px);max-width:min(100%,var(--max,780px))}
.frame{background:var(--frame,#2a2320);padding:clamp(9px,1.5vw,17px);border-radius:2px;
  box-shadow:0 1px 2px rgba(36,30,25,.22), 0 18px 40px -18px rgba(36,30,25,.55)}
.mat{background:var(--mat,#f4f2ee);padding:clamp(13px,3.2vw,38px);position:relative}
.mat::after{content:"";position:absolute;inset:clamp(12px,3.1vw,37px);
  box-shadow:0 0 0 1px rgba(36,30,25,.16);pointer-events:none}
.mat img{display:block;width:100%;height:auto}
.caption{display:flex;gap:12px;align-items:baseline;margin-top:15px;padding-left:2px}
.caption .tick{width:16px;height:2px;flex:none;background:var(--accent,#8b8176);transform:translateY(-4px)}
.caption .t{font-style:italic;font-size:17.5px}
.caption .t.untitled{font-style:normal;color:var(--ink-3)}
.caption .m{font-family:var(--sans);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.caption .note{display:block;font-style:normal;color:var(--ink-2);font-size:16px;margin-top:5px;max-width:52ch}

/* ---------- pottery: it rests, it does not hang ---------- */
.pots{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(26px,5vw,54px)}
@media(max-width:640px){.pots{grid-template-columns:1fr}}
.pot img{display:block;width:100%;height:auto;filter:drop-shadow(0 20px 18px rgba(36,30,25,.2))}
.pot .ledge{height:1px;background:var(--rule);margin-top:16px}
.pot .cap{margin-top:11px}
/* the "nothing here yet" panel. Scoped to the walls on purpose: a room's cover on the home page
   is also `.shot.empty`, and it was picking up this dashed border and reading as a broken image
   (Rich, Oct 12: "a big white thing"). */
.films .empty, .notes .empty, .pots .empty{border:1px dashed var(--rule);border-radius:3px;
  padding:34px 24px;text-align:center;color:var(--ink-3)}
.films .empty p, .notes .empty p, .pots .empty p{max-width:42ch;margin:0 auto;font-size:17px}

/* ---------- messages ---------- */
/* Masonry, the same as the notes below: each card goes to whichever column is shortest, so a
   short video does not leave a hole waiting for the tall one beside it to finish. A real grid
   aligns rows; a wall of films shouldn't. Three columns on a laptop, two on a tablet, one on a
   phone — the script decides, the stylesheet just spaces them. */
.films{display:flex;gap:clamp(24px,3.2vw,36px);align-items:flex-start;margin-bottom:clamp(34px,5vw,54px)}
.films .col{flex:1 1 0;min-width:0}
/* These are separate people saying separate things, and at the old spacing one person's
   handwriting ran straight into the next person's photograph (Rich, Oct 11: "things are
   butting together").

   The gap is set on the CARDS, not on `.col > *`, because on a phone there are no columns:
   balance() appends all nineteen cards straight into `.films` when it only wants one column.
   Every column-scoped rule here was therefore dead on a phone, which left film cards touching
   with no margin at all — the very thing being complained about (found and fixed Oct 12). */
.films .film, .films .note-card{margin-bottom:clamp(34px,4.6vw,56px)}
.films .col > *:last-child, .films > *:last-child{margin-bottom:0}
@media(max-width:700px){.films{display:block}.films .col{width:100%}
  .films .film, .films .note-card{margin-bottom:46px}}
.film video{display:block;width:100%;height:auto;background:#1c1915;border-radius:2px;
  box-shadow:0 1px 2px rgba(36,30,25,.2), 0 16px 34px -20px rgba(36,30,25,.5)}
.film .who{font-family:var(--sans);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-3);margin-top:11px}
.film .said{font-family:var(--hand);font-size:21px;line-height:1.35;color:#30291f;margin-top:5px}
/* Two real columns, filled by height rather than by order. CSS `columns` pours everything
   into the left one until it is full, which left a tall stack beside a short one as soon as a
   note carried two photographs. Now the script hands each card to whichever column is currently
   shorter, and measures again once the pictures have loaded. (Rich, 2026-10-06) */
.notes{display:flex;gap:22px;align-items:flex-start}
.notes:empty{display:none}   /* one wall now: everything lives in .films */
.notes .col{flex:1 1 0;min-width:0}
@media(max-width:720px){.notes{display:block}.notes .col{width:100%}}
.note-card{break-inside:avoid;background:#fbf8f3;border:1px solid var(--rule);border-radius:3px;
  padding:20px 20px 16px;margin:0 0 22px;box-shadow:0 1px 0 rgba(36,30,25,.04)}
.note-card p{font-family:var(--hand);font-size:23px;line-height:1.35;color:#30291f}
.note-card .from{font-family:var(--sans);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-3);margin-top:12px}
.note-card img{display:block;width:100%;height:auto;border-radius:2px;margin-bottom:14px}

/* ---------- about + footer ---------- */
.about p{max-width:62ch;margin-bottom:16px;color:var(--ink-2)}
.about p strong{color:var(--ink);font-weight:500}
footer{margin-top:clamp(50px,8vw,86px);padding-top:20px;border-top:1px solid var(--rule);
  font-family:var(--sans);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
/* The refresh escape hatch (Oct 16). Same size and colour as the footer line but a touch
   fainter, so it reads as part of the furniture rather than a control; a guest will never
   notice it, and it is never printed. */
.refresh{display:inline-block;margin-left:0;padding:3px 9px;font:inherit;
  background:none;border:1px solid transparent;border-radius:2px;
  color:var(--ink-3);opacity:.5;cursor:pointer;-webkit-appearance:none;appearance:none}
.refresh:hover,.refresh:focus-visible{opacity:1;border-color:var(--rule);color:var(--ink-2)}
@media print{.refresh{display:none !important}}
/* The tiny cake link (Oct 27; class .wishes-link, NOT .cake: birthday-wishes.html has its own big .cake svg): bottom right of the footer, the only way to the birthday wishes. Faint at rest,
   in colour on hover; never printed. The footer becomes a row so it can sit at the far right. */
footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wishes-link{order:9;display:inline-block;width:18px;height:18px;margin-left:auto;opacity:.32;transition:opacity .2s,transform .2s;line-height:0}
.wishes-link svg{width:100%;height:100%;display:block}
.wishes-link .t1{fill:#f3c6cf}.wishes-link .t2{fill:#fbe3e8}.wishes-link .ic{fill:none;stroke:#e79aab;stroke-width:1.1;stroke-linecap:round}
.wishes-link .cd{fill:#9fc3e6}.wishes-link .fl{fill:#f5b941}.wishes-link .pl{stroke:#c9b8a8;stroke-width:1.2;stroke-linecap:round}
.wishes-link:hover,.wishes-link:focus-visible{opacity:1;transform:translateY(-2px) rotate(-6deg)}
@media print{.wishes-link{display:none !important}}

/* ---------- lightbox ----------
   Tap any picture to see it properly: a painting at 2600px against a near-black ground, with
   its label underneath. Escape or a tap closes it. The ground is dark here and nowhere else —
   this is the one moment the room should disappear and leave only the painting. */
/* The ground was 94% opaque, which left the sticky masthead ghosting through the top of the
   overlay — on a phone it read as the nav floating over the painting (Oct 12). The stacking was
   always right; it was the last 6%. Blurred as well, where the browser allows it, so anything
   still showing through is unreadable rather than half-readable. */
.lb{position:fixed;inset:0;z-index:60;display:none;background:rgba(18,15,12,.985);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  padding:clamp(14px,3vw,38px);cursor:zoom-out}
.lb.on{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.lb img{max-width:100%;max-height:calc(100dvh - 150px);object-fit:contain;display:block;
  box-shadow:0 30px 70px -30px rgba(0,0,0,.9)}
.lb .lb-cap{font-family:var(--sans);font-size:11px;letter-spacing:.13em;text-transform:uppercase;
  color:#c9c0b4;text-align:center;max-width:60ch}
.lb .lb-cap i{display:block;font-family:var(--serif);font-style:italic;font-size:17px;
  letter-spacing:0;text-transform:none;color:#f1ece4;margin-bottom:6px}
.lb .lb-close{position:absolute;top:10px;right:14px;width:42px;height:42px;border:0;border-radius:50%;
  background:rgba(255,255,255,.1);color:#f1ece4;font-size:21px;line-height:1;cursor:pointer}
.lb .lb-close:hover{background:rgba(255,255,255,.2)}
.lb .lb-step{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border:0;
  border-radius:50%;background:rgba(255,255,255,.1);color:#f1ece4;font-size:20px;cursor:pointer}
.lb .lb-prev{left:10px}
.lb .lb-next{right:10px}
.lb .lb-step:hover{background:rgba(255,255,255,.2)}
@media(max-width:620px){.lb .lb-step{display:none}}   /* swipe instead */
.zoomable{cursor:zoom-in}

/* a voice message: the photograph, then the recording. Same column as the films. */
.film.voice img{display:block;width:100%;height:auto;border-radius:2px;
  box-shadow:0 1px 2px rgba(36,30,25,.2), 0 16px 34px -20px rgba(36,30,25,.5)}
.film.voice audio{display:block;width:100%;margin-top:11px}

/* The plate a voice gets when it came without a photograph: the footprint of a film, so a
   recording holds the wall the way a face does. Paper rather than the video's near-black —
   this is a card on the wall, not a screen. */
/* Half the height it was (Rich, Oct 14) — a voice should announce itself on the wall without
   taking a film's whole footprint, and the plate is a button now, so it wants to look pressable
   rather than like a blank canvas. */
.film.voice .voice-plate{display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:13px;aspect-ratio:8/5;padding:20px;text-align:center;border-radius:2px;width:100%;
  background:linear-gradient(174deg,#fdfbf7 0%,#f2ece1 100%);
  border:1px solid var(--rule);font:inherit;color:inherit;cursor:pointer;
  box-shadow:0 1px 2px rgba(36,30,25,.2), 0 16px 34px -20px rgba(36,30,25,.5);
  transition:background .18s ease, box-shadow .18s ease}
.film.voice button.voice-plate:hover{background:linear-gradient(174deg,#fffefb 0%,#efe8da 100%)}
.film.voice button.voice-plate:active{box-shadow:0 1px 2px rgba(36,30,25,.22)}
.film.voice button.voice-plate:focus-visible{outline:2px solid var(--ink-3);outline-offset:3px}
.film.voice .voice-plate .wave{display:block;width:min(56%,170px);height:auto;fill:var(--ink-3)}
.film.voice .voice-plate .kind{font-family:var(--sans);font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ink-3)}
/* the triangle, and the two bars it becomes once the recording is running */
.film.voice .voice-plate .play{display:block;width:38px;height:38px;border-radius:50%;
  border:1px solid var(--rule);background:#fffdf9;position:relative;flex:none}
.film.voice .voice-plate .play::before{content:'';position:absolute;top:50%;left:50%;
  transform:translate(-44%,-50%);border-style:solid;border-width:8px 0 8px 13px;
  border-color:transparent transparent transparent var(--ink-2)}
.film.voice .voice-plate.playing .play::before{border-width:0;transform:translate(-50%,-50%);
  width:4px;height:15px;background:var(--ink-2);box-shadow:7px 0 0 var(--ink-2);
  margin-left:-3.5px}
/* non-breaking spaces: CSS collapses a plain leading/trailing space in `content` */
.film.voice .voice-plate.playing .kind::after{content:'\00a0\2014\00a0playing'}
/* with a photograph the photograph is the plate, so the wrapper gets out of the way */
.film.voice .voice-plate.has-shot{display:block;aspect-ratio:auto;padding:0;border:0;
  background:none;box-shadow:none}

/* ---------- edit mode (?edit): drag a card to reorder the wall ---------- */
.editbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 20px;padding:10px 14px;
  background:#fbf8f3;border:1px solid var(--rule);border-radius:3px;
  font-family:var(--sans);font-size:12px;color:var(--ink-2)}
.editbar button{font:inherit;font-size:11px;padding:5px 10px;border:1px solid var(--rule);
  border-radius:2px;background:#fff;color:var(--ink);cursor:pointer}
.editbar button:hover{background:var(--paper-2)}
.draggable{cursor:grab;touch-action:none}
.draggable.lifting{opacity:.35}
.draggable.over{outline:2px dashed var(--ink-3);outline-offset:4px}
.ghost{position:fixed;z-index:70;pointer-events:none;opacity:.9;transform:rotate(-1deg);
  box-shadow:0 18px 40px -12px rgba(36,30,25,.55)}


/* the drag handle, edit mode only: a film card is all video, so the card itself can't be the grip */
.grip{display:flex;align-items:center;gap:7px;margin:-4px 0 9px;padding:5px 9px;
  background:var(--paper-2);border:1px solid var(--rule);border-radius:2px;cursor:grab;
  font-family:var(--sans);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink-3);touch-action:none;user-select:none}
.grip:active{cursor:grabbing;background:var(--rule)}
.grip span{font-size:13px;letter-spacing:0;color:var(--ink-2)}

/* a film card can carry photographs under its video (Moira's collage) */
.film img{display:block;width:100%;height:auto;border-radius:2px;margin-top:11px;
  box-shadow:0 1px 2px rgba(36,30,25,.16)}

/* dropping into the empty space at the bottom of a column */
.films .col.end{box-shadow:inset 0 -3px 0 var(--ink-3)}

/* "still to be photographed" badge, on each pot */
.shot-wrap{display:block;position:relative}
.pot .badge{position:absolute;left:10px;top:10px;
  background:rgba(243,239,232,.93);border:1px solid var(--rule);border-radius:2px;
  padding:4px 9px;font-family:var(--sans);font-size:9.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--ink-2);pointer-events:none}
@media(max-width:560px){.pot .badge{font-size:8.5px;letter-spacing:.1em;padding:3px 7px}}

/* ---------- paper ----------
   The wall, printed. Katie asked whether there was anything to print (Oct 14) and there is: the
   messages are the part worth having in the hand at a table. Film and voice cards cannot play on
   paper, so each prints its poster frame — or, for a voice, just its name — with a line saying
   where to go and hear it. Two columns, and no card ever split across a page. */
/* Hidden on screen. `.film img` is more specific than a bare `.paper`, so the poster copies
   were showing under every video as a second picture (Rich, Oct 14: "duplicated a lot of
   the elements"). The compound selector outranks it. */
.paper,.film img.paper,.film.voice .paper{display:none}
@media print{
  @page{margin:14mm}
  html,body{background:#fff;color:#000}
  .mast nav,.editbar,.grip,.lb,.gift .cake{display:none !important}
  .mast{position:static;border-bottom:1px solid #ccc;padding:0 0 6mm;margin-bottom:6mm}
  .mast::before{display:none}
  .mast .home b{font-size:20pt}
  .wrap{max-width:none;padding:0}
  .page-head{padding:0 0 5mm}
  .page-head h1{font-size:24pt}
  .gift{background:none;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;
    padding:3mm 0;margin:4mm 0 0;display:block;text-align:center}
  .gift .greet{display:block;font-size:16pt}
  .gift .from{display:block;font-size:11pt}
  /* the columns the script built are a screen layout; let the cards flow into print columns */
  .films{display:block;columns:2;column-gap:12mm;margin:0}
  .films .col{display:contents}
  .film,.note-card{break-inside:avoid;page-break-inside:avoid;
    display:inline-block;width:100%;margin:0 0 7mm}
  video,audio,.film.voice .voice-plate{display:none !important}
  .paper,.film img.paper,.film.voice .paper{display:block}
  /* capped, or one portrait photograph eats a whole column and the handbook runs to twenty
     pages. 62mm keeps a card to roughly a third of a page. */
  .film img,.note-card img,.film .paper{display:block;width:auto;max-width:100%;
    max-height:62mm;height:auto;border:1px solid #ddd;box-shadow:none;margin:0 auto 2mm}
  .paper-note{font-family:var(--sans);font-size:7.5pt;letter-spacing:.08em;text-transform:uppercase;
    color:#666;border:0;margin:0 0 1mm}
  .film .who,.note-card .from{font-family:var(--sans);font-size:8pt;letter-spacing:.12em;color:#333}
  .film .said,.note-card p{font-family:var(--hand);font-size:13pt;line-height:1.3;color:#000}
  .note-card{background:none;border:1px solid #ddd;padding:4mm}
  footer{border-top:1px solid #ccc;margin-top:8mm;padding-top:3mm;font-size:8pt;color:#555}
  footer:after{display:block;margin-top:1.5mm;content:"barbaramicallef.com";
    letter-spacing:.1em;color:#888}
}
