:root {
  color: #23211e;
  background: #fbfaf7;
  font-family:
    "Noto Serif SC", "Songti SC", "SimSun", "STSong", Georgia, serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #25221f;
  --muted: #746f67;
  --soft: #f1eee8;
  --line: #e6e0d6;
  --accent: #b08a3d;
  --surface: #fffdf9;
  --max: 1216px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body,
button {
  font-family:
    "Noto Serif SC", "Songti SC", "SimSun", "STSong", Georgia, serif;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.9) 32%, rgba(251, 250, 247, 0) 55%),
    #fbfaf7;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 72px));
  height: 68px;
  margin: 0 auto;
  background: rgba(251, 250, 247, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 46px;
  color: #45413b;
  font-size: 16px;
}

.nav a {
  position: relative;
  padding: 23px 0;
}

.nav a:first-child::after,
.nav a:hover::after,
.nav a:focus-visible::after {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  align-items: center;
  min-height: 340px;
  margin-top: 0;
}

.hero-copy {
  z-index: 2;
  width: min(460px, calc(100% - 72px));
  margin-left: max(36px, calc((100vw - var(--max)) / 2));
  padding: 70px 0 58px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.4;
}

.eyebrow {
  text-transform: lowercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 420px;
  margin: 0;
  color: #4f4a43;
  font-size: 17px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.short-rule {
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 28px;
  background: var(--accent);
}

.hero-image-wrap {
  align-self: stretch;
  min-height: 340px;
  overflow: hidden;
}

.hero-image-wrap img {
  object-position: center 46%;
  filter: saturate(0.9) contrast(0.96) brightness(1.05);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 68px;
  width: min(var(--max), calc(100% - 72px));
  margin: 22px auto 0;
  padding: 0 0 54px;
}

.featured-essay {
  display: grid;
  grid-template-columns: 326px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  margin: 0 0 34px;
}

.featured-image {
  height: 176px;
  overflow: hidden;
  border-radius: 4px;
}

.featured-image img {
  object-position: 36% 54%;
}

.featured-copy h2,
.section-heading h2,
.about-panel h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
}

.featured-copy h2 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.35;
}

.featured-copy p:not(.section-kicker),
.about-panel p {
  color: #5f5a52;
  font-size: 15px;
  line-height: 1.9;
}

.featured-copy p:not(.section-kicker) {
  max-width: 560px;
  margin: 0 0 14px;
}

time {
  color: #9b958b;
  font-size: 14px;
  white-space: nowrap;
}

.section-heading {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  font-size: 19px;
}

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

.post-row {
  display: grid;
  grid-template-columns: 12px minmax(170px, 1fr) minmax(260px, 1.4fr) 96px;
  gap: 14px;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.post-row:last-child {
  border-bottom: 0;
}

.post-row:hover,
.post-row:focus-visible {
  background: rgba(176, 138, 61, 0.06);
  transform: translateX(4px);
  outline: 0;
}

.row-marker {
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.post-row h3 {
  margin: 0;
  color: #312e2a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.post-row p {
  margin: 0;
  color: #746f67;
  font-size: 14px;
  line-height: 1.7;
}

.read-more {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  color: #9b958b;
  font-size: 15px;
}

.read-more span {
  margin-left: 8px;
}

.about-panel {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.side-section + .side-section {
  margin-top: 38px;
}

.about-panel .section-kicker {
  position: relative;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
}

.about-panel .section-kicker::after {
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 10px;
  content: "";
  background: var(--accent);
}

.about-panel h2 {
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.5;
}

.about-image {
  height: 158px;
  margin-bottom: 22px;
  overflow: hidden;
}

.about-image img {
  object-position: 54% 62%;
}

.about-panel p {
  margin: 0 0 10px;
}

.signature {
  padding-top: 16px;
  color: var(--ink) !important;
  font-size: 20px !important;
  text-align: right;
}

.archive a {
  display: block;
  padding: 9px 0;
  color: #69645d;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

footer {
  width: min(var(--max), calc(100% - 72px));
  margin: 0 auto;
  padding: 20px 0 30px;
  color: #a39d93;
  font-size: 14px;
  text-align: center;
}

footer p {
  margin: 0;
}

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

footer a:hover,
footer a:focus-visible {
  color: var(--accent);
}

.article-shell {
  width: min(760px, calc(100% - 72px));
  margin: 0 auto;
  padding: 54px 0 78px;
}

.article-hero {
  margin-bottom: 34px;
}

.article-hero .section-kicker {
  margin-bottom: 14px;
}

.article-hero h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #9b958b;
  font-size: 14px;
}

.article-cover {
  height: 280px;
  margin: 28px 0 34px;
  overflow: hidden;
  border-radius: 4px;
}

.article-cover img {
  object-position: center 54%;
}

.article-body {
  color: #4f4a43;
  font-size: 17px;
  line-height: 2.05;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  color: #6d675f;
  border-left: 2px solid var(--accent);
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-footer a {
  color: #5b554c;
  font-size: 15px;
}

.article-footer a:hover,
.article-footer a:focus-visible {
  color: var(--accent);
}

@media (max-width: 960px) {
  .topbar {
    width: min(calc(100% - 40px), var(--max));
  }

  .nav {
    gap: 28px;
  }

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

  .hero-copy {
    width: min(calc(100% - 40px), 640px);
    margin: 0 auto;
    padding: 50px 0 32px;
  }

  .hero-image-wrap {
    min-height: 260px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    width: min(calc(100% - 40px), 760px);
    margin-top: 30px;
  }

  .about-panel {
    padding: 30px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 62px;
  }

  .brand {
    font-size: 20px;
  }

  .menu-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
  }

  .menu-button span {
    position: absolute;
    top: 14px;
    left: 10px;
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-button span + span {
    top: 27px;
    margin-top: 0;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(5px) rotate(34deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-5px) rotate(-34deg);
  }

  .nav {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 8px 0 14px;
    visibility: hidden;
    background: rgba(251, 250, 247, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .nav-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav a {
    padding: 12px 2px;
  }

  .nav a::after {
    display: none;
  }

  .hero-copy {
    width: min(calc(100% - 32px), 640px);
    padding-top: 38px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p:not(.eyebrow) {
    max-width: 21em;
    font-size: 16px;
    word-break: break-all;
  }

  .hero-image-wrap {
    min-height: 210px;
  }

  .content-grid {
    width: min(calc(100% - 32px), 760px);
    margin-top: 24px;
  }

  .featured-essay {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .featured-image {
    height: 190px;
  }

  .post-row {
    grid-template-columns: 12px 1fr;
    gap: 8px 12px;
    padding: 14px 0;
  }

  .post-row p,
  .post-row time {
    grid-column: 2;
  }

  .post-row time {
    justify-self: start;
  }

  footer {
    width: min(calc(100% - 32px), 760px);
  }

  .article-shell {
    width: min(calc(100% - 32px), 760px);
    padding: 36px 0 58px;
  }

  .article-cover {
    height: 210px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.95;
  }

  .article-footer {
    display: grid;
  }
}
