:root {
  --ink: #161616;
  --muted: #6b6b6b;
  --line: rgba(22, 22, 22, 0.14);
  --paper: #f4f4f2;
  --panel: #fbfbfa;
  --green: #3b3b3b;
  --clay: #2d2d2d;
  --gold: #8a8a86;
  color-scheme: light;
  font-family:
    "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Iowan Old Style",
    "Palatino Linotype", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}

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

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

.theme-editorial {
  min-height: 100vh;
  background: var(--paper);
}

.home-cosmos {
  position: relative;
  overflow-x: hidden;
}

.home-cosmos::before {
  position: fixed;
  top: 82px;
  right: max(-210px, calc((100vw - 1180px) / 2 - 150px));
  z-index: 0;
  width: min(760px, 64vw);
  aspect-ratio: 760 / 620;
  background: url("orbital-bg.svg") center / contain no-repeat;
  content: "";
  opacity: 0.48;
  pointer-events: none;
}

.home-cosmos > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--clay);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.home-header {
  width: min(740px, calc(100% - 48px));
}

.narrow-header {
  width: min(740px, calc(100% - 48px));
}

.brand {
  font-size: 0.92rem;
  font-weight: 760;
}

nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

nav a,
.section-title a,
.back-link,
.archive-filter a {
  transition: color 160ms ease;
}

