:root {
  color-scheme: light;
  --cream: #fff7df;
  --paper: #fffdf8;
  --navy: #293360;
  --blue: #7d8bd7;
  --blue-soft: #cbd3f4;
  --red: #c95d63;
  --red-soft: #e7a1a3;
  --cyan: #52cedd;
  --muted: #6f7597;
  --line: rgba(41, 51, 96, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(125, 139, 215, 0.08) 0 12%, transparent 12%), var(--cream);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}

.page {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
}

.site-header {
  position: relative;
  display: grid;
  min-height: 570px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: center;
  margin-bottom: 5.5rem;
  overflow: hidden;
  background: linear-gradient(118deg, var(--paper) 0 58%, transparent 58%), linear-gradient(145deg, var(--red-soft), var(--red));
  border: 1px solid rgba(41, 51, 96, 0.12);
  box-shadow: 18px 18px 0 var(--blue-soft);
}

.site-header::before {
  position: absolute;
  top: -9rem;
  left: -6rem;
  width: 19rem;
  height: 19rem;
  background: var(--blue-soft);
  content: "";
  transform: rotate(25deg);
}

.site-header::after {
  position: absolute;
  bottom: -5rem;
  left: 36%;
  width: 12rem;
  height: 12rem;
  background: rgba(82, 206, 221, 0.38);
  content: "";
  transform: rotate(42deg);
}

.hero-pattern {
  position: absolute;
  top: 3rem;
  right: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 2.6rem);
  gap: 0.8rem;
  opacity: 0.34;
  transform: rotate(16deg);
}

.hero-pattern i { aspect-ratio: 1; background: #8c3540; }

.profile-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 5.5rem);
}

.site-title {
  display: flex;
  width: fit-content;
  flex-wrap: nowrap;
  align-items: baseline;
  margin-top: 3.05rem;
  color: var(--navy);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.95;
  white-space: nowrap;
}

.site-title span {
  color: var(--red);
  font-size: 0.72em;
  letter-spacing: -0.04em;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
  font-size: 0.92rem;
}

.profile-links a,
.profile-links > span {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.45rem 0.78rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 3px 3px 0 rgba(125, 139, 215, 0.2);
}

.profile-links a {
  text-decoration: none;
  transition: color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.profile-links a:hover {
  color: var(--red);
  box-shadow: 5px 5px 0 rgba(201, 93, 99, 0.2);
  transform: translate(-2px, -2px);
}

.profile-links svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-links .brand-icon {
  fill: currentColor;
  stroke: none;
}

.character-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 -1.2rem 0 auto;
  padding: 0.7rem;
  background: #fff;
  box-shadow: -18px 20px 0 rgba(41, 51, 96, 0.2);
  transform: rotate(2deg);
}

.character-card img { display: block; width: 100%; height: auto; }

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--navy);
}

h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
}

.section-title span {
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.post-list { margin: 0; padding: 0; list-style: none; }

.post-list li {
  position: relative;
  background: rgba(255, 253, 248, 0.7);
  border-bottom: 1px solid var(--line);
}

.post-list li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--red);
  content: "";
  transition: width 0.18s;
}

.post-list li:hover::before { width: 5px; }

.post-list article {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: 1.75rem;
  align-items: center;
  padding: 2.5rem 1.3rem;
}

.post-list time {
  color: var(--blue);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
}

.post-list h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.35;
}

.post-list h2 a { color: var(--navy); text-decoration: none; }
.post-list h2 a:hover { color: var(--red); }

.post-list p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.arrow {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 1.2rem;
  text-decoration: none;
}

footer {
  margin-top: 5rem;
  padding-top: 1.3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

@media (max-width: 820px) {
  .page { width: min(100% - 2rem, 680px); padding-top: 1rem; }
  .site-header {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 42%);
    margin-bottom: 4rem;
    box-shadow: 9px 9px 0 var(--blue-soft);
  }
  .profile-copy { padding: 2.5rem 1.7rem; }
  .character-card { width: 100%; margin-right: -0.8rem; padding: 0.45rem; }
}

@media (max-width: 560px) {
  .site-header {
    display: flex;
    min-height: 500px;
    align-items: flex-end;
    background: linear-gradient(160deg, var(--paper) 0 56%, rgba(231, 161, 163, 0.94) 56%);
  }
  .profile-copy { z-index: 3; width: 100%; padding: 2rem 1.4rem; }
  .site-title { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .profile-links { max-width: 15rem; margin-top: 1.4rem; }
  .profile-links a, .profile-links > span { background: rgba(255,255,255,.9); }
  .character-card {
    position: absolute;
    z-index: 1;
    top: 1rem;
    right: -1rem;
    width: 47%;
    margin: 0;
    box-shadow: -8px 10px 0 rgba(41, 51, 96, 0.18);
  }
  .hero-pattern { right: 0; }
  .section-title { align-items: center; }
  .post-list article {
    grid-template-columns: 1fr auto;
    gap: 0.7rem 1rem;
    padding: 1.7rem 0.7rem;
  }
  .post-list time { grid-column: 1 / -1; }
  .post-list p { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
