.home-hero {
  min-height: clamp(365px, 36vw, 460px);
  border-radius: 23px;
}
.home-hero .hero-image { object-position: 69% 50%; }
.home-hero::after {
  background:
    linear-gradient(90deg, rgb(12 13 30 / 88%) 0%, rgb(15 15 35 / 51%) 36%, transparent 72%),
    linear-gradient(0deg, rgb(14 14 33 / 29%), transparent 45%);
}
.home-hero .hero-content { padding: 45px clamp(26px, 6vw, 77px); }
.home-hero .hero-description { max-width: 21em; margin: 17px 0 27px; line-height: 1.65; }
.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.home-actions .hero-button, .home-secondary {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.home-secondary {
  border: 1px solid rgb(218 202 255 / 36%);
  background: rgb(22 18 45 / 58%);
  color: #f1eaff;
}
.home-secondary:hover {
  border-color: rgb(221 203 255 / 70%);
  background: rgb(69 49 104 / 70%);
}
.home-actions a:hover { transform: translateY(-2px); }

.home-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(18px, 2.7vw, 30px);
}
.home-intro, .home-reading {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 2.5vw, 29px);
}
.home-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(ellipse at 5% 0%, var(--accent-wash), transparent 74%), var(--surface);
}
.home-intro::after {
  position: absolute;
  z-index: -1;
  inset: auto -24px -68px auto;
  width: 155px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 19%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 5%, transparent);
  content: "";
}
.home-guide h2 {
  margin: 0;
  font: 760 clamp(20px, 2vw, 26px)/1.3 "Noto Serif SC", "Songti SC", "SimSun", serif;
}
.home-intro p {
  max-width: 31em;
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.8;
}
.home-intro h3 {
  margin: 0;
  color: var(--accent-text);
  font-size: 14px;
}
.home-steps {
  max-width: 34em;
  margin: 7px 0 16px;
  padding-inline-start: 1.45em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.home-steps li + li { margin-top: 5px; }
.home-steps li::marker, .home-steps strong { color: var(--accent-text); }
.home-intro .home-section-link { align-self: start; color: var(--accent-text); }
.home-intro .home-section-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-reading { background: var(--surface-deep); }
.home-reading-list { margin: 9px 0 0; padding: 0; list-style: none; }
.home-reading-list li + li { border-top: 1px solid var(--line); }
.home-reading-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 55px;
  padding: 7px 7px 7px 4px;
  border-radius: 7px;
}
.home-reading-list a:hover { background: var(--surface-hover); }
.home-reading-list :is(strong, small) { display: block; }
.home-reading-list strong { font-weight: 720; line-height: 1.35; }
.home-reading-list small { color: var(--muted); font-size: 12px; }
.home-reading-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: var(--accent-wash);
  color: var(--accent-text);
  font: 700 17px/1 var(--mono);
}
.home-reading-list li:last-child .home-reading-icon {
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, var(--surface));
}
.home-reading-arrow { color: var(--accent); }
.home-intro, .home-collections { scroll-margin-top: 20px; }

