/* Technical manga workbench hero; reading workbenches retain their theme. */
.site-header { background: var(--color-surface); }
.site-header .brand { min-height: 44px; }
.site-header .masthead-tools > a { min-height: 44px; display: inline-flex; align-items: center; }
.site-header .wordmark { letter-spacing: .08em; }
.home-page { background: #101820; }
.home-page .site-header {
  --blue: #ffd09b;
  --muted: #b1c0cc;
  --line: #32414e;
  --color-accent: #ffd09b;
  --color-accent-hover: #ffe1be;
  --color-accent-ink: #101820;
  --color-accent-soft: #24313d;
  --color-focus: #ffd09b;
  color: #edf2f6;
  background: #101820;
  border-bottom-color: #2b3945;
}
.home-page .site-header .wordmark { color: #b1c0cc; }
.home-page .home-index {
  --blue: #ffd09b;
  --color-accent: #ffd09b;
  --color-accent-hover: #ffe1be;
  --color-accent-ink: #101820;
  --color-focus: #ffd09b;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  position: relative;
  isolation: isolate;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 40px max(24px, calc((100% - 1280px) / 2)) 0;
  border-bottom: 0;
  color: #edf2f6;
  background: #101820;
}
.home-page .home-index-copy { position: relative; z-index: 2; max-width: 580px; padding-right: 20px; }
.home-page .home-index .context-line { color: #ffd09b; font-size: 15px; font-weight: 600; letter-spacing: .04em; margin-bottom: 24px; }
.home-page .home-index h1 { font-size: clamp(40px, 4.3vw, 64px); font-weight: 750; line-height: 1.15; letter-spacing: -.055em; margin-bottom: 28px; }
.home-page .home-description { max-width: 490px; color: #b9c8d3; font-size: 17px; line-height: 1.85; margin-bottom: 28px; }
.home-reading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.home-reading-actions .button { min-height: 48px; padding: 12px 24px; border-radius: 8px; font-size: 15px; }
.home-reading-actions .secondary { color: #edf2f6; background: transparent; border-color: #697f90; }
.home-reading-actions .secondary:hover { color: #101820; background: #ffd09b; border-color: #ffd09b; }
.home-daily-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #b1c0cc; margin-top: 12px; font-size: 13px; }
.home-daily-link:hover { color: #ffd09b; text-decoration: underline; text-underline-offset: 5px; }
.home-hero-art { position: relative; width: 100%; height: 550px; margin: 0; pointer-events: none; }
.home-hero-art picture, .home-hero-art img { display: block; width: 100%; height: 100%; }
.home-hero-art img { object-fit: cover; object-position: right center; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 88%, transparent); mask-composite: intersect; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 88%, transparent); -webkit-mask-composite: source-in; }
.home-toolbox { position: relative; z-index: 2; grid-column: 1 / -1; width: 100%; margin: 24px auto 0; }
.home-toolbox .home-task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px 0 28px; border-top: 1px solid #32414e; }
.home-toolbox .home-task-link { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-content: center; gap: 4px 12px; min-height: 88px; padding: 12px 24px; border: 0; transition: background var(--dur-short) var(--ease-out); }
.home-toolbox .home-task-link + .home-task-link { border-left: 1px solid #32414e; }
.home-task-link > svg { grid-row: 1 / 3; width: 26px; height: 26px; margin-top: 2px; color: #ffd09b; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.home-toolbox .home-task-link strong { font-size: 14px; }
.home-toolbox .home-task-link small { color: #b1c0cc; font-size: 11px; }
.home-task-link:focus-visible { outline-offset: -3px; border-radius: 8px; }
.home-value-section { --color-ink-2: #b9c8d3; --color-accent: #ffd09b; color: #edf2f6; padding: 88px max(24px, calc((100% - 1120px) / 2)); background: #101820; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.home-section-heading h2 { margin: 0; font-size: clamp(38px, 4vw, 54px); line-height: 1.14; letter-spacing: -.05em; }
.home-section-heading > p { margin: 0; color: var(--color-ink-2); font-size: 17px; line-height: 1.8; }
.home-value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-value-item { padding: 32px 28px 24px; border-top: 3px solid #8ec0d8; border-radius: 8px; background: #1a2631; }
.home-value-item:nth-child(2) { border-top-color: #bcb1dc; }
.home-value-item:nth-child(3) { border-top-color: #e6b895; }
.home-value-item .home-value-label { margin: 0 0 28px; font-size: 13px; color: #8ec0d8; font-weight: 600; }
.home-value-item:nth-child(2) .home-value-label { color: #bcb1dc; }
.home-value-item:nth-child(3) .home-value-label { color: #e6b895; }
.home-value-item h3 { font-size: 27px; line-height: 1.35; letter-spacing: -.04em; margin-bottom: 18px; }
.home-value-item > p:not(.home-value-label) { color: var(--color-ink-2); font-size: 14px; line-height: 1.85; margin-bottom: 18px; }
.home-value-item > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--color-accent); font-size: 14px; }
.home-value-item > a:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-member-section { max-width: 1200px; margin: 0 auto 72px; padding: 72px 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 64px; color: #f2f7fc; background: #1a2631; border-radius: 12px; }
.home-member-copy .context-line { color: #ffd09b; font-size: 15px; letter-spacing: 0; margin-bottom: 24px; }
.home-member-copy h2 { font-size: clamp(36px, 3.6vw, 50px); line-height: 1.2; letter-spacing: -.045em; margin-bottom: 24px; }
.home-member-copy > p:not(.context-line) { color: #c2d1e3; font-size: 16px; line-height: 1.85; margin-bottom: 28px; }
.home-member-copy .button { background: #ffd09b; color: #102131; border-radius: 8px; min-height: 48px; }
.home-member-copy .button:hover { background: #ffe1be; }
.home-member-browse { display: flex; align-items: center; gap: 8px; color: #c2d1e3; font-size: 13px; min-height: 44px; margin-top: 12px; }
.home-member-browse:hover { color: #ffd09b; text-decoration: underline; text-underline-offset: 5px; }
.home-member-section :focus-visible { outline-color: #ffd09b; }
.home-member-kit { min-width: 0; padding: 0 24px; background: #101820; border: 1px solid #3d536d; border-radius: 8px; box-shadow: 12px 12px 0 #22354e; }
.home-kit-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; border-bottom: 1px solid #34475e; color: #c2d1e3; font-size: 13px; }
.home-kit-heading > span:last-child { color: #ffd09b; font-family: var(--font-mono); }
.home-member-kit ul { list-style: none; padding: 8px 0; margin: 0; }
.home-member-kit li { display: flex; align-items: center; gap: 16px; padding: 20px 0; }
.home-kit-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; font-size: 20px; font-family: var(--font-mono); color: #ffd09b; background: #20344b; border-radius: 6px; }
.home-member-kit strong { display: block; font-size: 16px; font-weight: 600; }
.home-member-kit li p { margin: 5px 0 0; color: #b1c7de; font-size: 12px; line-height: 1.7; }
.home-member-kit > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; border-top: 1px solid #34475e; color: #ffd09b; font-size: 12px; }
.home-member-kit > a:hover { color: #ffe1be; }
.home-page footer { --ink: #edf2f6; --muted: #b1c0cc; --line: #32414e; --color-accent: #ffd09b; color: #b1c0cc; }
@media (hover: hover) and (pointer: fine) {
  .home-toolbox .home-task-link:hover { padding-left: 24px; background: #24313d; }
}
@media (max-width: 1248px) {
  .home-member-section { margin-inline: 24px; padding: 56px 40px; gap: 48px; }
}
@media (max-width: 900px) {
  .home-page .home-index { grid-template-columns: 1fr; padding-top: 48px; }
  .home-page .home-index h1 { font-size: clamp(44px, 6vw, 54px); }
  .home-page .home-index-copy { max-width: 680px; padding-right: 0; }
  .home-hero-art { width: 100%; height: 480px; margin-top: 16px; }
  .home-toolbox { margin-top: 48px; }
  .home-toolbox .home-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-toolbox .home-task-link:nth-child(odd) { border-left: 0; }
  .home-toolbox .home-task-link:nth-child(n + 3) { border-top: 1px solid #32414e; }
  .home-section-heading { flex-direction: column; align-items: flex-start; gap: 24px; }
  .home-value-section { padding-top: 64px; padding-bottom: 64px; }
  .home-value-grid { gap: 16px; }
  .home-value-item { padding: 24px 20px; }
  .home-value-item h3 { font-size: 22px; }
  .home-member-section { grid-template-columns: 1fr; gap: 40px; }
  .home-member-kit { max-width: 600px; }
}
@media (max-width: 600px) {
  .home-page .home-index { padding: 40px 20px 0; }
  .home-page .home-index .context-line { font-size: 13px; margin-bottom: 20px; }
  .home-page .home-index h1 { font-size: clamp(30px, 9.5vw, 46px); margin-bottom: 20px; }
  .home-page .home-description { font-size: 14px; margin-bottom: 24px; }
  .home-reading-actions { gap: 10px; }
  .home-reading-actions .button { padding: 11px 16px; font-size: 13px; }
  .home-hero-art { position: relative; z-index: 0; width: calc(100% + 40px); height: 330px; margin: 8px -20px 0; opacity: 1; }
  .home-hero-art img { object-position: right center; }
  .home-toolbox { margin-top: 0; }
  .home-toolbox .home-task-grid { padding: 16px 0 24px; }
  .home-toolbox .home-task-link { padding: 14px 8px; gap: 3px 8px; min-height: 80px; }
  .home-toolbox .home-task-link strong { font-size: 13px; }
  .home-toolbox .home-task-link small { font-size: 10px; }
  .home-task-link > svg { width: 24px; height: 24px; }
  .home-value-section { --color-ink-2: #b9c8d3; --color-accent: #ffd09b; color: #edf2f6; padding: 48px 20px; }
  .home-section-heading { margin-bottom: 32px; gap: 20px; }
  .home-section-heading h2 { font-size: 36px; }
  .home-section-heading > p { font-size: 14px; }
  .home-value-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-value-item { padding: 28px 24px 20px; }
  .home-value-item h3 { font-size: 27px; }
  .home-value-item .home-value-label { margin-bottom: 20px; }
  .home-member-section { margin: 0 16px 40px; padding: 36px 24px; gap: 32px; }
  .home-member-copy .context-line { font-size: 13px; }
  .home-member-copy h2 { font-size: clamp(29px, 8vw, 36px); }
  .home-member-copy > p:not(.context-line) { font-size: 14px; }
  .home-member-copy > p br { display: none; }
  .home-member-kit { padding-inline: 16px; box-shadow: 6px 6px 0 #22354e; }
  .home-member-kit li { gap: 12px; padding-block: 16px; }
  .home-member-kit strong { font-size: 14px; }
  .home-member-kit li p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-toolbox .home-task-link { transition: none; }
}

/* Motion follows the reader's attention; no continuous background loops. */
.home-page .home-value-item { position: relative; transition: transform 300ms var(--ease-out), background 300ms, box-shadow 300ms; }
.home-page .home-value-item:focus-within { box-shadow: 0 0 0 1px #ffd09b; }
.home-page :is(.home-reading-actions, .home-member-copy) .button { transition: transform 220ms var(--ease-out), box-shadow 220ms, background 220ms; }
.home-page :is(.home-value-item > a, .home-daily-link, .home-member-browse) span { display: inline-block; transition: transform 250ms var(--ease-out); }
.home-page .home-task-link > svg { transition: transform 250ms var(--ease-out), color 250ms; }
.home-page .home-member-kit li { transition: background 250ms, transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .home-page .home-value-item:hover { transform: translateY(-8px); background: #20303d; box-shadow: 0 20px 36px #0004, 0 0 0 1px #587083; }
  .home-page .home-value-item:hover > a span { transform: translate(4px, -4px); }
  .home-page :is(.home-reading-actions, .home-member-copy) .button:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #ffd09b26; }
  .home-page :is(.home-daily-link, .home-member-browse):hover span { transform: translateY(3px); }
  .home-page .home-task-link:hover > svg { transform: translateY(-3px) rotate(-6deg); color: #ffe1be; }
  .home-page .home-member-kit li:hover { background: #1a2b39; transform: translateX(4px); }
}
@media (prefers-reduced-motion: no-preference) {
  .home-page .home-index-copy { animation: home-arrive 800ms cubic-bezier(.16,1,.3,1) both; }
  .home-page .home-hero-art { animation: home-art-arrive 1100ms 100ms cubic-bezier(.16,1,.3,1) both; }
}
@keyframes home-arrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes home-art-arrive { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .home-page :is(.home-value-item, .home-task-link > svg, .home-member-kit li, .button, .home-value-item > a span, .home-daily-link span, .home-member-browse span) { transition: none; }
  .home-page :is(.home-value-item:hover, .home-task-link:hover > svg, .home-member-kit li:hover, .button:hover, .home-value-item:hover > a span, .home-daily-link:hover span, .home-member-browse:hover span) { transform: none; }
}

/* Membership is explained next to the protected scenario entry. */
.home-vip-badge { display: inline-block; padding: 5px 12px; border: 1px solid var(--color-accent); border-radius: var(--radius-pill); color: var(--color-accent); font-size: 13px; font-weight: 600; }
.home-scenarios-section { scroll-margin-top: 120px; }

@media (max-width: 760px) {
  .topics.daily-tabs { flex-wrap: wrap; overflow-x: visible; }
}

.daily-utility { max-width: var(--width); width: calc(100% - 48px); margin: 0 auto 26px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--color-surface); }
.daily-utility[hidden] { display: none; }
.daily-utility p { margin: 0; color: var(--color-ink-2); font-size: 14px; }
.daily-catchup-entry { flex-shrink: 0; gap: 12px; }
.daily-breadcrumb { max-width: var(--width); width: calc(100% - 48px); margin: 24px auto 0; display: flex; align-items: center; gap: 12px; color: var(--color-ink-2); font-size: 14px; }
.daily-breadcrumb [aria-current] { color: var(--ink); }
@media (max-width: 760px) {
  .daily-utility, .daily-breadcrumb { width: calc(100% - 40px); }
  .daily-utility { padding: 12px 16px; }
}
