/*
Theme Name: Unique Live Wallpaper Journal
Theme URI: https://uniquelivewallpaper.com/journal/
Author: Unique Live Wallpaper
Description: Command-center journal for animated HUD live wallpapers — phosphor cyan telemetry, avionics amber, rectilinear panels.
Version: 2.1.0
Text Domain: unique-live-wallpaper-journal
*/

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #04070a;
  --surface: rgba(155, 232, 255, 0.045);
  --line: rgba(155, 232, 255, 0.14);
  --line-soft: rgba(155, 232, 255, 0.08);
  --text: #eef6f9;
  --muted: #8fa1ab;
  --hud: #9be8ff;
  --hud-dim: rgba(155, 232, 255, 0.35);
  --signal: #ffb35c;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background:
    repeating-linear-gradient(0deg, rgba(155, 232, 255, .013) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% -20%, rgba(155, 232, 255, 0.07), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--hud); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 6px; }
::selection { background: rgba(155, 232, 255, .28); color: #fff; }
:focus-visible { outline: 1px solid var(--hud); outline-offset: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 7, 10, .82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(140%) blur(20px);
}
.site-header::after {
  content: "";
  display: block;
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -5px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 18px);
  opacity: .55;
  pointer-events: none;
}
.nav { max-width: var(--max); min-height: 72px; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--hud-dim);
  border-radius: 4px;
  background:
    linear-gradient(var(--hud-dim) 0 0) top left / 7px 1px,
    linear-gradient(var(--hud-dim) 0 0) bottom right / 7px 1px,
    rgba(155, 232, 255, .05);
  background-repeat: no-repeat;
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}
.nav-links { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav-links a { color: #a9bcc6; font-size: 13px; transition: color .2s; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links .active {
  padding: 8px 12px;
  border: 1px solid var(--hud-dim);
  border-radius: 4px;
  background: rgba(155, 232, 255, .06);
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.journal-hero { max-width: var(--max); margin: auto; padding: 86px 24px 54px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--hud-dim) 0 1px, transparent 1px 5px);
}
.journal-hero h1, .entry-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  margin: .25em 0;
}
.journal-hero h1 { font-size: clamp(2.6rem, 6.5vw, 6rem); max-width: 900px; }
.journal-hero p { max-width: 680px; color: var(--muted); font-size: 1.1rem; }

.content { max-width: var(--max); margin: auto; padding: 0 24px 90px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 1px rgba(155, 232, 255, .06), 0 22px 55px rgba(0, 0, 0, .22);
  transition: border-color .25s ease;
}
.post-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  background:
    linear-gradient(var(--hud) 0 0) top left / 15px 1px,
    linear-gradient(var(--hud) 0 0) top left / 1px 15px,
    linear-gradient(var(--hud) 0 0) top right / 15px 1px,
    linear-gradient(var(--hud) 0 0) top right / 1px 15px,
    linear-gradient(var(--hud) 0 0) bottom left / 15px 1px,
    linear-gradient(var(--hud) 0 0) bottom left / 1px 15px,
    linear-gradient(var(--hud) 0 0) bottom right / 15px 1px,
    linear-gradient(var(--hud) 0 0) bottom right / 1px 15px;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.post-card:hover { border-color: var(--hud-dim); }
.post-card:hover::after { opacity: .8; }
.post-card h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; }
.post-card h2 a { color: #fff; }
.post-card h2 a:hover { text-decoration: none; color: var(--hud); }
.post-card p { color: var(--muted); font-size: .95rem; }
.meta { color: var(--hud); font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.read-more { margin-top: auto; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; }

.article { max-width: 820px; margin: auto; padding: 80px 24px; }
.article .entry-title { font-size: clamp(2.3rem, 5.5vw, 4.4rem); }
.article-content { font-size: 1.08rem; }
.article-content h2, .article-content h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-top: 2em; }
.article-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.4rem;
  border-left: 2px solid var(--hud);
  border-radius: 4px;
  background: var(--surface);
  color: #c3d4dc;
}
.article-content code, .article-content pre { font-family: var(--font-mono); font-size: .92em; }
.article-content pre { overflow-x: auto; padding: 1rem 1.2rem; border: 1px solid var(--line-soft); border-radius: 6px; background: rgba(0, 0, 0, .3); }

.site-footer { position: relative; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 18px);
  opacity: .55;
}
.footer-inner { max-width: var(--max); margin: auto; padding: 34px 24px; display: flex; justify-content: space-between; gap: 20px; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; }

