:root {
  --ink: #24262d;
  --muted: #777b86;
  --line: #e8e5e1;
  --paper: #fcfbf8;
  --accent: #e8848d;
  --blue: #95b7c4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, "Noto Sans SC", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  width: 100%;
  padding: 30px 0;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.06em;
}
.brand:first-letter {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 28px;
  color: #65676f;
  font-size: 13px;
}
nav a:hover {
  color: var(--ink);
}
.account-nav {
  display: inline-flex;
  gap: 18px;
}
.account-link {
  color: var(--ink);
  font-weight: 700;
}
.grace-cover {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7dfe0 0%, #f8ede8 43%, #dcecf0 100%);
  background-size: cover;
}
.cover-content {
  position: relative;
  z-index: 1;
  padding-top: 275px;
}

.sos-cover {
  position: absolute;
  z-index: 0;
  top: 112px;
  right: clamp(-110px, 3vw, 38px);
  width: min(57vw, 660px);
  aspect-ratio: 1;
  pointer-events: none;
  filter: drop-shadow(0 28px 34px rgba(44, 32, 69, 0.28));
}

.sos-cover-canvas,
.sos-cover-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sos-cover-canvas {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.sos-cover.is-ready .sos-cover-canvas {
  opacity: 1;
}

.sos-cover.is-ready .sos-cover-fallback {
  opacity: 0;
}

.sos-cover-fallback {
  transition: opacity 0.5s ease;
}
.eyebrow {
  color: #9b7c80;
  font:
    500 11px/1 DM Mono,
    monospace;
  letter-spacing: 0.18em;
}
.cover-content h1 {
  max-width: 680px;
  margin: 20px 0 22px;
  font:
    700 clamp(50px, 8vw, 94px)/1.05 "Noto Serif SC",
    serif;
  letter-spacing: -0.08em;
}
.cover-description {
  max-width: 460px;
  margin: 0;
  color: #72767b;
  font-size: 16px;
  line-height: 1.9;
}
.cover-cta {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  margin-top: 48px;
  padding: 15px 21px;
  border: 1px solid rgba(36, 38, 45, 0.32);
  border-radius: 999px;
  font-size: 13px;
  transition: 0.2s;
}
.cover-cta:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.cover-cta span {
  font-size: 18px;
}
.cover-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}
.orbit-one {
  width: 620px;
  height: 620px;
  right: -80px;
  top: 110px;
}
.orbit-two {
  width: 390px;
  height: 390px;
  right: 35px;
  top: 225px;
}
.post-stream {
  padding: 125px 0 95px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
}
.section-heading h2,
.about-panel h2 {
  margin: 16px 0 0;
  font:
    600 34px/1.25 "Noto Serif SC",
    serif;
  letter-spacing: -0.04em;
}
.post-count {
  color: var(--muted);
  font:
    12px DM Mono,
    monospace;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.post-card {
  min-height: 285px;
  padding: 30px;
  background: var(--paper);
  transition: 0.2s;
}
.post-card:hover {
  background: #fff;
  transform: translateY(-3px);
}
.post-meta {
  display: flex;
  justify-content: space-between;
  color: #9699a0;
  font:
    11px DM Mono,
    monospace;
}
.pinned {
  color: var(--accent);
}
.post-card h3 {
  max-width: 480px;
  margin: 42px 0 15px;
  font:
    600 23px/1.45 "Noto Serif SC",
    serif;
}
.post-card h3 a:hover {
  color: var(--accent);
}
.post-card p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.read-more {
  display: inline-block;
  margin-top: 25px;
  font-size: 12px;
}
.read-more span {
  color: var(--accent);
  margin-left: 8px;
}
.about-panel {
  margin-bottom: 140px;
  padding: 75px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-panel h2 {
  max-width: 580px;
  font-size: 42px;
}
.about-panel p:last-child {
  max-width: 460px;
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.9;
}
.article-page {
  padding: 125px 0 120px;
}
.archive-page {
  min-height: calc(100vh - 112px);
  padding: 150px 0 120px;
}
.archive-page h1 {
  margin: 16px 0 46px;
  font:
    600 clamp(38px, 6vw, 64px)/1.2 "Noto Serif SC",
    serif;
  letter-spacing: -0.06em;
}
.archive-categories {
  margin: 0 0 64px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.archive-categories > p,
.archive-month-label {
  margin: 0 0 14px;
  color: var(--muted);
  font: 11px DM Mono, monospace;
  letter-spacing: 0.08em;
}
.taxonomy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.taxonomy-card {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5f626b;
  background: #fff;
  font-size: 13px;
  transition: 0.2s ease;
}
.taxonomy-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.archive-years {
  margin-top: 64px;
}
.archive-years h2 {
  margin: 0 0 26px;
  font: 600 44px/1 "Noto Serif SC", serif;
  letter-spacing: -0.06em;
}
.archive-month + .archive-month {
  margin-top: 38px;
}
.archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 68px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.archive-pagination a:hover {
  color: var(--accent);
}
.archive-page .posts-grid {
  margin-top: 0;
}
.archive-page .post-card h2 {
  margin: 36px 0 15px;
  font:
    600 23px/1.45 "Noto Serif SC",
    serif;
}
.archive-page .post-card h2 a:hover {
  color: var(--accent);
}
.back-link {
  color: var(--muted);
  font-size: 13px;
}
.article-page article {
  max-width: 760px;
  margin: 80px auto 0;
}
.article-page h1 {
  margin: 20px 0;
  font:
    600 clamp(34px, 6vw, 60px)/1.3 "Noto Serif SC",
    serif;
  letter-spacing: -0.05em;
}
.article-meta {
  color: var(--muted);
  font:
    12px DM Mono,
    monospace;
}
.article-excerpt {
  margin: 44px 0;
  padding: 24px;
  background: #f4efeb;
  color: #6f727a;
  line-height: 1.9;
}
.article-content {
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
  line-height: 2.05;
}
.article-content h2 {
  margin-top: 54px;
  font-size: 28px;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.article-content pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 12px;
  background: #292b33;
  color: #f6f2eb;
  font:
    13px/1.7 DM Mono,
    monospace;
}
.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 72px 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}
.post-navigation a,
.post-navigation-empty {
  min-height: 122px;
  padding: 20px;
  background: var(--paper);
}
.post-navigation a {
  display: grid;
  gap: 10px;
  color: var(--ink);
  transition: background 0.2s ease;
}
.post-navigation a:hover {
  background: #fff;
}
.post-navigation-next {
  text-align: right;
}
.post-navigation small {
  color: var(--muted);
  font: 11px DM Mono, monospace;
}
.post-navigation span {
  font: 600 17px/1.5 "Noto Serif SC", serif;
}
.article-comments {
  margin-top: 86px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}
.article-comments h2 {
  margin: 14px 0 28px;
  font: 600 28px/1.3 "Noto Serif SC", serif;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 700px) {
  .shell {
    width: min(100% - 32px, 1120px);
  }
  .site-header {
    padding-top: 20px;
  }
  nav a:last-child {
    display: none;
  }
  .grace-cover {
    min-height: 680px;
  }
  .cover-content {
    padding-top: 220px;
  }
  .cover-description {
    font-size: 14px;
  }
  .orbit-one {
    width: 420px;
    height: 420px;
    right: -220px;
    top: 320px;
  }
  .orbit-two {
    width: 270px;
    height: 270px;
    right: -120px;
    top: 395px;
  }

  .sos-cover {
    top: 280px;
    right: -100px;
    width: 440px;
    opacity: 0.82;
  }
  .post-stream {
    padding-top: 85px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .post-card h3 {
    margin-top: 30px;
  }
  .about-panel h2 {
    font-size: 31px;
  }
  .article-page {
    padding-top: 100px;
  }
  .post-navigation {
    grid-template-columns: 1fr;
  }
  .archive-page {
    padding: 115px 0 80px;
  }
  .archive-page h1 {
    margin-bottom: 32px;
    font-size: 42px;
  }
  .site-footer {
    display: block;
  }
  .site-footer span + span {
    display: block;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sos-cover-canvas {
    display: none;
  }

  .sos-cover-fallback {
    opacity: 1 !important;
  }
}