.home-shelves {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(19px, 3.4vw, 43px);
  margin-top: 34px;
}
.home-latest { scroll-margin-top: 20px; }
.home-section-heading {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 12px;
}
.home-section-heading h2 {
  margin: 0;
  color: var(--text);
  font: 780 clamp(20px, 2.15vw, 27px)/1.25 "Noto Serif SC", "Songti SC", "SimSun", serif;
}
.home-section-heading h2 span {
  margin-inline-end: 3px;
  color: var(--accent);
  font: 700 .63em/1 var(--sans);
  vertical-align: .13em;
}
.home-section-heading p, .home-section-link {
  flex: none;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.home-section-link:hover { color: var(--accent-text); }
.home-section-link span { margin-inline-start: 3px; color: var(--accent); }
.home-notes, .home-collection-list { margin: 0; padding: 0; list-style: none; }

.home-notes {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-deep);
}
.home-note {
  display: grid;
  min-height: 67px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px 14px;
  padding: 12px clamp(13px, 2vw, 22px);
  transition: background .2s ease;
}
.home-notes li + li { border-top: 1px solid var(--line); }
.home-note:hover, .home-note:focus-visible { background: var(--surface-hover); }
.home-note:focus-visible, .home-collection:focus-visible { outline-offset: -3px; }
.home-note-type {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 21%, var(--line));
  border-radius: 11px;
  background: var(--accent-wash);
  color: var(--accent-text);
  font: 650 10px/1 var(--mono);
}
.home-note-content, .home-collection-name {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.home-note-title, .home-note-directory, .home-collection-name {
  overflow-wrap: anywhere;
}
.home-note-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}
.home-note-directory, .home-note-date {
  color: var(--muted);
  font-size: 11px;
}
.home-note-date { font-variant-numeric: tabular-nums; }
.home-notes li:first-child {
  background: linear-gradient(108deg, var(--accent-wash), var(--surface) 76%);
}
.home-notes li:first-child .home-note { min-height: 100px; }
.home-notes li:first-child .home-note-type {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.home-notes li:first-child .home-note-title {
  font-size: clamp(16px, 2.1vw, 24px);
}

.home-collection-list { display: grid; gap: 7px; }
.home-collection {
  display: grid;
  min-height: 55px;
  grid-template-columns: 25px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  transition: background .2s ease, border-color .2s ease;
}
.home-collection:hover, .home-collection:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
  background: var(--surface-hover);
}
.home-folder {
  position: relative;
  width: 21px;
  height: 15px;
  margin-top: 3px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-wash);
}
.home-folder::before {
  position: absolute;
  inset: -5px auto auto 1px;
  width: 8px;
  height: 4px;
  border: 1px solid var(--accent);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  content: "";
}
.home-collection-name { font-size: 13px; font-weight: 700; }
.home-collection-count { color: var(--muted); font: 600 10px/1 var(--mono); }
.home-collection-arrow {
  color: var(--accent);
  line-height: 1;
  transition: transform .2s ease;
}
.home-collection:hover .home-collection-arrow { transform: translateX(2px); }
.home-status { margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.home-status:not([hidden]) + .home-shelves :is(.home-notes, .home-collection-list):empty { display: none; }

@keyframes home-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
:root[data-effects="on"] .home-content-enter { animation: home-enter .32s ease both; }

@media (max-width: 820px) {
  .home-hero { min-height: clamp(310px, 52vw, 365px); }
  .home-hero .hero-image { object-position: 70% center; }
  .home-hero::after {
    background: linear-gradient(90deg, rgb(12 13 30 / 85%), rgb(15 15 35 / 46%) 52%, transparent 87%);
  }
}
@media (max-width: 620px) {
  .home-guide { grid-template-columns: minmax(0, 1fr); }
  .home-shelves { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
}
@media (max-width: 585px) {
  .home-hero { min-height: clamp(342px, 83vw, 385px); border-radius: 16px; }
  .home-hero .hero-image { object-position: 76% 50%; }
  .home-hero::after {
    background:
      linear-gradient(0deg, rgb(13 14 33 / 97%), rgb(13 14 33 / 72%) 28%, transparent 69%),
      linear-gradient(90deg, rgb(14 14 34 / 24%), transparent 65%);
  }
  .home-hero .hero-content { width: 100%; padding: 23px 20px; }
  .home-hero .hero-description { margin: 8px 0 14px; }
  .home-actions .hero-button, .home-secondary { min-height: 40px; }
  .home-note { column-gap: 10px; }
  .home-note-date { font-size: 10px; }
}
@media (max-width: 360px) {
  .home-note { grid-template-columns: auto minmax(0, 1fr); }
  .home-note-date { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-effects="on"] .home-content-enter { animation: none; }
  .home-actions a, .home-note, .home-collection, .home-collection-arrow { transition: none; }
  .home-actions a:hover, .home-collection:hover .home-collection-arrow { transform: none; }
}
