/*
Theme Name:  Wowcraft OS
Theme URI:   https://wowcraftblog.com/
Author:      Kalvis Pētersons
Description: A light, minimal "desktop computer" theme for Wowcraft. Pixel cursor, dithered photo, guestbook, now playing, screensaver.
Version:     1.0.8
Requires at least: 6.0
Requires PHP: 7.4
License:     GPL-2.0-or-later
Text Domain: wowcraft
*/

/* Layout: a light, minimal desktop. Menu bar (with now playing), icons on the left, one main window,
   side column with now.txt + an "achievement" card, webring and banners in the footer. */
:root {
  color-scheme: light;
  --desk: #e7e3d6; --grid: rgba(21,21,21,.06); --bar: #151515;
  --paper: #fdfcf8; --ink: #151515; --muted: #615f58; --soft: #d6d3c7;
  --orange: #eb5a1f; --yellow: #f5b82e; --blue: #2e57e0; --green: #2f9e62; --pink: #e05aa0;
  --hover: #fff3c4; --lcd: #39ff7a;
  --line: 2.5px solid var(--ink);
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --pixel: "VT323", "Courier New", monospace;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --cursor: url("assets/cursor-arrow.svg") 0 0, auto;
  --wait: url("assets/cursor-wait.svg") 11 16, wait;
}
* { box-sizing: border-box; }
html, body, button, a, label { cursor: var(--cursor); }
input, textarea { cursor: text; }
html.busy, html.busy * { cursor: var(--wait) !important; }
body {
  margin: 0; color: var(--ink); font: 16.5px/1.6 var(--sans);
  background-color: var(--desk);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- menu bar ---------- */
.menubar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; padding: 5px 16px; background: var(--bar); color: #fff; font-size: 14px; }
.menubar .w { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; margin-right: 8px; background: var(--yellow); color: var(--ink); border-radius: 5px; font: 700 14px var(--mono); transform: rotate(-6deg); }
.menubar > a, .menubar .links a { background: none; border: 0; padding: 2px 10px; border-radius: 999px; color: #fff; }
.menubar a[aria-current="page"] { background: #fff; color: var(--ink); font-weight: 700; }
.right { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.clock { white-space: nowrap; font: 13px var(--mono); }
.ss-btn { background: none; border: 1px solid #555; color: #ddd; border-radius: 6px; padding: 0 8px; font: 12px var(--mono); }

/* now playing: a tiny Winamp-style display */
.player { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 340px; width: 340px; max-width: 340px; padding: 2px 4px 2px 8px; background: #0b0c0e; border: 1px solid #3a3a3a; border-radius: 6px; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; flex-shrink: 0; }
.eq i { width: 3px; background: var(--lcd); animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(1) { height: 40%; } .eq i:nth-child(2) { height: 90%; animation-delay: -.3s; } .eq i:nth-child(3) { height: 60%; animation-delay: -.6s; }
@keyframes eq { to { height: 20%; } }
.track { overflow: hidden; white-space: nowrap; min-width: 0; flex: 1; font: 19px/1.1 var(--pixel); color: var(--lcd); }
.track span { display: inline-block; padding-left: 100%; animation: ticker 22s linear infinite; white-space: pre; }
@keyframes ticker { to { transform: translateX(-100%); } }
/* the display (everything except the skip button) opens the playlist on Spotify */
.player-link { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.player-link:hover .track, .player-link:focus-visible .track { color: #fff; }
.player-link:hover .eq i, .player-link:focus-visible .eq i { background: #fff; }
.player button { background: #222; border: 1px solid #444; color: var(--lcd); border-radius: 4px; font: 12px var(--mono); padding: 0 6px; }

/* ---------- desktop grid ---------- */
.desktop { display: grid; grid-template-columns: 100px minmax(0, 1fr) 320px; gap: 28px; padding: 28px 24px 24px; max-width: 1500px; margin: 0 auto; align-items: start; }
.icons { display: flex; flex-direction: column; gap: 12px; }
.icon { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; background: none; border: 0; border-radius: 10px; font-weight: 500; font-size: 14px; }
.icon svg { width: 54px; height: 54px; }
.icon:hover, .icon[aria-current="page"] { background: rgba(255,255,255,.6); }

/* ---------- windows ---------- */
.window { background: var(--paper); border: var(--line); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); min-width: 0; overflow: hidden; }
.titlebar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: var(--line); background: #f3f0e6; }
.dots { display: flex; gap: 6px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.dots i:nth-child(1) { background: var(--orange); } .dots i:nth-child(2) { background: var(--yellow); } .dots i:nth-child(3) { background: var(--green); }
.titlebar h2 { margin: 0 auto 0 4px; font: 500 14px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane { padding: 28px; }

/* zoom-open outlines (old Mac / Windows style) */
.zoom { position: fixed; z-index: 30; border: 2px dashed var(--ink); border-radius: 8px; pointer-events: none; }

/* ---------- buttons, type, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); font-weight: 700; font-size: 15px; box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn.orange { background: var(--orange); color: #fff; }
.btn.yellow { background: var(--yellow); }
h1 { font: 400 clamp(44px, 5.4vw, 64px)/1.02 var(--display); margin: 0 0 14px; text-wrap: balance; }
h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.eyebrow { font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.lead { font-size: 19px; color: #2b2a27; margin: 0; }
mark { background: var(--yellow); padding: 0 .12em; border-radius: 4px; white-space: nowrap; }
.tag { display: inline-block; padding: 0 9px; border-radius: 999px; border: 1.5px solid var(--ink); font: 500 11.5px/1.7 var(--mono); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.t-wow { background: #ffe1a1; } .t-ai { background: #cfdcff; } .t-simplicity { background: #c9f0d8; } .t-teardowns { background: #ffd2e8; } .t-impact { background: #ffd0bd; }
.meta, small { font: 12.5px var(--mono); color: var(--muted); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; padding-bottom: 30px; border-bottom: var(--line); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.polaroid-wrap { position: relative; padding: 18px 18px 30px; justify-self: center; width: 100%; max-width: 310px; }
.polaroid { margin: 0; background: #fff; border: var(--line); border-radius: 6px; padding: 10px 10px 0; box-shadow: 8px 8px 0 var(--ink); transform: rotate(2.5deg); transition: transform .25s; }
.polaroid-wrap { cursor: var(--cursor); -webkit-tap-highlight-color: transparent; }
.photo { position: relative; aspect-ratio: 4 / 5; border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; background: #ddd; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .dither { image-rendering: pixelated; transition: opacity .35s; }
.polaroid.reveal .dither { opacity: 0; }
.polaroid.reveal { transform: rotate(0deg) scale(1.02); }
@media (hover: hover) and (pointer: fine) {
  .polaroid:hover { transform: rotate(0deg) scale(1.02); }
  .polaroid:hover .dither { opacity: 0; }
}
.polaroid figcaption { font: 22px/1.7 var(--hand); text-align: center; }
.sticker { position: absolute; top: 0; left: 0; z-index: 1; width: 80px; height: 80px; display: grid; place-items: center; text-align: center; background: var(--yellow); border: var(--line); border-radius: 50%; font: 700 15px/1.05 var(--sans); transform: rotate(-12deg); box-shadow: 3px 3px 0 var(--ink); }
.status-chip { position: absolute; right: 0; bottom: 6px; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; font: 500 12.5px var(--mono); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); max-width: calc(100% - 10px); }
.status-chip i { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #c9f0d8; }
.chip-text { overflow: hidden; white-space: nowrap; min-width: 0; }
.chip-inner { display: inline-block; }
.status-chip a { color: var(--blue); font-weight: 500; }
.status-chip.slide .chip-inner { animation: chip-slide var(--dur, 6s) ease-in-out infinite alternate; }
@keyframes chip-slide { 0%, 20% { transform: translateX(0); } 80%, 100% { transform: translateX(var(--shift, 0)); } }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.section-head h2 { margin: 0; font: 400 32px var(--display); }
.mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 18px; }
.mini a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; text-align: left; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; transition: transform .12s, box-shadow .12s; }
.mini a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- blog ---------- */
.blog-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; }
.filters { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 2px; }
.filters a { width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 0; border-radius: 6px; background: none; text-align: left; font-weight: 500; }
.filters a:hover { background: var(--hover); }
.filters a[aria-current="page"] { background: var(--ink); color: #fff; }
.filters small { color: inherit; opacity: .7; }
.search { width: 100%; padding: 7px 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); }
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--line); }
.rows a.row { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 6px; background: none; border: 0; border-bottom: 1.5px solid var(--soft); text-align: left; }
.rows a.row:hover { background: var(--hover); }
.rows svg { width: 30px; height: 30px; }
.rows p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.rows .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.empty { padding: 20px 6px; color: var(--muted); }

/* ---------- post + about ---------- */
.prose { max-width: 64ch; }
.prose h2 { font: 400 32px/1.1 var(--display); margin: 30px 0 8px; }
.tldr { margin: 18px 0 24px; padding: 14px 16px; background: #fff3cf; border: 2px solid var(--ink); border-left: 8px solid var(--yellow); border-radius: 8px; }
.tldr b, .enjoyed b { font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.enjoyed { margin-top: 32px; padding: 14px 16px; border: 2px dashed var(--ink); border-radius: 8px; background: #f3f0e6; }
.back { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; font-weight: 500; }
.facts { width: 100%; border-collapse: collapse; margin: 20px 0; border: 2px solid var(--ink); }
.facts th, .facts td { text-align: left; padding: 9px 14px; border-bottom: 1.5px dashed var(--soft); vertical-align: top; }
.facts th { font: 500 12.5px/1.9 var(--mono); text-transform: uppercase; color: var(--muted); width: 1%; white-space: nowrap; background: #f3f0e6; }
.timeline { list-style: none; padding: 0; margin: 12px 0 0; border-left: 2.5px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 14px 20px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.timeline b { font: 500 14px var(--mono); }

/* ---------- guestbook ---------- */
.gb-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: end; margin: 18px 0 26px; padding: 16px; background: #f3f0e6; border: 2px solid var(--ink); border-radius: 10px; }
.gb-form label { display: flex; flex-direction: column; gap: 4px; font: 500 12.5px var(--mono); text-transform: uppercase; color: var(--muted); }
.gb-form input { padding: 7px 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); font: 16px var(--sans); text-transform: none; color: var(--ink); }
.notes-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.gb-note { padding: 14px 16px 12px; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); font: 500 22px/1.25 var(--hand); }
.gb-note:nth-child(4n+1) { background: #fff1b8; transform: rotate(-1.5deg); }
.gb-note:nth-child(4n+2) { background: #d9e4ff; transform: rotate(1deg); }
.gb-note:nth-child(4n+3) { background: #d6f3e1; transform: rotate(-.5deg); }
.gb-note:nth-child(4n+4) { background: #ffdcec; transform: rotate(1.8deg); }
.gb-hint { margin: -16px 0 22px; font: 12.5px var(--mono); color: var(--muted); }
.gb-note.pending { background: var(--paper) !important; border-style: dashed; box-shadow: none; color: var(--muted); position: relative; padding-top: 34px; }
.stamp { position: absolute; top: 8px; left: 12px; padding: 0 8px; border: 2px solid var(--orange); border-radius: 4px; color: var(--orange); font: 500 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; transform: rotate(-3deg); }
.gb-note cite { display: block; margin-top: 8px; font: 12.5px var(--mono); font-style: normal; color: var(--muted); }

/* ---------- side column ---------- */
.side { display: flex; flex-direction: column; gap: 24px; }
.now { list-style: none; margin: 0; padding: 4px 16px 10px; }
.now li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1.5px dashed var(--soft); font-size: 15px; }
.now li:last-child { border-bottom: 0; }
.now span:first-child { font: 500 11.5px/2 var(--mono); text-transform: uppercase; color: var(--muted); }
.achv { background: var(--paper); border: var(--line); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.achv-head { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--yellow); border-bottom: var(--line); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.achv-head b { margin-left: auto; font: 20px/1 var(--pixel); letter-spacing: 0; }
.achv-body { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 14px 16px 16px; }
.achv svg { width: 48px; height: 48px; }
.achv h3 { margin-bottom: 4px; }
.achv p { margin: 0 0 12px; font-size: 15px; }
.achv .row { display: flex; gap: 8px; flex-wrap: wrap; }
.achv .btn { padding: 5px 12px; font-size: 14px; }

/* ---------- webring footer ---------- */
.foot { max-width: 1500px; margin: 0 auto; padding: 8px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ring { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 8px 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font: 500 13.5px var(--mono); }
.ring a { color: var(--ink); }
.ring b { font-weight: 700; }
/* MySpace-era "userbars": 350x19, glossy, striped, pixel text with a dark outline */
.userbars { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 720px; }
.userbar {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  width: 350px; max-width: 100%; height: 19px; padding: 0 8px 0 24px; overflow: hidden;
  border: 1px solid #000; color: #fff; font: 17px/1 var(--pixel); white-space: nowrap;
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000;
}
.userbar::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); }
.userbar::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.08)); }
.userbar svg, .userbar i { position: absolute; left: 3px; top: 0; width: 19px; height: 17px; z-index: 1; }
.ub-ducks  { background: linear-gradient(90deg, #111 0 22%, #fc4c02 60%, #b9975b); }
.ub-music { background: linear-gradient(90deg, #6d5bd0, #3a2f6e 45%, #1a1a1a 75%, #4a4a4a); }
.ub-code  { background: linear-gradient(90deg, #0b0c0e 0 30%, #2a2b30 70%, #c96442); }
.ub-code b { position: absolute; left: 5px; top: 0; z-index: 1; color: var(--lcd); font: 17px/1 var(--pixel); }
.ub-riga   { background: linear-gradient(90deg, #6b1f27, #9e3039 50%, #c45a63); }
.ub-riga i { left: 4px; top: 3px; width: 16px; height: 11px; border: 1px solid #000; background: linear-gradient(#9e3039 0 40%, #fff 40% 60%, #9e3039 60%); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.badge { width: 88px; height: 31px; display: grid; place-items: center; border: 1px solid var(--ink); font: bold 9px/1.1 Verdana, sans-serif; text-transform: uppercase; text-align: center; letter-spacing: .03em; }
.b1 { background: #21759b; color: #fff; } .b2 { background: #fff; } .b3 { background: #0b0c0e; color: var(--lcd); } .b4 { background: var(--yellow); }
.b5 { background: #3b2418; color: #f5b82e; font-size: 8px; line-height: 1.05; }
.b6 { background: var(--orange); color: #fff; font: 20px/1 var(--pixel); text-transform: none; letter-spacing: 0; }
.copy { font: 12.5px var(--mono); color: var(--muted); }

/* ---------- screensaver ---------- */
.saver { position: fixed; inset: 0; z-index: 50; background: #0b0c0e; }
.saver canvas { width: 100%; height: 100%; display: block; }
.saver p { position: absolute; left: 0; right: 0; bottom: 24px; margin: 0; text-align: center; font: 20px var(--pixel); color: #777; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .desktop { grid-template-columns: 96px minmax(0, 1fr); }
  .side { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@media (max-width: 860px) { .player { flex-basis: 220px; width: 220px; max-width: 220px; } .clock { display: none; } }
@media (max-width: 760px) {
  .menubar .links, .ss-btn { display: none; }
  .desktop { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px 16px 20px; }
  .icons { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .icon { flex-direction: row; gap: 8px; padding: 5px 14px 5px 8px; background: rgba(255,255,255,.55); border: 2px solid var(--ink); border-radius: 999px; }
  .icon[aria-current="page"] { background: var(--yellow); }
  .icon svg { width: 28px; height: 28px; }
  .side { grid-column: 1; }
  .pane { padding: 20px 18px; }
  .blog-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .filters a { width: auto; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; }
  .rows a.row { grid-template-columns: 30px minmax(0, 1fr); }
  .rows .r { grid-column: 2; flex-direction: row; align-items: center; }
  .gb-form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; gap: 8px; }
  .polaroid-wrap { max-width: 250px; order: -1; }
  .player { flex: 1 1 auto; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .mini a, .polaroid, .photo .dither { transition: none; }
  .status-chip.slide .chip-inner { animation: none; }
  .chip-text { white-space: normal; }
  .eq i, .track span { animation: none; }
  .track span { padding-left: 0; }
}

/* ---------- WordPress-specific additions ---------- */
.icon, .icon:visited, .menubar a, .mini a, .filters a, .rows a.row { color: inherit; text-decoration: none; }
.menubar .links { display: flex; gap: 2px; }
.tag { color: var(--ink); text-decoration: none; }
a.tag:hover { box-shadow: 2px 2px 0 var(--ink); }
.btn { text-decoration: none; color: var(--ink); }
.btn.orange { color: #fff; }
.mini h3 { color: var(--ink); }
.search-form { display: flex; gap: 6px; }
.search-form .search { flex: 1; min-width: 0; }
.prose img, .prose figure { max-width: 100%; height: auto; }
.prose figure { margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding: 4px 18px; border-left: 4px solid var(--yellow); background: #f3f0e6; }
.prose pre { background: var(--ink); color: #f5f3ea; padding: 14px; border-radius: 8px; overflow-x: auto; font: 14px/1.6 var(--mono); }
.prose code { font-family: var(--mono); font-size: .92em; }
.prose a { text-underline-offset: 3px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 2px dashed var(--soft); font-weight: 500; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; }
.pagination .page-numbers { padding: 3px 11px; border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); text-decoration: none; font: 500 14px var(--mono); }
.pagination .current { background: var(--ink); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* guestbook form (built by WordPress's comment form) */
.gb-form p { margin: 0; }
.gb-form .form-submit { display: flex; }
.gb-thanks { margin: 0 0 22px; padding: 12px 16px; background: #d6f3e1; border: 2px solid var(--ink); border-radius: 8px; font-weight: 500; }
.gb-empty { color: var(--muted); }
#respond h3:empty { display: none; }

/* when you're logged in, sit below the WordPress admin toolbar */
.admin-bar .menubar { top: 32px; }
@media (max-width: 782px) { .admin-bar .menubar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .menubar { top: 0; } }
@media (max-width: 760px) { .menubar .links { display: none; } }

/* ---------- guestbook dial-up window ---------- */
.modem { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(21,21,21,.35); }
.modem-win { width: min(440px, 100%); }
.modem-body { padding: 22px 24px 24px; }
.modem-pics { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.modem-pics svg { width: 54px; height: 54px; flex-shrink: 0; }
.wire { display: flex; gap: 7px; }
.wire i { width: 8px; height: 8px; border-radius: 2px; background: var(--soft); animation: wire 1s steps(1) infinite; }
.wire i:nth-child(2) { animation-delay: .15s; } .wire i:nth-child(3) { animation-delay: .3s; } .wire i:nth-child(4) { animation-delay: .45s; } .wire i:nth-child(5) { animation-delay: .6s; } .wire i:nth-child(6) { animation-delay: .75s; }
@keyframes wire { 0% { background: var(--green); } 30%, 100% { background: var(--soft); } }
.modem.finished .wire i { animation: none; background: var(--green); }
.modem.failed .wire i { background: var(--orange); }
.modem-status { margin: 0 0 12px; font: 25px/1.15 var(--pixel); text-align: center; }
.modem-bar { height: 24px; padding: 3px; border: 2px solid var(--ink); background: var(--paper); }
.modem-bar span { display: block; width: 0; height: 100%; background: repeating-linear-gradient(90deg, var(--blue) 0 12px, transparent 12px 15px); transition: width linear; }
.modem.failed .modem-bar span { background: repeating-linear-gradient(90deg, var(--orange) 0 12px, transparent 12px 15px); }
.modem-small { margin: 10px 0 0; text-align: center; font: 13px/1.5 var(--mono); color: var(--muted); }
.modem-actions { display: flex; justify-content: center; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .wire i { animation: none; } }
