/* Wallpapers (owner note 48): "See it on your desk". One quiet desk at dusk; its monitor shows the wallpaper you pick.
   Small arched windows (the home page's language) choose the world; Day/Night and one download sit beside them. */
:root { --ink: #F3ECE1; --dim: #D3C7B6; --faint: #A39683; --gold: #FFC867; --bg: #17110C; }
body.wallpapers { margin: 0; color: var(--ink); background: var(--bg); }

.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; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.bar-links { display: flex; align-items: center; gap: 22px; }
.bar .back { font-family: var(--tiny); font-size: 12px; letter-spacing: .06em; color: var(--ink); text-decoration: none; opacity: .9; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.bar .get, .cta { font-family: var(--tiny); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: #1F1915;
  background: var(--gold); padding: 9px 13px; border-radius: 8px; white-space: nowrap; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* The room: the 2560x1440 illustration on a plate that wallpapers.js scales to cover, framed on the monitor */
.scene { position: relative; height: max(620px, 100vh); height: max(620px, 100svh); overflow: hidden; }
.view { position: absolute; inset: 0; overflow: hidden; background: #120d09; }
.plate { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; transform-origin: 0 0; }
.plate .room { width: 2560px; height: 1440px; }
.plate .life { position: absolute; left: 0; top: 0; width: 2560px; height: 1440px; pointer-events: none; }
/* the monitor's screen (measured: 816-1759 x 385-909, 1 px outside the grey) */
.screen { position: absolute; left: 815px; top: 384px; width: 946px; height: 527px; overflow: hidden; background: #000; }
.screen .wp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s linear; }
.screen .wp.on { opacity: 1; }
.screen .glare { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), linear-gradient(to bottom, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, .1)); }
/* the screen's light on the wall, the desk and the keyboard */
.spill { position: absolute; left: 520px; top: 180px; width: 1540px; height: 1060px; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(46% 46% at 50% 46%, rgb(var(--spill, 90 100 140) / .42), rgb(var(--spill, 90 100 140) / 0) 100%); transition: background .8s linear; }
.scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 10, 7, .35) 0, rgba(14, 10, 7, 0) 18%, rgba(14, 10, 7, 0) 62%, rgba(14, 10, 7, .55) 80%, rgba(14, 10, 7, .9) 100%); }

/* The words, on the quiet wall at the top left */
.intro { position: absolute; z-index: 5; left: clamp(18px, 4vw, 72px); top: clamp(88px, 15vh, 150px); max-width: 360px; }
.kicker { margin: 0 0 8px; font-family: var(--tiny); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
h1 { margin: 0 0 10px; font-family: var(--pixel); font-weight: 500; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.02; text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.lede { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink); text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }

/* The choice, along the front of the desk */
.controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 0 clamp(18px, 3vw, 48px) clamp(18px, 3.5vh, 34px);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "now now" "arches actions"; align-items: end; gap: 10px 28px; }
.now { grid-area: now; margin: 0; display: flex; align-items: baseline; gap: 10px; }
.now b { font-family: var(--pixel); font-weight: 500; font-size: 22px; }
.now span { font-family: var(--tiny); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.arches { grid-area: arches; list-style: none; margin: 0; padding: 0; display: flex; gap: 9px; flex-wrap: nowrap; }
.arches button { position: relative; display: block; width: 46px; height: 64px; padding: 0; border: 0; cursor: pointer; border-radius: 999px 999px 4px 4px; overflow: hidden;
  background: #000; opacity: .62; box-shadow: 0 0 0 1px rgba(255, 236, 210, .18); transition: opacity .3s, transform .35s var(--ease), box-shadow .35s; }
.arches button:hover { opacity: .9; transform: translateY(-3px); }
.arches button[aria-selected="true"] { opacity: 1; transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(255, 200, 103, .8), 0 0 18px 2px rgba(255, 200, 103, .35); }
.arches img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.arches .free-dot { position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); }

.actions { grid-area: actions; display: flex; align-items: center; gap: 16px; }
.seg, .sizes { display: flex; padding: 3px; border-radius: 10px; background: rgba(20, 14, 10, .55); box-shadow: inset 0 0 0 1px rgba(255, 236, 210, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.seg button, .sizes button { border: 0; background: none; color: var(--dim); cursor: pointer; font-family: var(--tiny); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 7px; transition: background .2s, color .2s; }
.seg button[aria-checked="true"], .sizes button[aria-checked="true"] { background: rgba(255, 236, 210, .16); color: var(--ink); }
.get-wp { display: flex; align-items: center; gap: 8px; }
.all { font-family: var(--tiny); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); text-decoration: none; white-space: nowrap; }
.all:hover { color: var(--ink); }
.all span { opacity: .7; }

.fine { max-width: 1240px; margin: 0 auto; padding: 18px clamp(18px, 3vw, 48px) 30px; font-size: 12px; color: var(--faint); line-height: 1.6; }
.fine a { color: var(--dim); }
.draft { opacity: .7; }

@media (max-width: 1260px) { .controls { grid-template-columns: 1fr; grid-template-areas: "now" "arches" "actions"; } .actions { flex-wrap: wrap; } .intro { max-width: min(360px, 26vw); } }   /* (was 1100: the owner's 1129 px window cut "Download all" off, review M1) */
@media (max-width: 900px) {
  .scene { height: auto; overflow: visible; }
  .view { position: relative; inset: auto; height: min(70vw, 52svh); }
  .scrim { background: linear-gradient(to bottom, rgba(14, 10, 7, .35) 0, rgba(14, 10, 7, 0) 25%, rgba(14, 10, 7, 0) 80%, var(--bg) 100%); }
  .intro { position: static; padding: 18px 18px 0; max-width: none; }
  .controls { position: static; padding: 16px 18px 6px; }
  .arches { flex-wrap: wrap; gap: 8px; }
  .arches li { flex: 0 0 calc((100% - 32px) / 5); }
  .arches button { width: 100%; height: auto; aspect-ratio: .72; }
  .bar .back .lbl { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Without JavaScript (and for search engines): every wallpaper as a plain list (#wp-text, gen_wallpaper_list.py). */
.page-text { max-width: 980px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 48px) 56px; color: var(--ink); }
.page-text h2 { margin: 28px 0 10px; font-family: var(--pixel); font-weight: 500; font-size: 24px; }
.page-text figure { display: inline-block; width: min(100%, 440px); margin: 0 16px 16px 0; vertical-align: top; }
.page-text img { width: 100%; height: auto; image-rendering: pixelated; border-radius: 6px; }
.page-text figcaption { margin-top: 6px; font-size: 14px; line-height: 1.45; }
