/* Play: the index of Alyssa's toys (play.alyssa.co.za). Each toy has its own folder. */
@font-face { font-family: "DM Mono"; src: url(/fonts/DMMono-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }

:root { --ground: #1E1C1A; --ink: #E2F5E7; --dim: rgba(226,245,231,.55); --faint: rgba(226,245,231,.14); --copper: #C16259;
  --mono: "DM Mono", ui-monospace, Menlo, monospace; --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--ink); font-family: var(--sans);
  padding: max(16px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  background: radial-gradient(120% 80% at 80% 10%, rgba(193,98,89,.10), transparent 60%), var(--ground); }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--copper); outline-offset: 4px; }

.top, footer { display: flex; gap: .8em; font: 11px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.top a, footer a { text-decoration: none; }
.top .home, footer a { color: var(--dim); transition: color .3s; }
.top a:hover, footer a:hover { color: var(--ink); }

main { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 16vh 0 10vh; }
h1 { font-weight: 200; font-size: clamp(40px, 8vw, 92px); line-height: .98; letter-spacing: -.035em; margin: 0 0 18px; }
.lede { margin: 0 0 9vh; color: var(--dim); font: 12px/1.7 var(--mono); letter-spacing: .05em; text-transform: uppercase; }

.toys { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--faint); }
.toys li { border-bottom: 1px solid var(--faint); }
.toys a { display: grid; grid-template-columns: 3.2em 1fr auto; grid-template-areas: "n t go" "n d go"; gap: 6px 12px; align-items: baseline;
  padding: 26px 4px; text-decoration: none; transition: background .3s; }
.toys a:hover, .toys a:focus-visible { background: rgba(226,245,231,.03); }
.n { grid-area: n; font: 10px/1 var(--mono); letter-spacing: .2em; color: var(--copper); }
.t { grid-area: t; font-weight: 200; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.d { grid-area: d; color: var(--dim); font: 11px/1.7 var(--mono); letter-spacing: .05em; text-transform: uppercase; max-width: 520px; }
.go { grid-area: go; align-self: center; font-size: 22px; color: var(--dim); transition: transform .3s, color .3s; }
.toys a:hover .go { transform: translateX(4px); color: var(--ink); }

footer { justify-content: flex-start; }
