/* dany.sh — terminal theme. The browser gets the same site curl gets:
   ANSI palette, monospace, one column, prompt at the bottom. */

:root {
  --bg:      #0a0e13;
  --bg-soft: #0d1219;
  --fg:      #c9d5e1;
  --dim:     #5f6f80;
  --faint:   #3d4a58;
  --cyan:    #4cc2b4;
  --yellow:  #d8b26a;
  --line:    rgba(120, 150, 180, 0.12);
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font: 400 0.92rem/1.75 var(--mono);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 6vh, 4rem) 1.25rem 2.5rem;
}

/* faint CRT scanlines + vignette, purely decorative */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, transparent 55%, rgba(3, 5, 8, 0.55) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 3px);
}

::selection { background: var(--cyan); color: #06231f; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-shadow: 0 0 14px rgba(76, 194, 180, 0.45); }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.term {
  width: 100%;
  max-width: 44rem;
  position: relative;
  z-index: 2;
}

/* ── ascii art ─────────────────────────────────────────────── */
.art {
  color: var(--cyan);
  font-size: clamp(0.5rem, 2.1vw, 0.86rem);
  line-height: 1.25;
  text-shadow: 0 0 18px rgba(76, 194, 180, 0.35);
  margin-bottom: 1.6rem;
  overflow-x: auto;
  animation: boot 0.5s ease-out both;
}

/* ── intro ─────────────────────────────────────────────────── */
.who { margin-bottom: 1.1rem; animation: boot 0.5s 0.08s ease-out both; }
.who strong { color: #eef4fa; font-weight: 700; }
.dim { color: var(--dim); }

.intro p { margin-bottom: 0.9rem; max-width: 62ch; }
.intro { animation: boot 0.5s 0.16s ease-out both; margin-bottom: 2.2rem; }

/* ── sections, mirrors of the txt headings ─────────────────── */
section { margin-bottom: 2.1rem; animation: boot 0.5s ease-out both; }
section:nth-of-type(1) { animation-delay: 0.24s; }
section:nth-of-type(2) { animation-delay: 0.32s; }
section:nth-of-type(3) { animation-delay: 0.40s; }

h2 {
  color: var(--yellow);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
h2::before { content: "# "; color: var(--faint); }

.rows { display: grid; grid-template-columns: 7.5rem 1fr; row-gap: 0.35rem; }
.rows dt { color: var(--dim); }
.rows dd { min-width: 0; }
.rows dd .note { color: var(--faint); }

/* ── prompt footer ─────────────────────────────────────────── */
.prompt {
  margin-top: 2.6rem;
  color: var(--dim);
  animation: boot 0.5s 0.5s ease-out both;
}

.geo {
  margin-top: 1.1rem;
  font: 400 0.78rem/1.6 var(--mono);
  color: var(--faint);
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: boot 0.5s 0.58s ease-out both;
}

.cursor {
  display: inline-block;
  width: 0.6ch;
  color: var(--cyan);
  animation: blink 1.15s steps(1) infinite;
}
.cursor::before { content: "▊"; }

footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 2.6rem;
  color: var(--faint);
  font-size: 0.78rem;
  text-align: center;
}
footer a { color: var(--dim); }

@keyframes boot {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 560px) {
  body { font-size: 0.86rem; }
  .rows { grid-template-columns: 5.6rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
