/* Architect — the app shell's widget grid. Layers on ledger.css design tokens. */

.widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.widget {
  background: var(--ink);
  padding: clamp(24px, 3vw, 38px);
  min-height: 248px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.w-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.w-n {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--teal);
}
.w-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}
.w-tag.is-live {
  color: var(--accent);
}
.w-name {
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
  color: var(--paper);
}
.w-name.is-sm {
  font-size: clamp(24px, 3vw, 34px);
}
.w-desc {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.w-desc em {
  font-style: normal;
  color: var(--paper);
}
.widget .enter {
  margin-top: auto;
  align-self: flex-start;
}

/* Coming-soon widgets read quieter. */
.widget.is-soon .w-name {
  color: color-mix(in oklch, var(--paper) 78%, transparent);
}

/* Linkable product widgets. */
a.widget {
  text-decoration: none;
}
.widget.is-link {
  transition: background 0.3s var(--ease);
}
.widget.is-link:hover {
  background: color-mix(in oklch, var(--paper) 4%, var(--ink));
}
.widget.is-link:hover .w-go {
  color: var(--paper);
}
.w-go {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.3s var(--ease);
}

/* Inline auth/account form */
.w-form {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.w-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.w-field {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.w-field:focus {
  border-color: var(--accent);
}
.w-err {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--amber);
}
.w-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
