* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #F7F8FA;
  color: #1C222B;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease, opacity .15s ease; }
a:hover { border-bottom-color: var(--accent); }

/* header / footer, shared across every page */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 64px 32px;
  max-width: 1180px; margin: 0 auto;
}
.brand { font-size: 1.05rem; font-weight: 500; letter-spacing: .01em; color: #1C222B; border-bottom: none; }
.brand:hover { border-bottom: none; opacity: .7; }
nav.links { display: flex; gap: 32px; }
nav.links a { font-size: .92rem; font-weight: 500; letter-spacing: .01em; color: #4B5563; }
nav.links a.active { color: #1C222B; }
nav.links a:hover { color: #1C222B; }

footer.site {
  max-width: 1180px; margin: 0 auto; padding: 48px 64px 64px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #E4E7EC; margin-top: 24px;
  font-size: .85rem; color: #8A93A3;
}
footer.site a { color: #8A93A3; }
footer.site a:hover { color: #1C222B; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 64px; }

/* homepage hero */
.hero { padding: 24px 0 72px; border-bottom: 1px solid #E4E7EC; }
.hero h1 {
  font-weight: 200; font-size: clamp(2.4rem, 1.9rem + 2vw, 3.6rem);
  line-height: 1.08; letter-spacing: -.01em; margin: 0 0 20px; max-width: 15ch;
}
.hero p.lede { font-size: 1.15rem; font-weight: 300; line-height: 1.65; color: #4B5563; max-width: 46ch; margin: 0; }

.section-label {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #8A93A3; margin: 0 0 28px;
}

/* homepage post list */
.posts { padding: 64px 0; display: flex; flex-direction: column; }
.post-row {
  display: grid; grid-template-columns: 120px 1fr 160px; gap: 32px; align-items: start;
  padding: 32px 0; border-bottom: 1px solid #E4E7EC;
}
.post-row:first-child { padding-top: 0; }
.post-row .date { font-size: .85rem; color: #8A93A3; font-weight: 500; padding-top: 4px; white-space: nowrap; }
.post-row .body h2 { font-size: 1.5rem; font-weight: 400; margin: 0 0 10px; letter-spacing: -.005em; }
.post-row .body h2 a { color: #1C222B; }
.post-row .body h2 a:hover { color: var(--accent); border-bottom-color: transparent; }
.post-row .body p { font-size: 1rem; font-weight: 300; line-height: 1.6; color: #4B5563; margin: 0; max-width: 58ch; }
.post-row .tag { font-size: .78rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-top: 12px; display: inline-block; }
.thumb { width: 160px; height: 110px; border-radius: 2px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.view-archive { padding: 8px 0 8px; font-weight: 500; font-size: .95rem; }

/* archive page */
.page-head { padding: 24px 0 56px; border-bottom: 1px solid #E4E7EC; }
.page-head h1 { font-weight: 200; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); margin: 0 0 10px; letter-spacing: -.01em; }
.page-head p { font-size: 1rem; color: #8A93A3; margin: 0; font-weight: 400; }

.year-group { padding: 56px 0 0; }
.year-group:last-child { padding-bottom: 56px; }
.year-label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: #8A93A3; margin: 0 0 4px; }

.entry {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid #EEF0F3;
}
.entry .date { font-size: .85rem; color: #8A93A3; font-weight: 500; white-space: nowrap; }
.entry .title a { font-size: 1.08rem; font-weight: 400; color: #1C222B; }
.entry .title a:hover { color: var(--accent); border-bottom-color: transparent; }
.entry .tag { font-size: .75rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); text-align: right; white-space: nowrap; }

/* article (post) */
article { max-width: 680px; margin: 0 auto; padding: 24px 64px 96px; }
article.wide { max-width: 900px; }
.prose-col { max-width: 640px; }

.art-head { padding-bottom: 48px; border-bottom: 1px solid #E4E7EC; margin-bottom: 48px; }
.tag-label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.art-head h1 {
  font-weight: 200; font-size: clamp(2.1rem, 1.7rem + 1.6vw, 3rem);
  line-height: 1.12; letter-spacing: -.01em; margin: 16px 0 20px; max-width: 20ch;
}
.meta { font-size: .9rem; color: #8A93A3; font-weight: 500; }

.prose p {
  font-size: 1.15rem; font-weight: 300; line-height: 1.75; color: #2A313D;
  margin: 0 0 28px;
}
.prose h2 {
  font-weight: 400; font-size: 1.5rem; letter-spacing: -.005em;
  margin: 56px 0 20px;
}
blockquote {
  margin: 44px 0; padding-left: 28px; border-left: 2px solid var(--accent);
  font-size: 1.35rem; font-weight: 300; font-style: italic; line-height: 1.55; color: #1C222B;
}

/* photo-essay figures */
figure { margin: 48px 0; }
figcaption {
  font-size: .85rem; color: #8A93A3; font-weight: 400; margin-top: 12px;
  display: flex; justify-content: space-between; gap: 16px;
}
figcaption .num { color: #B7BFCB; font-weight: 500; }

.ph { width: 100%; display: block; border-radius: 2px; object-fit: cover; }
.full { aspect-ratio: 16/9; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 .ph { aspect-ratio: 4/5; }
.tall { aspect-ratio: 3/4; max-width: 520px; margin: 48px auto; display: block; }

.art-foot { margin-top: 64px; padding-top: 32px; border-top: 1px solid #E4E7EC; }
.prevnext { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; }
.prevnext a { font-size: .9rem; color: #4B5563; max-width: 40%; }
.prevnext .next { text-align: right; }
.prevnext .label { display: block; font-size: .75rem; color: #8A93A3; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }

@media (max-width: 900px) {
  header.site, .wrap, footer.site { padding-left: 28px; padding-right: 28px; }
  .post-row { grid-template-columns: 1fr; gap: 12px; }
  .post-row .date { padding-top: 0; }
  .thumb { width: 100%; height: 180px; }
}

@media (max-width: 820px) {
  article, article.wide { padding-left: 24px; padding-right: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .prose p { font-size: 1.05rem; }
}

@media (max-width: 700px) {
  .entry { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .entry .tag { text-align: left; }
}
