.editorial-home-page {
  max-width: none;
  padding: 0;
  font-size: 15px;
  line-height: 1.7;
  background: #faf8f4;
  color: #242822;
}
.editorial-home-page.dark-theme { background: #1b211e; color: #e9ede7; }
.editorial-home-page .editorial-home { min-height: 100vh; }
.eh-header, .eh-hero, .eh-section, .eh-shortcuts, .eh-footer, .eh-quote .eh-inner {
  width: min(100% - 48px, 940px);
  margin-inline: auto;
}
.eh-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.eh-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.eh-brand-mark { color: #d8734f; font-size: 32px; line-height: 1; }
.eh-brand strong, .eh-brand small { display: block; line-height: 1.35; }
.eh-brand strong { font-size: 17px; }
.eh-brand small { color: #858a81; font-size: 11px; }
.eh-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.eh-nav a { font-size: 16px; color: #656c63; }
.eh-nav a:hover, .eh-section-heading a:hover { color: #43845b; }
.eh-hero { display: flex; align-items: center; gap: 36px; padding-block: 88px 92px; }
.eh-avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; }
.eh-eyebrow { margin: 0 0 8px; color: #6d9477; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.eh-hero h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 39px); line-height: 1.3; }
.eh-description { margin: 0; color: #6d746b; font-size: 15px; }
.eh-quote { background: #f3f1ed; border-block: 1px solid #eeece7; }
.eh-quote .eh-inner { position: relative; padding-block: 38px 42px; text-align: center; }
.eh-quote-mark { position: absolute; top: 14px; left: 8%; color: #c6d2c4; font-size: 52px; font-family: Georgia, serif; }
.eh-quote blockquote { margin: 0; padding: 0; border: 0; color: #4b554b; font-size: 20px; line-height: 1.8; }
.eh-quote cite { display: block; margin-top: 6px; color: #8b9188; font-size: 12px; font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .eh-quote-mark {
    animation: eh-quote-mark-enter 900ms ease-out both;
  }
  .eh-quote blockquote {
    animation: eh-quote-text-enter 750ms cubic-bezier(.22,.68,.25,1) 150ms both;
  }
  .eh-quote cite {
    animation: eh-quote-text-enter 650ms cubic-bezier(.22,.68,.25,1) 400ms both;
  }
}
@keyframes eh-quote-mark-enter {
  from { opacity: 0; transform: translateY(-9px) rotate(-12deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes eh-quote-text-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
.eh-section { padding-top: 84px; }
.eh-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.eh-section-heading h2 { margin: 0; font-size: 22px; line-height: 1.4; }
.eh-section-heading h2 span { margin-right: 8px; color: #649274; font-weight: 400; }
.eh-section-heading a { color: #777f75; font-size: 13px; white-space: nowrap; }
.eh-post-list { padding: 0; margin: 0; list-style: none; }
.eh-post-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 22px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid #e9e8e2; }
.eh-post-list time, .eh-memo time { color: #7d867a; font-size: 12px; font-variant-numeric: tabular-nums; }
.eh-post-list a { font-size: 16px; font-weight: 500; }
.eh-memo-section { padding-top: 104px; }
.eh-memo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.eh-memo { display: flex; flex-direction: column; min-height: 208px; padding: 23px; border: 1px solid #ecece6; border-radius: 12px; background: #f5f4f0; overflow: hidden; }
.eh-memo:hover { border-color: #aec6b0; background: #eff3ed; }
.eh-memo-content { max-height: 110px; overflow: hidden; margin: 15px 0 12px; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.eh-memo-content > :first-child { margin-top: 0; }
.eh-memo-content p { margin: 0 0 8px; }
.eh-memo-content img, .eh-memo-content video, .eh-memo-content iframe { max-width: 100%; max-height: 80px; object-fit: cover; }
.eh-memo-more { margin-top: auto; color: #5d8d69; font-size: 12px; }
.eh-empty { color: #81877e; }
.eh-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-block: 110px 120px; }
.eh-shortcuts a { display: grid; grid-template-columns: 33px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 20px; background: #f4f3ef; border-radius: 11px; }
.eh-shortcuts a:hover { background: #eaf0e8; }
.eh-shortcuts a > span { grid-row: 1 / 3; color: #60906c; font-size: 22px; }
.eh-shortcuts strong { font-size: 14px; }
.eh-shortcuts small { color: #81877e; font-size: 12px; }
.eh-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 30px 50px; border-top: 1px solid #e9e8e2; color: #81877e; font-size: 12px; }
.editorial-home-page.dark-theme .eh-brand small, .editorial-home-page.dark-theme .eh-nav a, .editorial-home-page.dark-theme .eh-description, .editorial-home-page.dark-theme .eh-section-heading a, .editorial-home-page.dark-theme .eh-post-list time, .editorial-home-page.dark-theme .eh-memo time, .editorial-home-page.dark-theme .eh-shortcuts small, .editorial-home-page.dark-theme .eh-footer { color: #a4afa4; }
.editorial-home-page.dark-theme .eh-quote, .editorial-home-page.dark-theme .eh-memo, .editorial-home-page.dark-theme .eh-shortcuts a { background: #252e28; border-color: #344137; }
.editorial-home-page.dark-theme .eh-quote blockquote { color: #e2e9df; }
.editorial-home-page.dark-theme .eh-post-list li, .editorial-home-page.dark-theme .eh-footer { border-color: #344137; }
.editorial-home-page.dark-theme a { color: #e9ede7; }
.editorial-home-page.dark-theme .eh-memo-more { color: #9cc8a2; }
@media (max-width: 680px) {
  .eh-header { align-items: flex-start; flex-direction: column; gap: 17px; padding-block: 22px; }
  .eh-nav { justify-content: flex-start; gap: 8px 18px; }
  .eh-nav a { font-size: 15px; }
  .eh-hero { gap: 20px; padding-block: 68px; }
  .eh-avatar { width: 76px; height: 76px; }
  .eh-quote blockquote { font-size: 17px; }
  .eh-section { padding-top: 66px; }
  .eh-memo-grid, .eh-shortcuts { grid-template-columns: 1fr; }
  .eh-memo { min-height: 160px; }
  .eh-shortcuts { padding-block: 76px; }
}
@media (max-width: 420px) {
  .eh-header, .eh-hero, .eh-section, .eh-shortcuts, .eh-footer, .eh-quote .eh-inner { width: min(100% - 32px, 940px); }
  .eh-hero { align-items: flex-start; flex-direction: column; }
  .eh-post-list li { grid-template-columns: 1fr; gap: 2px; }
  .eh-footer { flex-direction: column; gap: 6px; }
}

/* Shared site palette and persistent navigation. */
html { background: #faf8f4; overflow-y: scroll; scrollbar-gutter: stable; }
html:has(body.dark-theme) { background: #1b211e; }
body { overflow-x: clip; }
body:not(.editorial-home-page) {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  --prose-bg-page: #faf8f4;
  --prose-bg-write: #faf8f4;
  --prose-bg-soft: #f3f1ed;
  --prose-bg-quote: #f3f1ed;
  --prose-fg-main: #242822;
  --prose-fg-muted: #6d746b;
  --prose-fg-heading: #242822;
  --prose-accent: #649274;
  --prose-accent-deep: #43845b;
  --prose-accent-soft: #aec6b0;
  background: #faf8f4;
  color: #242822;
}
body.moments-page:not(.editorial-home-page) { max-width: none; }
body.dark-theme:not(.editorial-home-page) {
  --prose-bg-page: #1b211e;
  --prose-bg-write: #1b211e;
  --prose-bg-soft: #252e28;
  --prose-bg-quote: #252e28;
  --prose-fg-main: #e9ede7;
  --prose-fg-muted: #a4afa4;
  --prose-fg-heading: #e9ede7;
  --prose-accent: #9cc8a2;
  --prose-accent-deep: #b5dab9;
  --prose-accent-soft: #54745b;
  background: #1b211e;
  color: #e9ede7;
}
body:not(.editorial-home-page) > :is(.mod-post, .mod-archive, .section-body) {
  width: min(100% - 48px, 940px);
  margin-inline: auto;
  margin-bottom: 80px;
}
body:not(.editorial-home-page) .section-body > .mod-archive {
  width: 100%;
}
body:not(.editorial-home-page) > #comments {
  width: min(100% - 48px, 940px);
  margin: 0 auto 80px;
}
body:not(.editorial-home-page) > .eh-footer {
  margin-top: auto;
}
body.archives-page .section-header h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.4;
  margin: 24px 0 32px;
}
body .eh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 80px;
  margin: 0 auto;
  padding: 12px max(24px, calc((100% - 940px) / 2));
  background: #faf8f4;
  border-bottom: 1px solid #eeece7;
}
body.dark-theme .eh-header { background: #1b211e; border-color: #344137; }
body .eh-brand { color: #242822; }
body.dark-theme .eh-brand { color: #e9ede7; }
body .eh-nav a { color: #656c63; }
body.dark-theme .eh-nav a { color: #a4afa4; }
body .eh-nav a:hover, body.dark-theme .eh-nav a:hover { color: #649274; }
.eh-theme-switch { display: flex; align-items: center; flex: none; }
.eh-theme-switch button {
  border: 0;
  background: transparent;
  color: #6d746b;
  font: 20px/1 sans-serif;
  cursor: pointer;
  padding: 5px;
}
.eh-theme-switch button:hover { color: #43845b; }
.eh-theme-switch #theme-toggle-moon { display: none; }
body.dark-theme .eh-theme-switch button { color: #b5dab9; }
body:not(.editorial-home-page) .mod-post,
body:not(.editorial-home-page) .mod-archive,
body:not(.editorial-home-page) .section-body { margin-top: 46px; }
@media (max-width: 680px) {
  body .eh-header { width: 100%; min-height: 0; padding-inline: 16px; }
  body:not(.editorial-home-page) > :is(.mod-post, .mod-archive, .section-body, #comments) {
    width: calc(100% - 32px);
  }
  body:not(.editorial-home-page) .mod-post,
  body:not(.editorial-home-page) .mod-archive,
  body:not(.editorial-home-page) .section-body { margin-top: 28px; }
}

