/* home.css  เฉพาะหน้าแรก */

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--fg); text-decoration: none; }
.brand-mark {
  width: 1.1rem; height: 1.1rem; border-radius: 4px; flex: none;
  background: linear-gradient(135deg, #7B2FFF, #2F6BFF 30%, #19C37D 55%, #FFD23F 78%, #FF5A36);
}

.hero { padding-block: clamp(2.5rem, 9vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.hero .lead { margin: 0; max-width: 34rem; color: var(--muted); font-size: 1.15rem; line-height: 1.75; }

.list-title { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 1rem; }
.chapter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

.chapter-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
a.chapter-row:hover { border-color: var(--accent); }
a.chapter-row:hover .row-body h3 { color: var(--accent); }
.row-swatch { display: grid; grid-auto-rows: 1fr; }
.row-swatch span { display: block; }
.row-body { padding: 1.1rem 1.3rem 1.2rem; min-width: 0; }
.row-no { font: 500 .85rem/1.4 var(--font-mono); color: var(--muted); }
.row-body h3 { margin: .15rem 0 .35rem; font-size: 1.35rem; font-weight: 600; line-height: 1.4; transition: color .15s; }
.row-body p { margin: 0 0 .6rem; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.row-meta { font-size: .88rem; color: var(--muted); line-height: 1.6; }

.chapter-row.is-soon { opacity: .6; }
.chapter-hold {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

.foot-note { margin: 2.5rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.7; max-width: 40rem; }

@media (max-width: 560px) {
  .chapter-row { grid-template-columns: minmax(0, 1fr); }
  .row-swatch { grid-auto-flow: column; grid-auto-rows: auto; height: 3.25rem; }
}
