/* Light / Dark theme - adit.email style */

:root {
  --bg: #f7f4ef;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e0dcd4;
  --link: #1c1c1c;
}

[data-theme="dark"] {
  --bg: #121212;
  --text: #e8e6e3;
  --muted: #9a9690;
  --line: #2a2a2a;
  --link: #e8e6e3;
}

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

html {
  font-size: 17px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", "Times New Roman", Times, serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
  max-width: 620px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 2rem;
  position: relative;
  z-index: 10;
}

/* ========== TOP NAV (monospace) ========== */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.logo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.divider {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Theme toggle button */
#theme-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
  padding: 0;
}

#theme-toggle:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Thin line under nav */
.nav-line {
  border: none;
  border-top: 1px solid var(--line);
  margin-bottom: 1.8rem;
}

/* ========== NAME + AVATAR ========== */
.hero {
  margin-bottom: 1.15rem;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

h1 {
  font-family: "EB Garamond", "Times New Roman", Times, serif;
  font-size: 3.4rem;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  transform: scaleY(1.15);
  transform-origin: left center;
}

/* Avatar */
.avatar {
  width:  118px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ========== BIO LINES (monospace + muted) ========== */
.bio-lines {
  margin-bottom: 1.35rem;
  font-family: "IBM Plex Mono", "SF Mono", "Menlo", monospace;
  font-size: 0.95rem;
}

.bio-lines p {
  color: var(--muted);
  margin-bottom: 0.12rem;
  line-height: 1.5;
}

/* ========== BODY TEXT (serif) ========== */
.body-text {
  margin-bottom: 1.1rem;
}

.body-text p {
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.link-list {
  list-style: none;
  margin: 0.6rem 0 0 0;
}

.link-list li {
  margin-bottom: 0.3rem;
  font-size: 1.02rem;
}

.link-list a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}

/* Notebook note */
.notebook-note p {
  margin-bottom: 0.75rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

/* ========== FOOTER (monospace) ========== */
.footer {
  display: flex;
  gap: 1.4rem;
  font-family: "IBM Plex Mono", "SF Mono", "Menlo", monospace;
  font-size: 0.9rem;
}

.footer a {
  color: var(--text);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a {
  color: var(--link);
}

/* ========== FLOATING PIXEL ICONS ========== */
#float-icons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.float-icon {
  position: absolute;
  width: 82px;
  height: 82px;
  cursor: grab;
  pointer-events: auto;
  user-select: none;
  transition: transform 0.15s ease;
}

.float-icon:active {
  cursor: grabbing;
  transform: scale(1.15);
}

.float-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
  .float-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 1.3rem 1.1rem 1.6rem;
  }
  h1 {
    font-size: 2.8rem;
  }
  .nav-links {
    gap: 0.9rem;
  }
  .avatar {
    width: 54px;
  }
  #float-icons {
    display: none;
  }
}
