:root {
  --bg: #f6f4ef; --surface: #fffdf8; --ink: #1c1b19; --muted: #6d6a63; --rule: #e2ddd2; --accent: #c0392b; --note: #fff6c9; --note-ink: #2b2614;
  --display: "Fraunces", Georgia, serif; --body: "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121211; --surface: #1a1a18; --ink: #ecebe6; --muted: #9b978d; --rule: #2c2b28; --accent: #ef6f5e; --note: #3a3420; --note-ink: #f3ecd2; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); }
a { color: inherit; }
.top { display: flex; justify-content: space-between; align-items: baseline; max-width: 1400px; margin: 0 auto; padding: 28px 16px 20px; }
.top .name { font: 600 22px/1.2 var(--display); text-decoration: none; letter-spacing: -.01em; }
.top .back { flex: 0 0 100%; order: -1; margin: -12px 0 10px; color: var(--accent); font-size: 16px; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.top:has(.back) { flex-wrap: wrap; }
.top nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
main { max-width: 1400px; margin: 0 auto; padding: 0 16px 48px; }
.foot { max-width: 1400px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--rule); }
.empty { color: var(--muted); padding: 40px 0; }

/* ---- a creator's page ------------------------------------------------------------------------------ */
.creator main { max-width: 1240px; padding: 0 16px 56px; }
.creator .foot { max-width: 1240px; border-top: 0; text-align: center; padding: 8px 16px 40px; }

/* the header: the page's name, the creator, bio, links */
.profile { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 34px 0 26px; max-width: 680px; }
.profile .mono { grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: var(--ink); color: var(--bg); font: 600 26px/1 var(--display); }
.profile h1 { margin: 0; font: 600 30px/1.1 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.profile h1 a { text-decoration: none; }
.profile .by { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.profile .bio, .profile .links, .profile .count { grid-column: 1 / -1; }
.profile .bio { margin: 16px 0 0; font-size: 16px; line-height: 1.5; }
.profile .links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; font-size: 15px; font-weight: 500; }
.profile .links a { color: var(--accent); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.profile .links a::after { content: "↗"; font-size: .8em; margin-left: 3px; opacity: .7; }
.profile .count { margin: 14px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .01em; }
.profile .count a { color: inherit; }
.profile:not(:has(.by)) .mono { grid-row: 1; }

/* the grid: photographs keep their own shape. A phone shows one column, edge to edge. */
.grid { display: block; columns: 1; margin: 0 -16px; }
.card { display: block; break-inside: avoid; margin: 0 0 26px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.card .ph { position: relative; display: block; overflow: hidden; background: var(--rule); }
.card img { display: block; width: 100%; height: auto; }
.card .cap { display: flex; gap: 10px; align-items: baseline; padding: 9px 16px 0; font-size: 15px; }
.card .p-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card time { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.card .n { position: absolute; top: 10px; right: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card .forsale { position: absolute; left: 10px; bottom: 10px; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.88); color: #1c1b19; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
@media (hover: hover) { .card:hover img { opacity: .93; } .card:hover .p-name { text-decoration: underline; text-underline-offset: 3px; } }

/* notes and voice notes: paper slips pinned to the fridge */
.card.note { background: var(--note); color: var(--note-ink); padding: 20px 18px 14px; margin: 8px 16px 30px; border-radius: 3px; position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 14px rgba(0,0,0,.06); transform: rotate(-.6deg); }
.card.note:nth-child(even) { transform: rotate(.5deg); }
.card.note::before { content: ""; position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a7a, var(--accent) 60%); box-shadow: 0 2px 3px rgba(0,0,0,.25); }
.note-title { display: block; font: 600 20px/1.25 var(--display); margin-bottom: 6px; }
.note-text { display: block; white-space: pre-line; font-size: 15px; line-height: 1.55; }
.card.note .cap { padding: 10px 0 0; } .card.note time { margin-left: 0; color: inherit; opacity: .6; }
.voiceline { display: inline-block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }

/* video cards */
.vid img { display: block; width: 100%; height: auto; }
.play { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 99px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* desktop: a tighter, calm grid */
@media (min-width: 700px) {
  .creator main { padding: 0 32px 64px; }
  .profile { padding: 56px 0 36px; column-gap: 18px; }
  .profile .mono { width: 68px; height: 68px; font-size: 32px; }
  .profile h1 { font-size: 42px; }
  .profile .bio { font-size: 17px; }
  .grid { columns: 2; column-gap: 20px; margin: 0; }
  .card { margin-bottom: 28px; }
  .card .ph { border-radius: 4px; }
  .card .cap { padding: 8px 2px 0; font-size: 14px; }
  .card time { font-size: 12.5px; }
  .card.note { margin: 10px 4px 32px; }
}
@media (min-width: 1100px) { .grid { columns: 3; } }

/* ---- a pin's page ---------------------------------------------------------------------------------- */
/* the bar: back to all pins, the page's name (an iPhone navigation bar) */
.bar { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: .5px solid var(--rule); }
.bar-in { max-width: 1148px; margin: 0 auto; padding: 0 8px; height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.bar .back { color: var(--accent); font-size: 17px; text-decoration: none; min-height: 44px; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; justify-self: start; }
.bar-name { font: 600 17px/1.2 var(--display); text-decoration: none; letter-spacing: -.01em; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.post { max-width: 1100px; margin: 0 auto; }
.post-head { max-width: 680px; margin: 0 auto; }
.post h1 { font: 600 clamp(28px, 4vw, 40px)/1.15 var(--display); margin: 0 0 6px; letter-spacing: -.015em; text-wrap: balance; }
.post .meta { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.post .meta a { color: var(--accent); }
.kind-note .post-head, .kind-voice .post-head { padding-top: 28px; }
.kind-photo .post-head, .kind-video .post-head { padding-top: 18px; }
.photos { margin: 0 -16px; display: grid; gap: 4px; }
.photos figure { margin: 0; }
.photos img, .photos video { display: block; width: 100%; height: auto; margin: 0 auto; }
.photos figcaption { color: var(--muted); font-size: 13.5px; text-align: center; margin: 8px 16px 10px; }
.photos video { background: #000; }
.photos figure.audio { max-width: 680px; margin: 0 16px 22px; background: var(--note); color: var(--note-ink); padding: 16px; border-radius: 6px; }
.photos audio { width: 100%; }
.e-content { max-width: 680px; margin: 0 auto 28px; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.e-content p { margin: 0 0 1em; }
.e-content.big { font: 400 clamp(20px, 2.4vw, 24px)/1.55 var(--display); background: var(--note); color: var(--note-ink); padding: 26px 24px; border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.e-content.big p:last-child { margin-bottom: 0; }
.post .meta.end { max-width: 680px; margin: 0 auto; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13.5px; }
@media (min-width: 700px) {
  .post { padding-top: 28px; }
  .photos { margin: 0; gap: 18px; }
  .photos img, .photos video { width: auto; max-width: 100%; max-height: 84vh; border-radius: 4px; }
  .photos figure.audio { margin: 0 auto 22px; }
  .kind-note .post-head, .kind-voice .post-head { padding-top: 24px; }
  .kind-photo .post-head, .kind-video .post-head { padding-top: 26px; }
  .bar-in { padding: 0 24px; }
}

/* product front page */
.landing main { max-width: 1000px; }
.landing .top .name { font-size: 24px; }
.hero { padding: 48px 0 24px; max-width: 720px; }
.hero h1 { font: 600 clamp(36px, 6vw, 64px)/1.05 var(--display); letter-spacing: -.02em; margin: 0 0 18px; }
.hero p { font-size: 19px; color: var(--muted); margin: 0; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; padding: 30px 0; }
.how .note { background: var(--note); color: var(--note-ink); padding: 22px 18px 18px; border-radius: 3px; position: relative; box-shadow: 0 6px 14px rgba(0,0,0,.07); }
.how .note b { display: block; font: 600 19px var(--display); margin-bottom: 6px; }
.how .note::before { content: ""; position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, var(--accent) 60%); }
.tilt-l { transform: rotate(-1deg); } .tilt-r { transform: rotate(1deg); }
.soon { color: var(--muted); }

/* "Buy a print": products made from a photo. Only the box is styled here; its rows belong to the shop. */
.buy { max-width: 680px; margin: 4px auto 30px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 16px 16px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05); }
.buy h2 { font: 600 21px/1.2 var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
.buy .offer { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.buy .offer:last-of-type { border-bottom: 0; }
.buy .what { font-weight: 500; } .buy .price { font-weight: 600; font-variant-numeric: tabular-nums; } .buy small, .buy .small { color: var(--muted); font-size: 13px; font-weight: 400; }
.buy .small { margin: 8px 0 0; line-height: 1.45; }
.buy button { background: var(--accent); color: #fff; border: 0; border-radius: 99px; min-height: 40px; padding: 8px 20px; font: 600 15px var(--body); cursor: pointer; }
@media (prefers-color-scheme: dark) { .buy { box-shadow: none; } }
.buy .price { text-align: right; } .buy .price small { display: block; white-space: nowrap; }
.buy select { display: block; margin-top: 6px; max-width: 100%; min-height: 36px; font: 15px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 8px; }
/* A phone: the name (and its size / frame picker) on its own line, the price and Buy under it. */
@media (max-width: 560px) {
  .buy .offer { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .buy .what { grid-column: 1 / -1; }
  .buy .price { text-align: left; } .buy .price small { display: inline; }
}
.order { max-width: 560px; margin: 30px auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; }
.order h1 { font: 600 26px var(--display); margin: 0 0 8px; } .order .st { font-size: 18px; } .order a.dl { display: inline-block; margin-top: 12px; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; }



/* ---- series (#43): tiles by year on a page, a series' own page (owner 2026-11-17, "Wrap my Portfolio series") ---- */
.yr { font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.series .yr:first-child { margin-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.tile-c { display: block; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tile-c .cv { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--rule); }
.tile-c .cv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-c .tc { display: grid; padding: 7px 2px 0; line-height: 1.3; }
.tile-c b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-c small { color: var(--muted); font-size: 13px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (hover: hover) { .tile-c:hover b { text-decoration: underline; text-underline-offset: 3px; } }
.series + .yr { margin-top: 34px; }
/* series from more than one gallery (owner 2026-11-18): each gallery's name above its years */
.galname { font: 600 19px var(--display, var(--body)); margin: 30px 0 2px; }
.galname:first-of-type { margin-top: 8px; }
.series-head { padding-top: 22px; }
.series-head .meta { margin-bottom: 8px; }
.series-head .line { font-size: 16px; margin: 0 0 14px; }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 14px -16px 22px; }
.sgrid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--rule); }
.sgrid img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .sgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 26px; } .sgrid a { border-radius: 4px; } }
/* a reference photo: the small copy kept here, the full one on his own gallery */
.photos figure.ref img { max-width: 100%; }
.fullsize { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 16px 0; color: var(--accent); font-size: 15px; font-weight: 500; text-decoration: none; }
@media (min-width: 700px) { .photos figure.ref { text-align: center; } }

/* hearts and notes (#102) */
.react { max-width: 680px; margin: 6px auto 26px; display: grid; gap: 12px; }
.react .heart button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink); font: 600 16px var(--body); cursor: pointer; }
.react .heart span[aria-hidden] { color: var(--accent); font-size: 19px; line-height: 1; }
.react .leave summary { list-style: none; cursor: pointer; color: var(--accent); font: 500 16px var(--body); min-height: 44px; display: flex; align-items: center; }
.react .leave summary::-webkit-details-marker { display: none; }
.react .leave summary::before { content: "✎"; margin-right: 8px; }
.noteform { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; }
.noteform label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; } .noteform label small { font-weight: 400; color: var(--muted); }
.noteform textarea, .noteform input { font: 17px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.noteform button { justify-self: start; background: var(--accent); color: #fff; border: 0; border-radius: 99px; min-height: 44px; padding: 0 22px; font: 600 16px var(--body); cursor: pointer; }
.noteform .small { color: var(--muted); font-size: 13px; margin: 0; }
.react button:disabled { opacity: .55; cursor: default; }
.react .said { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--note); color: var(--note-ink); font-weight: 500; }
.react .notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.react .notes li { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; }
.react .notes p { margin: 0 0 4px; } .react .notes small { color: var(--muted); }

/* a preview for a photographer (src/wrap_preview.js) */
.pv-banner { position: sticky; top: 0; z-index: 10; margin: 0 -16px; padding: max(10px, env(safe-area-inset-top)) 16px 12px; background: var(--note); color: var(--note-ink);
  display: grid; gap: 10px; border-bottom: 1px solid var(--rule); }
.pv-banner p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.go-open { display: grid; place-items: center; min-height: 48px; border-radius: 12px; background: var(--accent); color: #fff !important; font: 600 17px var(--body); text-decoration: none; }
.pv-back { margin: 12px 0 0; } .pv-back a { color: var(--accent); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pv-mock { margin: 0 auto 10px; max-width: 680px; color: var(--muted); font-size: 13.5px; }
.pv-steps { max-width: 680px; margin: 6px auto 14px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.pv-steps a { color: var(--accent); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pv-ask button { opacity: .55; }
.pv-extra .small, .pv-end .small { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.pv-card { width: 216px; margin: 6px auto 8px; background: #fff; color: #1c1b19; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 14px 30px rgba(0,0,0,.10);
  padding: 14px 14px 10px; display: grid; justify-items: center; gap: 4px; text-align: center; }
.pv-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pv-card b { font: 600 17px/1.2 var(--display); margin-top: 6px; } .pv-card span { font-size: 12.5px; color: #555; } .pv-card small { font-size: 10px; color: #777; }
.pv-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 6px; }
.pv-posts figure { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; font-size: 13.5px; }
.pv-posts figcaption { padding: 8px 12px; color: var(--muted); border-bottom: 1px solid var(--rule); }
.pv-posts figcaption b { color: var(--ink); }
.pv-posts img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pv-posts p { margin: 0; padding: 8px 12px 12px; line-height: 1.4; }
.pv-ig .ig-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 600; }
.pv-ig .dot { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.pv-ig .ig-dots { display: flex; justify-content: center; gap: 4px; padding: 8px 0 0; } .pv-ig .ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); } .pv-ig .ig-dots i.on { background: #3897f0; }
.pv-pt img { aspect-ratio: 2 / 3; } .pv-pt p { display: grid; } .pv-pt small { color: var(--muted); }
.pv-end { margin: 30px 0 10px; } .pv-end p:first-child { margin: 0 0 10px; }
@media (min-width: 700px) { .pv-banner { margin: 0; border-radius: 0 0 14px 14px; grid-template-columns: 1fr auto; align-items: center; } .go-open { padding: 0 22px; } .pv-end .go-open { max-width: 320px; } }

/* the owner's Share button on his own page, series or photo (#129, src/lib.js ownShare; the sheet is public/share.js) */
.psh-ownrow { margin: 12px 0 4px; }
.psh-own { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 24px; background: var(--accent); color: #fff; font: 600 16px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; cursor: pointer; }
.psh-own svg { width: 20px; height: 20px; }
/* "See my gallery" (owner 2026-11-18): his PinOnce page is a hub; the work is on his own gallery */
.seegals { display: grid; gap: 10px; margin: 6px 0 18px; }
.seegal { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 20px; border-radius: 14px; background: var(--accent); color: #fff !important; font: 600 17px var(--body); text-decoration: none; }
.series-page .seegal { margin: 12px 0 4px; }

/* placeholders readable on light and dark (Impeccable detect, 2026-11-19: #757575 on #2c2c2e was 3.0:1) */
::placeholder { color: var(--muted); opacity: 1; }
