/* The thanks page and Find a purchase (direct edition, D-127). Just a note (owner, 2026-10-18: "maybe just a note
   page"): the same lamp-lit writing paper as About (owner note 52), alone on a dark desk under a warm lamp, with a
   ticket stub clipped to it for the order and the two things to do. */
@font-face { font-family: "Caveat"; src: url("fonts/Caveat-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root { --ink: #F2E9DA; --gold: #FFC867; --paper-ink: #33271d; --lamp: 255 196 120; }
body.licence { margin: 0; min-height: 100vh; min-height: 100svh; color: var(--ink);
  background:
    radial-gradient(ellipse 70% 60% at 50% 38%, rgb(var(--lamp) / .16), rgb(var(--lamp) / 0) 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, #1b120c 0, #110b08 55%, #090605 100%); }

.bar { position: absolute; z-index: 20; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(18px, 3vw, 48px); }
.bar .wordmark { font-family: var(--pixel); font-size: 18px; letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.bar .back { font-family: var(--tiny); font-size: 12px; letter-spacing: .06em; color: var(--ink); text-decoration: none; opacity: .85; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #b8781f; outline-offset: 3px; }

.desk { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 96px 16px 64px; box-sizing: border-box; }

/* The note: writing paper lit from the top left, a soft uneven edge, faint ruled lines, at a slight angle */
.note { position: relative; isolation: isolate; width: min(540px, 100%); padding: 2.4em 2.6em 2em; color: var(--paper-ink);
  font-size: 17px; transform: rotate(-1deg); }
.note::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 244, 222, .38) 0, rgba(255, 244, 222, 0) 38%, rgba(40, 24, 10, 0) 62%, rgba(40, 24, 10, .26) 100%),
    repeating-linear-gradient(to bottom, rgba(120, 84, 48, 0) 0, rgba(120, 84, 48, 0) calc(1.55em - 1px), rgba(120, 84, 48, .09) calc(1.55em - 1px), rgba(120, 84, 48, .09) 1.55em),
    linear-gradient(#efe3cb, #e4d3b5);
  clip-path: polygon(0.6% 1.2%, 18% 0.3%, 41% 1%, 63% 0.2%, 86% 0.9%, 99.4% 0.4%, 99.1% 22%, 99.7% 47%, 99.2% 71%, 99.6% 99.3%, 77% 99.8%, 52% 99.1%, 29% 99.9%, 0.4% 99.4%, 0.9% 74%, 0.2% 51%, 0.8% 26%);
  box-shadow: inset 0 0 40px rgba(90, 60, 30, .18); }
.note::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  transform: translate(5px, 8px); filter: blur(3px); opacity: .8; }
.note .kicker { margin: 0 0 8px; font-family: var(--tiny); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9a6a2a; }
.note h1 { margin: 0 0 .6em; font-family: var(--pixel); font-weight: 400; /* 500 closes the C into an O (the PRIVAOY bug) */ font-size: 34px; line-height: 1.08; color: var(--paper-ink); }
.note .body { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; line-height: 1.55; }
.note .body p { margin: 0 0 .7em; }
.note .hand, .note .sign { font-family: "Caveat", "Bradley Hand", "Noteworthy", cursive; font-weight: 600; color: #2a1f16; }
.note .hand { display: block; font-size: 1.75em; line-height: 1; margin: 0 0 .25em; }
.note .sign { font-size: 2.1em; line-height: 1; margin: .4em 0 0; }
.note .small { font-size: .86em; color: #5e4c3b; margin: 1em 0 0; }
.note .small a { color: #8a5a1c; text-underline-offset: 3px; }
.note [hidden] { display: none !important; }

/* Waiting: a little lantern breathing beside the words */
.lamp { display: inline-block; width: 10px; height: 14px; margin-right: 9px; vertical-align: -1px; border-radius: 3px 3px 2px 2px;
  background: radial-gradient(circle at 50% 60%, #ffe6a8, #f0a646 60%, #8a5a1c); box-shadow: 0 0 10px rgba(255, 180, 80, .7);
  animation: lamp 2.4s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: .5; box-shadow: 0 0 4px rgba(255, 180, 80, .35); } }

/* The ticket stub: a stiffer card with a perforated top, clipped to the note */
.ticket { position: relative; margin: 1.3em -.6em .2em; padding: 1.3em 1.3em 1.2em; background: linear-gradient(#f8f0de, #efe2c6);
  border-radius: 3px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 3px 8px rgba(60, 36, 14, .25); transform: rotate(1.4deg); }
.ticket::before { content: ""; position: absolute; left: 10px; right: 10px; top: -5px; height: 10px;
  background: radial-gradient(circle at 5px 5px, #e7d9ba 3px, transparent 3.5px) 0 0 / 14px 10px repeat-x; }
.ticket::after { content: "STILLWORLDS"; position: absolute; right: 14px; top: 12px; font-family: var(--tiny); font-size: 9px; letter-spacing: .16em; color: rgba(51, 39, 29, .32); }
/* a brass clip holding the stub to the paper */
.clip { position: absolute; left: 26px; top: -16px; width: 18px; height: 38px; border-radius: 9px; border: 3px solid #b98a43;
  border-bottom-color: transparent; box-shadow: 0 2px 3px rgba(0, 0, 0, .3); transform: rotate(-8deg); }
.tk-fields { display: grid; grid-template-columns: auto 1fr; gap: .55em 1.4em; margin: 0; }
.tk-fields > div { display: contents; }
.tk-fields dt { font-family: var(--tiny); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8b7457; padding-top: .25em; white-space: nowrap; }
.tk-fields dd { margin: 0; font-size: .95em; color: var(--paper-ink); overflow-wrap: anywhere; }
.tk-fields .mono { font-family: var(--pixel); font-size: 1.1em; letter-spacing: .06em; }
.tk-strip { list-style: none; margin: 1em 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.tk-strip li { aspect-ratio: .7; border-radius: 999px 999px 2px 2px; overflow: hidden; background: #000; box-shadow: 0 1px 3px rgba(40, 24, 10, .4); }
.tk-strip img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.tk-strip img.smooth { image-rendering: auto; transform: scale(1.7); }
.tk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.15em; align-items: center; }
.cta { display: inline-block; font-family: var(--tiny); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  color: #1F1915; background: var(--gold); padding: 11px 15px; border-radius: 8px; white-space: nowrap; border: 0; cursor: pointer;
  box-shadow: 0 2px 0 #b27d2c, 0 6px 14px rgba(178, 125, 44, .3); }
.cta:hover { background: #ffd384; }
.ghost { font-family: var(--tiny); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--paper-ink);
  background: none; border: 0; padding: 10px 13px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(51, 39, 29, .4); cursor: pointer; }
.ghost:hover { background: rgba(51, 39, 29, .07); }

/* Find a purchase: lines to fill in, like an index card */
.card-form { margin: .3em 0 0; display: grid; gap: .9em; }
.card-form label { display: grid; gap: .3em; font-family: var(--tiny); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8b7457; }
.card-form input { font: inherit; font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 1.05em; color: var(--paper-ink); padding: .4em .1em .3em;
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(51, 39, 29, .45); border-radius: 0; }
.card-form input::placeholder { color: rgba(51, 39, 29, .35); }
.status { min-height: 1.4em; margin: .8em 0 0; font-size: .92em; color: #5e4c3b; }
.status.error { color: #9a3b1f; }

@media (max-width: 600px) {
  .bar .back .lbl { display: none; }
  .desk { padding: 80px 12px 40px; }
  .note { transform: none; padding: 2em 1.5em 1.7em; font-size: 16px; }
  .note h1 { font-size: 28px; }
  .note::after { transform: translate(0, 8px); }
  .ticket { transform: none; margin: 1.2em 0 .2em; }
  .tk-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
