/* =========================================================
   Nathan Arcuri – Modern Dark UI
   FINAL BALANCE PASS (CORRECTED)
   - Narrower cards
   - Natural left-aligned content
   - Fixed navbar, aligned with content
   - Lime hover states RESTORED
   ========================================================= */

:root {
  --bg: #0e0e10;
  --panel: #1b1b1f;
  --panel-2: #222226;
  --border: #2d2d33;

  --text: #e6e6eb;
  --muted: #a1a1ad;

  --purple: #7a4cff;
  --lime: #7dff7d;

  --radius: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.45);
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.65);

  --container: 1050px;
  --card-max: 760px;

  --header-h: 76px;
  --header-offset: 96px;
  --pad: 16px;
}

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

html {
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("deathdamask.png");
  background-repeat: repeat;
  background-size: auto, 180px 180px;
  background-attachment: fixed, fixed;
}

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.site-main {
  padding: calc(var(--header-h) + 24px) 0 48px;
}

section[id] {
  scroll-margin-top: var(--header-offset);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(14,14,16,0.95);
  border-bottom: 1px solid var(--border);
  z-index: 9999;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  gap: 10px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.nav a:hover {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(125,255,125,0.08);
}

/* ---------- Cards ---------- */
.card {
  max-width: var(--card-max);
  margin: 22px auto;
  padding: 26px;

  background: linear-gradient(to bottom, rgba(27,27,31,0.92), rgba(34,34,38,0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- Hero ---------- */
.hero-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.hero-heading h1 {
  margin: 0;
}

.intro-tagline {
  margin: 4px 0 0;
  color: var(--muted);
}

/* ---------- Typography ---------- */
.card p {
  margin: 0 0 1rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card h1 {
  font-size: 1.7rem;
}

.card h2 {
  font-size: 1.25rem;
  color: var(--purple);
  margin-bottom: 10px;
}

/* ---------- Assignments ---------- */
.assignment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.assignment-list li + li {
  margin-top: 8px;
}

.assignment-list a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.assignment-list a:hover {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(125,255,125,0.08);
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--card-max);
  margin: 24px auto 0;
  padding: 14px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  :root {
    --header-h: 118px;
    --card-max: 100%;
  }

  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  .hero-header {
    flex-direction: column;
    text-align: center;
  }
}
