/* Philip Rumman — single-page personal site (dark, dracula-inspired) */

:root {
  --bg: #21222c;        /* dracula background, a touch darker */
  --ink: #e4e4e8;       /* soft off-white */
  --muted: #8b8d98;
  --accent: #d48abc;    /* desaturated dracula pink / muted mauve */
  --rule: #343746;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 660px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  animation: fade-in 0.6s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero */

.hero {
  padding-bottom: 2.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.location {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.section h2 {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.section h2 .prompt { color: var(--muted); }

.section p { margin: 0 0 1rem; }
.section p:last-child { margin-bottom: 0; }

/* Contact / footer */

.contact { padding-bottom: 0; }

.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links li { margin-bottom: 0.4rem; }
.links li:last-child { margin-bottom: 0; }

.links a {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.links a:hover { border-bottom-color: var(--accent); }

.copyright {
  margin-top: auto;
  padding-top: 3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Writing list */

.memos-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.memos-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.memos-list li:last-child { margin-bottom: 0; }

.memos-list a {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.memos-list a:hover { border-bottom-color: var(--accent); }

.memos-list .date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Single write-up page */

.backnav { margin-bottom: 2.5rem; }

.backnav a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.backnav a:hover { color: var(--accent); }

.article-header h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}

.article-header .date {
  margin: 0 0 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.article-body p { margin: 0 0 1.25rem; }
.article-body p:last-child { margin-bottom: 0; }

.article-body a {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
  overflow-wrap: anywhere;
}

.article-body a:hover { border-bottom-color: var(--accent); }

.article .contact { margin-top: 3rem; }

/* Mobile */

@media (max-width: 480px) {
  .page { padding: 3.5rem 1.25rem 2.5rem; }
  .hero h1 { font-size: 1.7rem; }
}
