/* netmajstor.com — style.css
   single page, single stylesheet. monospace, terminal green on near-black,
   a touch of paper for the body. */

:root {
  --bg:      #0d1117;
  --fg:      #c9d1d9;
  --muted:   #8b949e;
  --accent:  #58a6ff;
  --rule:    #30363d;
  --paper:   #f6efdc;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* shared heading rhythm */
h2, h3 {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 24px 0 8px;
}
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; color: var(--muted); }

/* ASCII art banner — figlet future, 3 lines × 49 chars.
   Left-aligned, white, scrolls horizontally on tiny screens
   instead of overflowing the whole page. */
.ascii-head {
  display: block;
  text-align: left;
  margin: 4px 0 18px;
  overflow-x: auto;
}
.ascii-banner {
  display: inline-block;
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.05;
  color: var(--fg);
  white-space: pre;
}
@media (max-width: 720px) {
  .ascii-banner { font-size: 11px; }
}
@media (max-width: 480px) {
  .ascii-banner { font-size: 8px; }
}
@media (max-width: 360px) {
  .ascii-banner { font-size: 7px; transform: scale(0.7); transform-origin: left top; }
}
@keyframes flag-blink {
  0%, 88%, 100% { filter: none; opacity: 1; }
  90%, 94%      { filter: none; opacity: 0.55; }
}
@keyframes flag-glitch {
  0%   { filter: drop-shadow(-0.5px 0    #ff2a2a) drop-shadow( 0.5px 0    #00e1ff); }
  25%  { filter: drop-shadow(-1px   0    #ff2a2a) drop-shadow( 1px   -0.5px #00e1ff); }
  50%  { filter: drop-shadow( 0.5px 0.5px #ff2a2a) drop-shadow(-0.5px 0.5px #00e1ff); }
  75%  { filter: drop-shadow(-1px   0.5px #ff2a2a) drop-shadow( 1px   0    #00e1ff); }
  100% { filter: drop-shadow( 0     0    #ff2a2a) drop-shadow( 0     0    #00e1ff); }
}

/* bilingual intro paragraph — terminal window look:
   black bg, phosphor green text, single green border */
.lang p {
  background: var(--bg);
  color: #00ff66;
  padding: 14px 18px;
  border: 1px solid #00ff66;
  margin: 0 0 24px;
}
.lang em { font-style: normal; font-weight: 700; display: block; text-align: center; color: #00ff66; }

/* motto: CRT / chromatic-aberration glitch on hover, idle blink */
.lang em {
  letter-spacing: 0.02em;
  animation: motto-blink 3.4s steps(2, end) infinite;
}
.lang em:hover {
  animation: motto-glitch 0.6s steps(2, end) infinite;
}
@keyframes motto-blink {
  0%, 88%, 100% { text-shadow: none; opacity: 1; }
  90%, 94%      { text-shadow: none; opacity: 0.55; }
}
@keyframes motto-glitch {
  0%   { text-shadow: -1px  0   #ff2a2a,  1px  0   #00e1ff; transform: translate(0, 0); }
  25%  { text-shadow: -2px  0   #ff2a2a,  2px -1px #00e1ff; transform: translate(-1px, 0); }
  50%  { text-shadow:  1px  1px #ff2a2a, -1px  1px #00e1ff; transform: translate(1px, 0); }
  75%  { text-shadow: -2px  1px #ff2a2a,  2px  0   #00e1ff; transform: translate(-1px, 1px); }
  100% { text-shadow:  0    0   #ff2a2a,  0   0   #00e1ff; transform: translate(0, 0); }
}

/* two columns on wide screens, one column on narrow */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .cols { grid-template-columns: 1fr; gap: 16px; }
}

.col p { margin: 8px 0; }
.col {
  transition: opacity 0.2s ease, filter 0.2s ease;
}
/* hover one col -> the other dims and desaturates, like focusing one language */
.col:hover { opacity: 1; filter: none; }
.cols:hover .col:not(:hover) { opacity: 0.45; filter: grayscale(0.6); }
@media (max-width: 640px) {
  .cols:hover .col:not(:hover) { opacity: 1; filter: none; }
}

/* ordered + unordered, terminal-style */
ol, ul { padding-left: 1.4em; margin: 8px 0 16px; }
ol li, ul li { margin: 2px 0; }
ol { list-style: decimal; }
ul { list-style: none; padding-left: 0; }
ul li::before {
  content: ">";
  color: var(--muted);
  margin-right: 0.5em;
}

/* thanks block — single centered group */
.thanks-block {
  text-align: center;
  margin-top: 16px;
}
.thanks-block p { margin: 0 0 6px; }
.thanks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.thanks li { margin: 2px 0; }
.thanks li::before { content: ""; margin: 0; }  /* no > for this list */
.thanks .more { color: var(--muted); margin-top: 8px; }

/* footer / X link */
footer {
  margin-top: 40px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.counter { display: inline-flex; align-items: baseline; gap: 0.5em; }
.counter-label { font-size: 0.8em; opacity: 0.85; }
.counter-digits {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
@media (max-width: 600px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .counter {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
.tw-link {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tw-link:hover { color: var(--fg); text-decoration: none; }
.x-glyph {
  width: 14px;
  height: 14px;
  display: inline-block;
  flex: 0 0 auto;
}

/* easter egg — invisible link to ./enthusiastic.html */
.ghost {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}