/* =========================================================
   layer11-infornography: dark Frutiger Aero
   Same windows, titlebars, toolbars and placement as the old
   static styles.css, re-skinned: glossy dark glass, aqua light,
   bubbles. Colours live in the tokens below.
   ========================================================= */

:root {
  --ink: #e4f2ff;
  --ink-dim: rgba(208, 230, 250, 0.72);
  --ink-faint: rgba(184, 212, 238, 0.52);

  --aqua: #3cc8ff;
  --aqua-deep: #0a64b4;
  --lime: #8ff05c;
  --teal: #22d8c6;
  --link: #7fd6ff;
  --link-hover: #c4efff;

  --line: rgba(150, 220, 255, 0.22);
  --line-strong: rgba(150, 220, 255, 0.4);
  --well: rgba(4, 16, 28, 0.5);
  --card: rgba(120, 200, 255, 0.06);
  --card-hover: rgba(120, 200, 255, 0.1);

  --gloss: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06));
  --glow: 0 0 22px rgba(60, 200, 255, 0.16);

  --bg-image: none;
  --bg-dim: 0.35;
  --bg-size: cover;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Base ---------- */
body {
  color: var(--ink);
  font-family: "Lucida Grande", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  overflow: hidden;
  min-height: 100vh;

  background:
    radial-gradient(ellipse 60% 45% at 12% 8%, rgba(40, 180, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 55% 40% at 92% 96%, rgba(70, 230, 150, 0.2), transparent 70%),
    linear-gradient(rgba(2, 12, 24, var(--bg-dim)), rgba(2, 12, 24, var(--bg-dim))),
    var(--bg-image) center / var(--bg-size) no-repeat,
    radial-gradient(ellipse at 50% 120%, #0b3550 0%, #04111f 55%, #01060d 100%);
  background-attachment: fixed;
  background-color: #01060d;
}

/* Inner pages: the background art is shown whole (contain), as before */
.page-inner {
  --bg-size: contain;
}

/* Decorative aero bubbles */
.aero-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aero-bubbles span {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.75) 0 7%, rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 50% 55%, rgba(120, 220, 255, 0) 55%, rgba(120, 220, 255, 0.35) 72%, rgba(200, 245, 255, 0.55) 78%, rgba(120, 220, 255, 0) 80%);
  opacity: 0.55;
  animation: bubble-rise linear infinite;
}

.aero-bubbles span:nth-child(1) { left: 6%;  width: 46px;  height: 46px;  animation-duration: 26s; }
.aero-bubbles span:nth-child(2) { left: 18%; width: 22px;  height: 22px;  animation-duration: 19s; animation-delay: -6s; }
.aero-bubbles span:nth-child(3) { left: 37%; width: 70px;  height: 70px;  animation-duration: 34s; animation-delay: -14s; }
.aero-bubbles span:nth-child(4) { left: 58%; width: 30px;  height: 30px;  animation-duration: 23s; animation-delay: -3s; }
.aero-bubbles span:nth-child(5) { left: 74%; width: 54px;  height: 54px;  animation-duration: 29s; animation-delay: -20s; }
.aero-bubbles span:nth-child(6) { left: 88%; width: 18px;  height: 18px;  animation-duration: 17s; animation-delay: -9s; }
.aero-bubbles span:nth-child(7) { left: 95%; width: 38px;  height: 38px;  animation-duration: 31s; animation-delay: -25s; }

@keyframes bubble-rise {
  from { transform: translate(0, 0); }
  50%  { transform: translate(18px, -60vh); }
  to   { transform: translate(-10px, calc(-100vh - 160px)); }
}

@media (prefers-reduced-motion: reduce) {
  .aero-bubbles span { animation: none; bottom: auto; top: 70%; }
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

/* ---------- Scrollbars ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 190, 255, 0.55) rgba(0, 0, 0, 0.25);
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.28); border-radius: 6px; }
::-webkit-scrollbar-thumb {
  border-radius: 6px;
  border: 1px solid rgba(0, 30, 60, 0.8);
  background: linear-gradient(to right, #5cc9ff, #1677c8 55%, #2a8fdc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---------- Window (container) ---------- */
.window {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  height: 100vh;
}

.window img {
  max-width: 80%;
  max-height: 80%;
  border: none;
}

/* ---------- Window panel: dark glass ---------- */
.window-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: linear-gradient(to bottom, rgba(28, 56, 84, 0.8), rgba(6, 18, 32, 0.88));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);

  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 16px 40px rgba(0, 0, 0, 0.6),
    var(--glow);

  text-align: center;
}

