:root {
  --bg: #05030a;
  --panel: rgba(10, 8, 18, 0.92);
  --panel-strong: rgba(17, 10, 28, 0.96);
  --border: #25f7cd;
  --border-soft: rgba(37, 247, 205, 0.35);
  --acid: #8dff18;
  --violet: #8a2cff;
  --cyan: #00eaff;
  --pink: #ff55d6;
  --text: #d8ffd9;
  --muted: #9fd9cd;
  --warning: #ffe36e;
  --shadow-cyan: #00eaff;
  --shadow-pink: #ff00a8;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Courier New", Consolas, monospace;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(141, 255, 24, 0.08) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(0, 234, 255, 0.09) 0 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(138, 44, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #0c0714 25%, #05030a 25%, #05030a 50%, #0c0714 50%, #0c0714 75%, #05030a 75%, #05030a 100%);
  background-size: 128px 128px, 164px 164px, 28px 28px, 28px 28px, 10px 10px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(255, 255, 255, 0.06) 4px 4px
  );
  mix-blend-mode: screen;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover,
a:focus-visible {
  color: var(--acid);
  text-shadow: 0 0 9px rgba(141, 255, 24, 0.85);
}

p {
  margin: 0 0 0.9rem;
}

ul,
ol {
  margin: 0 0 1rem;
}

h2 {
  margin: 1rem 0 0.55rem;
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

code {
  padding: 0.08rem 0.3rem;
  border: 1px solid var(--violet);
  background: rgba(138, 44, 255, 0.12);
  color: #ffffff;
}

main,
header,
footer,
section,
article,
aside,
nav {
  display: block;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
  position: relative;
  z-index: 1;
}

.site-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  padding: 0.35rem 0 1rem;
  font-size: 0.88rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-topbar strong {
  color: var(--acid);
  overflow-wrap: anywhere;
}

.site-topbar span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.chrome-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}

.chrome-line-right {
  justify-self: end;
  justify-content: flex-end;
  text-align: right;
  transform: translateY(-2px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.12rem 0.55rem;
  border: 1px solid var(--acid);
  background: rgba(141, 255, 24, 0.09);
  color: var(--acid);
  font-weight: 700;
  line-height: 1;
}

.status-pill::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

fieldset {
  margin: 0;
  border: 3px groove var(--border);
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(14, 9, 25, 0.95), rgba(7, 5, 12, 0.94)),
    var(--panel);
  box-shadow:
    0 0 0 1px var(--border-soft),
    inset 0 0 24px rgba(0, 234, 255, 0.09),
    0 0 24px rgba(138, 44, 255, 0.12);
  scroll-margin-top: 1rem;
}

fieldset > :last-child {
  margin-bottom: 0;
}

legend {
  padding: 0.25rem 0.7rem;
  border: 2px solid var(--violet);
  background: #13091e;
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-grid,
.widget-grid,
.split-columns,
.product-grid,
.index-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  align-items: start;
}

.widget-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: start;
}

.split-columns {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: start;
}

.index-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.portal-title,
.post-title {
  margin: 0.15rem 0 0.7rem;
  line-height: 0.95;
  text-transform: uppercase;
  font-family: Georgia, "Times New Roman", serif;
}

.portal-title {
  font-size: clamp(2.3rem, 7vw, 5rem);
}

