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

:root {
  --bg: #ece6df;
  --paper: #f6f1ea;
  --ink: #4b3f33;
  --muted: #8d8275;
  --line: #d7cdc0;
  --accent: #5b4633;
  --mark: #c76b18;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #efe8e0 0%, var(--bg) 22%, var(--bg) 100%);
  font-family: "Source Sans 3", "Avenir Next", "Gill Sans", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.13em; }

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

.site-header {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in hsl, var(--paper), white 25%);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

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

.site-nav a {
  color: var(--accent);
  font-weight: 600;
  padding: 0.2rem 0;
  border-bottom: 3px solid transparent;
}

.site-nav a.is-active {
  border-color: var(--accent);
}

main.shell {
  padding: 2rem 0 2.8rem;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.16;
}

.meta {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
  font-weight: 600;
}

.post-image {
  margin: 0;
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
  background: #dfd7ca;
}

.post-image figcaption {
  margin-top: 0.42rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1.4rem;
}

.feed-column.side {
  display: grid;
  gap: 1.2rem;
}

.feed-card {
  padding: 0.2rem;
}

.feed-card h2,
.feed-card h1 {
  margin-top: 0.72rem;
  margin-bottom: 0.44rem;
}

.feed-card h1 {
  font-size: clamp(2rem, 4.1vw, 3.25rem);
  text-align: center;
}

.hero-card .meta,
.hero-card .hero-summary {
  text-align: center;
}

.hero-summary {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.65rem;
  line-height: 1.23;
}

.side-card h2 {
  font-size: clamp(1.18rem, 2.2vw, 1.78rem);
}

.side-card p {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.03rem;
}

.card-image img,
.hero-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.archive-wrap h1 {
  margin-bottom: 1rem;
}

.archive-list {
  display: grid;
}

.archive-month {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
  color: var(--mark);
  letter-spacing: 0.06em;
}

.archive-row {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 250px);
  gap: 1.4rem;
  align-items: center;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.archive-copy h3 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 0.3rem;
}

.archive-copy p {
  margin-top: 0;
  margin-bottom: 0.46rem;
  font-size: 2rem;
}

.archive-media {
  justify-self: end;
  width: min(250px, 100%);
}

.archive-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.single {
  max-width: 960px;
  margin: 0 auto;
}

.single h1 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  margin-bottom: 0.35rem;
}

.post-gallery {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.post-body {
  margin-top: 1.2rem;
  font-size: 1.26rem;
}

input[type="search"] {
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.64rem 0.72rem;
  font: inherit;
  background: color-mix(in hsl, var(--paper), white 35%);
}

.results {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.results li {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

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

@media (max-width: 1080px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

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

  .hero-card { order: -1; }
}

@media (max-width: 780px) {
  .site-header .shell {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-summary { font-size: 1.28rem; }

  .archive-row {
    grid-template-columns: 1fr;
  }

  .archive-media {
    justify-self: start;
    width: 100%;
  }

  .archive-copy h3 { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .archive-copy p { font-size: 1.35rem; }
}
