/* =========  Base Reset  ========= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* base alignment */
html, body {
  text-align: left;
}

/* =========  Global Styles  ========= */
body {
  background-color: #1e1e1e;
  color: #cccccc;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  width: 100%;
}

/* =========  Global Sizing  ========= */
body,
main {
  max-width: 800px;   /* caps line length on large screens */
  width: 90%;         /* fluid on phones and tablets */
  margin: 0 auto;     /* centered wrapper */
}

/* =========  Layout  ========= */
.container {
  width: 600px;
  max-width: 100%;
  margin: 40px auto 20px auto;
  padding: 0 20px;
  text-align: left;              /* main content left‑aligned */
}

.content, main, section {
  text-align: left;
}

/* =========  Typography (mobile‑first) ========= */
h1 {
  font-size: 6vw;                /* scales with viewport */
  color: #ffffff;
  text-align: center;
  margin-bottom: 10px;
}

p,
li,
.bio,
.placeholder {
  font-size: 4vw;                /* responsive text */
  margin-bottom: 1rem;
  text-align: left;
}

ul,
ol {
  padding-left: 20px;
  text-align: left;
}

.placeholder { font-style: italic; color: #999; }
.bio        { color: #bbb; }

/* =========  Icon (index page)  ========= */
.icon {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  animation: pulseRotate 4s ease-in-out infinite;
}

/* =========  Footer  ========= */
footer,
.footer {
  margin-top: 30px;
  font-size: 3.5vw;              /* responsive */
  color: #999;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

footer .links,
.footer .links {
  display: flex;
  gap: 12px;
}

footer a,
.footer a {
  color: #aaa;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

footer a:hover,
.footer a:hover { text-decoration: underline; }

footer img,
.footer img { width: 20px; height: 20px; }

/* =========  Links  ========= */
a:link     { color: #ffffff; }
a:visited  { color: #bbbbbb; }
a:hover    { color: #88aaff; text-decoration: underline; }
a          { transition: color 0.2s ease; }

/* =========  Animation  ========= */
@keyframes pulseRotate {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.1) rotate(5deg); }
}

/* =========  Responsive tweaks for larger screens ========= */
@media (min-width: 600px) {
  h1                   { font-size: 24px; }
  p, li, .bio          { font-size: 16px; }
  footer, .footer      { font-size: 14px; }
}

/* ---------- Interests navigation ---------- */
.interests-nav {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin: 0 0 1.5rem;
  padding: .5rem 0;
}

.interests-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;          /* horizontal row */
  flex-wrap: wrap;        /* wrap when space runs out */
  gap: .25rem .5rem;      /* row / column gaps */
  text-align: left;       /* make sure text inside stays left-aligned */
}

.interests-nav li {
  font-weight: 600;
}

/* separator */
.interests-nav li + li::before {
  content: " | ";
  padding: 0 .25rem;
}

/* phones ≤600 px */
@media (max-width: 600px) {
  .interests-nav ul {
    flex-direction: column;   /* stack links */
    gap: .25rem 0;
  }
  .interests-nav li + li::before {
    content: none;            /* drop bars when stacked */
  }
}

/* ---------- Base alignment safety net ---------- */
html, body,
.content, main, section {
  text-align: left;
}
