:root {
  --bg: #f8f6f1;
  --panel: rgba(255, 255, 255, 0.66);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: #cfd9e3;
  --text: #122d4a;
  --muted: #5d6f84;
  --accent: #5b88b4;
  --accent-soft: #dfeaf5;
  --accent-glow: rgba(91, 136, 180, 0.16);
  --olive: #b9cba5;
  --shadow: 0 24px 70px rgba(17, 37, 62, 0.08);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --content-width: min(1350px, calc(100vw - 64px));
}

body[data-theme="dark"] {
  --bg: #071019;
  --panel: rgba(10, 21, 33, 0.82);
  --panel-strong: rgba(13, 27, 42, 0.94);
  --line: rgba(147, 181, 212, 0.2);
  --text: #f4f8fc;
  --muted: #bfd0e0;
  --accent: #9dd3ff;
  --accent-soft: rgba(95, 143, 189, 0.24);
  --accent-glow: rgba(122, 183, 231, 0.16);
  --olive: #9bb986;
  --shadow: 0 32px 88px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: transparent;
  color: var(--text);
  transition: color 240ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("assets/Background.jpg") center / cover no-repeat fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(248, 246, 241, 0.3) 0%, rgba(248, 246, 241, 0.52) 66%, rgba(248, 246, 241, 0.68) 100%),
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.36), transparent 26%);
}

body[data-theme="dark"]::before {
  filter: brightness(0.66) saturate(0.88);
}

body[data-theme="dark"]::after {
  background:
    linear-gradient(180deg, rgba(7, 16, 25, 0.44) 0%, rgba(7, 16, 25, 0.62) 58%, rgba(4, 10, 17, 0.78) 100%),
    radial-gradient(circle at 12% 10%, rgba(125, 170, 205, 0.12), transparent 28%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: 0 auto;
  padding-bottom: 24px;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 10px;
  padding: 12px 12px 8px;
  border: 1px solid rgba(207, 217, 227, 0.72);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 36px rgba(20, 39, 61, 0.05);
}

body[data-theme="dark"] .site-header {
  background: linear-gradient(180deg, rgba(15, 30, 45, 0.95), rgba(10, 20, 31, 0.92));
  border-color: rgba(147, 181, 212, 0.16);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-left: 16px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  font-size: 1.7rem;
  color: var(--accent);
  transform: rotate(-12deg);
}

.brand-avatar {
  display: block;
  flex: 0 0 32px;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.56);
}

