/* ==========================================================================
   Alkando — the screens (home). One white card per screen, as the app's
   light theme draws its cards (alkandoViolet: white on lilac), with the
   screen's colour on its icon tile.
   ========================================================================== */

.scr {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: clamp(120px, 18vh, 200px) auto 0;
}

.scr__title {
  margin: 0 0 clamp(36px, 5vh, 56px);
  text-align: center;
  font: 800 clamp(2.2rem, 5.4vw, 3.8rem)/1.06 var(--ak-font-rounded);
  letter-spacing: -0.03em;
}

.scr__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scr__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon name"
    "icon status"
    "icon desc";
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  /* Cards in a row share one height; without this the spare height is
     shared out between the rows, opening a gap between name and text. */
  align-content: start;
  padding: 18px;
  border-radius: var(--ak-radius-card);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(60, 30, 120, 0.08);
}

.scr__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--c);
  color: #fff;
}

.scr__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scr__name {
  grid-area: name;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--ak-text);
  font: 700 17px/1.25 var(--ak-font-ui);
}

.scr__desc {
  grid-area: desc;
  margin: 0;
  color: var(--ak-text-2);
  font: 400 14.5px/1.45 var(--ak-font-ui);
}

/* "Being refined": its own line under the name, so it never crowds it. */
.scr__status {
  grid-area: status;
  justify-self: start;
  margin: 2px 0 2px;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 16%, #fff);
  color: color-mix(in srgb, var(--c) 70%, #1e1436);
  font: 800 10px/1 var(--ak-font-ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
