:root {
  --cream: #fdf8ef;
  --sage: #e0ded0;
  --olive: #413f2c;
  --olive-soft: #5c5a45;
  --text: #2b2a20;
  --max: 1100px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Avenir", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--olive); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--olive);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.5rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid rgba(65, 63, 44, 0.12);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--olive);
  text-decoration: none;
  font-weight: 400;
}
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.btn {
  display: inline-block;
  background: var(--olive);
  color: var(--cream);
  padding: 10px 22px;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--olive);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--olive); }
.site-nav .btn:hover { text-decoration: none; }

/* Sections */
section { padding: 72px 0; }
.section-sage { background: var(--sage); }
.center { text-align: center; }
.lede { max-width: 720px; margin: 0 auto; }
.eyebrow { font-family: var(--serif); font-size: 1.4rem; color: var(--olive); margin: 0 0 0.75em; }

.hero-image {
  width: 100%;
  height: clamp(280px, 55vw, 620px);
  object-fit: cover;
}

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.two-up img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

.features { display: grid; gap: 56px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature:nth-child(even) .feature-media { order: 2; }

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--olive);
}

.explore {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.explore img { width: 100%; object-fit: cover; }
.explore .tall { aspect-ratio: 9 / 11; }
.explore .wide { aspect-ratio: 14 / 11; }

.cta {
  position: relative;
  color: var(--cream);
  padding: 120px 0;
  background: var(--olive) url("../images/cta-bg.jpg") center / cover no-repeat;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(43, 42, 32, 0.6);
}
.cta .container { position: relative; }
.cta h2 { color: var(--cream); }
.cta .btn { background: var(--cream); color: var(--olive); border-color: var(--cream); }
.cta .btn:hover { background: transparent; color: var(--cream); }

/* Our Work */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.project img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.project h2 { margin-top: 0.75em; font-size: 1.6rem; }

dialog.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
}
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
dialog.lightbox img { max-width: 95vw; max-height: 90vh; width: auto; cursor: zoom-out; }

/* Blog */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; }
.post-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  padding: 20px;
}
.post-card:hover h2 { text-decoration: underline; }
.post-card h2 { font-size: 1.6rem; margin-bottom: 0.25em; }
.meta { font-size: 0.9rem; color: var(--olive-soft); margin: 0 0 0.5em; }

.post { max-width: 720px; margin: 0 auto; }
.post figure { margin: 32px 0; }
.post figure img { margin: 0 auto; }
.back { display: inline-block; margin-bottom: 24px; }

/* Footer */
.site-footer {
  background: var(--olive);
  color: var(--cream);
  padding: 56px 0 32px;
}
.site-footer h2 { color: var(--cream); font-size: 1.6rem; }
.site-footer a { color: var(--cream); }
.site-footer p { margin: 0.25em 0; }
.copyright { margin-top: 32px !important; font-size: 0.85rem; opacity: 0.8; }

@media (max-width: 760px) {
  section { padding: 48px 0; }
  .site-header .container { justify-content: center; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { gap: 16px; justify-content: center; }
  .two-up, .feature, .projects, .explore { grid-template-columns: 1fr; }
  .feature { gap: 20px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .explore .tall, .explore .wide { aspect-ratio: 4 / 3; }
  .post-card { grid-template-columns: 1fr; }
}
