/* evanbmorse.net — shared theme
   Aesthetic: phosphor-terminal / "digital rain" reference.
   Layered greens on near-black, one restrained amber for alerts. */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg:        #060a06;   /* near-black, faint green cast   */
  --panel:     #0b120b;   /* raised surface                 */
  --panel-2:   #0e170e;   /* nested surface                 */
  --line:      #16351f;   /* hairline borders               */
  --line-lit:  #1f5a30;   /* borders on hover/focus         */
  --dim:       #4f8f63;   /* muted body text                */
  --text:      #9fe6b4;   /* default readable green         */
  --bright:    #00ff5a;   /* signature phosphor accent      */
  --white:     #d6ffe2;   /* headings / emphasis            */
  --amber:     #f5c542;   /* alerts, "restricted" markers   */
  --shadow:    0 0 0 1px rgba(0,255,90,.04), 0 12px 40px -12px rgba(0,255,90,.18);
  --mono-d:    'Share Tech Mono', ui-monospace, monospace;
  --mono-b:    'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono-b);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* faint CRT scanlines over the whole page */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,.14) 3px
  );
  mix-blend-mode: multiply;
  z-index: 3;
}

#rain {
  position: fixed; inset: 0;
  z-index: 0;
  opacity: .28;         /* ambient, never competes with content */
}

.shell {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

/* ---- terminal card (landing) ---- */
.terminal {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 14vh auto 0;
  padding: 26px 28px 22px;
  background: rgba(11,18,11,.82);
  border: 1px solid var(--line-lit);
  border-radius: 6px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}
.terminal .bar {
  display: flex; align-items: center; gap: 8px;
  margin: -6px -6px 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono-d);
  color: var(--dim); font-size: 12px; letter-spacing: .5px;
}
.terminal .bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-lit); }
.terminal .bar .spacer { flex: 1; }

.prompt { font-family: var(--mono-d); color: var(--bright); }
.prompt::before { content: "> "; color: var(--dim); }
.caret {
  display: inline-block; width: 9px; height: 1.05em;
  background: var(--bright); vertical-align: -2px; margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- headings & type ---- */
h1, h2, h3 { font-family: var(--mono-d); color: var(--white); font-weight: 400; letter-spacing: .5px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 14px; color: var(--bright); }
.eyebrow { font-family: var(--mono-d); color: var(--dim); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
a { color: var(--bright); text-decoration: none; border-bottom: 1px dotted var(--line-lit); }
a:hover { color: var(--white); border-bottom-color: var(--bright); }
.muted { color: var(--dim); }

/* ---- panels grid ---- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.panel {
  grid-column: span 12;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.panel:hover { border-color: var(--line-lit); }
.panel .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.panel .head .tag { font-family: var(--mono-d); color: var(--dim); font-size: 12px; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
@media (max-width: 760px) { .col-6, .col-4 { grid-column: span 12; } .terminal { margin-top: 8vh; } }

/* ---- buttons ---- */
.btn {
  display: inline-block; font-family: var(--mono-d); font-size: 14px;
  color: var(--bg); background: var(--bright);
  padding: 9px 16px; border-radius: 4px; border: 1px solid var(--bright);
}
.btn:hover { background: var(--white); border-color: var(--white); }
.btn.ghost { color: var(--bright); background: transparent; }
.btn.ghost:hover { color: var(--white); border-color: var(--white); }

/* ---- access-granted banner (gated pages) ---- */
.granted { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.granted .badge {
  font-family: var(--mono-d); font-size: 12px; letter-spacing: 1px;
  color: var(--bg); background: var(--bright); padding: 4px 10px; border-radius: 3px;
}
.locked .badge { background: var(--amber); }

/* ---- charts ---- */
.chartwrap { position: relative; height: 240px; }
.country-list { margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; }
.country-list li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); color: var(--dim); }
.country-list li b { color: var(--text); font-weight: 400; }

/* ---- footer / privacy ---- */
.foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  #rain { display: none; }
  .caret { animation: none; }
}
