/* A person's own projects (components.personWorld). Dark by default, .world--light on white. */
.world { --card: rgba(255, 255, 255, 0.04); --card-line: rgba(255, 255, 255, 0.1); --txt: var(--on-dark-2); --meta: var(--on-dark-3); --name: var(--on-dark); }
.world--light { --card: var(--white); --card-line: var(--line); --txt: var(--muted); --meta: var(--muted-2); --name: var(--ink); }
.world__head { display: flex; align-items: flex-start; gap: 20px; }
.world__head .section-head { margin-bottom: 0; }
.world__face { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 3px var(--accent-color, #C45A1A), 0 0 0 7px rgba(196, 90, 26, 0.18); }
.world__grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .world__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .world__grid { grid-template-columns: repeat(3, 1fr); } .world__face { width: 88px; height: 88px; } }
.world__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-content: start;
  padding: 18px 48px 18px 18px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--card-line);
  transition: transform .35s var(--ease-out, ease), border-color .35s, box-shadow .35s;
}
.world__card::before { /* accent glow that grows on hover */
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(closest-side, var(--accent), transparent); opacity: .16; transition: opacity .4s, transform .6s var(--ease-out, ease);
}
.world__glyph {
  grid-row: span 3; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font: 700 0.95rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .02em; color: #fff;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000));
  box-shadow: 0 10px 24px -12px var(--accent);
}
.world__kind { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); filter: brightness(1.35); }
.world--light .world__kind { filter: none; }
.world__name { margin: 2px 0 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; color: var(--name); }
.world__name a { color: inherit; text-decoration: none; }
.world__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.world__text { grid-column: 2; margin: 6px 0 0; font-size: .9375rem; line-height: 1.45; color: var(--txt); }
.world__more { grid-column: 2; margin: 10px 0 0; display: flex; gap: 8px; position: relative; z-index: 2; }
.world__more a { font-size: .8125rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--card-line); color: var(--name); text-decoration: none; }
.world__more a:hover { border-color: var(--accent); }
.world__go { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; color: var(--meta); transition: transform .35s var(--ease-out, ease), color .35s; }
.world__go svg { width: 100%; height: 100%; }
.world__card:hover, .world__card:focus-within { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 24px 48px -28px var(--accent); }
.world__card:hover::before, .world__card:focus-within::before { opacity: .38; transform: scale(1.25); }
.world__card:hover .world__go, .world__card:focus-within .world__go { color: var(--accent); transform: translate(3px, -3px); }
.world__name a:focus-visible { outline: none; }
.world__card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .world__card, .world__card::before, .world__go { transition: none; } }
