@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500&display=swap');

:root {
  --paper: #FAFAF7;
  --ink: #1E1E1B;
  --muted: #5C5C56;
  --accent: #3F5B4D;
  --line: #DDDBD2;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --measure: 640px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 28px 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

nav.site-nav {
  display: flex;
  gap: 22px;
}

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

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

/* Main content spacing */
main {
  padding: 56px 0 40px;
}

main.narrow .wrap { max-width: var(--measure); }

/* Hero / intro */
.intro h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.3;
  margin: 0 0 20px;
  max-width: 15ch;
}

.intro p {
  font-size: 18px;
  color: var(--ink);
  max-width: 58ch;
}

.intro p.byline {
  color: var(--muted);
  font-size: 15px;
  margin-top: -6px;
}

.reduced-motion-fade {
  animation: fadeUp 0.6s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .reduced-motion-fade { animation: none; }
}

/* Section headings */
.section-heading {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 64px 0 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

main .section-heading:first-child,
.intro + .section-heading {
  border-top: none;
  padding-top: 0;
  margin-top: 48px;
}

/* Post list (blog index + home preview) */
ul.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.post-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

ul.post-list li:first-child { padding-top: 0; }

.post-list .post-title {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 6px;
}

.post-list .post-title:hover { color: var(--accent); }

.post-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.post-excerpt {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 56ch;
}

.see-all {
  display: inline-block;
  margin-top: 28px;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.gallery-caption {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
}

@media (min-width: 620px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Single post page */
.post-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
}

.post-body p { margin: 0 0 22px; }

.post-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.3;
  margin: 0 0 12px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 36px;
}

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

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

footer.site-footer a {
  color: var(--muted);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  main { padding: 40px 0 32px; }
}
