/* Optional, page-local old-web treatment. The normal essay is the initial view. */
.geo-only { display: none; }
.geo-toggle {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  text-decoration: underline dotted;
  text-underline-offset: .18em;
  cursor: pointer;
}
.geo-toggle:hover {
  text-decoration-style: solid;
  cursor: url('/assets/horse-wand-cursor.svg') 8 1, pointer;
}
.geo-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media screen {
  html[data-geocities="on"] {
    color-scheme: light;
    --font-body: 'Comic Sans MS', 'Comic Sans', 'Trebuchet MS', sans-serif;
    --font-display: 'Comic Sans MS', 'Comic Sans', 'Trebuchet MS', sans-serif;
    --font-mono: 'Courier New', monospace;
    --fg: #21103c;
    --muted: #554268;
    --border: #7d57ad;
    --bg-sidebar: #f2dafa;
    --teal: #41219c;
    --green: #71358e;
  }
  [data-geocities="on"] body {
    isolation: isolate;
    background-color: #000;
    background-image: url('/assets/horse-stars.gif');
    background-size: 375px 500px;
    background-attachment: fixed;
    color: #21103c;
    font-family: var(--font-body);
  }
  [data-geocities="on"] .shell { max-width: 980px; padding-top: 24px; }
  [data-geocities="on"] .topbar { display: none; }
  [data-geocities="on"] .post-layout {
    max-width: none;
    padding: 26px 48px 36px;
    border: 7px ridge #b589d5;
    background: #fff6dc;
    box-shadow: 12px 12px 0 #090825;
  }
  [data-geocities="on"] .geo-only { display: block; }
  [data-geocities="on"] .geo-toggle {
    color: #41219c;
  }
  [data-geocities="on"] .geo-address { font: bold .9rem/1.6 'Courier New', monospace; letter-spacing: .01em; color: #493773; }
  [data-geocities="on"] .geo-welcome { text-align: center; }
  [data-geocities="on"] .geo-horse-parade { display: flex; align-items: center; justify-content: center; gap: 10px; }
  [data-geocities="on"] .geo-horse-parade img { width: clamp(64px, 10vw, 112px); height: auto; image-rendering: pixelated; flex-shrink: 0; }
  [data-geocities="on"] .geo-horse-parade img:last-child { transform: scaleX(-1); }
  [data-geocities="on"] .geo-horse-parade span { font: bold clamp(1.2rem, 3vw, 2rem)/1.2 var(--font-display); color: #70258c; text-shadow: 2px 2px #e7badc; }
  [data-geocities="on"] .geo-motto { margin: 8px 0 24px; font-size: .9rem; color: #554268; }
  [data-geocities="on"] .geo-rainbow {
    height: 9px;
    margin: 26px 0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #554268;
    background: linear-gradient(90deg, #b53066, #db6937, #f2c958, #70aa75, #4c88b9, #8752b0, #b53066);
    background-size: 200% 100%;
    animation: geo-shimmer 20s linear infinite;
  }
  [data-geocities="on"] .post-header { text-align: center; }
  [data-geocities="on"] .post-back { display: flex; width: fit-content; color: #41219c; text-decoration: underline; margin-bottom: 28px; }
  [data-geocities="on"] .post-header .post-meta { justify-content: center; color: #554268; }
  [data-geocities="on"] .post-meta .tag { color: #70258c; }
  [data-geocities="on"] .post-title { font: bold clamp(2rem, 5vw, 3.5rem)/1.16 var(--font-display); color: #70258c; letter-spacing: -.02em; text-shadow: 2px 2px #e7badc; }
  [data-geocities="on"] .reading { max-width: 66ch; margin-inline: auto; font: 17px/1.85 Georgia, 'Times New Roman', serif; }
  [data-geocities="on"] article p { color: #21103c; }
  [data-geocities="on"] article p.lead { color: #70258c; font: bold 1.2rem/1.6 var(--font-display); text-align: center; }
  [data-geocities="on"] article a { color: #241b9a; text-decoration: underline; text-decoration-color: currentColor; }
  [data-geocities="on"] article a:visited { color: #71358e; }
  [data-geocities="on"] .geo-guestbook { text-align: center; margin-top: 36px; }
  [data-geocities="on"] .geo-guestbook p { font-family: var(--font-body); }
  [data-geocities="on"] .geo-guestbook-row { display: flex; align-items: center; justify-content: center; gap: 24px; }
  [data-geocities="on"] .geo-guest { flex: 0 0 140px; }
  [data-geocities="on"] .geo-guest img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
  [data-geocities="on"] .geo-guestbook-details { max-width: 260px; min-width: 0; }
  [data-geocities="on"] .geo-counter { display: block; width: fit-content; margin: 0 auto 20px; padding: 3px 12px; border: 4px inset #c5bacd; background: #151018; color: #c1f5ad; }
  [data-geocities="on"] .geo-counter img { display: block; width: 126px; height: 26px; image-rendering: pixelated; }
  [data-geocities="on"] .geo-mail { display: inline-block; padding: 8px 14px; font: bold 1rem/1.4 var(--font-body); }
  [data-geocities="on"] .geo-mail span { font-size: .8em; font-weight: normal; }
  [data-geocities="on"] .geo-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
  [data-geocities="on"] .geo-badges span { display: grid; place-content: center; min-width: 104px; min-height: 40px; padding: 3px 8px; background: #d9d0ea; border: 3px outset #eee7f9; color: #352256; font: bold 11px/1.2 'Courier New', monospace; }
  [data-geocities="on"] .post-endmark { display: none; }
  [data-geocities="on"] .backlink { color: #41219c; font-family: var(--font-body); }
  [data-geocities="on"] .site-footer { color: #eee0ff; border-color: #9a80bf; text-align: center; }
  [data-geocities="on"] .site-footer .author-note,
  [data-geocities="on"] .site-footer .domain { color: #eee0ff; }
  [data-geocities="on"] .site-footer .links { justify-content: center; }
  [data-geocities="on"] .site-footer a { color: #d9c5ff; }
  [data-geocities="on"] ::selection { background: #f3c5e0; color: #21103c; }
  @keyframes geo-shimmer { to { background-position: -200% 0; } }
  @media (max-width: 600px) {
    [data-geocities="on"] .shell { padding: 12px 10px 32px; }
    [data-geocities="on"] .post-layout { padding: 18px 18px 28px; border-width: 5px; box-shadow: 4px 4px 0 #090825; }
    [data-geocities="on"] .post-back { margin-bottom: 14px; }
    [data-geocities="on"] .reading { font-size: 17px; }
    [data-geocities="on"] .geo-address { font-size: .76rem; }
    [data-geocities="on"] .geo-horse-parade { gap: 2px; }
    [data-geocities="on"] .geo-horse-parade img { width: 60px; }
    [data-geocities="on"] .geo-guestbook-row { gap: 12px; }
    [data-geocities="on"] .geo-guest { flex-basis: 100px; }
  }
  @media (prefers-reduced-motion: reduce) {
    [data-geocities="on"] .geo-rainbow { animation: none; }
    [data-geocities="on"] body { background-image: url('/assets/horse-stars-still.png'); }
  }
  @media (max-width: 400px) {
    [data-geocities="on"] .geo-guestbook-row { gap: 8px; }
    [data-geocities="on"] .geo-guest { flex-basis: 80px; }
  }
}
@media print {
  .geo-only { display: none !important; }
  .geo-toggle { color: inherit; text-decoration: none; }
}
