/* Shared typography, colors and brand geometry live with .product-page in app.css. */
.activity-home { line-height: 1.7; }
.home-header, .home-main, .home-footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.home-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--ui-line); }
.home-nav, .home-actions, .home-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.activity-home a { color: var(--forest); text-decoration: none; }
.activity-home a:focus-visible, .home-rules summary:focus-visible { outline: 3px solid var(--forest); outline-offset: 5px; }
.home-nav a, .home-footer a, .home-actions a { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; }
.home-nav { justify-content: flex-end; font-weight: 600; }
.home-nav a { color: var(--ui-muted); }
.home-nav a:hover, .home-footer a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: .3em; }
.home-main { padding-block: 64px 72px; }
.home-intro { max-width: 800px; margin-bottom: 36px; }
.home-eyebrow { color: var(--forest); font: 700 11px/1.7 var(--sans); letter-spacing: .1em; }
.home-intro h1 { font-size: clamp(32px, 4.5vw, 60px); font-weight: 800; line-height: 1.25; margin: 16px 0 20px; letter-spacing: -.045em; }
.home-intro h1 em { color: var(--forest); font-style: normal; }
.home-intro > p:not(.home-eyebrow) { color: var(--ui-muted); }
.home-intro p, .home-empty p { margin-block: 16px; }
.home-period { color: var(--ui-muted); font-size: 14px; }
.home-intro .home-period { font-size: 12px; }
.home-activity-info { margin-top: 32px; padding-top: 8px; }
.home-rules { border-top: 1px solid var(--ui-line); }
.home-rules summary { width: fit-content; min-height: 48px; padding-block: 12px; cursor: pointer; color: var(--forest); font-weight: 700; }
.home-rules p { max-width: 85ch; color: var(--ui-muted); }
.activity-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.activity-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: start; gap: 24px; padding: 28px; border-radius: var(--ui-radius); background: var(--ui-card); }
.activity-cover { width: 84px; height: 120px; object-fit: cover; border-radius: 8px; background: var(--forest-soft); }
.activity-cover-placeholder { display: grid; place-items: center; color: var(--forest); font-size: 12px; text-align: center; padding: 8px; }
.activity-rank { margin: 0 0 8px; color: var(--forest); font: 800 18px/1.5 var(--sans); }
.activity-rank span { margin-left: 6px; color: var(--ui-muted); font: 500 12px/1.5 'Noto Sans KR', sans-serif; }
.activity-card h2 { font-size: 20px; font-weight: 800; margin: 0 0 8px; line-height: 1.5; letter-spacing: -.025em; }
.activity-author { margin: 0 0 12px; color: var(--ui-muted); }
.activity-conversation { display: inline-flex; min-height: 44px; align-items: center; gap: 16px; font-weight: 700; }
.activity-conversation:hover { text-decoration: underline; text-underline-offset: .3em; }
.activity-score { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--ui-line); color: var(--forest); font-weight: 700; font-variant-numeric: tabular-nums; }
.activity-counts { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 12px 0 0; }
.activity-counts div { min-width: 0; }
.activity-counts dt { font-size: 12px; color: var(--ui-muted); }
.activity-counts dd { margin: 4px 0 0; font-weight: 700; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.home-empty { padding: clamp(24px, 4vw, 48px); border-radius: var(--ui-panel-radius); background: var(--ui-card); }
.home-empty h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.5; font-weight: 800; letter-spacing: -.035em; }
.home-empty p { color: var(--ui-muted); }
.home-actions { margin-top: 24px; }
.home-actions .home-primary { justify-content: center; min-height: 54px; padding: 12px 24px; border-radius: 13px; background: var(--forest); color: #fff; font-weight: 700; }
.home-primary:hover { background: #245541; }
.home-footer { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-block: 20px; border-top: 1px solid var(--ui-line); color: var(--ui-muted); font-size: 12px; }
.home-main, .home-header, .home-nav, .home-intro, .home-rules, .activity-card, .home-empty, .home-footer { min-width: 0; overflow-wrap: anywhere; }
.home-skip { position: absolute; left: 24px; top: -100px; padding: 12px; background: var(--ui-card); z-index: 30; }
.home-skip:focus { top: 12px; }
@media (max-width: 1000px) {
  .home-header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .home-nav { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .home-header, .home-main, .home-footer { width: calc(100% - 40px); }
  .home-nav { gap: 4px 20px; }
  .home-main { padding-block: 32px 48px; }
  .home-intro { margin-bottom: 28px; }
  .activity-books { grid-template-columns: minmax(0, 1fr); }
  .activity-card { padding: 20px; gap: 16px; grid-template-columns: 64px minmax(0, 1fr); }
  .activity-cover { width: 64px; height: 96px; }
  .activity-card h2 { font-size: 18px; }
  .home-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .activity-home * { scroll-behavior: auto; } }
