/* $FIONA — late-90s / early-2000s parody homepage
   "Donate to save the zoo animals" millennial energy,
   except it is not a charity and funds no zoo. */

:root {
  --pond: #0a4a32;
  --pond-deep: #06281c;
  --beanie: #d49286;
  --beanie-deep: #b56d64;
  --foam: #ffffee;
  --parchment: #fff8dc;
  --manila: #f5e6c8;
  --mint: #ccffcc;
  --info: #99ccff;
  --gold: #ffcc00;
  --hot: #ff00aa;
  --link: #0000ee;
  --visited: #551a8b;
  --comic: "Comic Sans MS", "Comic Neue", "Comic Relief", "Chalkboard SE", "Marker Felt", cursive;
  --times: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  --mono: "Courier New", Courier, "Noto Sans Mono", monospace;
  --pixel: "Press Start 2P", "VT323", var(--mono);
  --beveled: 4px ridge #e0e0e0;
  --sunken: 3px inset #808080;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 44px; }

body {
  margin: 0;
  color: #111;
  font-family: var(--comic);
  font-size: 16px;
  line-height: 1.45;
  background-color: #165a38;
  background-image: url("assets/tile-water.png");
  background-repeat: repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; border-style: solid; }
a { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { color: #ff00ff; }
a:active { color: #ff0000; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- parody notice: always visible, not just the footer ---------- */
.parody-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #000;
  color: #ffe44d;
  font-family: var(--comic);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 6px 10px;
  border-bottom: 3px solid #ffe44d;
}
.parody-bar strong { color: #ff4d4d; }

/* ---------- outer page frame ---------- */
.page {
  width: min(900px, 100%);
  margin: 12px auto 80px;
  background: #c0c0c0;
  border: 6px ridge #efefef;
  box-shadow: 8px 8px 0 #0006;
}

/* ---------- header ---------- */
.header {
  background-color: #ffb6c1;
  background-image: url("assets/tile-pink.png");
  background-repeat: repeat;
  text-align: center;
  padding: 12px 10px 8px;
  border-bottom: 4px ridge #fff;
  position: relative;
}

.wordart {
  margin: 0;
  font-family: var(--comic);
  font-weight: 900;
  font-size: clamp(2.4rem, 11vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    #fff45a 0%,
    #ff9a3c 22%,
    #ff4da0 48%,
    #9b4dff 74%,
    #4fc3f7 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #4a0030;
  paint-order: stroke fill;
  filter:
    drop-shadow(4px 5px 0 #1a0010)
    drop-shadow(-1px -1px 0 #fff);
  transform: perspective(420px) rotateX(10deg) skewX(-8deg);
  transform-origin: center;
  padding: 0.15em 0.2em 0.25em;
}

.wordart-sub {
  margin: 4px 0 8px;
  font-family: var(--comic);
  font-weight: 700;
  font-size: clamp(1.15rem, 4.4vw, 1.85rem);
  color: #1a0066;
  text-shadow:
    2px 2px 0 #fff,
    3px 3px 0 #ff69b4,
    -1px -1px 0 #fff;
  font-style: italic;
  transform: rotate(-2deg);
}

.hero-pic-wrap {
  display: inline-block;
  margin: 8px auto 6px;
  padding: 8px;
  background: #eee;
  border: 5px ridge #fff;
  box-shadow: 4px 4px 0 #0005;
}
.hero-pic-wrap img {
  display: block;
  width: min(420px, 86vw);
  height: auto;
  border: 2px solid #333;
}

.tagline {
  margin: 6px 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #4a0030;
  text-shadow: 1px 1px 0 #fff;
}
.hero-tagline {
  font-size: clamp(1.15rem, 3.6vw, 1.55rem);
  font-style: italic;
  margin: 6px 8px 8px;
}

.construction {
  display: block;
  width: min(520px, 94%);
  margin: 8px auto 4px;
  border: 2px solid #000;
  image-rendering: pixelated;
}

/* blinking badges */
.blink {
  animation: blink 1s step-end infinite;
}
/* Color flash, not opacity 0 — stays readable mid-blink and in screenshots */
@keyframes blink {
  0%, 49% { filter: none; }
  50%, 100% { filter: brightness(1.25); background-color: #ffff00; color: #cc0000; }
}

.new-badge,
.hot-badge {
  display: inline-block;
  font-family: var(--comic);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border: 2px outset #ff8888;
  vertical-align: middle;
  line-height: 1.3;
}
.new-badge { background: #ff0000; color: #ffff00; }
.hot-badge { background: #ff6600; color: #fff; border-color: #ffaa55; }

/* ---------- marquee ---------- */
.marquee-wrap {
  background: #000080;
  color: #ffff00;
  border-top: 3px ridge #fff;
  border-bottom: 3px ridge #fff;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: 15px;
  padding: 5px 0;
  max-width: 100%;
}
.marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 28s linear infinite;
}
.marquee-wrap:hover .marquee-track,
.marquee-wrap:focus-within .marquee-track {
  animation-play-state: paused;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- nav ---------- */
.nav {
  background: #000080;
  color: #fff;
  text-align: center;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 3px ridge #ccc;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 0;
  row-gap: 4px;
}
.nav a {
  color: #ffff00;
  text-decoration: underline;
  padding: 3px 5px;
  display: inline-block;
  white-space: nowrap;
}
.nav a:visited { color: #ffcc66; }
.nav a:hover { color: #fff; background: #0000aa; }
.nav .sep { color: #99f; padding: 0 2px; }
.nav .soon { color: #ccc; font-weight: 400; white-space: nowrap; padding: 4px 6px; }
#nav-socials { display: contents; }

/* ---------- shell: sidebar + main ---------- */
.shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: #c0c0c0;
  min-height: 200px;
}

.sidebar {
  background: var(--mint);
  border-right: 4px ridge #eee;
  padding: 10px 8px 16px;
  font-size: 14px;
}
.sidebar h2 {
  font-size: 15px;
  margin: 0 0 6px;
  color: #800000;
  text-align: center;
  text-decoration: underline;
}
.side-box {
  background: #e8ffe8;
  border: 3px inset #9c9;
  padding: 8px;
  margin: 0 0 12px;
}
.side-box.midi {
  background: #ffe;
  border-color: #cc8;
  text-align: center;
}

/* hit counter */
.counter-label {
  text-align: center;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
}
.counter {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 4px 0;
}
.counter .digit {
  width: 18px;
  height: 26px;
  background: #111;
  color: #ff2222;
  font-family: var(--pixel);
  font-size: 14px;
  line-height: 26px;
  text-align: center;
  border: 2px inset #444;
  text-shadow: 0 0 4px #ff6666;
}
.you-are {
  text-align: center;
  font-size: 11px;
  margin: 4px 0 0;
}

/* thermometer (joke hat fund) */
.thermo-wrap {
  text-align: center;
}
.thermo {
  --fill: 100%;
  width: 36px;
  height: 140px;
  margin: 8px auto 6px;
  position: relative;
  background: #fafafa;
  border: 3px inset #888;
  border-radius: 16px 16px 8px 8px;
  overflow: hidden;
}
.thermo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fill);
  background: linear-gradient(to top, #c00 0%, #f50 40%, #fc0 100%);
}
.thermo-bulb {
  width: 52px;
  height: 52px;
  margin: -14px auto 6px;
  background: radial-gradient(circle at 35% 35%, #ff6655, #aa0000);
  border: 3px inset #833;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.thermo-caption {
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}
.thermo-note {
  font-size: 11px;
  margin: 4px 0 0;
  color: #400;
}

/* 88x31 badges */
.badge-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 8px;
}
.badge-wall img {
  width: 88px;
  height: 31px;
  border: 1px solid #000;
  image-rendering: auto;
}

/* ---------- main column ---------- */
main {
  background: var(--foam);
  padding: 12px 14px 24px;
  min-width: 0;
}

.panel {
  background: var(--parchment);
  border: 4px ridge #fff;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.panel h2 {
  font-family: var(--comic);
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  color: #000080;
  margin: 0 0 8px;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 #99f;
}

.rainbow-hr {
  border: 0;
  height: 8px;
  margin: 14px 0;
  background-image: url("assets/rainbow-hr.png");
  background-repeat: repeat-x;
  background-size: auto 8px;
}

.bio {
  font-size: 1.02rem;
}

/* angry 90s manifesto */
.manifesto {
  background: #7a0000;
  background-image: repeating-linear-gradient(
    -45deg,
    #7a0000 0 12px,
    #990000 12px 24px
  );
  color: #fff;
  border: 6px ridge #ffee00;
  box-shadow: 4px 4px 0 #400, inset 0 0 0 3px #c00;
  padding: 14px 16px 16px;
  margin: 10px;
  text-align: center;
}
.manifesto h2 {
  font-family: var(--comic);
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  color: #ffff00;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #ff0;
  margin: 0 0 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.manifesto p {
  margin: 0 auto;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  text-shadow: 1px 1px 0 #000;
}

/* buy CTA */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0 8px;
}
.btn-buy {
  display: inline-block;
  background: linear-gradient(#ffe27a, #ff9a3c);
  color: #400 !important;
  font-family: var(--comic);
  font-weight: 900;
  font-size: 1.25rem;
  text-decoration: none !important;
  text-align: center;
  padding: 12px 22px;
  border: 4px outset #ffcc66;
  cursor: pointer;
  text-shadow: 0 1px 0 #fff;
  box-shadow: 3px 3px 0 #0005;
  min-height: 48px;
  line-height: 1.2;
}
.btn-buy:hover { filter: brightness(1.06); }
.btn-buy:active {
  border-style: inset;
  transform: translate(1px, 1px);
}
.btn-buy:visited { color: #400 !important; }
.btn-sub {
  font-size: 12px;
  margin: 0;
  color: #333;
  max-width: 28ch;
}

/* contract address */
.ca-box {
  background: #111;
  color: #9f9;
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 10px;
  border: 3px inset #333;
  word-break: break-all;
  margin: 8px 0 6px;
}
.ca-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ca-row label {
  font-weight: 700;
  font-size: 14px;
}
.btn-copy {
  font-family: var(--comic);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  min-height: 40px;
  background: #ddd;
  border: 3px outset #eee;
  cursor: pointer;
  color: #000;
}
.btn-copy:active { border-style: inset; }
.btn-copy.copied {
  background: #9f9;
}

/* how to buy */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: #fff;
  border: 3px ridge #ccc;
  padding: 10px 12px 10px 52px;
  margin: 0 0 8px;
  position: relative;
  min-height: 52px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 8px;
  top: 10px;
  width: 32px;
  height: 32px;
  background: #000080;
  color: #ff0;
  font-weight: 900;
  font-size: 18px;
  text-align: center;
  line-height: 32px;
  border: 2px outset #66f;
}
.steps strong { color: #000080; }

/* chart */
.chart-frame {
  background: #000;
  border: 6px ridge #888;
  padding: 0;
  min-height: 280px;
}
.chart-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  background: #111;
}
.chart-fallback {
  font-size: 13px;
  margin: 8px 0 0;
}

/* photo album */
.album {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  padding-top: 10px;
}
.polaroid {
  background: #fffef8;
  border: 3px ridge #eee;
  padding: 14px 10px 16px;
  text-align: center;
  box-shadow: 4px 5px 0 #0003;
  transform: rotate(-1.6deg);
  position: relative;
}
.polaroid:nth-child(2) { transform: rotate(1.7deg); }
.polaroid:nth-child(3) { transform: rotate(-0.7deg); }
.polaroid::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 72px;
  height: 18px;
  margin-left: -36px;
  background: rgba(255, 248, 180, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 0 #fff8;
  transform: rotate(-2deg);
}
.polaroid:nth-child(2)::before { transform: rotate(3deg); }
.polaroid:nth-child(3)::before { transform: rotate(-1deg); }
.album-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.album-open:focus-visible {
  outline: 3px dotted #0000ee;
  outline-offset: 3px;
}
.polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  border: 1px solid #333;
  display: block;
  background: #ddd;
}
.enlarge-hint {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #444;
  text-transform: lowercase;
}
.polaroid figcaption {
  font-size: 14px;
  margin: 8px 4px 0;
  font-weight: 700;
}
.photo-credit,
.photo-credit a {
  font-size: 11px;
  line-height: 1.35;
}
.photo-credit {
  margin: 6px 4px 0;
  color: #333;
  font-family: var(--times);
  font-style: italic;
}
.album-credits {
  margin: 16px 2px 4px;
  font-size: 12px;
  line-height: 1.45;
  font-family: var(--times);
  color: #222;
}

/* lightbox (click to enlarge) */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 40, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 24px;
  overflow: auto;
}
.lightbox[hidden] { display: none !important; }
.lightbox-frame {
  background: #fffef8;
  border: 6px ridge #eee;
  box-shadow: 8px 8px 0 #0006;
  padding: 12px 12px 16px;
  max-width: min(920px, 100%);
  width: 100%;
  text-align: center;
  position: relative;
}
.lb-close {
  display: block;
  margin: 0 0 10px auto;
  font-family: var(--comic);
  font-size: 14px;
  font-weight: 700;
  background: #ffcc00;
  border: 3px outset #ffe87a;
  color: #000;
  cursor: pointer;
  padding: 3px 10px;
}
.lb-close:hover, .lb-close:focus-visible { background: #ffe44d; }
.lightbox-frame img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border: 2px solid #222;
  background: #111;
  display: block;
  cursor: zoom-out;
}
.lb-caption {
  margin: 10px 0 0;
  font-weight: 700;
  font-size: 16px;
}
.lb-credit {
  margin: 6px 0 0;
  font-family: var(--times);
  font-size: 12px;
  font-style: italic;
  color: #333;
}
.lb-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: #555;
}

/* certificate */
.certificate {
  background: #fffef4;
  border: 8px double #5a3b00;
  outline: 3px solid #c9a227;
  outline-offset: -14px;
  padding: 22px 18px 18px;
  text-align: center;
  font-family: var(--times);
  color: #2a1a00;
  position: relative;
}
.certificate h2 {
  font-family: var(--times);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a3b00;
  text-shadow: none;
  margin: 0 0 4px;
}
.certificate .ornament {
  color: #c9a227;
  letter-spacing: 0.3em;
  margin: 0 0 8px;
}
.certificate .who {
  font-size: 1.4rem;
  font-style: italic;
  min-height: 1.6em;
  border-bottom: 1px solid #5a3b00;
  display: inline-block;
  min-width: 12ch;
  padding: 0 8px;
  margin: 4px 0;
}
.cert-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 3px solid #5a3b00;
  margin: 8px auto;
  display: block;
}
.cert-fine {
  font-size: 11px;
  color: #4a3a20;
  margin: 10px auto 0;
  max-width: 50ch;
  font-family: var(--times);
}
.cert-sign {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}
.cert-sign div { min-width: 140px; }
.cert-sign .line {
  border-top: 1px solid #5a3b00;
  margin-top: 28px;
  padding-top: 4px;
  font-style: italic;
}
.cert-controls {
  font-family: var(--comic);
  margin: 0 0 10px;
  text-align: center;
}
.cert-controls input[type="text"] {
  font-family: var(--times);
  font-size: 1rem;
  padding: 6px 8px;
  min-height: 40px;
  border: 2px inset #ccc;
  width: min(280px, 90%);
}
.cert-controls button {
  font-family: var(--comic);
  font-weight: 700;
  padding: 8px 12px;
  min-height: 40px;
  margin-left: 6px;
  border: 3px outset #eee;
  background: #ddd;
  cursor: pointer;
}

/* guestbook */
.guestbook {
  background: #ffffcc;
  border: 4px ridge #fff;
  padding: 12px;
}
.guestbook h2 { color: #800080; }
.gb-list {
  max-height: 280px;
  overflow-y: auto;
  border: 3px inset #ccc;
  background: #fff;
  padding: 8px;
  margin: 0 0 10px;
  font-size: 14px;
}
.gb-entry {
  border-bottom: 1px dotted #999;
  padding: 6px 0;
}
.gb-entry .meta {
  font-size: 12px;
  color: #444;
}
.gb-entry .meta b { color: #000080; }
.gb-form {
  display: grid;
  gap: 6px;
}
.gb-form label { font-weight: 700; font-size: 14px; }
.gb-form input,
.gb-form textarea {
  font-family: var(--comic);
  font-size: 15px;
  padding: 6px 8px;
  border: 2px inset #ccc;
  width: 100%;
}
.gb-form textarea { min-height: 72px; resize: vertical; }
.gb-form button {
  font-family: var(--comic);
  font-weight: 700;
  padding: 10px 14px;
  min-height: 44px;
  width: fit-content;
  background: #f6f;
  border: 3px outset #fdf;
  cursor: pointer;
}
.gb-note { font-size: 12px; color: #400; margin: 8px 0 0; }

/* webring */
.webring {
  background: #000060;
  color: #fff;
  text-align: center;
  padding: 12px 10px;
  border: 4px ridge #66f;
  margin: 0 0 12px;
}
.webring h2 {
  color: #ffff00;
  text-shadow: none;
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.webring p { margin: 4px 0; font-size: 13px; }
.webring-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 8px 0;
}
.webring-nav button,
.webring-nav a {
  font-family: var(--comic);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  min-height: 40px;
  background: #ccc;
  color: #000 !important;
  text-decoration: none !important;
  border: 3px outset #eee;
  cursor: pointer;
}
.webring-nav button:active,
.webring-nav a:active { border-style: inset; }

.best-viewed {
  text-align: center;
  font-size: 12px;
  font-style: italic;
  margin: 8px 0;
}

/* footer */
.footer {
  background: #000;
  background-image: url("assets/tile-stars.png");
  color: #eee;
  text-align: center;
  padding: 16px 12px 20px;
  font-size: 12px;
  border-top: 4px ridge #666;
}
.footer p { margin: 6px auto; max-width: 62ch; }
.footer .disclaim {
  color: #ffe44d;
  font-weight: 700;
}
.footer .ca-mini {
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
  color: #9f9;
}

/* sticky mobile buy bar */
.sticky-buy {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #000;
  border-top: 3px solid #ffcc00;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  text-align: center;
  box-shadow: 0 -4px 12px #0008;
}
.sticky-buy .btn-buy {
  width: 100%;
  font-size: 1.1rem;
}
.sticky-buy .fine {
  color: #ccc;
  font-size: 11px;
  margin: 4px 0 0;
}

/* sparkle trail */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 80;
  font-size: 14px;
  line-height: 1;
  animation: sparkle-fade 0.7s ease-out forwards;
  text-shadow: 0 0 4px #fff;
}
@keyframes sparkle-fade {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(16px) scale(0.4); }
}

/* ---------- responsive: mobile first overrides already mostly fluid;
   collapse sidebar under 700px ---------- */
@media (max-width: 700px) {
  html { scroll-padding-top: 56px; scroll-padding-bottom: 108px; }
  .page { margin: 0 0 92px; border-width: 3px; width: 100%; }
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    border-right: 0;
    border-bottom: 4px ridge #eee;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sidebar .span-all,
  .sidebar .badge-wall,
  .sidebar h2.span-all { grid-column: 1 / -1; }
  .thermo { height: 110px; }
  .album { grid-template-columns: 1fr; }
  .polaroid,
  .polaroid:nth-child(2),
  .polaroid:nth-child(3) { transform: none; }
  .chart-frame iframe { height: 320px; }
  .sticky-buy { display: block; }
  .wordart {
    -webkit-text-stroke-width: 1.5px;
    font-size: clamp(2.05rem, 12vw, 3.1rem);
  }
  .hero-pic-wrap { margin: 4px auto; padding: 5px; }
  .hero-pic-wrap img { width: min(260px, 72vw); }
  .header { padding: 8px 8px 4px; }
  .nav { font-size: 13px; padding: 8px 6px 10px; }
  .construction { margin-top: 4px; }
  main { padding: 10px 8px 20px; }
  section, #guestbook, #webring, #honor, #sponsor, #howto, #chart, #album, #fiona-posts, #news, #home, #manifesto, #profile-song, #top8 {
    scroll-margin-top: 52px;
    scroll-margin-bottom: 108px;
  }
}

@media (min-width: 701px) {
  .sticky-buy { display: none !important; }
}

/* reduced motion: no blink, no marquee scroll, no sparkles */
@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
  .marquee-track { animation: none; padding-left: 8px; white-space: normal; }
  .marquee-wrap { white-space: normal; }
  .sparkle { display: none !important; }
  html { scroll-behavior: auto; }
  .wordart { transform: none; }
  .polaroid, .polaroid:nth-child(2), .polaroid:nth-child(3) { transform: none; }
}

@media print {
  .sticky-buy, .sparkle, .lightbox { display: none !important; }
}


/* ---------- memorial banner, candles, halo ---------- */
.memorial-banner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 4px 4px 0;
}
.memorial-copy { flex: 1; min-width: 0; }
.in-memory {
  margin: 0 0 2px;
  font-family: var(--times);
  font-style: italic;
  font-size: clamp(1.15rem, 3.4vw, 1.7rem);
  color: #6a4a00;
  text-shadow: 1px 1px 0 #fff8d6;
  letter-spacing: 0.08em;
}
.rip {
  margin: 0 0 4px;
  font-family: var(--times);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  letter-spacing: 0.18em;
  color: #3a2a00;
  text-shadow: 0 0 8px #ffe27a, 1px 1px 0 #fff;
}
.dates {
  margin: 2px 0 6px;
  font-family: var(--times);
  font-size: 1.15rem;
  color: #4a3000;
  letter-spacing: 0.12em;
}
.gone {
  margin: 2px 0 8px;
  font-family: var(--times);
  font-style: italic;
  font-size: 1.15rem;
  color: #4a3000;
}

/* CSS "gif" candles */
.candle {
  width: 36px;
  flex: 0 0 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}
.flame {
  width: 14px;
  height: 22px;
  background: radial-gradient(circle at 50% 70%, #fff6c8 0 25%, #ffd24a 40%, #ff7a18 75%, transparent 76%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform-origin: 50% 100%;
  animation: flicker 0.7s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 6px #ffb000);
}
.wax {
  width: 16px;
  height: 42px;
  background: linear-gradient(#fff4c8, #e8c56a);
  border: 2px solid #a07a20;
  border-radius: 3px 3px 2px 2px;
  margin-top: -2px;
  position: relative;
}
.wax::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 2px;
  height: 8px;
  background: #333;
  transform: translateX(-50%);
}
@keyframes flicker {
  from { transform: scale(1, 1) rotate(-3deg); opacity: 1; }
  to   { transform: scale(0.9, 1.12) rotate(4deg); opacity: 0.85; }
}

/* halo + angel wings over the beanie portrait */
.memorial-pic {
  position: relative;
  isolation: isolate;
  margin-top: 18px;
}
.halo {
  position: absolute;
  left: 50%;
  top: -16px;
  width: 46%;
  height: 26px;
  transform: translateX(-50%);
  border: 5px solid #f8e27a;
  border-radius: 50%;
  box-shadow: 0 0 14px #ffe99a, inset 0 0 8px #fff8;
  z-index: 2;
  pointer-events: none;
}
.wing {
  position: absolute;
  top: 18%;
  width: 28%;
  height: 42%;
  background:
    radial-gradient(circle at 30% 40%, #fff 0 35%, transparent 36%),
    radial-gradient(circle at 55% 55%, #fff 0 32%, transparent 33%),
    radial-gradient(circle at 40% 75%, #fff8e8 0 28%, transparent 29%);
  filter: drop-shadow(0 2px 0 #e8d8b0);
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}
.wing-left  { left: -10%; transform: rotate(-18deg) scaleX(-1); }
.wing-right { right: -10%; transform: rotate(18deg); }
.memorial-pic img { position: relative; z-index: 1; }

/* ---------- MySpace profile bar + song player ---------- */
.myspace-bar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 10px;
  background: #dfe8f5;
  border-top: 4px ridge #fff;
  border-bottom: 4px ridge #fff;
  padding: 10px;
}
.myspace-status {
  background: #fff;
  border: 3px inset #9ab;
  padding: 10px 12px;
  font-size: 14px;
}
.myspace-status p { margin: 4px 0; }
.net-line { font-weight: 700; color: #003399; }
.dates-mini { font-style: italic; color: #444; }
.online-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #22cc22;
  border-radius: 50%;
  box-shadow: 0 0 4px #6f6;
  vertical-align: middle;
}

.myspace-player {
  background: #e8e8e8;
  border: 3px outset #f4f4f4;
  padding: 0 0 8px;
  font-family: Tahoma, "Trebuchet MS", var(--comic);
  box-shadow: 2px 2px 0 #0003;
}
.mp-header {
  background: linear-gradient(#2b5aa0, #1a3a70);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 8px;
  letter-spacing: 0.03em;
}
.mp-title {
  margin: 6px 8px 4px;
  font-weight: 700;
  font-size: 13px;
  color: #111;
}
.mp-stage {
  margin: 0 8px;
  background: #111;
  color: #eee;
  border: 3px inset #444;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.mp-stage iframe {
  display: block;
  width: 100%;
  height: 158px;
  border: 0;
  background: #000;
}
.viz {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
}
.viz span {
  width: 6px;
  background: linear-gradient(#6f6, #fe5);
  height: 30%;
  animation: none;
}
.myspace-player.is-ready .viz span,
.mp-stage:not(.is-on) .viz span {
  animation: eq 0.6s ease-in-out infinite alternate;
}
.viz span:nth-child(2) { animation-delay: .1s; height: 55%; }
.viz span:nth-child(3) { animation-delay: .2s; height: 80%; }
.viz span:nth-child(4) { animation-delay: .05s; height: 40%; }
.viz span:nth-child(5) { animation-delay: .25s; height: 70%; }
.viz span:nth-child(6) { animation-delay: .15s; height: 90%; }
.viz span:nth-child(7) { animation-delay: .3s; height: 45%; }
.viz span:nth-child(8) { animation-delay: .08s; height: 60%; }
@keyframes eq {
  from { transform: scaleY(0.45); }
  to   { transform: scaleY(1); }
}
.mp-play {
  font-family: var(--comic);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 18px;
  min-height: 40px;
  background: linear-gradient(#ffe27a, #ff9a3c);
  border: 3px outset #ffcc66;
  cursor: pointer;
  color: #400;
}
.mp-play:active { border-style: inset; }
.mp-hint, .mp-note {
  margin: 0;
  font-size: 11px;
  color: #ccc;
  text-align: center;
  padding: 0 6px;
}
.mp-note { color: #444; margin-top: 6px; padding: 0 8px; }
.mp-stage.is-on .viz,
.mp-stage.is-on .mp-play,
.mp-stage.is-on .mp-hint { display: none; }

/* ---------- Top 8 ---------- */
.top8 h2 { margin-bottom: 2px; }
.top8-sub { text-align: center; font-size: 11px; margin: 0 0 8px; }
.top8-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.top8-grid a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #003399;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.top8-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #036;
  margin-bottom: 2px;
  background: #fff;
}
.top8-grid .empty {
  min-height: 72px;
  border: 2px dashed #8a8;
  background: #f4fff4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.empty-slot { font-size: 10px; text-align: center; color: #464; font-style: italic; }

/* ---------- Sponsor grid ---------- */
.sponsor-disclaimer {
  background: #fff3c0;
  border: 3px ridge #cc0;
  padding: 8px 10px;
  font-size: 14px;
  color: #400;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.pal {
  background: #fff;
  border: 4px ridge #ccc;
  padding: 8px 8px 12px;
  text-align: center;
}
.pal img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border: 2px solid #333;
  display: block;
  margin: 0 auto 6px;
}
.pal h3 { margin: 0 0 2px; font-size: 1.1rem; color: #000080; }
.pal-role { margin: 0 0 6px; font-size: 12px; font-style: italic; color: #444; }
.pal p { font-size: 13px; margin: 0 0 8px; }
.btn-sponsor {
  display: inline-block;
  background: linear-gradient(#cfe8ff, #7eb3e8);
  color: #002 !important;
  font-family: var(--comic);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  padding: 8px 12px;
  min-height: 40px;
  border: 3px outset #cfe;
  cursor: pointer;
}
.btn-sponsor:active { border-style: inset; }
.btn-sponsor:visited { color: #002 !important; }

@media (max-width: 700px) {
  .memorial-banner { gap: 2px; }
  .candle { width: 24px; flex-basis: 24px; }
  .wax { height: 32px; width: 12px; }
  .flame { width: 11px; height: 16px; }
  .myspace-bar { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: 1fr; }
  .mp-stage iframe { height: 180px; }
  .wing-left { left: -6%; }
  .wing-right { right: -6%; }
}
@media (prefers-reduced-motion: reduce) {
  .flame { animation: none; }
  .viz span { animation: none !important; }
}

.online-line { font-weight: 700; color: #060; }
.online-dot { animation: pulse-dot 1s step-end infinite; }
@keyframes pulse-dot {
  50% { opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
  .online-dot { animation: none; }
}

/* official X embeds (lazy-loaded widgets.js) */
.tweet-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
.tweet-card {
  background: #fffef8;
  border: 3px ridge #eee;
  box-shadow: 3px 3px 0 #0003;
  padding: 8px 8px 4px;
  min-width: 0;
  overflow: hidden;
}
.tweet-card .twitter-tweet,
.tweet-card iframe,
.tweet-card twitter-widget {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.tweet-card .twitter-tweet {
  font-size: 14px;
  line-height: 1.4;
}

/* Fiona in the News — text-only cards, no images */
.news-wall {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.news-card {
  background: var(--parchment);
  border: 3px ridge #eee;
  box-shadow: 3px 3px 0 #0003;
}
.news-card a {
  display: block;
  padding: 10px 12px 12px;
  text-decoration: none;
  color: inherit;
}
.news-card a:hover {
  background: #fff8c4;
}
.news-outlet {
  display: block;
  font-family: var(--comic);
  font-size: 13px;
  font-weight: 700;
  color: #0000ee;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.news-date {
  display: block;
  font-family: var(--times);
  font-size: 12px;
  font-style: italic;
  color: #444;
  margin: 2px 0 6px;
}
.news-headline {
  display: block;
  font-family: var(--times);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  text-decoration: underline;
}
.news-card a:hover .news-headline { color: #ff00ff; }
.news-card a:visited .news-outlet { color: #551a8b; }

@media (min-width: 701px) {
  .tweet-wall { grid-template-columns: 1fr 1fr; }
  .news-wall { grid-template-columns: 1fr 1fr; }
}
