:root {
  --cream: #f5f2ec;
  --crimson: #8b1a1a;
  --ink: #0d0d0d;
  --muted: #888;
  --rule: #dddbd7;
}

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

html {
  font-size: 18px;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 620px;
  margin: 0 auto;
  padding: 80px 32px 80px;
  animation: appear 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Header ── */

header {
  margin-bottom: 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--crimson);
}

.header-photo {
  width: 154px;
  height: 154px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.social {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.social a {
  color: var(--crimson);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.social a:hover {
  color: var(--ink);
}

.social svg {
  width: 23px;
  height: 23px;
}

.social a:nth-child(3) svg {
  width: 28px;
  height: 28px;
}

.rule {
  height: 1px;
  background: var(--ink);
}

/* ── Sections ── */

section {
  margin-bottom: 48px;
}

h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-bottom: 22px;
}

.entry {
  margin-bottom: 26px;
}

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

h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--crimson);
  margin-bottom: 6px;
  line-height: 1.4;
}

p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: var(--ink);
}

h3 a {
  color: var(--crimson);
  text-decoration-color: rgba(139, 26, 26, 0.3);
}

h3 a:hover {
  text-decoration-color: var(--crimson);
}

.links {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.links a {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.links a:hover {
  color: var(--ink);
}

/* ── Footer ── */

footer {
  margin-top: 64px;
}

.footer-inner {
  padding-top: 32px;
}

/* ── Mobile ── */

@media (max-width: 480px) {
  .container {
    padding: 48px 24px 64px;
  }
}
