/* Home review polish. The approved arrival-scene composition lives in material.css;
   these rules only firm the seam card, add tactile depth and style home-only links. */

/* Sector card at the dark/ivory seam: opaque plate, ink label bar, firmer edge. */
body.page-home .threshold { background: var(--paper); border-top: 0; outline: 1px solid rgba(23, 19, 26, .14); box-shadow: 0 2px 0 var(--brass) inset, 0 6px 14px rgba(23, 19, 26, .16), 0 40px 70px -28px rgba(23, 19, 26, .7); isolation: isolate; }
body.page-home .threshold-label { padding: 14px 24px; color: var(--brass-light); background: var(--ink); border-top: 2px solid var(--brass); }
body.page-home .threshold-link { position: relative; background: var(--paper); transition: background 260ms var(--ease), padding 320ms var(--ease), box-shadow 260ms var(--ease), transform 260ms var(--ease); }
body.page-home .threshold-link:first-of-type { border-top: 0; }
body.page-home .threshold-note { color: var(--muted); }

/* Tactile depth: hover and keyboard focus lift; touch gets the same state on press. */
body.page-home .threshold-link:hover,
body.page-home .threshold-link:focus-visible,
body.page-home .threshold-link:active { z-index: 1; background: var(--linen); padding-left: 32px; transform: translateY(-2px); box-shadow: inset 3px 0 0 var(--brass), 0 14px 26px -14px rgba(23, 19, 26, .55); }
body.page-home .threshold-link:focus-visible .threshold-arrow,
body.page-home .threshold-link:active .threshold-arrow { transform: translate(3px, 3px); }
body.page-home .arrival-action { transition: gap 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease), color 300ms var(--ease); }
body.page-home .arrival-action:hover,
body.page-home .arrival-action:focus-visible,
body.page-home .arrival-action:active { gap: 56px; transform: translateY(-4px); color: var(--brass-light); box-shadow: 0 16px 24px -18px rgba(0, 0, 0, .9); }
body.page-home .interlude-copy,
body.page-home .letter-card { transition: box-shadow 420ms var(--ease); }
body.page-home .interlude-copy:hover,
body.page-home .interlude-copy:focus-within { box-shadow: var(--shadow-lift); }
body.page-home .guide-list li:focus-within { padding-left: 10px; }
body.page-home .letter-mail:active { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(23, 19, 26, .8); }

/* Home-only links and notes. */
body.page-home .sector-routes { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(36, 28, 41, .14); }
body.page-home .sector-routes-label { flex-basis: 100%; margin: 0; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
body.page-home .sector-routes a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; transition: gap 300ms var(--ease), color 300ms var(--ease); }
body.page-home .sector-routes a:hover,
body.page-home .sector-routes a:focus-visible,
body.page-home .sector-routes a:active { gap: 14px; color: var(--clay-deep); }
body.page-home .interlude-example { margin: 0 0 24px; padding: 16px 18px; font-size: 15.5px; line-height: 1.6; color: var(--text); background: var(--ivory); border-left: 2px solid var(--clay); }
body.page-home .interlude-example-label { display: block; margin-bottom: 6px; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep); }
body.page-home .model-action { margin-top: clamp(36px, 4vw, 56px); color: var(--ivory); }
body.page-home .model-action:hover,
body.page-home .model-action:focus-visible { color: var(--brass-light); }
body.page-home .guide-all { margin-top: 28px; }
body.page-home .letter-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; margin-top: 16px; padding: 10px 0; font-size: 16px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--brass); transition: color 300ms var(--ease), padding 300ms var(--ease); }
body.page-home .letter-summary:hover,
body.page-home .letter-summary:focus-visible,
body.page-home .letter-summary:active { color: var(--clay-deep); padding-right: 6px; }
body.page-home .credits a { display: inline-flex; align-items: center; min-height: 44px; }

/* Without JavaScript the sector tabs cannot switch; the sector routes remain. */
html.no-js body.page-home .sector-tabs { display: none; }

@media (max-width: 900px) {
  body.page-home .threshold { outline: 0; }
  body.page-home .sector-routes { flex-direction: column; align-items: flex-start; }
}