.window-panel--floating-left {
  width: 300px;
  top: calc(50% - 260px);
  left: 50%;
  margin-left: -340px;
  z-index: 3;
}

.window-panel--floating-right {
  width: 300px;
  top: calc(50% - 260px);
  left: 50%;
  margin-left: 40px;
  z-index: 3;
}

.window-panel--floating-right-2 {
  width: 300px;
  top: calc(50% - 260px);
  left: 50%;
  margin-left: 380px;
  z-index: 3;
}

.window-panel--floating-right-3 {
  width: 300px;
  top: calc(50% - 90px);
  left: 50%;
  margin-left: 620px;
  z-index: 3;
}

.window-content {
  padding: 18px 20px 20px 20px;
}

.window-content--media {
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
}

.window-media {
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(150, 220, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.6);
}

/* ---------- Titlebar: glossy split gradient ---------- */
.titlebar {
  position: relative;
  height: 28px;
  padding: 6px 10px;

  background: linear-gradient(
    to bottom,
    rgba(110, 150, 190, 0.5) 0%,
    rgba(52, 82, 112, 0.6) 48%,
    rgba(20, 38, 58, 0.82) 52%,
    rgba(14, 28, 44, 0.86) 100%
  );

  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(120, 210, 255, 0.12);
}

.titlebar-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  font-size: 12px;
  font-weight: bold;
  color: #dcefff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- Traffic lights ---------- */
.traffic-lights {
  display: flex;
  gap: 7px;
  align-items: center;
}

.tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3),
    0 0 6px rgba(0, 0, 0, 0.4);
}

