/* drianwalker.com — shared stylesheet */
:root {
  --bg: #0d1117;
  --panel: #161b22;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #2dd4bf;
  --accent2: #7c9cff;
  --border: #21262d;
  --maxw: 1100px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
}
a { color: var(--accent); }

/* ---------- Nav ---------- */
nav.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 6vw; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  background: rgba(13,17,23,0.92); backdrop-filter: blur(8px);
}
nav.top .logo { font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
nav.top .logo span { color: var(--accent); }
nav.top .links a {
  color: var(--muted); text-decoration: none; margin-left: 1.3rem;
  font-size: 0.92rem; padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
nav.top .links a:hover { color: var(--text); }
nav.top .links a.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Hero (home) ---------- */
.hero {
  padding: 5.5rem 6vw 4rem; display: flex; gap: 4rem; align-items: center;
  max-width: var(--maxw); margin: 0 auto;
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(45,212,191,0.14), transparent),
    radial-gradient(800px 400px at 10% 110%, rgba(124,156,255,0.10), transparent);
}
.hero .text { flex: 1 1 55%; }
.pill {
  display: inline-block; border: 1px solid var(--accent); color: var(--accent);
  border-radius: 999px; padding: 0.25rem 0.9rem; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.4rem;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08;
  letter-spacing: -0.02em; max-width: 20ch; margin-bottom: 1.4rem;
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); max-width: 58ch; font-size: 1.08rem; margin-bottom: 2rem; }
.btn {
  display: inline-block; background: var(--accent); color: #04211d;
  font-weight: 600; text-decoration: none; padding: 0.7rem 1.5rem;
  border-radius: 8px; margin-right: 0.8rem;
}
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.hero .photo { flex: 0 0 auto; }
.hero .photo img {
  width: 220px; height: 220px; border-radius: 16px; display: block;
  border: 1px solid var(--border); box-shadow: 0 0 40px rgba(45,212,191,0.15);
  object-fit: cover;
}

/* ---------- Shared layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 6vw 5rem; }
h2.sec { font-size: 1.9rem; letter-spacing: -0.01em; margin: 4rem 0 1.8rem; }
section:first-of-type h2.sec { margin-top: 3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.4rem; transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card .tag {
  color: var(--accent); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; display: block; margin-bottom: 0.6rem;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 4rem; }
.stat { border-left: 3px solid var(--accent); padding: 0.4rem 0 0.4rem 1.2rem; }
.stat b { font-size: 1.7rem; display: block; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.9rem; }
.more-link { margin-top: 1.8rem; }
.more-link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.more-link a:hover { text-decoration: underline; }

/* ---------- Prose pages ---------- */
h2.page-title { font-size: 2.2rem; letter-spacing: -0.01em; margin: 3.5rem 0 1.2rem; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 70ch; margin-bottom: 2rem; }
h3 { font-size: 1.25rem; margin: 2.5rem 0 0.8rem; }
p { max-width: 72ch; margin-bottom: 1rem; }
ul, ol { max-width: 72ch; margin: 0 0 1.2rem 1.2rem; }
li { margin-bottom: 0.7rem; }
li b { color: var(--text); }
li span { color: var(--muted); }
.cite { font-style: italic; }
.note {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.2rem 1.4rem; max-width: 72ch; margin: 1.5rem 0;
}
.note b { color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border); padding: 2rem 6vw; color: var(--muted);
  font-size: 0.9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  max-width: var(--maxw); margin: 0 auto;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .hero { flex-direction: column-reverse; gap: 2rem; padding-top: 3.5rem; }
  nav.top .links a { margin-left: 0.8rem; font-size: 0.85rem; }
}


/* Cards as links: whole card clickable, underline only on the title.
   (Inline style="text-decoration:none" on each <a class="card"> backs this up,
   so underlines can't leak to the body text even if the stylesheet is stale.) */
a.card { text-decoration: none; color: inherit; }
a.card h3 u { text-decoration: underline; text-underline-offset: 2px; }
a.card:hover h3 u { text-decoration-thickness: 2px; color: var(--accent); }
