@font-face {
  font-family: "Mode7";
  src: url("../fonts/MODE7GX3.TTF") format("truetype");
  font-display: block;
}

:root {
  --bg: #000;
  --blue: #0a39ff;
  --cyan: #39fff2;
  --yellow: #fff15a;
  --white: #f5f5f5;
  --red: #ff4a4a;
  --green: #5dff6d;
  --magenta: #ff4fd8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: "Mode7", "Courier New", monospace;
  text-transform: uppercase;
}

body {
  min-height: 100vh;
  padding: 18px;
}

.page {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--yellow);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  letter-spacing: 0.08em;
}

.headline {
  display: grid;
  gap: 6px;
  padding-top: 10px;
}

.headline__name {
  background: var(--blue);
  color: var(--yellow);
  font-size: clamp(1.9rem, 4.8vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  padding: 14px 16px 12px;
  white-space: nowrap;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.75);
}

.content-panel {
  display: grid;
  gap: 14px;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.15;
}

.row {
  display: grid;
  grid-template-columns: 12ch 1fr;
  gap: 12px;
  align-items: start;
}

.label {
  color: var(--cyan);
}

.message {
  color: var(--white);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.post-body {
  display: grid;
  gap: 12px;
  color: var(--white);
}

.post-body > :first-child {
  margin-top: 0;
}

.post-body > :last-child {
  margin-bottom: 0;
}

.post-body p,
.post-body ul,
.post-body ol {
  margin: 0;
}

.post-body a {
  text-decoration: underline;
}

.post-listing a {
  color: var(--white);
}

.post-listing a:hover,
.post-listing a:focus-visible {
  color: var(--yellow);
}

a {
  color: var(--magenta);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--yellow);
  outline: none;
}

.footer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  color: var(--white);
}

.footer span:nth-child(1) {
  color: var(--red);
}

.footer span:nth-child(2) {
  color: var(--yellow);
}

.footer span:nth-child(3) {
  color: var(--cyan);
}

.footer span:nth-child(4) {
  color: var(--magenta);
}

.footer span:nth-child(5) {
  text-align: right;
}

@media (max-width: 760px) {
  .headline__name {
    font-size: clamp(1.3rem, 8vw, 2.4rem);
    white-space: normal;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer span:nth-child(5) {
    text-align: left;
  }
}