.post-title {
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.glitch {
  position: relative;
  display: inline-block;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-shadow:
    2px 0 var(--shadow-cyan),
    -2px 0 var(--shadow-pink),
    0 0 22px rgba(141, 255, 24, 0.28);
  animation: glitch-drift 4.3s infinite steps(2, end);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
}

.glitch::before {
  color: var(--cyan);
  transform: translate(2px, -1px);
  clip-path: inset(0 0 44% 0);
}

.glitch::after {
  color: var(--pink);
  transform: translate(-2px, 1px);
  clip-path: inset(58% 0 0 0);
}

@keyframes glitch-drift {
  0%,
  100% {
    transform: translate(0, 0) skewX(0deg);
  }
  20% {
    transform: translate(1px, -1px) skewX(0.8deg);
  }
  40% {
    transform: translate(-1px, 0) skewX(-0.7deg);
  }
  60% {
    transform: translate(0, 1px) skewX(0.3deg);
  }
  80% {
    transform: translate(1px, 0) skewX(-0.5deg);
  }
}

.eyebrow,
.microcopy {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.lead {
  margin: 0 0 1rem;
  max-width: 62ch;
  font-size: 1rem;
}

.lead-full {
  max-width: none;
}

h1,
h2,
h3,
legend,
.portal-title,
.post-title,
.entry-title {
  text-wrap: balance;
}

p,
li,
blockquote {
  text-wrap: pretty;
}

fieldset,
section,
article,
aside,
.category-card,
.product-card,
.teaser-card,
.callout,
.quote-box,
.table-scroll,
.music-player-shell,
.entry-body {
  min-width: 0;
}

.glitch {
  max-width: 100%;
}

.post-meta span,
.retro-table th,
.retro-table td,
.entry-link,
.entry-link a,
.chrome-line a,
.retro-button {
  overflow-wrap: anywhere;
}

.entry-title {
  margin: 0 0 0.65rem;
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.15;
}

.entry-link {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.entry-body p + p {
  margin-top: 0.95rem;
}

.hero-quote {
  margin: 0 0 1.2rem;
  max-width: 72ch;
  padding: 1rem 1.1rem 1rem 1.25rem;
  border-left: 4px solid var(--warning);
  background: linear-gradient(90deg, rgba(255, 227, 110, 0.12), rgba(138, 44, 255, 0.1));
  box-shadow: inset 0 0 0 1px rgba(255, 227, 110, 0.22);
}

.hero-quote p {
  margin: 0 0 0.7rem;
  color: #fff4ba;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  font-style: italic;
  line-height: 1.7;
  text-shadow: 0 0 10px rgba(255, 227, 110, 0.16);
}

.hero-quote cite {
  display: block;
  color: var(--acid);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-shell {
  overflow: hidden;
  margin: 0.8rem 0 1rem;
  padding: 0.45rem 0;
  border: 2px solid var(--acid);
  background: linear-gradient(90deg, rgba(141, 255, 24, 0.12), rgba(138, 44, 255, 0.16), rgba(0, 234, 255, 0.12));
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-weight: 700;
}

.marquee-track span {
  display: inline-block;
  padding: 0 2rem;
  color: #ffffff;
  text-shadow: 1px 0 var(--shadow-cyan), -1px 0 var(--shadow-pink);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.gif-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gif-stamp {
  width: 88px;
  height: 31px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--violet);
  background:
    linear-gradient(90deg, rgba(255, 85, 214, 0.6), rgba(0, 234, 255, 0.45), rgba(141, 255, 24, 0.55));
  background-size: 200% 100%;
  animation: stamp-wave 3s linear infinite;
}

.gif-stamp::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #000000;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 1px 0 rgba(255, 255, 255, 0.5);
}

.gif-stamp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 4px,
    rgba(255, 255, 255, 0.35) 5px 6px
  );
  mix-blend-mode: screen;
  animation: stamp-flicker 1.4s steps(3, end) infinite;
}

@keyframes stamp-wave {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 200% 0;
  }
}

@keyframes stamp-flicker {
  50% {
    opacity: 0.25;
  }
}

.badge-row,
.article-nav,
.tag-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.portal-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.portal-actions .retro-button {
  width: 100%;
  white-space: nowrap;
  text-align: center;
}

.retro-button,
.tag,
.web-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  background: rgba(5, 6, 14, 0.92);
  color: var(--cyan);
  text-decoration: none;
}

.retro-button:hover,
.web-badge:hover {
  border-color: var(--acid);
}

button.retro-button {
  cursor: pointer;
}

