:root {
  --bg: #f3efe6;
  --paper: #fbf8f2;
  --text: #1e1f1c;
  --muted: #6a6c65;
  --line: #d6cfbe;
  --accent: #24584b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: #f7f7f8;
  line-height: 1.55;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  width: 100%;
  display: block;
}

.container {
  width: min(1240px, 94vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid #1f1f1f;
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(6px);
  background: #000;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #cfcfcf;
  font-size: 2rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: #cfcfcf;
}

.site-nav a:hover,
.brand:hover {
  color: #e0e0e0;
}

main {
  padding: 2rem 0 2.8rem;
}

.hero {
  margin-bottom: 1.6rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.5rem;
}

.post-feed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
}

.post-link {
  text-decoration: none;
  display: block;
}

.post-link img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.post-link .meta,
.post-link h2,
.post-link p {
  padding-inline: 0.85rem;
}

.post-link .meta {
  padding-top: 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.post-link h2 {
  margin: 0.45rem 0;
  font-size: 1.12rem;
}

.post-link p:last-child {
  padding-bottom: 0.9rem;
  color: #373932;
}

.about {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap a {
  color: var(--muted);
  text-decoration: none;
}

.post-single {
  width: min(88vw, 1700px);
  margin: 2rem auto 3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.2rem;
  font-size: 1.62rem;
  line-height: 1.72;
}

.post-single .meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
}

.post-single h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 0.9rem;
}

.post-single .post-cover {
  margin: 0.9rem 0 1rem;
  border: 1px solid var(--line);
}

.post-single p + p {
  margin-top: 0.8rem;
}

@media (max-width: 1080px) {
  .post-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .post-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-single {
    width: 94vw;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .post-feed {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
  }
}

/* Homepage: make the 4-post rows use nearly full viewport width with small margins. */
.home-page .container {
  width: min(1800px, 98vw);
}

.home-page .post-feed {
  gap: 0.8rem;
}


.sources {
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: #4f514c;
}

.sources-title {
  font-family: "Manrope", sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: #62645e;
}

.sources ul {
  margin: 0;
  padding-left: 1.1rem;
}

.sources li + li {
  margin-top: 0.35rem;
}

.source-label {
  font-style: italic;
  color: #666962;
}

.sources a {
  color: #35546d;
}

.post-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(280px, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.post-main {
  min-width: 0;
}

.post-recent {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.post-recent-title {
  margin: 0 0 0.55rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5d6059;
}

.post-recent-list {
  display: grid;
  gap: 0.65rem;
}

.post-recent-item {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
}

.post-recent-item .meta,
.post-recent-item h3 {
  padding-inline: 0.65rem;
}

.post-recent-item .meta {
  padding-top: 0.5rem;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.post-recent-item h3 {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  margin: 0.35rem 0 0.6rem;
  line-height: 1.28;
}

@media (max-width: 1200px) {
  .post-detail-grid {
    grid-template-columns: 1fr;
  }

  .post-recent {
    max-width: 620px;
  }
}

/* Align header edges with article cover on detail pages */
body:not(.home-page) .site-header .container {
  width: min(88vw, 1700px);
}

.archive-full {
  display: grid;
  gap: 1.25rem;
}

.archive-post {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem;
  font-size: 1.06rem;
  line-height: 1.7;
}

.archive-post .meta {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.archive-post h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  margin: 0.45rem 0 0.7rem;
}

.archive-post h2 a {
  text-decoration: none;
}

.archive-post .archive-cover {
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
  max-height: 65vh;
  object-fit: cover;
}

.archive-post p + p {
  margin-top: 0.7rem;
}

.archive-post .sources {
  margin-top: 0.95rem;
}
