:root {
  --ink: #17201b;
  --muted: #647067;
  --paper: #f7f3ea;
  --paper-deep: #ebe2d0;
  --clay: #a45135;
  --moss: #3d6b57;
  --gold: #d7a642;
  --line: rgba(23, 32, 27, 0.14);
  --shadow: 0 24px 80px rgba(37, 30, 18, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(215, 166, 66, 0.16), transparent 26rem),
    linear-gradient(135deg, var(--paper) 0%, #fbfaf5 48%, var(--paper-deep) 100%);
  color: var(--ink);
  font-family: "Palatino Linotype", "Book Antiqua", "Noto Serif SC", Georgia, serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(23, 32, 27, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 27, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 234, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
}

.site-nav {
  gap: clamp(1rem, 3vw, 2.25rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--clay);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.25rem auto;
  background: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.82fr);
  gap: clamp(2rem, 6vw, 6rem);
  min-height: calc(100vh - 5rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 4rem) 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--clay);
  font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.35rem;
  font-size: clamp(3.4rem, 8vw, 7.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.2;
}

.hero-text {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button,
.subscribe-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.3rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.subscribe-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 32, 27, 0.12);
}

.button.primary,
.subscribe-form button {
  background: var(--ink);
  color: var(--paper);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.42);
}

.hero-media {
  position: relative;
  min-height: 35rem;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(23, 32, 27, 0.58));
}

.hero-media figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: #fff8e9;
  font-size: 0.85rem;
}

.stats,
.section,
.subscribe,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-size: 2.3rem;
  line-height: 1;
}

.stats span,
.post-meta,
.note time {
  color: var(--muted);
  font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
  font-size: 0.92rem;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0 0;
}

.section-heading {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.post-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.post-card {
  min-height: 18rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 244, 0.72);
  box-shadow: 0 14px 44px rgba(37, 30, 18, 0.08);
}

.post-card.large {
  grid-row: span 2;
  min-height: 37rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(23, 32, 27, 0.04), rgba(23, 32, 27, 0.86)),
    url("https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=1200&q=82") center/cover;
  color: #fff8e9;
}

.post-card.large .post-meta,
.post-card.large p {
  color: rgba(255, 248, 233, 0.82);
}

.post-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--clay);
  font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
  font-weight: 800;
}

.post-card.large a {
  color: var(--gold);
}

.split {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

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

.note {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.note p {
  margin-bottom: 0;
  font-size: 1.18rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(16rem, 0.86fr) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

.tags {
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tags span {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--moss);
  font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.subscribe {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 0.85fr);
  gap: 2rem;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.subscribe p {
  color: rgba(247, 243, 234, 0.74);
}

.subscribe .eyebrow {
  color: var(--gold);
}

.subscribe-form {
  display: grid;
  align-content: center;
  gap: 0.75rem;
}

.subscribe-form input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0 1rem;
  border: 1px solid rgba(247, 243, 234, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  font: inherit;
}

.subscribe-form input::placeholder {
  color: rgba(247, 243, 234, 0.58);
}

.subscribe-form button {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.form-message {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.92rem;
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--clay);
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(247, 243, 234, 0.96);
    box-shadow: 0 18px 44px rgba(37, 30, 18, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .post-grid,
  .split,
  .about,
  .subscribe {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.1rem, 16vw, 5.25rem);
  }

  .hero-media {
    min-height: 24rem;
  }

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

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .post-card.large {
    min-height: 25rem;
  }

  .note {
    grid-template-columns: 4rem 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 1rem;
  }

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

  .hero-media {
    min-height: 18rem;
  }

  .subscribe {
    width: calc(100% - 1rem);
  }
}
