:root{--cream:#f2ecd9;--ink:#25372e;--olive:#9ca584;--rust:#25372e;color-scheme:light;font-family:Georgia,'Times New Roman',serif;color:var(--ink);background:var(--cream);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100svh;display:grid;place-items:center;padding:32px 16px}button,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--rust);outline-offset:5px}button{border:0;color:inherit;background:none}button:disabled{cursor:default}button:hover:not(:disabled){color:var(--rust)}[hidden]{display:none!important}.frame{width:600px;min-height:600px;border:1px solid var(--ink);display:flex;flex-direction:column;position:relative}.utility,.frame-foot{display:flex;align-items:center;justify-content:space-between;padding:0 26px}.utility{height:54px;flex-shrink:0}.quiet,.eyebrow,.small,.frame-foot,.counter-footer,.step-heading #detail,dl{font-family:'Courier New',monospace}.quiet{font-size:13px;min-height:44px;padding:7px 0;text-decoration:underline;text-underline-offset:4px}.utility .quiet{text-decoration:none}.eyebrow{font-size:12px;letter-spacing:.13em;margin:0 0 22px}.view{flex:1}.birthday{min-height:502px;display:grid;place-items:center}.birthday-inner{width:320px;padding-bottom:18px}.birthday h1{font-size:52px;line-height:1.05;letter-spacing:-.045em;font-weight:400;margin:0 0 35px}.date-fields{display:flex;gap:16px;align-items:flex-end;margin-bottom:26px}label{font-family:'Courier New',monospace;font-size:12px;flex:1}select{display:block;width:100%;font-family:'Courier New',monospace;font-size:16px;border:0;border-bottom:1px solid var(--ink);border-radius:0;background:transparent;color:var(--ink);height:48px;padding:8px 2px;cursor:pointer}.slash{padding-bottom:12px;font-size:22px}.primary{font-family:'Courier New',monospace;font-size:14px;border:1px solid var(--ink);min-height:46px;padding:12px 22px;background:var(--ink);color:var(--cream)}.primary:hover:not(:disabled){background:var(--rust);border-color:var(--rust);color:var(--cream)}.primary:disabled{background:transparent;color:var(--ink);border-style:dashed}.small{font-size:12px;line-height:1.55}.privacy{margin-top:22px}.frame-foot{min-height:42px;font-size:12px}.tiny-mark{font-size:24px}.counter{position:relative}.step-heading{position:absolute;top:10px;left:27px;z-index:1;pointer-events:none}#verb{font-size:28px;letter-spacing:-.02em;margin:0 0 6px}#detail{font-size:12px;margin:0;max-width:255px}#scene{width:100%;height:auto;display:block;image-rendering:pixelated;touch-action:none;cursor:none} .counter-footer{display:flex;align-items:center;justify-content:space-between;min-height:36px;padding:0 26px;font-size:12px;margin-top:-12px}#assist{border-top:1px solid var(--ink);padding:16px 26px}#assist p{font-size:14px;line-height:1.5;margin:0 0 12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:1px solid var(--ink);background:var(--cream);color:var(--ink);padding:42px;width:min(480px,calc(100vw - 28px));max-height:calc(100svh - 32px);overflow:auto}dialog::backdrop{background:var(--ink);opacity:.6}.dialog-close{position:absolute;top:8px;right:22px}dialog h2{font-size:46px;line-height:1.02;letter-spacing:-.04em;font-weight:400;margin:0 0 24px}dialog p:not(.eyebrow):not(.small){font-size:17px;line-height:1.45}dl{font-size:13px;border-top:1px solid var(--ink);padding-top:10px;margin:24px 0}dl div{display:grid;grid-template-columns:70px 1fr;gap:12px;margin:12px 0}dt{color:var(--rust)}dd{margin:0}#rsvp a{display:inline-block;text-decoration:none}.reading{padding:10px 40px 24px}.specimen-top{display:flex;justify-content:space-between;border-top:1px solid var(--ink);padding-top:16px}.specimen-top .eyebrow{margin:0}.specimen-title{font-size:45px;line-height:1.1;letter-spacing:-.04em;font-weight:400;margin:13px 0 12px}.specimen-visual{display:grid;grid-template-columns:110px 1fr 92px;align-items:center;gap:18px;border-bottom:1px solid var(--ink);padding:2px 0 20px;margin-bottom:16px}.specimen-visual canvas{image-rendering:pixelated;width:100%;height:auto}.origin{font-family:'Courier New',monospace;font-size:12px;line-height:1.5}.origin strong{font-weight:400;font-size:16px;display:block;margin:3px 0 5px}.reading-copy{margin:0}.reading-copy div{display:grid;grid-template-columns:60px 1fr;gap:12px;margin:12px 0}.reading-copy dt{font-family:'Courier New',monospace;font-size:12px;line-height:1.6}.reading-copy dd{font-size:17px;line-height:1.4}.reading-bottom{margin-top:18px;border-top:1px solid var(--ink);padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.reading-bottom .primary{white-space:nowrap}.source-link{font-family:'Courier New',monospace;font-size:12px;color:var(--ink)}.reading .small{margin:14px 0 0;font-size:11px}.source-note{margin:16px 0}.source-note a{color:var(--ink)}
@media(max-width:620px){body{padding:12px}.frame{width:100%;min-height:min(650px,calc(100svh - 24px))}.utility,.frame-foot{padding:0 20px}.birthday{min-height:480px}.birthday-inner{width:min(290px,calc(100% - 48px))}.birthday h1{font-size:48px}.utility{height:50px}.counter .step-heading{left:20px;top:9px}#verb{font-size:27px}#detail{max-width:200px;font-size:12px}.counter-footer{padding:0 20px;margin-top:-2px;font-size:12px}.reading{padding:8px 22px 24px}.specimen-title{font-size:39px}.specimen-visual{grid-template-columns:72px 1fr 65px;gap:12px}.reading-copy div{grid-template-columns:54px 1fr;gap:10px}.reading-copy dd{font-size:16px}.reading-bottom{align-items:flex-start;flex-direction:column}.reading-bottom .primary{width:100%}.reading .small{font-size:12px}.frame-foot{font-size:11px}dialog{padding:38px 26px}#assist{padding:15px 20px}.source-link{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(min-width:621px) and (max-height:700px){body{padding:16px}}

.keyboard-action{position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;bottom:0;left:24px;z-index:2}.keyboard-action:focus-visible{clip-path:none;width:auto;height:auto;min-height:44px;max-width:calc(100% - 48px);white-space:normal;padding:10px 18px}.counter-footer{min-height:20px}

.counter{background:var(--ink);color:var(--cream)}.counter .step-heading{top:27px;left:28px}.counter #verb{font-size:23px;margin-bottom:4px}.counter #detail{max-width:360px;font-size:12px}.counter-footer{display:none}.frame-foot{min-height:34px}.keyboard-action:focus-visible{color:var(--ink);background:var(--cream)}@media(max-width:620px){.counter .step-heading{top:25px;left:26px}.counter #detail{max-width:250px}.counter #verb{font-size:23px}}

.frame-foot{display:none}.birthday h1{font-size:48px;white-space:nowrap}.birthday-inner{width:300px}.date-fields{margin-top:38px;margin-bottom:26px}.birthday .primary{min-width:110px}.source-note summary{cursor:pointer}
@media(max-width:620px){.birthday-inner{width:min(300px,calc(100% - 48px))}.birthday h1{font-size:clamp(34px,10vw,48px)}}

@font-face{font-family:Silkscreen;src:url('fonts/Silkscreen-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
.counter .step-heading{top:19px;left:50%;transform:translateX(-50%);width:calc(100% - 52px);max-width:455px;min-height:68px;padding:7px 12px 5px;border:1px solid var(--olive);outline:2px solid var(--ink);background:var(--ink);text-align:center}
.counter #verb{font-family:Silkscreen,monospace;font-size:16px;line-height:1.2;font-weight:400;letter-spacing:0;margin:0 0 3px;color:var(--cream)}
.counter #detail{font-family:Silkscreen,monospace;font-size:12px;line-height:1.5;max-width:none;min-height:32px;color:var(--olive);margin:0}
@media(max-width:620px){.counter .step-heading{top:19px;left:50%;width:calc(100% - 44px);padding:7px 9px 5px}.counter #verb{font-size:14px}.counter #detail{font-size:11px;line-height:1.45;min-height:32px}}

.counter .step-heading{min-height:76px}.counter #detail{font-size:14px;line-height:1.3;min-height:37px}.counter #verb{font-size:16px}

/* The reading is one continuous piece of supplied editorial copy. */
.map-figure{margin:0}.map-figure figcaption{font:9px/1.3 'Courier New',monospace;text-align:center}
.specimen-visual{grid-template-columns:76px 1fr 78px;padding-bottom:14px;gap:16px}
.horoscope{font-size:20px;line-height:1.5;margin:18px 0 22px;letter-spacing:-.01em}
.dread h3{font:12px/1.4 'Courier New',monospace;letter-spacing:.04em;margin:0 0 7px}
.dread p{font-size:16px;line-height:1.45;margin:0}
.source-note{margin:22px 0 0;border-top:1px solid var(--ink);padding-top:12px}
.source-note summary{min-height:26px;line-height:1.7}
.coffee-history{font-size:16px;line-height:1.55;margin:12px 0}
.edition{font:11px/1.5 'Courier New',monospace;margin:0}
.reading-bottom{margin-top:10px;padding-top:14px;border-top:0}
.counter #detail{color:var(--cream)}
@media(max-width:620px){.specimen-title{font-size:36px}.specimen-visual{grid-template-columns:54px minmax(0,1fr) 65px;gap:10px}.origin{font-size:10px}.origin strong{font-size:15px}.horoscope{font-size:18px;line-height:1.5}.dread p,.coffee-history{font-size:16px}.reading-bottom{gap:17px}.edition{font-size:10px}.counter #detail{font-size:12px}}
.specimen-title:focus{outline:none}

/* The opening shares the counter's frame and dimensions. */
.frame{min-height:0;border:0;background:var(--ink)}
.birthday{position:absolute;inset:0;z-index:3;min-height:0;color:var(--cream)}
.birthday-inner{width:min(430px,calc(100% - 88px));padding:0;text-align:center}
.birthday h1{white-space:normal;font-size:43px;line-height:1.12;margin:0;text-wrap:balance}
.birthday .date-fields{margin:35px auto 26px;width:min(290px,100%)}
.birthday select{color:var(--cream);border-color:var(--olive);color-scheme:dark}
.birthday select option{color:var(--cream);background:var(--ink)}
.birthday .primary{color:var(--ink);background:var(--cream);border-color:var(--cream)}
.birthday .primary:hover{background:var(--olive);border-color:var(--olive)}
.sound-toggle{left:auto;right:24px;bottom:14px;z-index:4}
.sound-toggle:focus-visible{background:var(--cream);color:var(--ink)}
.reading{display:grid;place-items:center;min-height:528px;padding:48px;background:var(--cream);border:1px solid var(--ink)}
.grounding-inner{width:100%;max-width:440px}
.grounding-title{font-size:42px;line-height:1.1;letter-spacing:-.04em;font-weight:400;margin:0 0 28px}
.grounding-title:focus{outline:none}
.grounding-labels{border:0;padding:0;margin:0 0 27px;font:14px/1.5 'Courier New',monospace}
.grounding-labels div{grid-template-columns:48px 1fr;gap:10px;margin:5px 0}
.grounding-labels dt{color:var(--ink)}
.reading .horoscope{font-size:20px;line-height:1.5;margin:0}
.reading-action{display:flex;justify-content:center;margin-top:36px}
@media(max-width:620px){
 .frame{min-height:0}
 .birthday-inner{width:calc(100% - 70px)}
 .birthday h1{font-size:38px}
 .birthday .date-fields{margin-top:32px}
 .reading{min-height:620px;padding:36px 26px}
 .grounding-title{font-size:37px}
 .reading .horoscope{font-size:18px}
 .grounding-labels{font-size:13px}
}

@font-face{font-family:'Gestura Text';src:url('fonts/GesturaText-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Gestura Text';src:url('fonts/GesturaText-Semibold.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
:root{font-family:'Gestura Text',Georgia,'Times New Roman',serif}
.birthday h1,.grounding-title{letter-spacing:-.025em}

/* The final reading is a single centered 'Gestura Text' composition. */
.reading{text-align:center;font-family:'Gestura Text',Georgia,serif}
.grounding-title{text-wrap:balance}
.grounding-labels{font-family:inherit;font-size:18px;line-height:1.4}
.grounding-labels div{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.reading .primary{font-family:inherit;font-size:18px;line-height:1.25}
@media(max-width:620px){.grounding-labels{font-size:17px}.grounding-title{font-size:36px}}

/* Preserve the original pixel frame on the final card. */
.reading{position:absolute;inset:0;min-height:0;background:transparent;border:0;color:var(--cream)}
.reading .grounding-labels dt{color:inherit}
.reading .primary{color:var(--ink);background:var(--cream);border-color:var(--cream)}
.reading .primary:hover{background:var(--olive);border-color:var(--olive)}
@media(max-width:620px){.reading{min-height:0;padding:36px}}

.counter .step-heading{border:2px solid #d98a75}

.reading .primary{background:#d98a75;border-color:#d98a75;color:var(--ink)}
.reading .primary:is(:hover,:focus-visible){background:var(--ink);border-color:#d98a75;color:var(--cream)}
.reading .primary:focus-visible{outline-color:#d98a75}

.reading .primary{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:10px}
.button-bean{display:block;flex:none;transform-origin:center;transition:transform 180ms steps(3,end)}
.primary:is(:hover,:focus-visible) .button-bean{transform:rotate(-12deg)}
@media(prefers-reduced-motion:reduce){.button-bean{transition:none}}
.birthday select,.birthday .primary{font-family:'Gestura Text',Georgia,serif;font-size:18px}

/* A small, icon-only sound toggle beneath the frame. */
body{padding-bottom:64px}
.sound-toggle{position:absolute;top:calc(100% + 5px);right:0;bottom:auto;left:auto;z-index:4;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;color:var(--ink);background:transparent;border:0}
.sound-toggle:hover:not(:disabled){color:var(--ink)}
.sound-toggle:focus-visible{color:var(--ink);background:transparent;outline:2px solid var(--ink);outline-offset:1px}
.sound-toggle svg{display:block}
.sound-strike{display:none}
.sound-toggle[aria-pressed="true"] .sound-strike{display:inline}
@media(max-width:620px){body{padding-bottom:60px}}

.grounding-labels div{align-items:center}
.grounding-labels dd{display:inline-flex;align-items:center;gap:7px}
.origin-flag{display:block;flex:none;image-rendering:pixelated}
.zodiac-symbol{display:inline-block;flex:none;width:24px;text-align:center;font:20px/1 'Apple Symbols','Segoe UI Symbol','Noto Sans Symbols 2',serif;font-variant-emoji:text;color:var(--cream)}

/* One mobile screen, including the space occupied by browser chrome. */
@media(max-width:620px),(max-height:500px){
 html{height:100svh;height:var(--viewport-height,100dvh);overflow:hidden;overscroll-behavior:none;background:var(--ink)}
 body{position:fixed;top:0;left:0;display:block;width:100%;height:100svh;height:var(--viewport-height,100dvh);min-height:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden;overscroll-behavior:none;background:var(--ink)}
 .frame{width:100%;height:100%;min-height:0;overflow:hidden;isolation:isolate}
 .counter{flex:none;width:100%;height:100%;min-height:0}
 #scene{width:100%;height:100%}
 .sound-toggle{top:auto;right:auto;bottom:6%;left:6%;color:var(--cream);background:var(--ink)}
 .sound-toggle:hover:not(:disabled),.sound-toggle:focus-visible{color:var(--cream);background:var(--ink);outline-color:#d98a75}
 .sound-strike path:first-child{stroke:var(--ink)}
 .counter .step-heading{top:24px;width:calc(100% - 52px);min-height:70px;padding:7px 9px 5px}
 .reading{padding:38px 32px 78px}
 .grounding-title{font-size:clamp(28px,8.5vw,36px);margin-bottom:20px}
 .grounding-labels{margin-bottom:20px}
 .reading-action{margin-top:26px}
 .reading .horoscope{font-size:clamp(16px,4.6vw,18px);line-height:1.4}
}
@media(max-width:620px) and (max-height:580px),(max-height:500px){
 .counter .step-heading{top:18px;min-height:60px;padding:5px 7px}
 .counter #verb{font-size:14px}
 .counter #detail{font-size:11px;min-height:28px}
 .reading{padding:28px 30px 64px}
 .grounding-title{font-size:28px;margin-bottom:12px}
 .grounding-labels{font-size:16px;margin-bottom:16px}
 .reading .horoscope{font-size:16px;line-height:1.35}
 .reading-action{margin-top:18px}
 .reading .primary{font-size:17px;padding:10px 16px}
}

@media(min-width:621px) and (max-height:500px){.grounding-inner{max-width:640px}.reading{padding:28px 54px 44px}.grounding-title{font-size:28px;margin-bottom:10px}.grounding-labels{margin-bottom:14px}.reading-action{margin-top:16px}}

/* Desktop keeps the sound control at the instruction corner on every screen. */
.frame{--instructions-top:19px}
.counter .step-heading{top:var(--instructions-top);padding-inline:46px}
@media(min-width:621px){
 .frame .sound-toggle{top:calc(var(--instructions-top) + 10px);right:max(28px,calc((100% - 455px)/2 + 2px));bottom:auto;left:auto;color:var(--cream);background:transparent}
 .frame .sound-toggle:is(:hover,:focus-visible){color:var(--cream);background:transparent}
 .frame .sound-toggle:focus-visible{outline-color:#d98a75;outline-offset:-4px}
 .frame .sound-strike path:first-child{stroke:var(--ink)}
}
@media(max-width:620px){
 .frame:has(.step-heading:not([hidden])) .sound-toggle{top:calc(var(--instructions-top) + 2px);right:max(28px,calc((100% - 455px)/2 + 2px));bottom:auto;left:auto;color:var(--cream);background:transparent}
 .frame:has(.step-heading:not([hidden])) .sound-toggle:focus-visible{outline-color:#d98a75;outline-offset:-4px}
 .frame:has(.step-heading:not([hidden])) .sound-strike path:first-child{stroke:var(--ink)}
}
@media(max-width:620px),(max-height:500px){.frame{--instructions-top:24px}}
@media(max-width:620px) and (max-height:580px),(max-height:500px){.frame{--instructions-top:18px}}

/* Longer readings keep the bitter note separate and the full card in view. */
.reading{padding:45px 40px}
.grounding-title{font-size:34px;margin-bottom:16px}
.grounding-labels{font-size:16px;line-height:1.35;margin-bottom:16px}
.reading .horoscope{font-size:15px;line-height:1.5}
.reading .bitter-note{font-size:15px;line-height:1.5;margin:18px 0 0}
.bitter-note strong{font-weight:500}
.reading-action{margin-top:22px}
@media(max-width:620px){
 .reading{padding:56px 28px}
 .grounding-title{font-size:32px}
 .grounding-labels{font-size:16px}
 .reading .horoscope{font-size:15px;line-height:1.5}
 .reading .bitter-note{font-size:15px}
}
@media(max-width:620px) and (max-height:580px){
 .reading{padding:46px 26px}
 .grounding-title{font-size:26px;margin-bottom:12px}
 .grounding-labels{font-size:14px;margin-bottom:12px}
 .reading .horoscope{font-size:15px;line-height:1.3}
 .reading .bitter-note{font-size:14px;line-height:1.3;margin-top:16px}
 .reading-action{margin-top:16px}
 .reading .primary{font-size:16px;min-height:44px;padding:10px 14px}
}
@media(max-width:340px) and (max-height:540px){
 .reading{padding-block:44px}
 .grounding-title{font-size:24px;margin-bottom:10px}
 .grounding-labels{margin-bottom:10px}
 .reading .horoscope{font-size:14px;line-height:1.28}
 .reading .bitter-note{font-size:13px;line-height:1.3;margin-top:14px}
}
@media(min-width:621px) and (max-height:500px){
 .reading{padding:44px 54px}
 .grounding-title{font-size:26px;margin-bottom:10px}
 .grounding-labels{font-size:14px;line-height:1.25;margin-bottom:10px}
 .reading .horoscope{font-size:15px;line-height:1.3}
 .reading .bitter-note{font-size:14px;line-height:1.3;margin-top:14px}
 .reading-action{margin-top:14px}
 .reading .primary{font-size:16px;min-height:44px;padding:10px 16px}
}

/* Opening controls share the bean motif, with a quiet shortcut below. */
.birthday .primary{display:inline-flex;align-items:center;justify-content:center;gap:10px}
.birthday-brand{position:absolute;top:calc(var(--instructions-top) + 22px);left:50%;transform:translateX(-50%);display:block;width:124px;height:44px;padding:12px;margin-top:-12px}
.birthday-brand img{display:block}
.birthday-brand:focus-visible{outline-color:var(--cream)}
.skip-button{display:grid;place-items:center;position:absolute;left:50%;bottom:24px;transform:translateX(-50%);min-width:44px;min-height:44px;padding:10px 14px;font:13px/1.4 'Gestura Text',Georgia,serif;color:var(--cream);text-decoration:underline;text-underline-offset:3px}
.birthday .skip-button:hover:not(:disabled){color:var(--cream)}
.skip-button:focus-visible{outline-color:#d98a75;outline-offset:0}
@media(max-width:620px),(max-height:500px){.skip-button{bottom:6%}}

/* Month and day remain side by side, including on narrow phones. */
.birthday .date-fields{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:12px;width:min(340px,100%)}
.birthday .date-fields label{min-width:0}
.birthday select{appearance:none;-webkit-appearance:none;border:1px solid var(--olive);padding:8px 36px 8px 14px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23f2ecd9' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px}
.birthday input{display:block;width:100%;height:48px;min-width:0;border:1px solid var(--olive);border-radius:0;padding:8px 14px;font:18px 'Gestura Text',Georgia,serif;color:var(--cream);background:transparent;appearance:textfield;-moz-appearance:textfield;touch-action:manipulation}
.birthday input::placeholder{color:var(--cream);opacity:1}
.birthday input::-webkit-inner-spin-button,.birthday input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.birthday select:focus-visible,.birthday input:focus-visible{outline:2px solid #d98a75;outline-offset:5px}

/* Equal top and bottom space centers the card within the whole frame.
   Auto margins collapse when it needs to scroll, keeping its top reachable. */
.reading{display:flex;flex-direction:column;align-items:center;overflow-y:auto;overscroll-behavior-y:contain}
.reading .grounding-inner{flex:0 0 auto;margin-block:auto}
