/* Looks like 1996. Built like 2026. */
:root {
  --ink: #000; --paper: #fff; --link: #00e; --visited: #551a8b; --active: #e00;
  color-scheme: light;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  max-width: 38rem; margin-inline: auto; padding: clamp(1rem, 4vw, 2.5rem) 1rem;
  background: var(--paper); color: var(--ink);
  font: clamp(1rem, .95rem + .3vw, 1.125rem)/1.45 "Times New Roman", Times, serif;
  overflow-wrap: break-word;
}
p, li { text-wrap: pretty; }
h1, h2 { text-wrap: balance; line-height: 1.15; }
h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.2rem); margin: .5em 0 .4em; }
h2 { font-size: 1.3em; margin-block: 1.5em .5em; }
img { display: block; width: 96px; aspect-ratio: 1; height: auto; object-fit: cover; border: 1px solid var(--ink); }
hr { border: 0; border-top: 1px solid var(--ink); margin-block: 1.5em; }
ul { padding-inline-start: 1.5em; }
li { margin-block: .25em; }
a { color: var(--link); text-underline-offset: .15em; }
a:visited { color: var(--visited); }
a:active { color: var(--active); }
a:focus-visible { outline: 2px dotted currentColor; outline-offset: 2px; }
::selection { background: var(--link); color: var(--paper); }
.small, address { font-size: .9em; }
.counter { font-family: "Courier New", monospace; background: #000; color: #0f0; padding: 0 4px; letter-spacing: 2px; white-space: nowrap; }
#dot { cursor: help; }
@media (hover: none) { #dot { padding-inline: .3em; } } /* bigger tap target */

/* Easter egg: GeoCities mode */
.construction { display: none; }
body.geo { background: #000080 repeating-linear-gradient(45deg, #000080 0 10px, #00006a 10px 20px); color: #ff0; font-family: "Comic Sans MS", "Comic Sans", cursive; max-width: 42rem; }
body.geo a { color: #0ff; } body.geo a:visited { color: #f0f; }
body.geo h1 { color: #f0f; text-align: center; text-shadow: 3px 3px #0f0; animation: blink 1s steps(1) infinite; }
body.geo img { margin-inline: auto; border: 4px ridge #c0c0c0; animation: spin 4s linear infinite; }
body.geo hr { border-top: 3px groove #c0c0c0; }
body.geo .construction { display: block; background: #ff0; color: #000; text-align: center; font-weight: bold; padding: 4px; border: 3px dashed #000; }
@keyframes blink { 50% { visibility: hidden; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body.geo h1, body.geo img { animation: none; } }
@media print { .counter, #dot { all: unset; } a { color: inherit; } }

/* End of the Internet */
#eot:not(:empty) { margin-top: 2em; padding-bottom: 40vh; }
#eot p { animation: appear .4s ease-out; }
#eot .mono { font-family: "Courier New", monospace; }
#eot .ring { display: inline-block; border: 2px outset #c0c0c0; background: #e0e0e0; padding: .2em .6em; }
@keyframes appear { from { opacity: 0; transform: translateY(.5em); } }
@media (prefers-reduced-motion: reduce) { #eot p { animation: none; } }

/* Small things (sys.js) */
.gk-status { position: fixed; left: 0; bottom: 0; z-index: 50; max-width: 100%; padding: 2px 8px; font: 12px/1.4 Arial, sans-serif; color: #000; background: #c0c0c0; border-top: 2px solid #fff; border-right: 2px solid #808080; opacity: 0; transform: translateY(100%); transition: .15s; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gk-status.on { opacity: 1; transform: none; }
.gk-term { position: fixed; inset: auto 0 0 0; z-index: 60; height: min(60vh, 26rem); display: none; flex-direction: column; background: #000; color: #3f3; font: 14px/1.35 "Courier New", monospace; border-top: 2px solid #3f3; text-shadow: 0 0 4px currentColor; }
.gk-term.on { display: flex; }
.gk-term.gk-amber { color: #ffb000; border-color: #ffb000; }
.gk-term.gk-white { color: #ddd; border-color: #ddd; }
.gk-scr { flex: 1; overflow-y: auto; padding: 8px 12px 0; white-space: pre-wrap; word-break: break-word; }
.gk-line { display: flex; padding: 0 12px 10px; }
.gk-ps1 { white-space: pre; }
.gk-line input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; caret-color: currentColor; padding: 0; }
.gk-echo { opacity: .75; }
.gk-full { position: fixed; inset: 0; z-index: 70; width: 100vw; height: 100vh; background: #000; cursor: none; }
.gk-bsod { position: fixed; inset: 0; z-index: 80; background: #0000aa; color: #fff; font: 18px/1.5 "Courier New", monospace; padding: 15vh 10vw; cursor: pointer; }
.gk-bsod-h { display: table; margin: 0 auto 2em; background: #aaa; color: #0000aa; padding: 0 .5em; }
.gk-clippy { position: fixed; right: 16px; bottom: 32px; z-index: 65; max-width: 15rem; background: #ffffe1; color: #000; border: 1px solid #000; padding: 8px; font: 13px/1.35 Tahoma, Arial, sans-serif; box-shadow: 3px 3px 0 #0003; }
.gk-clippy pre { margin: 0 0 6px; font-size: 11px; line-height: 1.05; }
.gk-clippy button { font: inherit; margin-top: 6px; }
.gk-spark { position: absolute; z-index: 40; pointer-events: none; color: #ff0; animation: gk-fall .7s ease-out forwards; }
@keyframes gk-fall { to { opacity: 0; transform: translateY(18px); } }
body.gk-crt::after { content: ""; position: fixed; inset: 0; z-index: 45; pointer-events: none; background: repeating-linear-gradient(#0000 0 2px, #0002 2px 3px); }
body.gk-lynx { background: #000; color: #ccc; font-family: "Courier New", monospace; }
body.gk-lynx img { display: none; }
body.gk-lynx a { color: #ff0; }
body.gk-debug * { outline: 1px solid #f008; }
@media (prefers-reduced-motion: reduce) { .gk-status { transition: none; } .gk-spark { display: none; } }
@media print {
  .gk-status, .gk-term, .gk-clippy, #eot { display: none !important; }
  body::before { content: "FAX FROM: MARIUS DIMA  ·  +1996-03-14  ·  PAGE 1/1"; display: block; font: 11px "Courier New", monospace; border-bottom: 1px dashed #000; margin-bottom: 1em; }
  body::after { content: "Printed from the World Wide Web. Please recycle this fax."; display: block; font: 11px "Courier New", monospace; margin-top: 2em; }
}

/* 404: industrial alarm */
body.alarm { background: #222; color: #ddd; font-family: "Courier New", monospace; }
body.alarm a { color: #0f0; }
.alarm-bar { background: #c00; color: #fff; font-weight: bold; text-align: center; padding: .4em; animation: blink 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .alarm-bar { animation: none; } }

/* Anomaly blip: the full stop after 1996 */
#dot { transition: color 1s ease; }
#dot.qa-hit { color: #8b0000; transition: none; }

/* Terminal: close button, phones, prompt blip */
.gk-x { position: absolute; top: 0; right: 0; min-width: 44px; min-height: 44px; background: none; border: 0; color: inherit; font: 20px/1 "Courier New", monospace; cursor: pointer; }
.gk-scr { padding-right: 44px; }
@media (hover: none) { .gk-line input { font-size: 16px; } } /* no iOS focus zoom */
body:has(.gk-term.on) .gk-status { bottom: min(60vh, 26rem); }
.gk-ps1.qa-hit { color: #f33; }
body.alarm pre { white-space: pre-wrap; }
