@font-face {
    font-family: 'Fredoka';
    src: url('/fonts/Fredoka-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
:root {
    --bg: #fff8f3;
    --plum: #3a2633;
    --paper: #ffffff;
    --ink: #4a2f38;
    --soft: #8a6b74;
    --pink: #e9739a;
    --blush: #ffe3ea;
    --peach: #ffe9d9;
    --line: #f3d6dd;
    --radius: 18px;
    font-family: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: var(--pink);
    text-underline-offset: 3px;
}
main {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1rem 1.25rem 4rem;
}
.top {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.mark {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.mark img {
    width: 2.25rem;
    height: 2.25rem;
    margin: -0.4rem 0;
}
nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}
nav a {
    color: var(--soft);
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}
nav a:hover,
nav a[aria-current] {
    background: var(--blush);
    color: var(--ink);
}
.hero {
    padding: 2.5rem 0 1.5rem;
}
main > .hero:first-child:has(.pinky) {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    margin: 0.5rem -1.5rem 0;
    border-radius: 32px;
    background:
        radial-gradient(circle at 25% 60%, #ffd6e4 0, transparent 55%),
        radial-gradient(circle at 85% 20%, #ffe9d9 0, transparent 50%);
}
.pinky {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 18px rgb(58 38 51 / 0.18));
}
.hero .wordmark {
    display: block;
    width: 100%;
    height: auto;
}
.hero h1 {
    margin: 0;
}
.hero-text .lead {
    font-size: 1.25rem;
    margin-top: 0.5rem;
}
@media (max-width: 40rem) {
    main > .hero:first-child:has(.pinky) {
        grid-template-columns: 1fr;
        text-align: center;
        margin: 0.5rem 0 0;
        padding: 1rem 0.5rem;
    }
    .hero .pinky {
        width: 62%;
        margin: 0 auto;
    }
}
.games {
    display: grid;
    gap: 1.25rem;
}
.game {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 0 var(--line);
    transition:
        transform 140ms,
        box-shadow 140ms,
        border-color 140ms;
}
a.game:hover {
    transform: translateY(-3px);
    border-color: var(--pink);
    box-shadow: 0 9px 0 var(--blush);
}
.game-cover {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 15rem;
    object-fit: cover;
}
.game-body {
    padding: 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
    align-items: flex-start;
}
.game-body h3 {
    font-size: 1.6rem;
    line-height: 1.15;
    margin: 0.2rem 0 0;
}
.game-body p {
    margin: 0;
}
.more {
    margin-top: 0.4rem;
    color: var(--pink);
}
.game.no-cover {
    grid-template-columns: 1fr;
    background: repeating-linear-gradient(-45deg, #fffaf6, #fffaf6 12px, #fff3ec 12px, #fff3ec 24px);
    box-shadow: none;
}
.game.no-cover .game-body {
    margin: 0.6rem;
    border: 2px dashed var(--line);
    border-radius: 18px;
}
@media (max-width: 40rem) {
    .game {
        grid-template-columns: 1fr;
    }
    .game-cover {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}
.game-hero {
    padding: 2rem 0 0.5rem;
}
.mosaic {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.5rem -4rem 0.5rem;
}
.mosaic img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid var(--line);
}
.mosaic img:first-child {
    grid-row: span 2;
}
@media (max-width: 56rem) {
    .mosaic {
        margin-left: 0;
        margin-right: 0;
    }
}
@media (max-width: 34rem) {
    .mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .mosaic img:first-child {
        grid-row: auto;
        grid-column: span 2;
    }
}
.shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.shot {
    margin: 0;
}
.shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid var(--line);
}
.shot figcaption {
    margin-top: 0.4rem;
}
@media (max-width: 34rem) {
    .shots {
        grid-template-columns: 1fr;
    }
}
.about {
    display: grid;
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding-top: 2rem;
}
.about .pinky {
    margin-top: 1rem;
}
@media (max-width: 34rem) {
    .about {
        grid-template-columns: 1fr;
    }
    .about .pinky {
        width: 55%;
        margin: 0 auto;
    }
}
h1,
h2,
h3,
.mark,
nav a,
.pill,
.more,
.follow a {
    font-family: 'Fredoka', ui-rounded, 'Nunito', system-ui, sans-serif;
    font-weight: 600;
}
h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
    margin: 0 0 0.5rem;
}
h2 {
    font-size: 1.35rem;
    margin: 2.25rem 0 0.75rem;
}
h3 {
    margin: 0 0 0.25rem;
    font-size: 1.3rem;
}
.lead {
    font-size: 1.2rem;
    margin: 0;
}
.muted {
    color: var(--soft);
}
.prose {
    max-width: 38rem;
}
.prose li {
    margin: 0.35rem 0;
}
.card {
    display: grid;
    gap: 1rem;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}
.card:hover {
    border-color: var(--pink);
}
.card p {
    margin: 0.25rem 0;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}
.posts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}
.posts a {
    display: grid;
    gap: 1rem;
    align-items: center;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    color: inherit;
}
.posts a:hover {
    border-color: var(--pink);
}
.posts a.with-cover {
    grid-template-columns: 9rem 1fr;
}
.posts .cover {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 12px;
    background: var(--blush);
}
.posts .text {
    display: grid;
    gap: 0.1rem;
}
.posts small {
    color: var(--soft);
    font-size: 0.9rem;
}
@media (max-width: 34rem) {
    .posts a.with-cover {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
}
.posts span {
    color: var(--soft);
}
.pill {
    display: inline-block;
    font-size: 0.8rem;
    background: var(--blush);
    color: var(--ink);
    padding: 0 0.55rem;
    border-radius: 999px;
}
.follow {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.follow a {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0.9rem 0.35rem 0.4rem;
    background: var(--paper);
    border: 2px solid var(--line);
    outline: 2px dashed #f0b8ca;
    outline-offset: -6px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 3px 0 var(--line);
    transition:
        transform 120ms,
        border-color 120ms;
}
.follow a:hover {
    transform: translateY(-2px);
    border-color: var(--pink);
}
.mark-dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    flex: none;
}
.foot {
    max-width: 46rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    color: var(--soft);
    border-top: 2px dashed var(--line);
    display: flex;
    gap: 1rem;
    align-items: center;
}
.foot p {
    margin: 0;
}

/* a post page (agent/studio.md, Writing a post): text in a column, media wider */
main.wide {
    max-width: 62rem;
}
.post {
    display: grid;
    grid-template-columns:
        [wide-start] minmax(0, 1fr)
        [text-start] minmax(0, 40rem)
        [text-end] minmax(0, 1fr)
        [wide-end];
    font-size: 1.06rem;
}
.post > * {
    grid-column: text;
    min-width: 0;
}
.post > figure.media,
.post > .media-row,
.post > pre.code,
.post > .table {
    grid-column: wide;
    width: 100%;
    max-width: 54rem;
    justify-self: center;
}
.post-head {
    padding: 2rem 0 0.5rem;
}
.post-head p {
    margin: 0 0 0.5rem;
}
.post h2 {
    margin-top: 2.75rem;
}
.post li {
    margin: 0.35rem 0;
}
.post strong {
    font-weight: 800;
    color: #3a1f29;
}
.post .sign {
    margin-top: 2.5rem;
}
.tldr {
    font-size: 1.12rem;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 0.5rem 0 1.5rem;
}
figure.media {
    margin: 2rem 0;
}
figure.media img,
figure.media video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 2px solid var(--line);
    background: var(--blush);
}
figure.media.sound {
    position: relative;
}
.play-sound {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font: inherit;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: inherit;
    cursor: pointer;
}
figcaption {
    color: var(--soft);
    font-size: 0.92rem;
    text-align: center;
    margin: 0.6rem auto 0;
    max-width: 40rem;
}
.post > .media-row {
    max-width: 72rem;
}
.media-row {
    display: flex;
    gap: 0.6rem;
    margin: 1.75rem 0;
}
.media-row > figure {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    position: relative;
}
.media-row img,
.media-row video {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--line);
    background: var(--blush);
}
.media-row figcaption {
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.4rem;
    margin: 0;
    padding: 0.25rem 0.45rem;
    font-size: 0.8rem;
    line-height: 1.25;
    color: #fff;
    background: rgb(40 20 30 / 0.78);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 120ms;
    pointer-events: none;
}
.media-row > figure:hover figcaption,
.media-row > figure:focus-within figcaption {
    opacity: 1;
}
figure.missing {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 2px dashed #d33;
    border-radius: var(--radius);
    color: #b00;
    background: #fff0f0;
}
blockquote {
    margin: 1.75rem 0;
    padding: 0.9rem 1.25rem;
    background: var(--blush);
    border-left: 5px solid var(--pink);
    border-radius: 12px;
}
blockquote > :first-child {
    margin-top: 0;
}
blockquote > :last-child {
    margin-bottom: 0;
}
code {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.88em;
}
:not(pre) > code {
    background: var(--blush);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}
pre.code {
    position: relative;
    margin: 1.75rem 0;
    padding: 1.1rem 1.25rem;
    overflow-x: auto;
    background: #fffafb;
    color: #24292e;
    border: 2px solid var(--line);
    border-radius: 14px;
    line-height: 1.5;
    font-size: 0.95rem;
}
pre.code[data-lang] {
    padding-top: 1.7rem;
}
pre.code[data-lang]::before {
    content: attr(data-lang);
    position: absolute;
    top: 0.35rem;
    right: 0.7rem;
    font-size: 0.72rem;
    color: var(--soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table {
    margin: 1.75rem 0;
    overflow-x: auto;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}
.table table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
}
.table th,
.table td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.table th {
    background: var(--peach);
    font-weight: 800;
    white-space: nowrap;
}
.table tr:last-child td {
    border-bottom: 0;
}
.table tbody tr:nth-child(even) td {
    background: #fffaf7;
}
.table [align='center'] {
    text-align: center;
}
.table [align='right'] {
    text-align: right;
}
@media (max-width: 40rem) {
    .post {
        font-size: 1rem;
    }
    .media-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    figure.media {
        margin: 1.5rem 0;
    }
    figure.media img,
    figure.media video {
        border-radius: 12px;
    }
    pre.code {
        font-size: 0.85rem;
        padding: 0.9rem 1rem;
    }
}