.pagination { margin-top: 42px; }
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin-right: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .82rem;
}
.pagination .page-numbers.current { border-color: var(--hud); background: rgba(155, 232, 255, .1); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--hud-dim); color: #fff; text-decoration: none; }

@media (max-width: 850px) {
  .post-grid { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; padding-block: 16px; flex-wrap: wrap; }
  .nav-links { margin-left: 0; flex-wrap: wrap; }
  .journal-hero { padding-top: 54px; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ═══ HUD gimmick subset (synced with main style.css gimmick block) ═══ */
.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(155, 232, 255, .22));
}
/* periodic page scan sweep */
body::after {
  content: "";
  position: fixed;
  z-index: 5;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(155, 232, 255, .32), transparent);
  box-shadow: 0 0 18px rgba(155, 232, 255, .22);
  opacity: 0;
  transform: translateY(-4vh);
  animation: hud-page-scan 47s linear infinite;
  pointer-events: none;
}
@keyframes hud-page-scan {
  0%, 93% { transform: translateY(-4vh); opacity: 0; }
  94% { opacity: .45; }
  98.5% { opacity: .45; }
  100% { transform: translateY(104vh); opacity: 0; }
}
@keyframes standby-blink { 0% { opacity: 1; } 100% { opacity: .25; } }
/* OVERRIDE MODE token shift */
html.ulw-override {
  --hud: #7cffb0;
  --hud-dim: rgba(124, 255, 176, .42);
  --line: rgba(124, 255, 176, .18);
  --line-soft: rgba(124, 255, 176, .1);
  --surface: rgba(124, 255, 176, .05);
}
/* telemetry mini-HUD */
.hud-telemetry {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(4, 7, 10, .72);
  backdrop-filter: blur(10px);
  color: #74858f;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  pointer-events: none;
}
.hud-telemetry i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7cf2b8;
  box-shadow: 0 0 8px #7cf2b8;
  animation: standby-blink 2.4s steps(2, jump-none) infinite;
}
.hud-telemetry-clock { color: var(--hud); }
.hud-telemetry-clock::after { content: " UTC"; color: #74858f; }
@media (max-width: 780px) { .hud-telemetry { display: none; } }
/* toast */
.hud-toast {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 90;
  transform: translate(-50%, -12px);
  padding: 12px 18px;
  border: 1px solid var(--hud-dim);
  border-left: 3px solid var(--hud);
  border-radius: 4px;
  background: rgba(4, 7, 10, .88);
  backdrop-filter: blur(12px);
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.hud-toast.is-live { opacity: 1; transform: translate(-50%, 0); }
/* diagnostics panel */
.hud-diag {
  position: fixed;
  right: 18px;
  bottom: 56px;
  z-index: 95;
  width: min(340px, calc(100vw - 36px));
  border: 1px solid var(--hud-dim);
  border-radius: 6px;
  background: rgba(4, 7, 10, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  font-family: var(--font-mono);
}
.hud-diag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--hud);
  font-size: 9px;
  letter-spacing: .18em;
}
.hud-diag-head button {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}
.hud-diag-body {
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
  color: #a9bcc6;
  font-size: 10px;
  line-height: 1.5;
}
.hud-diag-body div { min-height: 15px; white-space: pre; }
/* idle standby overlay */
.hud-standby {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(155, 232, 255, .02) 0 1px, transparent 1px 3px),
    rgba(2, 4, 6, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s ease, visibility 1.4s;
  pointer-events: none;
}
.hud-standby.is-live { opacity: 1; visibility: visible; }
.hud-standby-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--hud-dim);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hud-standby-ring-1 { width: 26vmin; height: 26vmin; animation: standby-ring 6s ease-in-out infinite; }
.hud-standby-ring-2 { width: 44vmin; height: 44vmin; animation: standby-ring 6s ease-in-out -2s infinite; }
.hud-standby-ring-3 { width: 62vmin; height: 62vmin; animation: standby-ring 6s ease-in-out -4s infinite; }
@keyframes standby-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(.96); opacity: .2; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: .65; }
}
.hud-standby-copy {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  animation: standby-drift 14s ease-in-out infinite alternate;
}
.hud-standby-copy strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: .32em;
}
.hud-standby-copy .js-utc {
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .3em;
}
.hud-standby-copy small {
  color: #74858f;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .24em;
  animation: standby-blink 2.4s steps(2, jump-none) infinite;
}
@keyframes standby-drift {
  from { transform: translate(-2%, -3%); }
  to { transform: translate(2%, 3%); }
}
