@font-face { font-family: "Spindle Script"; src: url("assets/SpindleScript.ttf") format("truetype"); font-display: swap; }

:root {
  --wall: #2a1d29;        /* the room's wall at dusk */
  --wall-deep: #1d141c;
  --amber: #f3b562;       /* the lamp */
  --ember: #e0874a;       /* the lamp's warm edge */
  --walnut: #6e4129;      /* the desk */
  --paper: #efe4d6;       /* the sleeve */
  --mute: #b9a89c;
  --line: rgba(239, 228, 214, 0.14);
  --display: "Young Serif", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
  --r-big: 28px;
  --r-small: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wall-deep); color: var(--paper); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--amber); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 12px; z-index: 50; background: var(--paper); color: var(--wall-deep); padding: 6px 12px; }

.wordmark { font-family: "Spindle Script", var(--display); font-size: 34px; color: var(--paper); text-decoration: none; line-height: 1; }
.wordmark.small { font-size: 26px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 0; font: 600 16px/1 var(--body);
       text-decoration: none; cursor: pointer; background: var(--amber); color: #2a1408; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(243, 181, 98, .7); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-quiet { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px rgba(239, 228, 214, .4); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn.wide { width: 100%; justify-content: center; }
.fine { font-size: 13px; color: var(--mute); margin: 10px 0 0; }

/* Top bar */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
       padding: 14px clamp(16px, 4vw, 40px); background: linear-gradient(var(--wall-deep), rgba(29, 20, 28, 0)); }
.deal-strip { margin: 0; font-size: 14px; color: var(--paper); display: flex; align-items: center; gap: 8px; }
.deal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
        gap: clamp(24px, 4vw, 64px); padding: 120px clamp(20px, 6vw, 88px) 72px; overflow: hidden; isolation: isolate; }
.hero-room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2;
             filter: saturate(1.05) brightness(.62); transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
               background: linear-gradient(90deg, rgba(29,20,28,.94) 0%, rgba(29,20,28,.72) 42%, rgba(29,20,28,.15) 75%), linear-gradient(0deg, var(--wall-deep), rgba(29,20,28,0) 30%); }
.hero-glow { position: absolute; right: 14%; top: 10%; width: 46vw; height: 46vw; border-radius: 50%; z-index: -1; pointer-events: none;
             background: radial-gradient(closest-side, rgba(243, 181, 98, .30), rgba(243, 181, 98, 0)); opacity: .5; transition: opacity .6s ease; }
