/* Utopia Of Our Own — styles */
:root { --ink: #0A0A0A; --paper: #FCFCFC; --grey: #666; --line: #D6D6D6; --desk: #ECECEA; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button { cursor: pointer; font: inherit; color: inherit; transition: background .3s, color .3s, opacity .3s; }
button:disabled { opacity: .35; cursor: not-allowed; }
textarea::placeholder, input::placeholder { color: #8C8C8C; }
textarea:focus, input:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.cap { font: 400 11px/1.15 Silkscreen, 'Courier New', monospace; letter-spacing: .02em; text-transform: uppercase; margin: 0; }
.micro { font: 500 8px/1.4 Inter, Helvetica, Arial, sans-serif; text-transform: uppercase; color: var(--grey); margin: 0; }
.srf { font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight: 400; }
.wm { margin: 0; font: 900 clamp(84px, 13.5vw, 196px)/.82 Doto, Silkscreen, monospace; letter-spacing: .02em; }
.ofo { margin: 0; font: italic 400 clamp(30px, 3.6vw, 52px)/1 'Instrument Serif', serif; }
.btn { min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--ink); background: var(--paper); font: 400 11px/1 Silkscreen, 'Courier New', monospace; text-transform: uppercase; }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.link { min-height: 44px; padding: 0; border: 0; background: none; font: 500 9px/1.4 Inter, Helvetica, Arial, sans-serif; text-transform: uppercase; text-decoration: underline; color: #333; }

/* motion — everything fades or pulses; nothing flashes */
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { 0%,100% { transform: scale(1); } 50% { transform: scale(.8); } }
@keyframes breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes scan { 0% { left: -2%; opacity: 0; } 10%,90% { opacity: 1; } 100% { left: 102%; opacity: 0; } }
@keyframes sink { 0% { transform: translateY(0); opacity: 1; filter: blur(0); } 100% { transform: translateY(300px); opacity: 0; filter: blur(3px); } }
@keyframes srch { 0% { opacity: 0; } 45%,55% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cyc { 0% { opacity: 0; transform: translateY(4px); } 12%,82% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes drift { 0%,100% { transform: translate(0,0); opacity: 0; } 20%,80% { opacity: 1; } 50% { transform: translate(18px,-10px); } }
@keyframes print { 0% { transform: translateY(-100%); } 9%,15% { transform: translateY(-93%); } 24%,30% { transform: translateY(-86%); } 39%,45% { transform: translateY(-79%); } 100% { transform: none; } }
@keyframes away { to { transform: translateY(-120px); opacity: 0; } }
@keyframes hint { 0%,70% { opacity: 1; } 100% { opacity: 0; } }
.w { opacity: 0; animation: in .4s cubic-bezier(.2,.7,.2,1) forwards; }
.pl { animation: pulse 2.2s ease-in-out infinite; }
.sp { transform-box: fill-box; transform-origin: center; animation: spin 9s linear infinite; }
.gr { transform-box: fill-box; transform-origin: center; animation: grow 3s ease-in-out infinite; }
.df { fill: none; stroke: var(--ink); stroke-linecap: round; animation: flow 3s linear infinite; }
.br { animation: breathe 5s ease-in-out infinite; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--ink); }

/* chrome */
.top { position: absolute; z-index: 3; left: 3%; right: 3%; top: 26px; display: flex; justify-content: space-between; align-items: flex-start; }
.brand { border: 0; background: none; padding: 6px 0; }
.steps { display: flex; gap: 4px; padding-top: 8px; }
.steps span { width: 24px; height: 4px; background: var(--line); transition: background .4s ease; }
.steps span.on { background: var(--ink); }
.foot { padding: 0 3% 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font: 400 11px/1.4 'Instrument Serif', 'Times New Roman', serif; text-transform: uppercase; color: #333; }
.foot a { color: #333; }
body.share .top, body.share .foot { display: none; }
main > section { animation: in .3s ease-out both; }

/* entry */
.entry { position: relative; min-height: 800px; overflow: hidden; }
.field { position: absolute; left: 0; right: 0; bottom: -40px; width: 100%; height: 520px; opacity: .3; pointer-events: none; }
.frag { position: absolute; margin: 0; max-width: 220px; font: 600 11px/1.3 Inter, Helvetica, Arial, sans-serif; text-transform: uppercase; color: #B0B0B0; animation: drift 14s ease-in-out infinite; }
.entry-in { position: relative; max-width: 1140px; margin: 0 auto; padding: 104px 4% 220px; display: grid; gap: 28px; }
.g3 { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.8fr) minmax(0,1fr); gap: 48px; align-items: end; margin-top: 12px; }
.charter { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--ink); display: grid; gap: 6px; }
.charter li { font-size: 18px; line-height: 1.25; display: grid; grid-template-columns: 28px minmax(0,1fr); }
.today { margin: 0; border-top: 1px solid var(--ink); }
.today div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.today div:last-child { border-bottom: 0; }
.today dt { font-size: 9px; }
.today dd { margin: 0; font-size: 18px; }
.yours { position: absolute; left: 61%; bottom: 120px; display: flex; gap: 8px; align-items: center; }
.yours .gr { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); display: inline-block; }

/* request */
.request { position: relative; min-height: 800px; }
.req-in { max-width: 1240px; margin: 0 auto; padding: 100px 6% 80px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 6%; }
.row { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 12px; border-top: 1px solid var(--ink); padding: 20px 0; }
.row:last-of-type { border-bottom: 1px solid var(--ink); }
.big { width: 100%; border: 0; padding: 0; resize: none; background: transparent; font: 800 30px/1.05 Inter, Helvetica, Arial, sans-serif; letter-spacing: -.04em; color: var(--ink); }
.mid { font-size: 22px; line-height: 1.15; letter-spacing: -.03em; }
.ex { position: absolute; left: 0; top: 0; margin: 0; pointer-events: none; font-weight: 800; color: #8C8C8C; animation: cyc 3.2s ease-in-out both; }
.alert { margin-top: 6px; color: var(--ink); font-weight: 600; }
.combo { position: relative; }
.cityin { width: 100%; height: 44px; border: 0; border-bottom: 1px solid var(--ink); padding: 0; background: transparent; font: 400 22px/1 VT323, 'Courier New', monospace; text-transform: uppercase; color: var(--ink); }
.opts { position: absolute; z-index: 5; left: 0; right: 0; top: 46px; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--ink); box-shadow: 0 10px 24px rgba(10,10,10,.12); }
.opts li { min-height: 40px; padding: 10px 12px; font: 400 20px/1 VT323, 'Courier New', monospace; text-transform: uppercase; cursor: pointer; }
.opts li[aria-selected="true"], .opts li:hover { background: var(--ink); color: var(--paper); }
.deco { position: relative; width: 300px; height: 300px; margin-top: 70px; }
.deco > div { position: absolute; width: 140px; height: 140px; border: 1px solid var(--ink); }
.send { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 24px; }
.num { position: absolute; right: 3%; bottom: 40px; margin: 0; font: 900 160px/.8 Inter, Helvetica, Arial, sans-serif; letter-spacing: -.07em; }

/* transmission */
.transmit { position: relative; min-height: 800px; overflow: hidden; }
.transmit .field { top: 0; bottom: auto; height: 100%; opacity: 1; }
.scanline { position: absolute; top: 52%; bottom: 0; width: 1px; background: var(--ink); animation: scan 3s cubic-bezier(.45,0,.55,1) infinite; }
.sinkw { position: absolute; margin: 0; }
.status { position: absolute; left: 6%; right: 6%; top: 300px; height: 44px; text-align: center; }
.status p { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 10px; align-items: center; justify-content: center; }
.status .srch { opacity: 0; animation: srch 1s ease-in-out 3.1s 3 both; }
.status .ans { opacity: 0; animation: in .6s cubic-bezier(.2,.7,.2,1) 6.2s forwards; }
.status .sub { top: 24px; }
.skip { position: absolute; right: 3%; top: 80px; }

/* received + receipt */
.received { position: relative; min-height: 980px; background: var(--desk); padding: 92px 4% 90px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: flex-start; }
.printer { position: relative; z-index: 2; }
.printer .bar { height: 16px; border-radius: 8px; background: var(--ink); }
.away { animation: away .8s cubic-bezier(.5,0,.75,0) 3.8s forwards; }
.slot { overflow: hidden; padding: 0 34px 64px; margin: -8px -16px -20px; }
.stubwrap { overflow: hidden; padding: 0 30px 56px; margin: 0 -30px -30px; }
body.desk, body.desk .foot { background: var(--desk); }
.paper { animation: print 3.2s ease-in-out .3s both; filter: drop-shadow(0 1px 2px rgba(10,10,10,.12)) drop-shadow(0 14px 22px rgba(10,10,10,.16)); }
.sheet { background: #fff; padding: 22px 22px 8px; font: 400 19px/1.1 VT323, 'Courier New', monospace; text-transform: uppercase; color: var(--ink); }
.sheet p { margin: 0; }
.teeth, .teeth-top { height: 14px; }
.teeth { margin-top: -1px; background: linear-gradient(135deg,#fff 50%,transparent 50%) 0 0/14px 14px repeat-x, linear-gradient(-135deg,#fff 50%,transparent 50%) 0 0/14px 14px repeat-x; }
.teeth-top { margin-bottom: -1px; background: linear-gradient(45deg,#fff 50%,transparent 50%) 0 0/14px 14px repeat-x, linear-gradient(-45deg,#fff 50%,transparent 50%) 0 0/14px 14px repeat-x; }
.dash { border: 0; border-top: 1px dashed var(--ink); margin: 12px 0; }
.rl { display: flex; justify-content: space-between; gap: 16px; }
.rl span:last-child { text-align: right; }
.c { text-align: center; }
.s16 { font-size: 16px; }
.barcode { margin: 6px 0 0 !important; text-align: center; font: 400 48px/1 'Libre Barcode 39', monospace; text-transform: none; }
.side { width: 300px; max-width: 100%; display: grid; gap: 22px; padding-top: 24px; }
.done { transition: opacity .5s ease; }
@media (hover: hover) { body.idle .done { opacity: 0; } }
.done:focus-visible { opacity: 1 !important; }
.hint { animation: hint 3s ease forwards; }
.settled .w, .settled .paper { animation: none !important; opacity: 1; transform: none; }

/* phones */
@media (max-width: 640px) {
  .dsk { display: none !important; }
  .g3 { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .wm { font-size: 22vw; }
  .ofo { font-size: 30px; }
  .entry-in { padding-top: 92px; }
  .req-in { grid-template-columns: minmax(0,1fr); padding-top: 88px; }
  .row { grid-template-columns: minmax(0,1fr); }
  .received { padding-top: 84px; }
  .sheet { font-size: 18px; padding: 20px 18px 8px; }
  #rBody { font-size: 28px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
}
