:root {
  --bg: #06080c;
  --text: #edf3ff;
  --muted: #98a3b8;
  --link: #a8beff;
  --line: rgba(166, 209, 232, 0.18);
  /* text fades a little bluer as you go down the page */
  --t1: #f3f7ff;
  --t2: #dbe8ff;
  --t3: #c9d8ff;
  --t4: #b5c8ff;
  --t5: #a5b7e8;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  text-shadow: none;
  transition: color .3s ease, text-decoration-color .3s ease, text-shadow .3s ease;
}
a:hover,
a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
  text-shadow: 0 0 8px rgba(200, 215, 255, 0.6), 0 0 18px rgba(160, 180, 250, 0.35);
}

/* ---------- Header ---------- */
.header {
  text-align: center;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.pfp {
  display: block;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(160, 180, 250, 0.18);
}
.header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #dde8ff;
  text-shadow: 0 0 20px rgba(160, 180, 250, 0.18), 0 0 40px rgba(160, 180, 250, 0.08);
}
.subtitle {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

/* ---------- Sections ---------- */
section { padding: 32px 0; }
h2 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}
p, li { font-size: 1.08rem; line-height: 1.7; }
p { margin-bottom: 16px; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.55em; }

.t1 { color: var(--t1); }
.t2 { color: var(--t2); }
.t3 { color: var(--t3); }
.t4 { color: var(--t4); }
.t5 { color: var(--t5); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}
.footer .glyph { display: block; color: var(--link); margin-bottom: 8px; }
.footer p { margin: 0 0 6px; font-size: inherit; line-height: 1.5; }
.footer a { color: var(--muted); }
.footer a:hover { color: #fff; }
.header + section { padding-top: 48px; }

@media (max-width: 560px) {
  .header { padding: 40px 0 32px; }
  .header h1 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Link icons (from puppyboy.me) ---------- */
.link-list { list-style: none; padding-left: 0; }
.link-list a { display: inline-flex; align-items: center; gap: 10px; }
.icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 0 transparent);
  transition: filter .3s ease;
}
.link-list a:hover .icon,
.link-list a:focus-visible .icon {
  filter: drop-shadow(0 0 6px rgba(200, 215, 255, 0.6));
}

/* ---------- Centered intro + side-by-side links ---------- */
#about { text-align: center; }
#about .link-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
#about .link-list li { margin: 0; }
#about .link-list li { font-size: 1.28rem; }
#about .link-list .icon { width: 24px; height: 24px; }

/* bio + link sizes */
#about p { font-size: 1.02rem; }
#about .link-list li { font-size: 1.22rem; }
#about .link-list .icon { width: 23px; height: 23px; }
#about .link-list li + li::before {
  content: "•";
  color: var(--muted);
  margin-right: 16px;
}

/* ---------- Shorter centered dividers ---------- */
.header { border-bottom: none; padding-bottom: 0; }
.header::after,
.footer::before {
  content: "";
  display: block;
  width: 420px;
  max-width: 80%;
  height: 1px;
  margin: 0 auto;
  background: var(--line);
}
.header::after { margin-top: 48px; }
.footer { border-top: none; padding-top: 0; }
.footer::before { margin-bottom: 48px; }
@media (max-width: 560px) {
  .header { padding-bottom: 0; }
  .header::after { margin-top: 32px; }
}

/* ---------- Secret message popup ---------- */
.msg-dialog {
  margin: auto;
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 13, 20, 0.92);
  color: var(--text);
  box-shadow: 0 0 40px rgba(160, 180, 250, 0.12);
  font-family: inherit;
}
.msg-dialog::backdrop {
  background: rgba(3, 4, 7, 0.6);
  backdrop-filter: blur(3px);
}
.msg-dialog[open] { animation: msg-in .25s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.msg-form { position: relative; padding: 28px 24px 22px; display: flex; flex-direction: column; }
.msg-form h2 {
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: 20px;
  color: #dde8ff;
  text-shadow: 0 0 20px rgba(160, 180, 250, 0.18);
}
.msg-form label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.msg-form input,
.msg-form textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  outline: none;
  resize: vertical;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.msg-form textarea { margin-bottom: 4px; min-height: 110px; }
.msg-form input::placeholder,
.msg-form textarea::placeholder { color: rgba(152, 163, 184, 0.55); }
.msg-form input:focus,
.msg-form textarea:focus {
  border-color: rgba(168, 190, 255, 0.55);
  box-shadow: 0 0 12px rgba(160, 180, 250, 0.18);
}
.msg-meta { text-align: right; font-size: 0.75rem; color: var(--muted); margin-bottom: 16px; }
.msg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.msg-send {
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--link);
  background: transparent;
  border: 1px solid rgba(168, 190, 255, 0.35);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease, text-shadow .3s ease, box-shadow .3s ease;
}
.msg-send:hover:not(:disabled),
.msg-send:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 8px rgba(200, 215, 255, 0.6), 0 0 18px rgba(160, 180, 250, 0.35);
  box-shadow: 0 0 14px rgba(160, 180, 250, 0.2);
}
.msg-send:disabled { opacity: 0.5; cursor: default; }

.msg-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .3s ease, text-shadow .3s ease;
}
.msg-close:hover { color: #fff; text-shadow: 0 0 8px rgba(200, 215, 255, 0.6); }

.msg-status { min-height: 1.2em; margin: 12px 0 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.msg-status.error { color: #ff9db0; }
.msg-status.ok { color: #b9f5c8; }