.tag {
  color: var(--acid);
  border-color: var(--violet);
  background: rgba(138, 44, 255, 0.09);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.category-card,
.product-card,
.teaser-card {
  height: 100%;
  display: grid;
  align-content: start;
  border: 2px solid var(--violet);
  padding: 0.85rem;
  background: rgba(8, 10, 18, 0.92);
}

.category-card h3,
.product-card h3,
.teaser-card h3 {
  margin: 0 0 0.45rem;
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.22;
}

.category-card p,
.product-card p,
.teaser-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-card p + p,
.product-card p + p,
.teaser-card p + p {
  margin-top: 0.65rem;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.retro-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}

.retro-table th,
.retro-table td {
  border: 1px solid var(--border);
  padding: 0.6rem;
  vertical-align: top;
}

.retro-table th {
  color: var(--acid);
  background: rgba(0, 234, 255, 0.08);
  text-align: left;
  text-transform: uppercase;
}

.retro-table td strong {
  color: #ffffff;
}

.side-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.music-player-shell {
  padding: 0.45rem;
  border: 1px solid var(--violet);
  background:
    radial-gradient(circle at 15% 15%, rgba(141, 255, 24, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(0, 234, 255, 0.12), rgba(138, 44, 255, 0.14), rgba(255, 85, 214, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 18px rgba(138, 44, 255, 0.18);
}

.music-embed {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  filter: saturate(0.96) contrast(1.02);
}

.guestbook-list,
.post-list,
.fact-list,
.link-list {
  margin: 0;
  padding-left: 1rem;
}

.guestbook-list li,
.post-list li,
.fact-list li,
.link-list li {
  margin-bottom: 0.55rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(37, 247, 205, 0.28);
  background: rgba(0, 234, 255, 0.05);
}

.post-intro {
  margin: 0 0 1rem;
  max-width: 68ch;
}

.callout {
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--pink);
  background: rgba(255, 85, 214, 0.08);
}

.callout:last-child,
.quote-box:last-child {
  margin-bottom: 0;
}

.quote-box {
  padding: 0.9rem 1rem;
  border: 1px dashed var(--warning);
  color: #fff4ba;
  background: rgba(255, 227, 110, 0.08);
  font-family: Georgia, "Times New Roman", serif;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price {
  display: inline-block;
  margin: 0.6rem 0;
  color: var(--warning);
  font-weight: 700;
}

.form-shell {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  padding: 0.7rem;
  background: rgba(3, 6, 13, 0.95);
  color: var(--text);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.blink {
  animation: blink 1.05s steps(2, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.footer-note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-soft);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-note-plain {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.small {
  font-size: 0.86rem;
}

.muted {
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-grid,
  .widget-grid,
  .split-columns {
    grid-template-columns: 1fr;
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid,
  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-topbar {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .chrome-line {
    gap: 0.45rem;
  }

  .chrome-line-right {
    justify-self: start;
    justify-content: flex-start;
    text-align: left;
    transform: none;
  }

  .marquee-track span {
    padding: 0 1rem;
    font-size: 0.92rem;
  }

  .portal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-actions .retro-button {
    min-height: 42px;
    white-space: normal;
  }

  .gif-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 0.9rem));
    padding: 0.7rem 0 2rem;
  }

  fieldset {
    padding: 0.85rem;
  }

  legend {
    max-width: 100%;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .portal-grid,
  .product-grid,
  .index-grid {
    grid-template-columns: 1fr;
  }

  .site-topbar {
    font-size: 0.78rem;
  }

  .chrome-line {
    gap: 0.35rem;
  }

  .portal-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .post-title {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
  }

  .hero-quote {
    padding: 0.85rem 0.9rem 0.85rem 1rem;
  }

  .hero-quote p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .portal-actions {
    grid-template-columns: 1fr;
  }

  .portal-actions .retro-button {
    white-space: normal;
    min-height: 46px;
    padding: 0.55rem 0.7rem;
  }

  .gif-stamp {
    width: 78px;
  }

  .music-embed {
    height: 152px;
  }

  .retro-table {
    min-width: 480px;
  }

  .lead,
  .retro-table,
  .category-card p,
  .product-card p,
  .teaser-card p {
    font-size: 0.92rem;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 0.7rem));
  }

  .site-topbar {
    font-size: 0.74rem;
  }

  .status-pill {
    padding: 0.1rem 0.45rem;
  }

  .marquee-track span {
    padding: 0 0.75rem;
    font-size: 0.86rem;
  }

  .gif-strip {
    gap: 0.4rem;
  }

  .gif-stamp {
    width: 72px;
    height: 29px;
  }

  .gif-stamp::before {
    font-size: 0.58rem;
  }

  .music-player-shell {
    padding: 0.35rem;
  }

  .music-embed {
    height: 152px;
  }

  .retro-table {
    min-width: 420px;
  }
}

@media (max-width: 820px) {
  .chrome-line a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  .post-meta {
    gap: 0.4rem 0.55rem;
  }

  .post-meta span {
    min-height: 28px;
  }
}

@media (max-width: 640px) {
  body::before {
    opacity: 0.12;
  }

  .glitch {
    letter-spacing: 0.04em;
    text-shadow:
      1px 0 var(--shadow-cyan),
      -1px 0 var(--shadow-pink),
      0 0 14px rgba(141, 255, 24, 0.18);
  }

  .glitch::before,
  .glitch::after {
    display: none;
  }

  .post-title {
    line-height: 1.04;
  }

  .entry-title {
    font-size: clamp(1.08rem, 5vw, 1.4rem);
    line-height: 1.24;
  }

  .eyebrow {
    line-height: 1.45;
  }

  .lead,
  .post-intro,
  .entry-body,
  .small {
    font-size: 0.98rem;
  }

  .lead,
  .post-intro,
  .entry-body,
  .fact-list,
  .link-list {
    max-width: none;
  }

  .entry-body {
    line-height: 1.72;
  }

  .entry-link {
    font-size: 0.92rem;
  }

  .entry-link a {
    display: block;
    padding: 0.6rem 0.7rem;
    border: 1px dashed var(--border-soft);
    background: rgba(0, 234, 255, 0.05);
  }

  .callout,
  .quote-box {
    padding: 0.75rem 0.85rem;
  }

  .widget-grid,
  .split-columns,
  .index-grid,
  .portal-grid,
  .product-grid {
    gap: 0.85rem;
  }

  .article-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .article-nav .retro-button {
    width: 100%;
  }

  .retro-table {
    min-width: 360px;
    font-size: 0.9rem;
  }

  .retro-table th,
  .retro-table td {
    padding: 0.55rem;
  }

  .post-meta span {
    width: 100%;
    justify-content: flex-start;
  }

  input,
  textarea,
  button {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .table-scroll {
    overflow: visible;
  }

  .retro-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .retro-table thead {
    display: none;
  }

  .retro-table,
  .retro-table tbody,
  .retro-table tr,
  .retro-table td {
    display: block;
    width: 100%;
  }

  .retro-table tbody {
    display: grid;
    gap: 0.8rem;
  }

  .retro-table tr {
    border: 1px solid var(--border);
    background: rgba(0, 234, 255, 0.05);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.03),
      0 0 14px rgba(138, 44, 255, 0.08);
  }

  .retro-table td {
    border-width: 0 0 1px;
    padding: 0.7rem 0.75rem;
  }

  .retro-table td:last-child {
    border-bottom: 0;
  }

  .retro-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.28rem;
    color: var(--acid);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .retro-table td a {
    display: inline-block;
    padding-top: 0.12rem;
  }
}

@media (max-width: 420px) {
  fieldset {
    padding: 0.78rem;
  }

  .entry-link a {
    padding: 0.55rem 0.6rem;
  }

  .post-meta span {
    padding-inline: 0.48rem;
  }
}