.tl::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 45%;
  border-radius: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.tl-close { background: linear-gradient(to bottom, #ff8a80 0%, #ff3b30 55%, #b3140d 100%); }
.tl-min   { background: linear-gradient(to bottom, #ffe88f 0%, #ffcc00 55%, #b98900 100%); }
.tl-zoom  { background: linear-gradient(to bottom, #8ef59a 0%, #34c759 55%, #157a2b 100%); }

/* ---------- Prompt: dark aqua LCD (was the yellow iTunes bar) ---------- */
.prompt {
  position: relative;
  display: block;
  text-align: left;
  margin: 0 0 14px 0;
  padding: 7px 12px;

  font-family: "Monaco", "Menlo", ui-monospace, monospace;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  color: #a6f2ff;
  text-shadow: 0 0 6px rgba(80, 220, 255, 0.55);

  border-radius: 7px;
  border: 1px solid rgba(100, 225, 255, 0.45);
  background: linear-gradient(to bottom, #0f4357 0%, #0a2f40 48%, #061f2c 52%, #08283a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 14px rgba(0, 0, 0, 0.55),
    0 0 12px rgba(60, 200, 255, 0.18);
}

.prompt::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 45%;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.prompt .user { color: var(--lime); text-shadow: 0 0 6px rgba(140, 240, 90, 0.5); }
.prompt .host { color: #6fd0ff; }

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ---------- Aqua button (glossy capsule) ---------- */
.aqua-button {
  position: relative;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid #06386a;

  background: linear-gradient(to bottom, #6fd2ff 0%, #2c9de2 48%, #0b5fae 52%, #1b88d4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(120, 220, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 12px rgba(60, 200, 255, 0.28);

  color: #fff;
  font: inherit;
  font-weight: bold;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 30, 70, 0.7);
  cursor: pointer;
  user-select: none;
}

.aqua-button::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  right: 2px;
  height: 46%;
  border-radius: 6px 6px 10px 10px;
  background: var(--gloss);
  pointer-events: none;
}

.aqua-button:hover {
  color: #fff;
  background: linear-gradient(to bottom, #8adcff 0%, #43aef0 48%, #1370c2 52%, #2b9ae6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(140, 230, 255, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(80, 210, 255, 0.5);
}

.aqua-button:active {
  background: linear-gradient(to bottom, #0b5fae 0%, #2c9de2 100%);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 1px 1px rgba(0, 0, 0, 0.3);
  transform: translateY(1px);
}

.aqua-button--small {
  padding: 4px 10px;
  font-size: 12px;
}

.aqua-button--green {
  border-color: #1f5a10;
  background: linear-gradient(to bottom, #b8ff8c 0%, #6fd23e 48%, #3b9a17 52%, #5cc02e 100%);
  text-shadow: 0 -1px 0 rgba(20, 60, 0, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 12px rgba(140, 240, 90, 0.3);
}

.aqua-button--green:hover {
  background: linear-gradient(to bottom, #ccffaa 0%, #82e04f 48%, #47aa20 52%, #6bd03a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 18px rgba(140, 240, 90, 0.5);
}

.aqua-button--red {
  border-color: #5e0c08;
  background: linear-gradient(to bottom, #ff9b8f 0%, #f0483b 48%, #b3180e 52%, #d8372b 100%);
  text-shadow: 0 -1px 0 rgba(70, 0, 0, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 12px rgba(255, 80, 60, 0.25);
}

.aqua-button--red:hover {
  background: linear-gradient(to bottom, #ffb0a6 0%, #ff5a4c 48%, #c42015 52%, #e94335 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 80, 60, 0.45);
}

.aqua-button--glass {
  border-color: rgba(150, 220, 255, 0.35);
  background: linear-gradient(to bottom, rgba(120, 170, 210, 0.4) 0%, rgba(50, 80, 110, 0.45) 48%, rgba(16, 32, 50, 0.6) 52%, rgba(30, 56, 82, 0.55) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 5px rgba(0, 0, 0, 0.5);
}

.aqua-button--glass:hover {
  background: linear-gradient(to bottom, rgba(140, 195, 235, 0.5) 0%, rgba(62, 100, 135, 0.55) 48%, rgba(20, 42, 64, 0.65) 52%, rgba(38, 70, 100, 0.6) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 12px rgba(60, 200, 255, 0.3);
}

/* ---------- Toolbar ---------- */
.toolbar {
  height: 34px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 10px;

  background: linear-gradient(to bottom, rgba(40, 66, 92, 0.75) 0%, rgba(18, 34, 52, 0.85) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 -1px 0 rgba(120, 210, 255, 0.1);
}

.toolbar-spacer {
  flex: 1;
}

.toolbar-pill {
  position: relative;
  font-size: 12px;
  font-weight: bold;
  color: #bfeaff;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(120, 210, 255, 0.35);
  background: linear-gradient(to bottom, rgba(70, 120, 160, 0.55), rgba(10, 30, 48, 0.75));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 10px rgba(60, 200, 255, 0.15);
}

/* ---------- Content wells (scrolling document area) ---------- */
.window-content--blog,
.window-content--about,
.window-content--links,
.window-content--webring,
.window-content--comments {
  height: calc(100% - 28px - 34px); /* titlebar + toolbar */
  overflow-y: auto;
  padding: 16px 18px 18px 18px;
  text-align: left;
  background: linear-gradient(to bottom, rgba(4, 16, 28, 0.55), rgba(4, 16, 28, 0.35));
}

.window-content--comments {
  padding: 14px 16px 16px 16px;
}

.window-heading {
  margin: 0 0 14px 0;
  font-size: 19px;
  font-weight: bold;
  color: #f0f9ff;
  text-shadow: 0 0 14px rgba(60, 200, 255, 0.45), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.section-heading {
  margin: 18px 0 10px 0;
  font-size: 14px;
  font-weight: bold;
  color: #cdeeff;
}

/* Glass cards shared by posts, links, specs and banners */
.blog-post,
.links-item,
.specs,
.banner-item {
  border-radius: 9px;
  background: linear-gradient(to bottom, rgba(130, 200, 255, 0.09), rgba(130, 200, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ---------- Window sizing per page (as before) ---------- */
.window-panel--blog,
.window-panel--about,
.window-panel--webring {
  width: min(880px, calc(100vw - 40px));
  height: min(74vh, 720px);
  z-index: 2;
}

.window-panel--links {
  width: min(720px, calc(100vw - 40px));
  height: min(70vh, 640px);
  z-index: 2;
}

.window-panel--main {
  width: 420px;
}

.window-panel--comments {
  width: 380px;
  height: min(62vh, 640px);
  margin-left: -620px; /* half main (210) + gap (30) + own width (380) */
  z-index: 2;
}

/* ---------- Blog ---------- */
.blog-post {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 10px;
  margin: 0 0 10px 0;
  scroll-margin-top: 10px;
}

.blog-post:target {
  border-color: rgba(60, 200, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 18px rgba(60, 200, 255, 0.35);
}

.post-image a {
  display: inline-block;
  border-radius: 8px;
}

.post-image img {
  display: block;
  width: 180px;
  max-width: 28vw;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(150, 220, 255, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.post-details {
  flex: 1;
  min-width: 0;
}

.post-header {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.post-header .user {
  font-weight: bold;
  color: var(--lime);
}

.post-header .post-id,
.file-info a {
  text-decoration: none;
  color: var(--link);
}

.post-header .post-id:hover,
.file-info a:hover {
  text-decoration: underline;
}

.file-info {
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--ink-faint);
}

.post-content {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  text-align: left;
  overflow-wrap: anywhere;
}

.post-content p + p,
.about-body p + p {
  margin-top: 12px;
}

.post-content img {
  max-width: 100%;
  border-radius: 6px;
}

.empty-note {
  color: var(--ink-faint);
  padding: 20px 0;
}

.home-link {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
  color: var(--link);
}

.home-link:hover {
  text-decoration: underline;
}

/* ---------- About ---------- */
.about-body {
  color: var(--ink);
  line-height: 1.6;
  font-size: 13px;
}

.about-body p {
  margin: 0 0 12px 0;
}

.about-body ul,
.about-body ol,
.post-content ul,
.post-content ol {
  margin: 6px 0 12px 22px;
}

.about-body::after {
  content: "";
  display: block;
  clear: both;
}

.specs {
  margin-top: 10px;
  padding: 10px 12px;
}

.spec-group + .spec-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.spec-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--aqua);
  margin-bottom: 6px;
}

.spec-lines {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- Links ---------- */
.links-intro {
  margin: 0 0 14px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
}

.links-list {
  list-style: none;
}

.links-item {
  padding: 10px 12px;
  margin-bottom: 8px;
}

.links-item:hover {
  background: linear-gradient(to bottom, rgba(130, 200, 255, 0.14), rgba(130, 200, 255, 0.05));
}

.links-item a {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  color: var(--link);
}

.links-item a:hover {
  text-decoration: underline;
}

.links-desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-faint);
}

/* ---------- Webring ---------- */
.webring-intro {
  color: var(--ink-dim);
  line-height: 1.55;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.banner-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  text-align: center;
}

.banner-item:hover {
  border-color: rgba(60, 200, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 14px rgba(60, 200, 255, 0.3);
}

.banner-item img {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
  border: 1px solid rgba(150, 220, 255, 0.3);
}

.banner-title {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-dim);
}

/* ---------- Guestbook (HTML Comment Box widget, light by default) ---------- */
#HCB_comment_box,
#HCB_comment_box * {
  color: var(--ink) !important;
  font-family: inherit !important;
  background-color: transparent !important;
}

#HCB_comment_box a {
  color: var(--link) !important;
}

#HCB_comment_box textarea,
#HCB_comment_box input[type="text"],
#HCB_comment_box input[type="email"] {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong) !important;
  background: rgba(0, 0, 0, 0.35) !important;
}

#HCB_comment_box input[type="submit"],
#HCB_comment_box button {
  padding: 4px 12px;
  border-radius: 7px;
  border: 1px solid #06386a !important;
  background: linear-gradient(to bottom, #6fd2ff 0%, #2c9de2 48%, #0b5fae 52%, #1b88d4 100%) !important;
  color: #fff !important;
  font-weight: bold;
  cursor: pointer;
}

#HCB_comment_box .comment,
#HCB_comment_box blockquote {
  border-color: var(--line) !important;
}

/* ---------- Neocities mirror note (shown only inside the frame) ---------- */
.mirror-note {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 10;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  background: rgba(4, 16, 28, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mirror-note a {
  color: var(--link);
}

.mirror-note[hidden] {
  display: none;
}

/* =========================================================
   Narrow screens: the old layout overflowed; stack instead
   ========================================================= */
@media (max-width: 1000px), (max-height: 560px) {
  body {
    overflow: auto;
  }

  .page-home .window {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .page-home .window-panel {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0;
    width: min(420px, 100%);
  }

  .page-home .window-panel--main { order: -2; }
  .page-home .window-panel--comments { order: -1; height: 60vh; }
  .page-home .window-panel--floating-right-2,
  .page-home .window-panel--floating-right-3 { display: none; }

  .window-panel--blog,
  .window-panel--about,
  .window-panel--links,
  .window-panel--webring {
    width: calc(100vw - 32px);
    height: calc(100vh - 32px);
  }
}

@media (max-width: 560px) {
  .blog-post {
    flex-direction: column;
  }

  .post-image img {
    width: 100%;
    max-width: 100%;
  }
}
