:root {
  --bg: #fbfaf7;
  --ink: #1a2238;
  --muted: #5b6275;
  --accent: #1f3a6e;
  --rule: #e4e1d8;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.65;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  padding: 3.5rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.name {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
}

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

nav {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 1.05rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

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

nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

main { padding: 2.5rem 0 4rem; }

h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
}

p { margin: 0 0 1.1rem; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.note { color: var(--muted); font-style: italic; }

footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  body { font-size: 1.1rem; }
  header { padding-top: 2.25rem; }
  .name { font-size: 1.6rem; }
  nav { gap: 1.1rem; }
}

/* ---------- Writing ---------- */

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

.post-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-list li:first-child { padding-top: 0; }

.post-list a {
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
}
.post-list a:hover { color: var(--accent); }

.post-list time,
.meta {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-list p { margin: 0.35rem 0 0; }

article h1 { margin-bottom: 0.25rem; }
.meta { margin: 0 0 1.75rem; }

.prose h2 { font-size: 1.3rem; font-weight: 500; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.15rem; font-weight: 500; margin: 1.5rem 0 0.5rem; }
.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}
.prose img { max-width: 100%; height: auto; }

.back { margin-top: 2.5rem; }
.back a { text-decoration: none; }

/* ---------- Photography ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.gallery figure { margin: 0; }

.gallery a { display: block; }

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--rule);
}

.gallery figcaption {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
}
.lightbox::backdrop { background: rgba(251, 250, 247, 0.96); }
.lightbox img {
  display: block;
  max-width: 95vw;
  max-height: 85vh;
  height: auto;
  margin: 0 auto;
}
.lightbox-caption {
  text-align: center;
  color: var(--muted);
  margin: 0.6rem 0 0;
}
.lightbox-close {
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}
