:root {
  --paper: #f6f4ef;
  --white: #fffefa;
  --ink: #252821;
  --muted: #74766d;
  --accent: #bd4b32;
  --line: #deddd5;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

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

.container {
  width: min(1040px, calc(100% - 3rem));
  margin: 0 auto;
}

.eyebrow {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 2rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.main-nav a:hover,
.contact-link:hover,
.site-footer a:hover {
  color: var(--accent);
}

.contact-link {
  color: var(--ink);
  font-size: 0.88rem;
  white-space: nowrap;
}

.contact-link span,
.text-link span {
  color: var(--accent);
}

.intro {
  padding-top: 5.5rem;
  padding-bottom: 4.5rem;
}

.intro h1 {
  font-family: var(--serif);
  font-size: 4.25rem;
  font-weight: 500;
  line-height: 1.12;
}

.intro-text {
  max-width: 470px;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
  padding-bottom: 6rem;
}

.feature-image {
  position: relative;
  display: block;
  aspect-ratio: 1.38;
  overflow: hidden;
  background: #d5d8c7;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-image:hover img {
  transform: scale(1.025);
}

.image-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.55rem;
  background: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.feature-copy h2,
.section-heading h2,
.about-grid h2,
.reading-heading h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
}

.feature-copy h2 {
  margin-bottom: 1rem;
  font-size: 2.6rem;
}

.feature-copy > p:not(.eyebrow) {
  max-width: 360px;
  color: var(--muted);
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.7rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.author-dot {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #ded6c8;
  color: var(--ink);
  font-family: var(--serif);
}

.byline time {
  margin-left: 0.3rem;
}

.writing-section {
  padding: 5rem 0 5.5rem;
  background: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.4rem;
}

.section-heading h2,
.reading-heading h2 {
  font-size: 2.25rem;
}

.post-row {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.post-trigger {
  display: grid;
  grid-template-columns: 140px 1fr 24px;
  gap: 1.5rem;
  align-items: start;
  cursor: pointer;
  list-style: none;
}

.post-trigger::-webkit-details-marker {
  display: none;
}

.post-trigger > time {
  padding-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.post-category {
  margin-bottom: 0.3rem;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.post-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.post-summary,
.post-body {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.post-arrow {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.post-row[open] .post-arrow {
  transform: rotate(45deg);
}

.post-body {
  max-width: 600px;
  margin: 0.9rem 2rem 0 calc(140px + 1.5rem);
}

.about-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.about-grid h2 {
  margin-bottom: 0.8rem;
  font-size: 2rem;
}

.about-grid > div > p {
  max-width: 540px;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.86rem;
}

.reading-section {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.reading-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.reading-heading > p {
  max-width: 270px;
  color: var(--muted);
  font-size: 0.85rem;
}

.reading-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.reading-links a {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.reading-links a span:last-child {
  color: var(--accent);
  font-family: var(--sans);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-wrap a {
  color: var(--ink);
}

@media (max-width: 760px) {
  .featured {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-copy h2 {
    font-size: 2.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 2rem, 520px);
  }

  .nav-wrap {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    padding: 0.7rem 0;
  }

  .brand {
    font-size: 1.25rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
    font-size: 0.78rem;
  }

  .contact-link {
    font-size: 0.78rem;
  }

  .intro {
    padding-top: 3.8rem;
    padding-bottom: 3.2rem;
  }

  .intro h1 {
    font-size: 3rem;
  }

  .featured {
    padding-bottom: 4rem;
  }

  .writing-section,
  .about-section {
    padding: 3.5rem 0;
  }

  .post-trigger {
    grid-template-columns: 1fr 20px;
    gap: 0.3rem 1rem;
  }

  .post-trigger > time {
    grid-column: 1 / -1;
  }

  .post-arrow {
    grid-column: 2;
    grid-row: 2;
  }

  .post-body {
    margin: 0.8rem 1.5rem 0 0;
  }

  .section-heading,
  .reading-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .reading-links {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .reading-section {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .footer-wrap {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
