/* Fresco-treated public domain art, shared by the sales and thank-you pages.
   Pieces live in /shared/art (made in ~/Desktop/Personal/site-art: resolve-fetch.py, fresco.py).
   Every figure carries its credit as a small caption under the art. */
.art { margin:0; display:flex; flex-direction:column; align-items:center; gap:.55rem; }
.art img { display:block; width:100%; height:auto; }
.art-credit { font-family:var(--sub, 'Mattone','Helvetica Neue',Arial,sans-serif); font-size:.5rem; letter-spacing:.09em; text-transform:uppercase; color:var(--muted, #6f6a66); line-height:1.6; text-align:center; max-width:100%; margin:0; opacity:.85; text-wrap:balance; }

/* a frieze across the top of a section, feathered at both ends */
.art--band { width:min(100%, 56rem); margin:0 auto 2.2rem; }
.art--band img { -webkit-mask-image:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); border-radius:6px; }

/* a round panel with a fine gilt ring */
.art--tondo { width:min(100%, 15rem); margin:0 auto 1.2rem; }
.art--tondo img { border-radius:50%; box-shadow:0 0 0 1px color-mix(in srgb, var(--gilt, #b8a17a) 55%, transparent), 0 0 0 7px color-mix(in srgb, var(--vellum, #f3eff4) 70%, transparent), 0 0 0 8px color-mix(in srgb, var(--gilt, #b8a17a) 30%, transparent), 0 24px 50px -30px rgba(27,21,35,.55); }

/* a small round portrait at the top of a card */
.art--cameo { width:4.6rem; margin:0 0 .9rem; align-items:flex-start; }
.art--cameo img { border-radius:50%; box-shadow:0 0 0 1px color-mix(in srgb, var(--gilt, #b8a17a) 55%, transparent), 0 0 0 4px color-mix(in srgb, var(--vellum, #f3eff4) 80%, transparent), 0 10px 24px -14px rgba(27,21,35,.5); }
.art--cameo .art-credit { display:none; }

/* an arched altarpiece above an order card */
.art--arch { width:min(100%, 12.5rem); margin:0 auto 1.6rem; position:relative; }
.art--arch img { border-radius:999px 999px 10px 10px; box-shadow:0 0 0 1px color-mix(in srgb, var(--gilt, #b8a17a) 55%, transparent), 0 26px 50px -28px rgba(27,21,35,.55); }
.art--arch::before, .art--arch::after { content:"✦"; position:absolute; top:22%; color:var(--gilt, #b8a17a); font-size:.8rem; opacity:.8; }
.art--arch::before { left:-1.6rem; } .art--arch::after { right:-1.6rem; top:48%; font-size:.6rem; }

/* ─── More shapes, 20 Nov 2026. The shape is cut into the PNG itself (fresco.py), so these
   classes only size, place and shadow it. Pick by what the section is doing:
   lunette  a half-round over a section head or a wide closing band
   octagon / quatrefoil  a framed panel beside a list or a quote
   mandorla  a tall almond portrait beside a story
   ghost  a large faint fresco behind a section, never under body text that needs contrast
   divider  hairlines with a small cameo between sections
   float  an arch or tondo set into running text (journal posts, long reads)
   diptych  2 pieces side by side, one shared credit line */
.art--lunette { width:min(100%, 34rem); margin:0 auto 1.8rem; }
.art--lunette img { filter:drop-shadow(0 22px 26px rgba(27,21,35,.16)); }
.art--octagon, .art--quatrefoil { width:min(100%, 13.5rem); margin:0 auto 1.4rem; }
.art--octagon img, .art--quatrefoil img { filter:drop-shadow(0 18px 22px rgba(27,21,35,.18)); }
.art--mandorla { width:min(100%, 11rem); margin:0 auto 1.4rem; }
.art--mandorla img { filter:drop-shadow(0 20px 24px rgba(27,21,35,.2)); }
.art--oval { width:min(100%, 11.5rem); margin:0 auto 1.4rem; }
.art--oval img { border-radius:50%; box-shadow:0 0 0 1px color-mix(in srgb, var(--gilt, #b8a17a) 50%, transparent), 0 20px 40px -26px rgba(27,21,35,.5); }

.has-ghost { position:relative; isolation:isolate; }
.art--ghost { position:absolute; z-index:-1; pointer-events:none; width:min(46%, 30rem); opacity:.2; margin:0; }
.art--ghost img { -webkit-mask-image:radial-gradient(closest-side, #000 55%, transparent); mask-image:radial-gradient(closest-side, #000 55%, transparent); }
.art--ghost.at-right { right:-2rem; top:2rem; } .art--ghost.at-left { left:-2rem; top:2rem; }
.art--ghost.at-center { left:50%; top:50%; transform:translate(-50%, -50%); width:min(70%, 40rem); opacity:.12; }
.art--ghost .art-credit { display:none; }
.ghost-credit { font-family:var(--sub, 'Mattone','Helvetica Neue',Arial,sans-serif); font-size:.5rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted, #6f6a66); opacity:.7; text-align:center; margin:1.4rem auto 0; max-width:30rem; }

.art-divider { display:flex; align-items:center; justify-content:center; gap:1.1rem; margin:3.2rem auto; max-width:30rem; }
.art-divider::before, .art-divider::after { content:""; flex:1; height:1px; background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--gilt, #b8a17a) 70%, transparent), transparent); }
.art-divider img { width:3.4rem; height:3.4rem; border-radius:50%; box-shadow:0 0 0 1px color-mix(in srgb, var(--gilt, #b8a17a) 55%, transparent), 0 0 0 4px color-mix(in srgb, var(--vellum, #f3eff4) 80%, transparent); }

.art--float { width:min(42%, 15rem); margin:.3rem 0 1.2rem; }
.art--float.at-right { float:right; margin-left:2rem; } .art--float.at-left { float:left; margin-right:2rem; }
.art--float .art-credit { text-align:left; }

.art--diptych { width:min(100%, 34rem); margin:0 auto 2rem; }
.art--diptych .pair { display:grid; grid-template-columns:1fr 1fr; gap:1.4rem; align-items:end; width:100%; }

html[data-sect="nocturnal"] .art--ghost { opacity:.1; }
html[data-sect="nocturnal"] .art--ghost img { filter:brightness(.75) saturate(.6); }
@media (max-width:640px) {
  .art--lunette { width:100%; margin-bottom:1.4rem; }
  .art--octagon, .art--quatrefoil { width:min(70%, 11rem); }
  .art--mandorla { width:min(55%, 9rem); }
  .art--ghost { width:70%; opacity:.12; } .art--ghost.at-right { right:-25%; } .art--ghost.at-left { left:-25%; }
  .art--float, .art--float.at-right, .art--float.at-left { float:none; width:min(70%, 13rem); margin:0 auto 1.4rem; }
  .art--float .art-credit { text-align:center; }
  .art-divider { margin:2.4rem auto; }
}

/* a credit never grows past its own figure, so it can never be clipped at a panel edge */
.art--band .art-credit, .art--lunette .art-credit, .art--diptych .art-credit { max-width:28rem; }

html[data-sect="nocturnal"] .art img { filter:brightness(.88) saturate(.92); }
@media (max-width:640px) {
  .art--band { margin-bottom:1.6rem; }
  .art--tondo { width:min(100%, 12rem); }
  .art--arch { width:min(70%, 10.5rem); }
}
