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

:root {
  --bg: #111111;
  --text: #f0ede8;
  --text-soft: #888880;
  --accent: #f5e642;
  --border: #2a2a2a;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.site {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* Header */
header {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

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

.name-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
}

.name {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
  white-space: nowrap;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.email-stack {
  padding-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
}

.tagline {
  color: var(--accent);
  font-size: 1.25rem;
  font-style: italic;
  white-space: normal;
}

/* Sections */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f0ede8;
  margin-bottom: 0.75rem;
}

/* Contact */
.contact {
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease 0.1s both;
}

.email-line {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.email-line.secondary {
  font-size: 0.875rem;
  color: #777770;
  font-weight: 400;
  font-style: italic;
  word-spacing: 0.25em;
}

.email-line em {
  font-style: italic;
  color: var(--accent);
}

/* Primary email spans */
.email-primary-user {
  color: var(--accent);
}

.email-primary-domain {
  color: #e8a87c;
  font-weight: 500;
}

.email-primary-dot {
  color: #4fc3f7;
}

.email-primary-tld {
  color: #c45a3b;
  font-weight: 500;
}

/* Secondary email spans */
.email-domain {
  color: #e8a87c;
  font-weight: 500;
}

.email-dot {
  color: #4fc3f7;
}

.email-tld {
  color: #c45a3b;
  font-weight: 500;
}

.email-user {
  color: var(--accent);
}

/* Now section */
.now {
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease 0.15s both;
}

.now-content {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--accent);
}

.now-content em {
  color: var(--accent);
  font-style: italic;
}

/* Interests Nav */
.interests-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 2rem;
  width: 100%;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.6s ease both;
}

.interest-item {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f0ede8;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.interest-item:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* About */
.about {
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease 0.25s both;
}

.about-me-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-me-link:hover {
  color: var(--accent);
}

/* Updates/Posts */
.updates {
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease 0.3s both;
}

.all-posts {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.all-posts:hover {
  color: var(--accent);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-soft);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.about-me-entry {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.about-me-entry:last-child {
  margin-bottom: 0;
}

.about-me-loading {
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* I Was entries */
.was-entry {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--accent);
  margin-bottom: 1rem;
}

.was-entry:last-child {
  margin-bottom: 0;
}

/* Entrance animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.was-preamble {
  color: var(--text);
}

.back-link {
  color: var(--accent);
  text-decoration: none;
}

.was-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-link {
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(245, 230, 66, 0.2);
  transition: box-shadow 0.2s ease;
}

.post-link:hover {
  box-shadow: 0 2px 14px rgba(245, 230, 66, 0.4);
}