:root {
  --ink: #17201d;
  --muted: #65716b;
  --paper: #f7f4ec;
  --panel: #ffffff;
  --line: #d9d6cc;
  --forest: #254d3b;
  --moss: #7a8f55;
  --clay: #b05d3d;
  --sky: #d8e7e8;
  --shadow: 0 24px 60px rgba(23, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(247, 244, 236, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 214, 204, 0.78);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.main-nav,
.hero-actions {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 700;
  gap: 10px;
}

.brand-mark {
  background:
    radial-gradient(circle at 55% 35%, var(--sky) 0 22%, transparent 23%),
    linear-gradient(135deg, var(--forest), var(--moss));
  border: 1px solid rgba(23, 32, 29, 0.16);
  border-radius: 50%;
  display: inline-block;
  height: 34px;
  width: 34px;
}

.main-nav {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  gap: clamp(16px, 3vw, 34px);
}

.main-nav a:hover,
.post-card a:hover,
.topic-list a:hover strong,
.download-link:hover {
  color: var(--clay);
}

.hero {
  display: grid;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  place-items: end start;
  position: relative;
}

.hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(18, 27, 24, 0.72), rgba(18, 27, 24, 0.26) 56%, rgba(18, 27, 24, 0.08)),
    linear-gradient(0deg, rgba(247, 244, 236, 0.84), rgba(247, 244, 236, 0) 34%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-content {
  color: #fffdf7;
  max-width: 760px;
  padding: clamp(42px, 8vw, 96px);
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow,
.entry-hero .eyebrow {
  color: #f5c4a8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Lora, Georgia, serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.8rem);
  margin-bottom: 22px;
  max-width: 9ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 0;
}

h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-bottom: 14px;
}

.hero-copy {
  color: rgba(255, 253, 247, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  max-width: 620px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.download-link {
  border-radius: 999px;
  font-weight: 800;
  min-height: 48px;
  padding: 13px 22px;
}

.button.primary,
.download-link {
  background: var(--clay);
  color: #fffdf7;
}


.intro,
.section-wrap,
.topics,
.site-footer {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 40px);
}

.intro {
  align-items: end;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.intro > p {
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1.18;
  margin-bottom: 0;
}

dl {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

dt {
  color: var(--forest);
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

dd {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.post-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 270px;
  padding: clamp(22px, 3vw, 34px);
}

.post-card.featured {
  background: var(--forest);
  color: #fffdf7;
  grid-column: span 2;
}

.post-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.post-card.featured p {
  color: rgba(255, 253, 247, 0.78);
  max-width: 560px;
}

.post-meta {
  color: var(--clay);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 56px;
  text-transform: uppercase;
}

.post-card.featured .post-meta {
  color: #f5c4a8;
}

.image-entry-card {
  min-height: 270px;
  overflow: hidden;
  padding: 0;
}

.image-entry-thumb {
  display: block;
}

.image-entry-thumb img {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  display: block;
  object-fit: cover;
  width: 100%;
}

.image-entry-body {
  padding: clamp(18px, 2.4vw, 28px);
}

.image-entry-body .post-meta {
  margin-bottom: 28px;
}

.image-entry-body h3 {
  margin-bottom: 0;
}


.images-section,
.topics {
  border-top: 1px solid var(--line);
}

.topic-list {
  border-top: 1px solid var(--line);
}

.topic-list a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 24px 0;
}

.topic-list span {
  color: var(--clay);
  font-weight: 800;
}

.topic-list strong {
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1.08;
}

.entry-hero {
  background:
    linear-gradient(135deg, rgba(37, 77, 59, 0.96), rgba(122, 143, 85, 0.82)),
    var(--forest);
  color: #fffdf7;
  padding: clamp(72px, 12vw, 132px) clamp(20px, 5vw, 72px) clamp(64px, 9vw, 108px);
}

.entry-hero-content {
  max-width: 900px;
}

.entry-hero h1 {
  max-width: 11ch;
}

.entry-hero p:not(.eyebrow) {
  color: rgba(255, 253, 247, 0.88);
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  max-width: 720px;
}

.gallery {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
  margin: 0 auto;
  max-width: 1616px;
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 40px);
}

.image-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
  width: fit-content;
}

.image-card img {
  background: var(--sky);
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  width: auto;
}

.image-info {
  padding: clamp(24px, 4vw, 42px);
}

.image-info p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 850px;
}

.image-info h2 {
  margin-bottom: 18px;
}

.usage-note {
  border-left: 4px solid var(--moss);
  margin: 24px 0;
  padding-left: 16px;
}

.download-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.download-link:hover {
  background: var(--forest);
  color: #fffdf7;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding-bottom: 42px;
  padding-top: 28px;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    min-height: 96px;
    padding-bottom: 16px;
    padding-top: 16px;
  }

  .hero {
    min-height: calc(100vh - 96px);
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(18, 27, 24, 0.82), rgba(18, 27, 24, 0.22) 74%, rgba(18, 27, 24, 0.08)),
      linear-gradient(0deg, rgba(247, 244, 236, 0.72), rgba(247, 244, 236, 0) 24%);
  }

  .hero-content {
    padding: 34px 20px 64px;
  }

  h1 {
    max-width: 10ch;
  }

  .intro {
    grid-template-columns: 1fr;
  }

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

  .post-card.featured {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .main-nav {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }

  .hero-actions,
  .button,
  .download-link {
    width: 100%;
  }

  .button {
    text-align: center;
  }

  .topic-list a {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}

.essay-article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: clamp(54px, 8vw, 104px) auto;
  max-width: 880px;
  padding: clamp(28px, 5vw, 56px);
}

.essay-article p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 22px;
}

.essay-article .essay-lede {
  color: var(--ink);
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.22;
}

.essay-article h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 48px 0 18px;
}

.essay-article table {
  border-collapse: collapse;
  color: var(--muted);
  font-size: 1rem;
  margin: 28px 0;
  width: 100%;
}

.essay-article th,
.essay-article td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.essay-article th {
  background: var(--paper);
  color: var(--forest);
  font-family: Lora, Georgia, serif;
  font-size: 1.1rem;
}

.essay-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 clamp(28px, 5vw, 48px);
  overflow: hidden;
}

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

.essay-image figcaption {
  background: var(--paper);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 14px 16px;
}

.essay-image .download-link {
  margin: 0 16px 16px;
}
