/* =========================================================
   Design tokens. Change these and the whole site follows.
   Want amber instead of green? Change --green and reload.
   That is the entire point of variables.
   ========================================================= */
:root {
  --bg:       #04070500;
  --bg-solid: #040705;
  --surface:  #0A100C;
  --line:     #14301F;
  --green:    #00FF9C;
  --green-dim:#3F8F6B;
  --white:    #D6FFE9;

  --font-mono:    'JetBrains Mono', monospace;
  --font-display: 'VT323', monospace;

  --glow: 0 0 4px rgba(0, 255, 156, 0.45);

  --max: 1080px;
  --pad: 2rem;
}

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

body {
  margin: 0;
  background: var(--bg-solid);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;

  /* Faint phosphor glow in the top left, like a CRT warming up */
  background-image: radial-gradient(
    ellipse 80% 60% at 20% 0%,
    rgba(0, 255, 156, 0.07),
    transparent 70%
  );
}

a { color: inherit; }

/* =========================================================
   CRT overlay
   Scanlines are drawn with a repeating gradient, no image needed.
   pointer-events: none means you can still click straight through it.
   ========================================================= */
.crt {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.16) 0px,
    rgba(0, 0, 0, 0.16) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* =========================================================
   Shared pieces
   ========================================================= */
.label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dim);
  margin: 0 0 1.5rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem var(--pad);
  border-top: 1px solid var(--line);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--green);
  text-shadow: var(--glow);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
}

.prose p { margin: 0 0 1.2rem; color: var(--green-dim); }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  background: rgba(4, 7, 5, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav__mark {
  font-size: 0.8125rem;
  color: var(--green);
  text-decoration: none;
  text-shadow: var(--glow);
}

.nav__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}

.nav__list a {
  text-decoration: none;
  color: var(--green-dim);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* ---------------------------------------------------------
   TODO 1 (you)
   Give .nav__list a:hover the full green plus the glow.
   Hint: color: var(--green); and text-shadow: var(--glow);
   Bonus: make the link look selected by inverting it, so
   background green and color var(--bg-solid). That reads as
   a highlighted line in a terminal.
   --------------------------------------------------------- */

/* =========================================================
   Hero
   ========================================================= */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem var(--pad) 6rem;
}

.boot {
  color: var(--green-dim);
  font-size: 0.8125rem;
  line-height: 1.9;
  margin: 0 0 2rem;
}

.ok { color: var(--green); text-shadow: var(--glow); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--green);
  text-shadow: 0 0 10px rgba(0, 255, 156, 0.35);
  margin: 0 0 1.75rem;
}

/* Blinking block cursor. steps(1) makes it snap instead of fade. */
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 0.85em;
  margin-left: 0.15em;
  background: var(--green);
  vertical-align: baseline;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero__intro {
  max-width: 52ch;
  color: var(--green-dim);
  margin: 0 0 2.5rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--green-dim);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  border-color: var(--green);
  color: var(--green);
  text-shadow: var(--glow);
}

.btn--solid {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg-solid);
  font-weight: 700;
}

.btn--solid:hover {
  background: transparent;
  color: var(--green);
}

/* =========================================================
   Tags
   ========================================================= */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  font-size: 0.8125rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--green-dim);
}

.tags li::before { content: '> '; opacity: 0.6; }

/* =========================================================
   Project cards
   ========================================================= */
.section__title--wide { margin-bottom: 2.5rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card__meta { font-size: 0.7rem; color: var(--green-dim); margin: 0; }

.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--green);
  margin: 0;
}

.card__text { margin: 0; color: var(--green-dim); font-size: 0.875rem; }

.card__tags {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  font-size: 0.7rem;
  color: var(--green-dim);
}

.card__tags li::before { content: '#'; opacity: 0.55; }

.card__link {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--green);
}

/* ---------------------------------------------------------
   TODO 2 (you)
   Make .card:hover interesting. The transition is already
   waiting, you only decide what changes.
   Hint: border-color to var(--green), translateY(-4px), and
   box-shadow: 0 0 20px rgba(0, 255, 156, 0.12) for the glow.
   Then remove the transition line for a second and reload, so
   you feel why a transition without a hover state does nothing.
   --------------------------------------------------------- */

/* =========================================================
   Contact + footer
   ========================================================= */
.section--contact { padding-bottom: 4rem; }

.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 1;
  color: var(--green);
  text-shadow: var(--glow);
  margin: 0 0 2rem;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.9rem;
}

.contact__list a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  color: var(--green-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact__list a:hover {
  color: var(--green);
  border-color: var(--green);
  text-shadow: var(--glow);
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: var(--green-dim);
  border-top: 1px solid var(--line);
}

/* =========================================================
   TODO 3 (you): responsive
   Below 720px .split and .nav fall apart. Write a media query.
   Hint:
   @media (max-width: 720px) {
     .split { grid-template-columns: ...; gap: ...; }
     .nav   { flex-direction: ...; }
     :root  { --pad: ...; }
   }
   Test with F12 and the device toolbar before you push. At least
   half your visitors will open this on a phone.
   ========================================================= */
