@font-face { font-family: 'Card Print'; src: url('print.woff2') format('woff2'); font-weight: 900; font-display: swap; }
* { box-sizing: border-box; }
html { height: 100%; overflow: hidden; overscroll-behavior: none; background: #56351f; color: #073e2e; }
body { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
.table-background { position: fixed; inset: 0; z-index: 0; display: block; pointer-events: none; }
.table-background img { display: block; width: 100%; height: 100%; object-fit: cover; }
main { position: relative; z-index: 1; height: 100%; min-height: 0; display: grid; place-items: center; padding: 40px 16px; }
.card { position: relative; width: min(800px, 100%, calc((100svh - 80px) * 1.5)); container-type: inline-size; isolation: isolate; overflow: visible; }
/* Small separated corner shadows suggest a slightly lifted paper edge.
   They sit behind the photographed silhouette, not on top of its texture. */
.card::before { content: ""; position: absolute; z-index: -1; left: 3%; right: 3%; top: 87%; height: 12%; pointer-events: none; background: radial-gradient(ellipse 15% 25% at 9% 65%, #21160e70, #21160e00 100%), radial-gradient(ellipse 15% 25% at 91% 65%, #21160e65, #21160e00 100%); filter: blur(1.4px); }
/* The alpha channel follows the actual rounded, frayed paper edge. Two
   shadows give the card a contact edge and a softer shadow on the table. */
.paper { position: relative; z-index: 0; display: block; width: 100%; height: auto; overflow: visible; }
.printing { position: absolute; z-index: 1; inset: 14.2% 10% 9.5%; font-family: 'Card Print', Georgia, serif; font-weight: 900; mix-blend-mode: multiply; display: grid; grid-template-rows: 43% 42% 15%; }
h1, h2, .address, dt, footer > span:first-child { opacity: .95; }
header { text-align: center; padding-top: 2.7cqw; }
h1 { font-size: 6.6cqw; letter-spacing: -.26cqw; line-height: 1.05; margin: 0; white-space: nowrap; transform: scaleX(1.025); }
h2 { font-size: 3.9cqw; line-height: 1.2; margin: 1.6cqw 0 .6cqw; letter-spacing: -.05cqw; }
.address { font-size: 2.7cqw; margin: 0; }
.details { margin: 0; min-height: 0; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.details > div { display: grid; grid-template-columns: 19% minmax(0, 1fr); align-items: end; column-gap: 1.6cqw; min-height: 0; }
dt { font-size: 3.25cqw; line-height: 1.2; padding-bottom: .25cqw; white-space: nowrap; }
dd { flex: 1; min-width: 0; margin: 0; height: 6cqw; max-height: 100%; display: flex; align-items: flex-end; padding: 0 .7cqw .25cqw; border-bottom: 1px solid #315949b3; color: #282923; }
dd a { display: block; max-width: 100%; }
/* Actual keyed paper pixels sit above both printed and handwritten lettering.
   This replaces the approximate dot mask. Do not intercept links or selection. */
.surface-dirt { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; }

a { color: inherit; text-decoration: none; text-underline-offset: .15em; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #073e2e; outline-offset: 4px; }
/* Each handwritten line is two same-sized images: the words, and the hand-drawn
   [ ] brackets. The words are recoloured by using their alpha as a mask over a solid colour
   (the img itself stays, invisible, for alt text and sizing). The brackets are hidden until
   the link is hovered or focused. --w is the line's width at one shared pen scale, --ar its
   aspect ratio, --drop how far the canvas sinks so the words rest on the ruled line.
   Without mask support the plain words image shows and the brackets never do. */
@supports ((mask-image: url(x)) or (-webkit-mask-image: url(x))) {
  #links { --text: url('handwriting-links-text.webp?v=5'); --brackets: url('handwriting-links-brackets.webp?v=5'); --w: 26.6cqw; --ar: 1494 / 462; --drop: 2.06cqw; }
  #gigs { --text: url('handwriting-gigs-text.webp?v=5'); --brackets: url('handwriting-gigs-brackets.webp?v=5'); --w: 48.4cqw; --ar: 2200 / 315; --drop: 2.04cqw; }
  #contact { --text: url('handwriting-contact-text.webp?v=5'); --brackets: url('handwriting-contact-brackets.webp?v=5'); --w: 49.6cqw; --ar: 2200 / 291; --drop: 1.26cqw; }
  :is(#links, #gigs, #contact) a { position: relative; flex: none; display: block; width: var(--w); aspect-ratio: var(--ar); transform: translateY(var(--drop)); }
  :is(#links, #gigs, #contact) a .handwriting-image { width: 100%; height: 100%; opacity: 0; }
  :is(#links, #gigs, #contact) a::before, :is(#links, #gigs, #contact) a::after { content: ''; position: absolute; inset: 0; -webkit-mask: center / 100% 100% no-repeat; mask: center / 100% 100% no-repeat; }
  :is(#links, #gigs, #contact) a::before { background: #0e0d0c; -webkit-mask-image: var(--text); mask-image: var(--text); transition: background-color .15s; }
  :is(#links, #gigs, #contact) a::after { background: #073e2e; -webkit-mask-image: var(--brackets); mask-image: var(--brackets); opacity: 0; transition: opacity .15s; }
  :is(#links, #gigs, #contact) a:is(:hover, :focus-visible) { text-decoration: none; }
  :is(#links, #gigs, #contact) a:is(:hover, :focus-visible)::before { background: #073e2e; }
  :is(#links, #gigs, #contact) a:is(:hover, :focus-visible)::after { opacity: 1; }
}
footer { display: flex; align-items: flex-end; gap: 1.5cqw; margin-top: 0; min-height: 0; padding-bottom: .5cqw; font-size: 2.7cqw; white-space: nowrap; }
.signature { flex: 1; border-bottom: 1px solid #315949b3; padding: 0 0 .2cqw 1cqw; }

::selection { background: #b9cbb8; }
@media (max-width: 500px) { main { padding: 24px 6px; } }
@media (prefers-contrast: more) { .printing { mix-blend-mode: normal; color: #002b1c; } .surface-dirt { opacity: .3; } h1, h2, .address, dt, footer > span:first-child { opacity: 1; } }


.handwriting-image { display: block; width: 26cqw; max-width: 100%; height: 5.2cqw; object-fit: contain; object-position: center; }
/* Two real signatures side by side on the line; scribbles rise a little above it, as signatures do. */
.signature { display: flex; align-items: flex-end; gap: 2cqw; }
.sig { display: block; flex: none; width: auto; }
.sig-elijah { height: 9.5cqw; margin-bottom: -2.5cqw; } /* swirl (not the tail) rests on the line; the tail hangs below it */
.sig-noo { height: 7cqw; margin-bottom: -.4cqw; }