body.playing .hero-glow { animation: beat .52s ease-out infinite; }
@keyframes beat { 0% { opacity: .95; transform: scale(1.03); } 100% { opacity: .55; transform: scale(1); } }
.hero-copy { max-width: 34rem; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: #e2d5c7; max-width: 32rem; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The record you can touch */
.deck { position: relative; justify-self: center; width: min(520px, 40vw); aspect-ratio: 1.12; border-radius: var(--r-big);
        background: linear-gradient(160deg, #f1c9a6, #e3a982 60%, #cf9470); box-shadow: 0 50px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -10px 30px rgba(110,65,41,.25); }
.platter { position: absolute; left: 7%; top: 9%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: #1b1416; box-shadow: 0 6px 18px rgba(0,0,0,.45); display: grid; place-items: center; }
.record { width: 96%; aspect-ratio: 1; border-radius: 50%; cursor: grab; touch-action: none; will-change: transform;
          background:
            radial-gradient(circle at 50% 50%, transparent 0 31%, rgba(255,255,255,.035) 31.5% 32%, transparent 32.5%),
            repeating-radial-gradient(circle at 50% 50%, #161112 0 1.6px, #1e1719 1.6px 3.2px),
            #171213;
          box-shadow: inset 0 0 0 2px #0f0b0c; position: relative; }
.record::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
                 background: conic-gradient(from 210deg, transparent 0 8%, rgba(255,255,255,.09) 12%, transparent 18% 58%, rgba(255,255,255,.06) 62%, transparent 68%); }
.record:active { cursor: grabbing; }
.label { position: absolute; inset: 34%; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 2px;
         background: radial-gradient(circle at 50% 50%, #1a1416 0 4%, transparent 4.5%), linear-gradient(135deg, var(--ember), #b8476a); }
.label-script { font-family: "Bodoni Moda", "Bodoni 72", Didot, serif; font-size: clamp(18px, 2vw, 26px); color: #fff3e6; line-height: 1; }
.label-side { font-size: 10px; color: rgba(255,243,230,.8); }
.arm { position: absolute; right: 4%; top: 4%; width: 22%; transform-origin: 77% 10%; transform: rotate(-16deg); transition: transform 1.1s cubic-bezier(.45,.05,.2,1); }
body.playing .arm { transform: rotate(38deg); }
.play { position: absolute; left: 9%; bottom: 8%; display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255,255,255,.35);
        color: #3b2418; font: 600 12px/1 var(--body); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.play-dot { width: 10px; height: 10px; border-radius: 50%; background: #6e5a50; transition: background .3s, box-shadow .3s; }
body.playing .play-dot { background: #8ef0a8; box-shadow: 0 0 10px #8ef0a8; }
.deck-hint { position: absolute; right: 7%; bottom: 7%; margin: 0; font-size: 12px; color: rgba(59, 36, 24, .7); }

/* Tracklist */
.sleeve-back { max-width: 1120px; margin: 0 auto; padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 48px); }
.sleeve-back h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 40px; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.side h3 { font-size: 22px; display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side h3 span { font-family: var(--body); font-size: 14px; color: var(--mute); }
.tracks { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.tracks li { counter-increment: t; position: relative; padding: 16px 0 16px 38px; border-bottom: 1px solid var(--line); color: #d9cbbd; max-width: 60ch; }
.tracks li::before { content: counter(t); position: absolute; left: 0; top: 15px; font-family: var(--display); color: var(--amber); font-size: 18px; line-height: 1.4; }
.tracks strong { display: block; }
.tracks strong { color: var(--paper); font-weight: 600; }
.bonus { color: var(--mute); margin-top: 28px; }

/* Room pictures */
.room-pics { padding: 0 clamp(20px, 5vw, 48px) clamp(72px, 10vw, 140px); max-width: 1200px; margin: 0 auto; display: grid;
             grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 56px; align-items: center; }
.pics-head h2 { font-size: clamp(32px, 3.6vw, 48px); }
.pics-head p { color: #d9cbbd; max-width: 30rem; }
.lamp-row { grid-column: 1; display: flex; flex-wrap: wrap; gap: 8px; align-self: start; }
.lamp-row button { border: 0; border-radius: 999px; padding: 10px 16px; font: 500 15px/1 var(--body); color: var(--paper); background: rgba(239,228,214,.07); cursor: pointer; }
.lamp-row button[aria-selected="true"] { background: var(--amber); color: #2a1408; }
.lamp-stage { grid-column: 2; grid-row: 1 / span 2; margin: 0; border-radius: var(--r-big); overflow: hidden; aspect-ratio: .91; background: #0f0a0d; }
.lamp-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.lamp-stage img.swap { opacity: 0; }
.light-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.light-strip figure { margin: 0; border-radius: var(--r-small); overflow: hidden; aspect-ratio: 1.5; }
.light-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.light-strip figure:hover img { transform: scale(1.06); }

/* Price ticket */
.price { padding: 0 20px clamp(72px, 10vw, 140px); display: grid; place-items: center; }
.ticket { position: relative; width: min(440px, 100%); padding: 40px 36px 32px; border-radius: var(--r-big); color: #2b1a12;
          background: linear-gradient(160deg, #f6ecdf, #ead8c3); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.ticket h2 { font-size: 30px; }
.sticker { position: absolute; right: -18px; top: -22px; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; margin: 0;
           text-align: center; font: 600 14px/1.05 var(--body); color: var(--amber); background: #120d0f; transform: rotate(12deg);
           box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 0 0 4px #120d0f, inset 0 0 0 5px rgba(243,181,98,.5); }
.amount { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 0; }
.now { font-family: var(--display); font-size: 64px; line-height: 1; }
.was { color: #8a7566; font-size: 20px; }
.currency-note { font-size: 13px; color: #7d685a; margin: 6px 0 18px; }
.terms { list-style: none; padding: 0; margin: 0 0 24px; }
.terms li { padding: 8px 0; border-top: 1px solid rgba(43,26,18,.12); }
.ticket .btn { background: #2b1a12; color: var(--paper); }
.ticket .fine { color: #7d685a; }
.ticket .fine a { color: #9a4a1f; }
.ends { font-size: 13px; color: #7d685a; margin: 14px 0 0; }

/* The person behind it */
.ears { max-width: 640px; margin: 0 auto; padding: 0 20px clamp(80px, 12vw, 160px); text-align: center; }
.ears h2 { font-size: clamp(30px, 3.4vw, 44px); }
.ears p { color: #d9cbbd; margin: 16px auto 26px; max-width: 34rem; }

.foot { border-top: 1px solid var(--line); padding: 32px clamp(20px, 5vw, 48px) 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--mute); text-decoration: none; }
.foot nav a:hover { color: var(--paper); }
.foot .fine { flex-basis: 100%; margin: 0; }

/* Receipt printer */
.printer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start center; padding-top: 8vh; background: rgba(15, 10, 13, .72); backdrop-filter: blur(8px); }
.printer[hidden] { display: none; }
.printer-body { position: relative; width: 340px; }
.slot { height: 26px; border-radius: 14px; background: linear-gradient(#2c2226, #120d0f); box-shadow: 0 10px 30px rgba(0,0,0,.6), inset 0 -3px 0 #000; position: relative; z-index: 2; }
.paper { position: relative; z-index: 1; margin: -8px 18px 0; padding: 26px 22px 20px; color: #2b2220; background: #fbf8f2;
         font: 500 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; clip-path: inset(0 0 100% 0); transform-origin: top;
         -webkit-mask: linear-gradient(#000 0 calc(100% - 10px), transparent 0), conic-gradient(from -45deg at bottom, transparent 90deg, #000 0) bottom/14px 10px repeat-x;
         mask: linear-gradient(#000 0 calc(100% - 10px), transparent 0), conic-gradient(from -45deg at bottom, transparent 90deg, #000 0) bottom/14px 10px repeat-x; }
.printer.go .paper { animation: print 2.6s steps(26, end) forwards; }
@keyframes print { to { clip-path: inset(0 0 0 0); } }
.r-brand { font-family: "Spindle Script", var(--display); font-size: 40px; text-align: center; margin: 0; }
.r-sub { text-align: center; margin: 0 0 16px; }
.r-lines { margin: 0; border-top: 1px dashed #b8aca0; padding-top: 10px; }
.r-lines div { display: flex; justify-content: space-between; gap: 12px; }
.r-lines dt { color: #7b6f66; } .r-lines dd { margin: 0; text-align: right; word-break: break-all; }
.r-item, .r-total { display: flex; justify-content: space-between; border-top: 1px dashed #b8aca0; margin-top: 10px; padding-top: 10px; }
.r-total { font-weight: 700; font-size: 15px; }
.r-note { border-top: 1px dashed #b8aca0; margin-top: 12px; padding-top: 12px; }
.r-grooves { height: 34px; margin: 14px 0; background: repeating-linear-gradient(90deg, #2b2220 0 2px, transparent 2px 4px, #2b2220 4px 5px, transparent 5px 9px); }
.r-close { color: #2b2220; box-shadow: inset 0 0 0 1px #c9bdb1; width: 100%; justify-content: center; }

/* Buddies */
#buddies { position: fixed; inset: 0; pointer-events: none; z-index: 15; }
.buddy { position: absolute; width: 76px; height: 76px; transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.buddy svg { width: 100%; height: 100%; overflow: visible; }
.buddy .eye { transition: transform .12s ease-out; transform-box: fill-box; transform-origin: center; }
.buddy.shut .eye { transform: scaleY(.12) !important; }
.buddy.hop { transform: translateY(-14px) rotate(-6deg); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; text-align: left; }
  .deck { width: min(420px, 88vw); }
  .hero::after { background: linear-gradient(0deg, var(--wall-deep), rgba(29,20,28,.55) 60%, rgba(29,20,28,.85)); }
  .sides, .room-pics { grid-template-columns: 1fr; }
  .lamp-stage { grid-column: 1; grid-row: auto; }
  .light-strip { grid-template-columns: repeat(2, 1fr); }
  .deal-strip { display: none; }
  .buddy { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }

/* Your logo: the idle animation, its black background blended away */
.logo { display: block; width: 176px; height: 88px; margin: -20px 0 -20px -26px; }
.logo-canvas { width: 100%; height: 100%; display: block; }
.logo-src { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.logo-still { width: 120px; height: auto; mix-blend-mode: screen; }
.r-brand { width: 190px; margin: -10px auto -6px; mix-blend-mode: multiply; }

/* Loading screen: your loading animation on black, then the page */
.intro { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; transition: opacity .7s ease, visibility .7s; }
.intro video { width: min(62vmin, 560px); height: auto; }
.intro.gone { opacity: 0; visibility: hidden; }
