/* Atelier · Home. */

/* ── Home: one question, three scales, your people, what is waiting ── */
.home-page { display: flex; flex-direction: column; gap: 40px; }
.home-head__title { margin: 6px 0 0; max-width: 18ch; font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.home-head__title .voice { font-family: var(--font-voice); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.home-scales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scale-tile { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 100%; padding: 22px 22px 20px; border-radius: 18px; background: var(--surface-raised); box-shadow: 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow .2s var(--ease-standard), transform .2s var(--ease-standard); }
.scale-tile:hover { box-shadow: 0 0 0 1.5px var(--on-surface), 0 22px 44px -30px color-mix(in oklch, var(--on-surface) 50%, transparent); transform: translateY(-2px); }
.scale-tile:focus-visible { outline: 2px solid var(--on-surface); outline-offset: 3px; }
.scale-tile__art { display: flex; align-items: center; gap: 6px; height: 40px; margin-bottom: 10px; }
.scale-tile__art i { display: block; flex: none; aspect-ratio: 1; border-radius: 50%; background: var(--on-surface); }
.scale-tile--one .scale-tile__art i { width: 30px; height: 30px; background: var(--action-live); }
.scale-tile--few .scale-tile__art i { width: 16px; height: 16px; }
.scale-tile--few .scale-tile__art i:nth-child(2) { transform: translateY(-8px); }
.scale-tile--few .scale-tile__art i:nth-child(3) { transform: translateY(-8px); }
.scale-tile--new .scale-tile__art i { width: 30px; height: 30px; background: none; box-shadow: inset 0 0 0 1.5px var(--on-surface); border: 0; background-image: linear-gradient(var(--on-surface), var(--on-surface)), linear-gradient(var(--on-surface), var(--on-surface)); background-size: 12px 1.5px, 1.5px 12px; background-position: center; background-repeat: no-repeat; }
.scale-tile__kicker { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .07em; text-transform: uppercase; color: var(--on-surface-faint); }
.scale-tile__title { font-size: var(--text-lg); font-weight: 600; letter-spacing: -.01em; }
.scale-tile__text { color: var(--on-surface-muted); max-width: 34ch; }
.scale-tile__go { align-self: flex-start; margin-top: auto; pointer-events: none; }
/* Side by side, the keys share one line at the tiles' foot: the key takes the free space above it, and the
   text keeps its distance from it */
.scale-tile__text { margin-bottom: 6px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 32px 40px; align-items: start; }
.section__link { font-weight: 600; color: var(--on-surface); text-underline-offset: 3px; }
.home-cast__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 12px; padding: 0; list-style: none; }
.cast-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; padding: 16px; border-radius: 16px; background: var(--surface-raised); box-shadow: 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow .2s var(--ease-standard); }
.cast-card:hover { box-shadow: 0 0 0 1.5px var(--on-surface); }
.cast-card:focus-visible { outline: 2px solid var(--on-surface); outline-offset: 3px; }
.cast-card .avatar { width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; overflow: hidden; font-size: 1.4rem; }
.cast-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.cast-card__name { font-weight: 600; line-height: 1.25; }
.cast-card__role { font-size: var(--text-sm); color: var(--on-surface-muted); line-height: 1.35; }
.cast-card .status { margin-top: auto; padding-top: 8px; font-size: var(--text-sm); }
.home-side { display: flex; flex-direction: column; gap: 16px; }
.home-updates { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-left: 3px solid var(--attention); border-radius: 0 16px 16px 0; background: color-mix(in oklch, var(--attention) 10%, var(--surface-raised)); color: inherit; text-decoration: none; }
a.home-updates:hover { background: color-mix(in oklch, var(--attention) 16%, var(--surface-raised)); }
a.home-updates:focus-visible { outline: 2px solid var(--on-surface); outline-offset: 3px; }
.home-updates--quiet { border-left-color: var(--line); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); border-radius: 0 16px 16px 0; }
.home-updates__kicker { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-review); }
.home-updates--quiet .home-updates__kicker { color: var(--on-surface-faint); }
.home-updates__title { font-size: var(--text-md); font-weight: 600; line-height: 1.3; }
.home-updates__text { font-size: var(--text-sm); color: var(--on-surface-muted); }
.home-updates__text a { color: inherit; text-underline-offset: 3px; }
.home-honesty { margin: 0; padding-left: 14px; border-left: 2px dashed var(--line); font-size: var(--text-sm); color: var(--on-surface-muted); }
.home-honesty .label { display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--on-surface-faint); }

.recent-list { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.recent-item { display: grid; grid-template-columns: 34px minmax(6rem, 9rem) minmax(0, 1fr) auto auto; grid-template-areas: "glyph kind title faces date" "glyph kind meta faces date"; align-items: center; gap: 2px 16px; min-height: 64px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.recent-item:hover .recent-item__title { text-decoration: underline; text-underline-offset: 3px; }
.recent-item:focus-visible { outline: 2px solid var(--on-surface); outline-offset: 2px; }
.recent-item__glyph { grid-area: glyph; display: flex; align-items: center; gap: 3px; }
.recent-item__glyph i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--on-surface); }
.recent-item__glyph--one i { width: 11px; height: 11px; }
.recent-item__kind { grid-area: kind; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface-faint); }
.recent-item__title { grid-area: title; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.recent-item__meta { grid-area: meta; font-size: var(--text-sm); color: var(--on-surface-muted); }
.recent-item__faces { grid-area: faces; display: flex; }
.recent-item__faces .avatar { width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--surface-page); font-size: var(--text-xs); }
.recent-item__faces .avatar:first-child { margin-left: 0; }
.recent-item__faces .avatar img { width: 100%; height: 100%; object-fit: cover; }
.recent-item__date { grid-area: date; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--on-surface-faint); white-space: nowrap; }

@media (max-width: 60rem) {
  .home-scales { grid-template-columns: minmax(0, 1fr); }
  .scale-tile { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; }
  .scale-tile > :not(.scale-tile__art) { grid-column: 2; }
  .scale-tile__art { grid-row: 1 / span 4; margin: 0; height: auto; align-self: start; padding-top: 4px; }
  .scale-tile__text { margin-bottom: 0; }
  .scale-tile__text + .scale-tile__go { margin-top: 8px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .home-page { gap: 32px; }
  .recent-item { grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "glyph kind date" "glyph title title" "glyph meta faces"; }
}
.home-page .section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