nav a:hover,
.section-title a:hover,
.back-link:hover,
.archive-filter a:hover {
  color: var(--clay);
}

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  gap: 48px;
  align-items: end;
  width: min(1080px, calc(100% - 48px));
  margin: 42px auto 0;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.home-shell {
  width: min(740px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow-shell {
  width: min(740px, calc(100% - 48px));
  margin: 0 auto;
}

.home-shell .editorial-hero,
.home-shell .section-band {
  width: 100%;
}

.home-shell .editorial-hero {
  display: block;
  margin-top: 34px;
  padding-bottom: 30px;
  border-bottom: 0;
}

.hero-copy h1,
.page-head h1,
.post-head h1 {
  max-width: 780px;
  margin-top: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.22;
}

.hero-copy h1 {
  max-width: 620px;
  font-size: clamp(2.05rem, 3.55vw, 3.45rem);
}

.hero-copy p:last-child,
.page-head p:last-child {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.82;
}

.feature-panel {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 251, 250, 0.9);
  box-shadow: 0 18px 56px rgba(18, 18, 18, 0.07);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.home-shell .feature-panel {
  padding: 10px;
  box-shadow: 0 10px 34px rgba(18, 18, 18, 0.045);
}

.feature-panel:hover {
  border-color: rgba(31, 36, 33, 0.34);
  transform: translateY(-2px);
}

.feature-art {
  aspect-ratio: 3 / 2;
  border-radius: 5px;
}

.cover-art,
.editorial-art {
  background:
    var(--cover-image, url("editorial-mark.svg")) center / cover no-repeat,
    radial-gradient(circle at 75% 22%, rgba(250, 250, 248, 0.92) 0 12%, transparent 13%),
    linear-gradient(140deg, #202020 0 42%, #8a8a86 43% 51%, #4a4a4a 52%);
}

.feature-kicker {
  margin-top: 15px;
  color: var(--clay);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 750;
}

.home-shell .feature-kicker {
  margin-top: 13px;
}

.feature-panel h2 {
  margin-top: 8px;
  font-size: 1.16rem;
  font-weight: 560;
  line-height: 1.35;
}

.home-shell .feature-panel h2 {
  font-size: 1.08rem;
  line-height: 1.38;
}

.feature-panel > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.home-shell .feature-panel > p:last-child {
  max-width: 32rem;
  color: rgba(107, 107, 107, 0.82);
  font-size: 0.88rem;
  line-height: 1.62;
}

.section-band,
.archive-shell,
.post-shell {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.archive-shell.narrow-shell,
.about-shell.narrow-shell,
.post-shell.narrow-shell {
  width: min(740px, calc(100% - 48px));
}

.section-band {
  padding: 36px 0 76px;
}

.home-shell .section-band {
  padding: 28px 0 46px;
}

.motto {
  padding: 0 0 72px;
  color: rgba(22, 22, 22, 0.54);
  font-size: 0.88rem;
  line-height: 1.8;
  text-align: center;
}

.motto p {
  padding-top: 18px;
  border-top: 1px dashed rgba(22, 22, 22, 0.16);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.home-shell .section-title {
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 0.9rem;
}

.section-title a {
  color: var(--clay);
  font-size: 0.82rem;
}

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

.home-shell .article-list {
  border-top: 0;
}

.archive-shell .archive-list {
  border-top: 0;
}

.article-list a {
  display: grid;
  grid-template-columns: 74px minmax(0, 0.62fr) minmax(220px, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.home-shell .article-list a {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 96px;
  column-gap: 18px;
  row-gap: 8px;
  align-items: center;
  margin-left: 0;
  padding: 14px 0 16px;
  border-bottom: 0;
}

.archive-shell .archive-item {
  grid-template-columns: minmax(0, 1fr) 96px;
  column-gap: 18px;
  row-gap: 8px;
  align-items: center;
  padding: 14px 0 16px;
  border-bottom: 0;
}

.archive-shell .archive-item + .archive-item {
  padding-top: 18px;
}

.home-shell .article-list a + a {
  padding-top: 18px;
}

.article-copy {
  display: grid;
  gap: 4px;
}

.archive-copy {
  display: grid;
  gap: 4px;
}

.home-shell .article-list time {
  position: static;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  align-self: start;
  padding-top: 0;
}

.archive-shell .archive-date {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
}

.home-shell .article-list time::after {
  display: block;
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.archive-shell .archive-date::after {
  display: block;
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.article-thumb {
  display: block;
  width: 96px;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.article-list a:hover h3,
.archive-item:hover .archive-title {
  color: var(--clay);
}

.article-list time,
.archive-date,
.post-meta,
.back-link {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
}

.article-list h3 {
  font-size: 1.05rem;
  font-weight: 560;
  line-height: 1.48;
}

.article-list p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.72;
}

.home-shell .article-list p {
  color: rgba(107, 107, 107, 0.72);
  font-size: 0.88rem;
  line-height: 1.72;
}

.page-head {
  max-width: 680px;
  padding: 54px 0 40px;
}

.page-head h1 {
  font-size: clamp(2rem, 3.6vw, 3.3rem);
}

.archive-layout {
  padding-bottom: 78px;
}

.archive-filter {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.archive-filter a {
  color: var(--muted);
  font-size: 0.82rem;
}

.archive-filter .active {
  color: var(--clay);
  font-weight: 700;
}

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

.archive-item {
  display: grid;
  grid-template-columns: 112px minmax(220px, 0.72fr) minmax(240px, 1fr);
  gap: 24px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.archive-title {
  font-size: 1.08rem;
  font-weight: 560;
  line-height: 1.48;
}

.archive-desc {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.72;
}

.archive-shell .archive-desc {
  color: rgba(107, 107, 107, 0.72);
  font-size: 0.88rem;
  line-height: 1.72;
}

.about-shell {
  padding-bottom: 88px;
}

.about-body {
  display: grid;
  gap: 18px;
  max-width: 620px;
  color: #2b2b2b;
  font-size: 1rem;
  line-height: 1.9;
}

.about-motto {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px dashed rgba(22, 22, 22, 0.16);
  color: rgba(22, 22, 22, 0.54);
  font-size: 0.9rem;
  text-align: center;
}

.post-shell {
  padding: 48px 0 84px;
}

.post-article {
  display: grid;
  gap: 28px;
}

.post-head {
  max-width: 740px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
}

.post-head h1 {
  max-width: 680px;
  font-size: clamp(1.72rem, 3vw, 2.72rem);
  font-weight: 520;
  line-height: 1.22;
}

.post-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.post-cover {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-content {
  color: #2b2b2b;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.9;
  text-align: start;
}

.post-content .lead {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.88;
}

.post-content h2 {
  margin-top: 44px;
  font-size: 1.2rem;
  font-weight: 560;
  line-height: 1.5;
}

.post-content p {
  margin-top: 18px;
}

.post-content a {
  border-bottom: 1px solid rgba(22, 22, 22, 0.28);
}

.post-content ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 1.4em;
}

.post-content li {
  padding-left: 0.2em;
}

.post-content code {
  padding: 0.12em 0.34em;
  border: 1px solid rgba(22, 22, 22, 0.1);
  border-radius: 4px;
  background: rgba(251, 251, 250, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.post-content pre {
  overflow-x: auto;
  margin: 22px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(251, 251, 250, 0.72);
  line-height: 1.65;
}

.post-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.84rem;
}

.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.post-content hr {
  height: 1px;
  margin: 28px 0;
  border: 0;
  border-top: 1px dashed rgba(22, 22, 22, 0.16);
}

.post-content blockquote {
  margin: 38px 0;
  padding: 20px 22px;
  border-left: 3px solid var(--clay);
  background: rgba(251, 251, 250, 0.72);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.86;
}

@media (max-width: 900px) {
  .home-cosmos::before {
    display: none;
  }

  .editorial-hero,
  .archive-layout,
  .post-article {
    grid-template-columns: 1fr;
  }

  .editorial-hero {
    gap: 32px;
    margin-top: 32px;
  }

  .archive-filter {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .archive-item,
  .article-list a {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-shell .article-list a {
    grid-template-columns: 1fr 84px;
    gap: 8px;
    margin-left: 0;
    padding: 15px 0;
  }

  .archive-shell .archive-item {
    grid-template-columns: 1fr 84px;
    gap: 8px;
    padding: 15px 0;
  }

  .home-shell .article-list time {
    position: static;
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .article-thumb {
    width: 84px;
  }

  .post-head,
  .post-cover,
  .post-content {
    grid-column: auto;
    grid-row: auto;
  }

  .post-cover {
    position: static;
    order: -1;
  }
}

@media (max-width: 560px) {
  .site-header,
  .editorial-hero,
  .section-band,
  .archive-shell,
  .post-shell {
    width: min(100% - 32px, 1080px);
  }

  .home-shell {
    width: min(100% - 32px, 740px);
  }

  .narrow-header,
  .archive-shell.narrow-shell,
  .about-shell.narrow-shell,
  .post-shell.narrow-shell {
    width: min(100% - 32px, 740px);
  }

  .home-shell .editorial-hero,
  .home-shell .section-band {
    width: 100%;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 20px 0;
  }

  .editorial-hero {
    padding-bottom: 36px;
  }

  .hero-copy h1,
  .page-head h1,
  .post-head h1 {
    font-size: 1.86rem;
    line-height: 1.22;
  }

  .hero-copy p:last-child,
  .page-head p:last-child {
    font-size: 0.92rem;
    line-height: 1.76;
  }

  .page-head {
    padding: 38px 0 30px;
  }

  .post-shell {
    padding-top: 38px;
  }

  .post-content {
    font-size: 1rem;
    line-height: 1.9;
  }

  .post-content .lead,
  .post-content blockquote {
    font-size: 1rem;
  }
}
