@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #fff8ec; --text: #22202a; --muted: #6b6676; --card: #fff; --border: #22202a;
    --c1: #ffd166; --c2: #8ecae6; --c3: #ff8fab; --c4: #95d5b2;
    --font: 'Fredoka', system-ui, sans-serif; --mono: 'JetBrains Mono', monospace;
}
[data-theme="dark"] {
    --bg: #14121c; --text: #f3efe6; --muted: #a39db3; --card: #1f1c2b; --border: #f3efe6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; }
a { color: inherit; }
.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.site-header { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.site-title { font-size: 3.5rem; margin: .5rem 0 0; letter-spacing: -.02em; }
.site-title a { text-decoration: none; }
.tagline { color: var(--muted); margin: 0; }
.network-link { font-family: var(--mono); font-size: .85rem; color: var(--muted); text-decoration: none; }
.theme-toggle { position: fixed; top: 1rem; right: 1rem; background: var(--card); color: var(--text);
    border: 2px solid var(--border); border-radius: 50%; width: 2.5rem; height: 2.5rem; cursor: pointer; font-size: 1.1rem; }

.toy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.toy-card { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem; text-decoration: none; color: #22202a;
    border: 2px solid var(--border); border-radius: 18px; box-shadow: 5px 5px 0 var(--border);
    transition: transform .12s, box-shadow .12s; background: var(--c1); }
.toy-card:nth-child(4n+2) { background: var(--c2); }
.toy-card:nth-child(4n+3) { background: var(--c3); }
.toy-card:nth-child(4n+4) { background: var(--c4); }
.toy-card:hover { transform: translate(-2px, -2px) rotate(-.5deg); box-shadow: 8px 8px 0 var(--border); }
.toy-card h2 { margin: 0; font-size: 1.4rem; }
.toy-card p { margin: 0; flex: 1; }
.post-date, .meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.toy-card .post-date { color: #22202a; opacity: .7; }

.page-title { font-size: 2.2rem; margin-bottom: .25rem; }
.content iframe, .content .toy-frame { width: 100%; height: 520px; border: 2px solid var(--border);
    border-radius: 14px; box-shadow: 5px 5px 0 var(--border); background: var(--card); }
.content code { font-family: var(--mono); background: var(--card); padding: .1em .35em; border-radius: 6px; }
.content pre { background: var(--card); border: 2px solid var(--border); border-radius: 12px; padding: 1rem; overflow-x: auto; }
.content pre code { background: none; padding: 0; }
footer { text-align: center; padding: 2rem 1rem; }
footer .meta a { text-decoration: none; }

/* Logo: four toy blocks spelling "toys", the "o" being a gear */
.site-title { line-height: 0; }
.logo { width: min(340px, 80vw); height: auto; overflow: visible; }
.logo .bd { stroke: #22202a; stroke-width: 3; }
.logo .sh { fill: #22202a; }
[data-theme="dark"] .logo .sh { fill: #f3efe6; }
.logo text { font-family: var(--font); font-weight: 600; font-size: 72px; fill: #22202a; }
.logo .blk { transition: transform .2s; }
.logo .blk:hover { transform-box: fill-box; transform-origin: center; translate: 0 -6px; }
.logo .gear { animation: spin 12s linear infinite; }
@keyframes spin { to { transform: translate(40px, 40px) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .logo .gear { animation: none; } }

.disclaimer { max-width: 560px; margin: 0 auto 1rem; padding: .6rem 1rem; font-size: .85rem; line-height: 1.4;
    background: var(--card); border: 2px dashed var(--border); border-radius: 12px; }
.disclaimer a { text-decoration: underline; }
