/* Great Sage — wallpapers page (uses the tokens in style.css) */

/* ---------- The night sky behind everything ---------- */
.wp-page { position: relative; }
.wp-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 700px at 50% -10%, #0B1430 0%, var(--night) 62%); }
.wp-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-aurora { position: absolute; left: -10%; right: -10%; top: -8%; height: 46vh; filter: blur(46px); opacity: .55;
  background: radial-gradient(40% 60% at 28% 40%, rgba(62, 230, 196, .28), transparent 70%),
              radial-gradient(36% 50% at 70% 30%, rgba(90, 120, 255, .18), transparent 70%),
              radial-gradient(30% 40% at 52% 60%, rgba(242, 193, 78, .10), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate; }
@keyframes aurora { 0% { transform: translateX(-3%) scaleY(1); } 100% { transform: translateX(3%) scaleY(1.15); } }
@media (prefers-reduced-motion: reduce) { .wp-aurora { animation: none; } }

.wp-head {
  max-width: 1200px; margin: 0 auto; text-align: center;
  padding: clamp(32px, 6vh, 64px) var(--gutter) clamp(20px, 3vh, 32px);
}
.wp-home { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.wp-mark { width: clamp(120px, 16vw, 168px); height: auto; margin: clamp(22px, 4vh, 36px) auto 0; overflow: visible;
  filter: drop-shadow(0 0 18px rgba(242, 193, 78, .18)); }
.wp-atom { transform-box: view-box; transform-origin: 256px 192px; animation: spin 26s linear infinite; }
.wp-glowdot { transform-box: view-box; transform-origin: 256px 192px; animation: breathe 4.5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .65; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
.wp-mark:hover .wp-atom { animation-duration: 6s; }
@media (prefers-reduced-motion: reduce) { .wp-atom, .wp-glowdot { animation: none; } }
.wp-name { font-family: var(--sans); font-weight: 600; letter-spacing: .22em; font-size: .95rem; }
.wp-name .w-great { color: var(--text); }
.wp-name .w-sage { color: var(--gold); }
.wp-title {
  margin-top: clamp(18px, 3vh, 28px);
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: .32em; text-indent: .32em;
  text-transform: uppercase; color: var(--gold);
  text-shadow: 0 0 28px rgba(242, 193, 78, .25);
}
.wp-rule { position: relative; width: min(420px, 70%); height: 1px; margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.wp-rule span { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; translate: -50% -50%;
  background: var(--teal); box-shadow: 0 0 10px var(--teal), 0 0 22px rgba(62, 230, 196, .6); }
.wp-lede { margin: 18px auto 0; max-width: 38rem; color: var(--muted); font-style: italic; }

main { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 10vh, 96px); }

.wp-section { margin-top: clamp(32px, 6vh, 64px); }
.wp-h2 {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-size: 1.15rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 14px; border-bottom: 1px solid var(--gold-dim);
}
.wp-h2 span { font-size: .78rem; letter-spacing: .14em; color: var(--muted); }
.wp-dia { width: 11px; height: 11px; rotate: 45deg; border: 1.5px solid var(--gold); align-self: center;
  box-shadow: inset 0 0 0 2px var(--night), inset 0 0 0 4px rgba(62, 230, 196, .9); }

.wp-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 24px); }
.wp-desk { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wp-phone { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.wp-card {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(242, 193, 78, .06), rgba(7, 11, 22, .85) 40%);
  border: 1px solid rgba(242, 193, 78, .16); border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(4px);
  transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.wp-card::before {                     /* the teal light that follows the pointer, as on the home page */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(62, 230, 196, .16), rgba(62, 230, 196, 0) 65%);
}
.wp-card:hover { border-color: rgba(62, 230, 196, .5); transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5), 0 0 26px rgba(62, 230, 196, .12); }
.wp-card:hover::before { opacity: 1; }
.wp-thumb img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.wp-card:hover .wp-thumb img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .wp-card, .wp-card:hover { transition: none; transform: none; } }

.wp-thumb { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; }
.wp-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.wp-phone .wp-thumb img { aspect-ratio: 9 / 16; }

.wp-cap { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px;
  border-top: 1px solid rgba(242, 193, 78, .12); }
.wp-t { font-family: var(--sans); font-size: .9rem; letter-spacing: .04em; color: var(--text); }
.wp-dl { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-get {
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  color: var(--gold); background: rgba(242, 193, 78, .08); border: 1px solid rgba(242, 193, 78, .45); text-decoration: none;
  padding: 6px 11px; border-radius: 999px; transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.wp-get::before { content: "↓ "; }
.wp-get:hover { color: var(--night); background: var(--teal); border-color: var(--teal); box-shadow: 0 0 14px rgba(62, 230, 196, .55); }
.wp-phone .wp-get { padding: 5px 9px; }

.wp-note { margin-top: clamp(40px, 8vh, 72px); color: var(--muted); font-size: .9rem; text-align: center; font-style: italic; }

/* ---------- Large view ---------- */
.wp-view {
  width: min(96vw, 1400px); max-width: none; max-height: 94vh; padding: 0; border: 1px solid rgba(242, 193, 78, .4);
  border-radius: 16px; background: var(--night); color: var(--text); overflow: visible;
  box-shadow: 0 0 0 1px rgba(62, 230, 196, .12), 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(242, 193, 78, .12);
}
.wp-view[open] { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.wp-view::backdrop { background: rgba(2, 3, 7, .86); backdrop-filter: blur(6px); }
.wp-view figure { margin: 0; }
.wp-view img { width: 100%; height: auto; max-height: calc(94vh - 72px); object-fit: contain; border-radius: 16px 16px 0 0; background: #000; }
.wp-view.is-phone { width: min(92vw, 440px); }
.wp-view figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; font-family: var(--sans); letter-spacing: .04em;
}
.wp-btn {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold-dim); background: rgba(4, 6, 11, .8); color: var(--gold);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.wp-btn:hover { color: var(--teal); border-color: var(--teal); }
.wp-prev { left: -22px; top: 45%; }
.wp-next { right: -22px; top: 45%; }
.wp-close { right: -14px; top: -14px; width: 38px; height: 38px; font-size: 1.4rem; }
@media (max-width: 720px) { .wp-prev { left: 6px; } .wp-next { right: 6px; } .wp-close { right: 6px; top: 6px; } }
