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

/* ── TOKENS ── */
:root {
  --bg:       #FAFAF8;
  --ink:      #181614;
  --mid:      #888078;
  --rule:     #E2DDD6;
  --accent:   #B5451B;   /* rust — internal links */
  --ext:      #2D6A8F;   /* slate — external links */
  --visited:  #7A3A6E;   /* plum — visited */
  --max:      680px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.75;
  padding: 3.5rem 2.5rem 7rem;
  max-width: var(--max);
  margin: 0 auto;
}

/* ── LINKS ── */
a             { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:visited     { color: var(--visited); }
a:hover       { text-decoration: none; }
a.ext         { color: var(--ext); }
a.ext:visited { color: var(--visited); }

/* ── SITE NAV ── */
.site-nav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.3rem;
  margin-bottom: 4rem;
  font-size: 13px;
}

.site-nav .home {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: 0.6rem;
}
.site-nav .home:hover { text-decoration: underline; }

.site-nav .sep   { color: var(--rule); }
.site-nav .links { display: flex; gap: 0 1.8rem; list-style: none; margin-left: 0.6rem; flex-wrap: wrap; }
.site-nav .links a { color: var(--mid); text-decoration: none; font-size: 12px; letter-spacing: 0.06em; }
.site-nav .links a:hover { color: var(--ink); }
.site-nav .links a.active { color: var(--ink); }

/* ── HR ── */
hr { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* ── SECTION LABEL ── */
.s-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.2rem;
}

/* ── PAGE TITLE ── */
.page-title {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.page-title em { font-style: italic; }

.page-sub {
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 2.5rem;
}

/* ── PROSE ── */
.prose p {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.93rem;
  line-height: 1.9;
  color: #3A3530;
  margin-bottom: 1rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; }

/* ── ENTRY LIST ── */
.entry-list { list-style: none; }

.entry {
  display: grid;
  grid-template-columns: 3.8rem 1fr;
  gap: 0 1.4rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  align-items: baseline;
}
.entry:first-child { border-top: 1px solid var(--rule); }

.e-year { color: var(--mid); font-size: 12px; padding-top: 0.15rem; }
.e-title {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}
.e-title em { font-style: italic; }
.e-sub  { font-size: 12px; color: var(--mid); line-height: 1.55; }
.e-tag  { font-size: 11px; color: var(--mid); font-style: italic; }

/* ── IMAGE BLOCK ── */
.img-block {
  width: 100%;
  background: #EDEDE8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-block img   { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-block span  { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); }

.img-caption {
  font-size: 11px;
  color: var(--mid);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ── ARROW LINK ── */
.arrow { font-size: 13px; }
.arrow::before { content: '→ '; color: var(--mid); }

/* ── CONTACT LIST ── */
.contact-list { list-style: none; font-size: 13px; }
.contact-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.contact-list li:first-child { border-top: 1px solid var(--rule); }
.contact-list li::before { content: '→ '; color: var(--mid); }

/* ── FOOTER ── */
.site-footer {
  margin-top: 5rem;
  font-size: 12px;
  color: var(--mid);
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.site-footer a { color: var(--mid); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  body { padding: 2rem 1.4rem 5rem; }
  .site-nav { margin-bottom: 2.5rem; }
}
