@font-face { font-family: HS; src: url(vendor/garamond-400-latin.woff2); font-display: swap; }
:root {
  --bg: #070403; --ink: #f6eee4; --soft: rgba(246,238,228,.6); --ember: #ffb35c; --glow: #ffe3b3; --hot: #ff8a3d;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
body { color: var(--ink); font: 18px/1.5 HS, "Iowan Old Style", Georgia, serif; -webkit-font-smoothing: antialiased; }

/* The room: a warm light breathing low on the screen, and a few embers rising. */
.breath { position: fixed; left: 50%; bottom: -30vh; width: 150vw; height: 90vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,138,61,.42), rgba(255,90,40,.14) 45%, transparent 75%);
  filter: blur(10px); animation: breathe 6s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 0%,100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.embers { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: #ffd29a; box-shadow: 0 0 10px 3px rgba(255,150,70,.7); opacity: 0; animation: rise 9s linear infinite; }
.embers i:nth-child(1) { left: 18%; animation-delay: 0s; } .embers i:nth-child(2) { left: 32%; animation-delay: 2.4s; width: 3px; height: 3px; }
.embers i:nth-child(3) { left: 47%; animation-delay: 4.1s; } .embers i:nth-child(4) { left: 61%; animation-delay: 1.2s; width: 2px; height: 2px; }
.embers i:nth-child(5) { left: 74%; animation-delay: 5.6s; } .embers i:nth-child(6) { left: 86%; animation-delay: 3.3s; width: 3px; height: 3px; }
.embers i:nth-child(7) { left: 9%; animation-delay: 6.8s; width: 2px; height: 2px; } .embers i:nth-child(8) { left: 55%; animation-delay: 7.7s; }
.embers i:nth-child(9) { left: 40%; animation-delay: 8.5s; width: 2px; height: 2px; }
@keyframes rise { 0% { transform: translate(0,0); opacity: 0; } 10% { opacity: .9; } 70% { opacity: .5; } 100% { transform: translate(30px,-75vh); opacity: 0; } }
body.placing .embers, body.placing .breath { opacity: 0; transition: opacity .6s; }

/* Views: one thing at a time, fading through. */
.view { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 28px max(34px, env(safe-area-inset-bottom));
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.view.on { opacity: 1; transform: none; pointer-events: auto; }
.mid { flex: 1; width: 100%; max-width: 460px; display: flex; flex-direction: column; justify-content: center; }

.from { margin: 0 0 18px; color: var(--ember); font-style: italic; font-size: 19px; letter-spacing: .02em; min-height: 1em; }
h1 { margin: 0; font: 400 clamp(76px, 25vw, 132px)/.88 HS, Georgia, serif; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff6ea 0%, #ffd9a0 55%, #ff9a52 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(255,140,60,.35)); }
.ask { display: block; margin: 0 0 16px; font-size: 21px; color: var(--soft); font-style: italic; }

.big { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 6px 0 12px;
  font: 400 clamp(40px, 11vw, 56px)/1.1 HS, Georgia, serif; caret-color: var(--ember);
  border-bottom: 1px solid rgba(255,179,92,.35); transition: border-color .4s; }
.big.small { font-size: clamp(28px, 8vw, 38px); font-style: italic; }
.big:focus { border-color: var(--ember); box-shadow: 0 14px 24px -18px rgba(255,140,60,.8); }
.big::placeholder { color: rgba(246,238,228,.22); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips button { font: italic 16px HS, Georgia, serif; color: rgba(246,238,228,.4); background: transparent;
  border: 1px solid rgba(246,238,228,.12); border-radius: 99px; padding: 8px 14px; cursor: pointer; transition: color .3s, border-color .3s, background .3s, box-shadow .3s; }
.chips button:active { color: rgba(246,238,228,.7); }
.chips button.picked { color: var(--glow); border-color: rgba(255,179,92,.45); background: rgba(255,179,92,.07); box-shadow: 0 0 18px rgba(255,140,60,.18); }

.glow { position: relative; display: block; width: 100%; max-width: 460px; padding: 19px; border: 0; border-radius: 99px; cursor: pointer;
  font: 21px HS, Georgia, serif; letter-spacing: .02em; color: #1d0e05; text-align: center; text-decoration: none;
  background: linear-gradient(180deg, var(--glow), var(--ember) 60%, var(--hot));
  box-shadow: 0 0 0 1px rgba(255,220,170,.4) inset, 0 10px 40px rgba(255,120,50,.45), 0 0 80px rgba(255,140,60,.25);
  transition: transform .2s, opacity .4s, box-shadow .4s; }
.glow:active { transform: scale(.98); }
.glow:disabled { opacity: .18; box-shadow: none; }
.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* The wallpaper, full screen. */
.view.full { padding: 0; background: #000; }
.screen { position: relative; height: 100%; width: 100%; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: grab; }
.screen:active { cursor: grabbing; }
.wall { position: relative; height: 100svh; aspect-ratio: var(--ar, 1206 / 2622); max-width: 100vw; overflow: hidden; }
.wall canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (min-aspect-ratio: 3/5) { .wall { height: 94svh; border-radius: 40px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 90px rgba(0,0,0,.8); } }
.ghost { position: absolute; top: 11%; left: 0; right: 0; text-align: center; pointer-events: none; color: rgba(255,255,255,.5);
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif; mix-blend-mode: screen; }
.ghost .d { font-size: clamp(12px, 2.1svh, 18px); font-weight: 600; }
.ghost .t { font-size: clamp(48px, 11svh, 100px); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.hint { position: absolute; top: 34%; left: 0; right: 0; margin: 0; text-align: center; font-style: italic; color: rgba(255,255,255,.75);
  text-shadow: 0 2px 12px rgba(0,0,0,.6); transition: opacity .8s; pointer-events: none; }
.hint.gone { opacity: 0; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px max(16px, env(safe-area-inset-bottom)); }
.pill { font: 17px HS, Georgia, serif; color: var(--ink); padding: 11px 20px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.18); background: rgba(20,10,6,.45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pill.hot { color: #1d0e05; border: 0; background: linear-gradient(180deg, var(--glow), var(--ember)); box-shadow: 0 0 30px rgba(255,140,60,.5); }
.pill:disabled { opacity: .35; box-shadow: none; }
.status { flex: 1; text-align: center; font-size: 14px; font-style: italic; color: rgba(255,255,255,.7); text-shadow: 0 1px 8px #000; }

#v-done .mid { align-items: center; text-align: center; }
#outImg { height: 52vh; border-radius: 30px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.7), 0 0 90px rgba(255,140,60,.2);
  -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; margin-bottom: 26px; }
#doneAsk { font: 400 48px/1 HS, Georgia, serif; font-style: normal; color: var(--glow); margin-bottom: 12px; }
.how { margin: 0; font-size: 16px; color: var(--soft); }

footer { position: fixed; bottom: 4px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  font: 13px Optima, "Avenir Next", sans-serif; letter-spacing: .06em; color: rgba(226,236,248,.42); pointer-events: none; }
footer .mark { width: 22px; height: 22px; opacity: .8; }
body.placing footer { display: none; }

@media (prefers-reduced-motion: reduce) { .embers, .breath { animation: none; } .view { transition: opacity .3s; transform: none; } }
[hidden] { display: none !important; }

/* Ripples, Hear that's look: night water, moonlight blue, rings of sound spreading slowly from below. */
.rings { display: none; position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.rings i { position: absolute; left: 50%; top: 82%; width: 40vmax; height: 40vmax; margin: -20vmax 0 0 -20vmax; border-radius: 50%;
  border: 1.5px solid rgba(191,224,255,.48); box-shadow: 0 0 16px rgba(140,190,255,.28), inset 0 0 16px rgba(140,190,255,.14);
  opacity: 0; animation: ring 10s cubic-bezier(.2,.6,.3,1) infinite; }
.rings i:nth-child(2) { animation-delay: 2s; } .rings i:nth-child(3) { animation-delay: 4s; }
.rings i:nth-child(4) { animation-delay: 6s; } .rings i:nth-child(5) { animation-delay: 8s; }
@keyframes ring { 0% { transform: scale(.05); opacity: 0; } 8% { opacity: .78; } 55% { opacity: .22; } 100% { transform: scale(2.8); opacity: 0; } }
body.look-ripple { --bg: #04060b; --ember: #a9cfff; --glow: #eef6ff; --hot: #7fb2f5; --soft: rgba(226,236,248,.6); --ink: #eef3fa; }
body.look-ripple, html:has(body.look-ripple) { background: #04060b; }
.look-ripple .embers { display: none; }
.look-ripple .rings { display: block; }
.look-ripple .breath { background: radial-gradient(closest-side, rgba(110,160,240,.32), rgba(80,110,200,.12) 45%, transparent 75%); }
.look-ripple h1 { background: linear-gradient(180deg, #ffffff 0%, #d6e8ff 55%, #8fb8f0 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 28px rgba(120,170,255,.35)); }
.look-ripple .glow { color: #06101e; box-shadow: 0 0 0 1px rgba(230,242,255,.5) inset, 0 10px 40px rgba(90,150,240,.4), 0 0 80px rgba(120,170,255,.22); }
.look-ripple .pill.hot { color: #06101e; box-shadow: 0 0 30px rgba(120,170,255,.5); }
.look-ripple .big { border-bottom-color: rgba(169,207,255,.35); }
.look-ripple .big:focus { box-shadow: 0 14px 24px -18px rgba(120,170,255,.9); }
.look-ripple .chips button { color: rgba(226,236,248,.4); border-color: rgba(226,236,248,.12); }
.look-ripple .chips button.picked { color: #eef6ff; border-color: rgba(169,207,255,.5); background: rgba(169,207,255,.07); box-shadow: 0 0 18px rgba(120,170,255,.22); }
.look-ripple #outImg { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.7), 0 0 90px rgba(120,170,255,.2); }
body.placing .rings { opacity: 0; transition: opacity .6s; }
@media (prefers-reduced-motion: reduce) { .rings i { animation: none; } }

/* Hear that's type: Optima, carved and flowing (chosen 27 Nov 2026 with mark A). */
.look-ripple h1, .look-ripple .ask, .look-ripple .big, .look-ripple .glow, .look-ripple .pill,
.look-ripple .chips button, .look-ripple .from, .look-ripple .status, .look-ripple .hint, .look-ripple .nokey, .look-ripple .note, .look-ripple textarea, .look-ripple #doneAsk, .look-ripple .how { font-family: Optima, "Avenir Next", sans-serif; }
.look-ripple h1 { font-size: clamp(68px, 22vw, 120px); line-height: .92; letter-spacing: -.005em; }
.look-ripple .big { font-size: clamp(36px, 10vw, 50px); }
.look-ripple .big.small { font-size: clamp(26px, 7.4vw, 34px); }

/* Keys, the card and the last screen. */
.nokey { margin: 26px 0 0; color: var(--soft); font-style: italic; }
.note { margin: 10px 0 0; font-size: 14px; color: var(--soft); }
.ask.lower { margin-top: 38px; }
textarea.big { resize: none; line-height: 1.35; font-style: normal; }
#v-done { overflow-y: auto; -webkit-overflow-scrolling: touch; }
#v-done .mid { flex: none; justify-content: flex-start; padding-top: 4vh; }
#v-done #outImg { height: 40vh; }
#v-done .glow { flex: none; margin: 26px 0 30px; }
.pass { width: 100%; max-width: 460px; margin-top: 34px; text-align: center; }
.pass .ask { margin-bottom: 4px; font-style: normal; color: var(--ink); font-size: 22px; }
#keyList { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.keybtn { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 16px; cursor: pointer; text-align: left;
  font: 16px Optima, "Avenir Next", sans-serif; color: var(--ink); background: rgba(255,255,255,.03); border: 1px solid rgba(226,236,248,.14); }
.keybtn span { font-size: 13px; color: var(--soft); }
.keybtn.sent { opacity: .45; }
.pass a { color: var(--ember); }

/* The yes: their address, and the switch for staying in touch (off unless they turn it on). */
.yes-page { margin: 0 0 12px; font-size: 19px; color: var(--soft); }
.yes-page b { display: inline-block; margin-top: 6px; font-weight: 400; font-size: clamp(22px, 6.4vw, 28px); color: var(--ink); word-break: break-all; }
.loop { display: flex; gap: 14px; align-items: flex-start; margin: 8px auto 0; max-width: 460px; width: 100%; text-align: left; padding: 18px; border-radius: 18px; cursor: pointer;
  border: 1px solid rgba(226,236,248,.14); background: rgba(255,255,255,.03); transition: border-color .3s, background .3s; }
.loop input { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: none; position: relative; width: 46px; height: 28px; margin-top: 2px; border-radius: 99px; background: rgba(226,236,248,.16); transition: background .3s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #dfe8f4; transition: transform .3s; }
.loop input:checked + .switch { background: linear-gradient(180deg, var(--glow), var(--ember)); box-shadow: 0 0 18px rgba(120,170,255,.4); }
.loop input:checked + .switch::after { transform: translateX(18px); background: #fff; }
.loop input:focus-visible + .switch { outline: 2px solid var(--ember); outline-offset: 3px; }
.loop:has(input:checked) { border-color: rgba(169,207,255,.4); background: rgba(169,207,255,.06); }
.loop-words { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--soft); line-height: 1.45; }
.loop-words b { font-weight: 400; font-size: 18px; color: var(--ink); }
.look-ripple .yes-page, .look-ripple .loop-words { font-family: Optima, "Avenir Next", sans-serif; }

/* The first screen shows what you're making: a small lock screen beside the words. */
.mid.intro { flex-direction: row; align-items: center; gap: 22px; }
.intro-words { flex: 1; min-width: 0; }
.what { margin: 18px 0 0; color: var(--soft); font-size: 16px; line-height: 1.45; max-width: 26em; }
.mini { flex: none; width: 34%; max-width: 170px; height: auto; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 50px rgba(0,0,0,.6), 0 0 60px rgba(120,170,255,.18); }
.look-ripple .intro h1 { font-size: clamp(56px, 16vw, 110px); }
.pic-what { margin: 0 0 10px; font-size: 19px; line-height: 1.45; color: var(--ink); }
.look-ripple .what, .look-ripple .pic-what { font-family: Optima, "Avenir Next", sans-serif; }

/* Your words with a live preview beside them. */
.mid.words { flex-direction: row; align-items: center; gap: 18px; }
.words-form { flex: 1; min-width: 0; }
.words-hint { margin: -6px 0 14px; }
textarea#line { resize: none; line-height: 1.25; }
.mini.live { width: 38%; max-width: 180px; }
.check-line { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 15px; color: var(--soft); }
.check-line input { width: 18px; height: 18px; accent-color: var(--ember); }
.look-ripple .check-line { font-family: Optima, "Avenir Next", sans-serif; }
/* Pass it on, and saying thanks. */
.pass-btns { display: flex; gap: 10px; margin: 18px 0 6px; }
.pass-btns .keybtn { flex: 1; justify-content: center; }
.thanks { width: 100%; max-width: 460px; margin-top: 30px; }
.thanks .glow { margin: 14px 0 30px; }
.codecard { position: fixed; inset: 0; z-index: 10; background: #04060b; display: grid; place-items: center; }
.codecard canvas { height: 100svh; width: auto; max-width: 100vw; object-fit: contain; }
.codecard .pill { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; }

/* The two steps to make it the lock screen. */
.steps-how { text-align: left; margin: 6px auto 0; padding-left: 1.4em; max-width: 26em; color: var(--soft); font-size: 16px; line-height: 1.5; }
.steps-how li { margin-bottom: 10px; padding-left: 4px; }
.steps-how b { color: var(--ink); font-weight: 400; }
.steps-how em { color: var(--ink); }
.look-ripple .steps-how { font-family: Optima, "Avenir Next", sans-serif; }