.brand-text {
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.main-nav {
  display: inline-flex;
  justify-content: center;
  gap: 36px;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.02rem;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  transform: translateX(-50%) scale(0);
  background: var(--accent);
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: translateX(-50%) scale(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 18px;
  min-height: clamp(430px, 54vw, 620px);
  padding: clamp(64px, 9vw, 118px) clamp(24px, 6vw, 78px);
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(10, 24, 38, 0.76) 0%, rgba(10, 24, 38, 0.5) 42%, rgba(10, 24, 38, 0.08) 100%),
    url("assets/home-hero.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: rgba(244, 248, 252, 0.86);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.eyebrow::before {
  content: "";
  width: 52px;
  height: 1px;
  background: currentColor;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.34);
}

.hero-text {
  margin: 0 0 16px;
  font-size: 1.16rem;
  line-height: 1.95;
  color: rgba(244, 248, 252, 0.88);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 1.06rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.text-link::after {
  content: "->";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.content-grid {
  display: block;
  padding-top: 38px;
}

.section-block + .section-block {
  margin-top: 78px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.heading-mark {
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.section-heading h2 {
  margin: 0;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: 2rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  position: relative;
}

.post-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.post-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1.18 / 0.8;
  object-fit: cover;
  transition: transform 260ms ease;
}

.post-card:hover .post-thumb img,
.article-row:hover img {
  transform: scale(1.03);
}

.post-category {
  margin: 14px 0 8px;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.post-card h3,
.article-row h3 {
  margin: 0 0 10px;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: 1.7rem;
  line-height: 1.3;
}

.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.post-excerpt,
.article-row p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.archive-section {
  margin-top: 82px;
}

.archive-header {
  margin-bottom: 30px;
}

.archive-kicker {
  margin: 0 0 10px;
  color: #d65f70;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.archive-header h2 {
  margin: 0;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: clamp(2.4rem, 4vw, 3.3rem);
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: 28px;
  align-items: start;
}

.archive-sidebar {
  display: grid;
  gap: 26px;
  position: sticky;
  top: 92px;
}

.sidebar-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
}

.profile-card {
  text-align: center;
}

.profile-avatar {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 32px rgba(20, 39, 61, 0.12);
}

.profile-card h3 {
  margin: 0 0 12px;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: 1.85rem;
}

.profile-bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.9;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.sidebar-card-title {
  position: relative;
  margin: 0 0 18px;
  padding-left: 12px;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: 1.4rem;
}

.sidebar-card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 4px;
  height: 1.1em;
  border-radius: 999px;
  background: #e2525f;
}

.taxonomy-list {
  display: grid;
  gap: 10px;
}

.taxonomy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.38);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.taxonomy-item strong {
  min-width: 32px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(18, 45, 74, 0.06);
  color: inherit;
  font-size: 0.88rem;
  text-align: center;
}

.taxonomy-item:hover,
.taxonomy-item.is-active {
  color: #d54257;
  background: linear-gradient(90deg, rgba(229, 88, 110, 0.12), rgba(255, 255, 255, 0.7));
  transform: translateX(2px);
}

.taxonomy-item.is-active strong {
  background: #d54257;
  color: #fff;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.tag-chip span {
  display: inline-flex;
  min-width: 1.75rem;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(18, 45, 74, 0.08);
  font-size: 0.78rem;
}

.tag-chip:hover,
.tag-chip.is-active {
  transform: translateY(-1px);
  background: rgba(229, 88, 110, 0.12);
  color: #d54257;
}

.tag-chip.is-active span {
  background: rgba(213, 66, 87, 0.16);
}

.archive-list {
  display: grid;
  gap: 14px;
}

.archive-card {
  padding: 18px 20px 16px;
  border: 1px solid rgba(207, 217, 227, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 36px rgba(20, 39, 61, 0.05);
}

.archive-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.archive-card-head h3 {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  line-height: 1.4;
}

.archive-card-head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1.2em;
  border-radius: 999px;
  background: #e2525f;
}

.archive-card-head h3 a {
  color: var(--text);
  text-decoration: none;
}

.archive-mark {
  color: #de4156;
  font-size: 1.1rem;
  line-height: 1;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.archive-tag {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(91, 136, 180, 0.12);
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.archive-tag:hover {
  transform: translateY(-1px);
  background: rgba(229, 88, 110, 0.14);
  color: #d54257;
}

.archive-tag.is-active {
  background: rgba(213, 66, 87, 0.18);
  color: #d54257;
}

.archive-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.archive-stats {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state {
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed rgba(207, 217, 227, 0.9);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
}

body[data-theme="dark"] .post-excerpt,
body[data-theme="dark"] .archive-summary,
body[data-theme="dark"] .archive-stats,
body[data-theme="dark"] .archive-meta,
body[data-theme="dark"] .profile-bio,
body[data-theme="dark"] .profile-stats,
body[data-theme="dark"] .site-footer-inner,
body[data-theme="dark"] .empty-state {
  color: #c6d6e5;
}

body[data-theme="dark"] .site-footer-inner a,
body[data-theme="dark"] .site-footer-inner a:visited,
body[data-theme="dark"] .post-card h3 a,
body[data-theme="dark"] .archive-card-head h3 a {
  color: #f4f8fc;
}

body[data-theme="dark"] .text-link {
  color: #9dd3ff;
}

body[data-theme="dark"] .hero-section .text-link {
  color: #fff;
}

body[data-theme="dark"] .post-thumb,
body[data-theme="dark"] .sidebar-card,
body[data-theme="dark"] .archive-card,
body[data-theme="dark"] .blank-surface {
  background: linear-gradient(180deg, rgba(15, 30, 45, 0.95), rgba(10, 20, 31, 0.92));
  border-color: rgba(147, 181, 212, 0.16);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] .taxonomy-item {
  background: rgba(17, 33, 49, 0.86);
  color: #c4d4e4;
}

body[data-theme="dark"] .taxonomy-item strong {
  background: rgba(244, 248, 252, 0.08);
}

body[data-theme="dark"] .taxonomy-item:hover,
body[data-theme="dark"] .taxonomy-item.is-active {
  color: #ffd8df;
  background: linear-gradient(90deg, rgba(180, 72, 94, 0.28), rgba(22, 39, 56, 0.96));
}

body[data-theme="dark"] .tag-chip,
body[data-theme="dark"] .archive-tag {
  background: rgba(25, 44, 62, 0.84);
  color: #bfd0e0;
}

body[data-theme="dark"] .tag-chip span {
  background: rgba(244, 248, 252, 0.08);
  color: #d7e4f0;
}

body[data-theme="dark"] .tag-chip:hover,
body[data-theme="dark"] .tag-chip.is-active,
body[data-theme="dark"] .archive-tag:hover,
body[data-theme="dark"] .archive-tag.is-active {
  color: #ffdbe2;
  background: rgba(173, 67, 90, 0.34);
}

body[data-theme="dark"] .tag-chip.is-active span {
  background: rgba(255, 219, 226, 0.14);
  color: #ffe9ee;
}

body[data-theme="dark"] .empty-state {
  border-color: rgba(147, 181, 212, 0.22);
  background: rgba(17, 33, 49, 0.74);
}

.site-footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
  text-align: center;
}

.site-footer-inner p {
  margin: 0;
}

.site-footer-inner a {
  color: var(--text);
  text-decoration: none;
}

.site-footer-inner a:visited {
  color: var(--text);
}

.site-footer-inner a:hover {
  color: var(--text);
  text-decoration: none;
}

.blank-main {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: stretch;
  padding: 38px 0 0;
}

.blank-surface {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(240, 214, 225, 0.18), transparent 26%),
    radial-gradient(circle at bottom left, rgba(151, 185, 211, 0.14), transparent 24%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
}

.fragments-main {
  min-height: calc(100vh - 110px);
  padding: 28px 0 0;
}

.fragment-timeline {
  position: relative;
  display: grid;
  gap: 28px;
  width: 100%;
  padding: 0 0 12px 38px;
}

.fragment-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 13px;
  width: 2px;
  border-radius: 999px;
  background: #9fe0f6;
}

.fragment-entry {
  position: relative;
}

.fragment-entry::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -31px;
  width: 10px;
  height: 10px;
  border: 1.5px solid #08aeee;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.fragment-time {
  display: block;
  margin: 0 0 8px;
  color: #50677f;
  font-family: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.fragment-card {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(132, 190, 211, 0.58);
  border-radius: 9px;
  background: rgba(216, 241, 249, 0.92);
  box-shadow: 0 4px 14px rgba(20, 73, 103, 0.08);
}

.fragment-card p {
  margin: 0;
  color: #163756;
  font-size: 0.98rem;
  line-height: 2;
}

.fragment-card p + p {
  margin-top: 16px;
}

.fragment-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fragment-image {
  margin: 0;
}

.fragment-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid rgba(132, 190, 211, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.fragment-image figcaption {
  margin-top: 7px;
  color: #50677f;
  font-size: 0.86rem;
  line-height: 1.6;
}

body[data-theme="dark"] .fragment-timeline::before {
  background: rgba(157, 211, 255, 0.52);
}

body[data-theme="dark"] .fragment-entry::before {
  border-color: #9dd3ff;
  background: #0b1a29;
  box-shadow: 0 0 0 3px rgba(10, 21, 33, 0.82);
}

body[data-theme="dark"] .fragment-time,
body[data-theme="dark"] .fragment-image figcaption {
  color: #bfd0e0;
}

body[data-theme="dark"] .fragment-card {
  border-color: rgba(157, 211, 255, 0.26);
  background: rgba(15, 30, 45, 0.9);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .fragment-card p {
  color: #f4f8fc;
}

body[data-theme="dark"] .fragment-image img {
  border-color: rgba(157, 211, 255, 0.22);
  background: rgba(244, 248, 252, 0.05);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  :root {
    --content-width: min(1120px, calc(100vw - 48px));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px 24px;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .archive-layout {
    grid-template-columns: 1fr;
  }

  .blank-main {
    min-height: calc(100vh - 156px);
  }

  .fragments-main {
    min-height: calc(100vh - 156px);
  }

  .archive-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 860px) {
  :root {
    --content-width: calc(100vw - 28px);
  }

  .site-header {
    position: static;
    margin-top: 12px;
    padding-top: 18px;
  }

  .brand-text {
    font-size: 1.45rem;
  }

  .main-nav {
    gap: 22px;
    flex-wrap: wrap;
  }

  .hero-section {
    min-height: 500px;
    padding: 54px 28px;
    background-position: 56% center;
  }

  .site-footer {
    margin-top: 56px;
  }

  .blank-main {
    min-height: calc(100vh - 132px);
  }

  .fragments-main {
    min-height: calc(100vh - 132px);
    padding-top: 24px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-text {
    font-size: 1.04rem;
    line-height: 1.8;
  }

  .post-grid,
  .archive-sidebar {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 1.72rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .header-actions,
  .main-nav {
    justify-content: flex-start;
  }

  .main-nav a::after {
    bottom: -9px;
  }

  .site-footer-inner {
    gap: 8px 20px;
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: 2.12rem;
  }

  .hero-section {
    min-height: 460px;
    padding: 42px 22px;
    background-position: 62% center;
  }

  .blank-main {
    min-height: calc(100vh - 172px);
  }

  .fragments-main {
    min-height: calc(100vh - 172px);
  }

  .fragment-timeline {
    padding-left: 28px;
  }

  .fragment-timeline::before {
    left: 9px;
  }

  .fragment-entry::before {
    left: -24px;
  }

  .fragment-card {
    padding: 13px 14px;
  }

  .post-card h3,
  .archive-card-head h3 {
    font-size: 1.36rem;
  }

  .profile-card h3 {
    font-size: 1.58rem;
  }
}
