Files
yoyos.sh/src/pages/index.astro
T
Johan Sandoval 38b5213138
Mirror to Gitea / mirror (push) Skipped
Replace Openverse images, fix blank space and spacing on mobile
- Swap every photo for Unsplash photos and Pixabay stickers/clipart,
  credited in IMAGE_CREDITS.md and /credits; regenerate effect images
- Reveal animations never hide on-screen content and have a failsafe, so
  sections can no longer stay blank on phones
- Tighter section and footer spacing on mobile; drop the unlabeled status
  dot on mobile and the blog's fake loading bar
- Cover moves from the all-green poster to the board's mixed palette
- New boombox, spray can and headphones stickers
2026-10-08 19:08:34 +00:00

908 lines
24 KiB
Plaintext

---
import { getCollection } from 'astro:content';
import { getImage } from 'astro:assets';
import Base from '../layouts/Base.astro';
import ProjectCard from '../components/ProjectCard.astro';
import LineBadge from '../components/LineBadge.astro';
import FxImage from '../components/FxImage.astro';
import PosterBand from '../components/deco/PosterBand.astro';
import Tag from '../components/deco/Tag.astro';
import AsciiCanvas from '../components/AsciiCanvas';
import { Image } from 'astro:assets';
import Starburst from '../components/deco/Starburst.astro';
import Barcode from '../components/deco/Barcode.astro';
import Clipping from '../components/deco/Clipping.astro';
import ScrollVelocity from '../components/bits/ScrollVelocity';
import CircularText from '../components/bits/CircularText';
import CountUp from '../components/bits/CountUp';
import StickerPeel from '../components/bits/StickerPeel';
import { SITE } from '../lib/site';
import { DISCIPLINES, LINES } from '../lib/disciplines';
import motoToon from '../assets/fx/motorcycle-toon.webp';
import guitarPop from '../assets/fx/guitar-strat-popart.webp';
import cassettePhoto from '../assets/photos/cassette.webp';
import motoPixel from '../assets/fx/motorcycle-pixel.webp';
import cassette from '../assets/fx/cassette-vintage.webp';
import tv from '../assets/fx/tv-vintage.webp';
import pile from '../assets/fx/computers-pile-pixel.webp';
import guitar from '../assets/fx/guitar-strat-riso.webp';
import gba from '../assets/photos/handheld-sticker.png';
import floppies from '../assets/photos/floppy-sticker.png';
import boombox from '../assets/photos/boombox-sticker.png';
import spraycan from '../assets/photos/spraycan-sticker.png';
const gbaSticker = await getImage({ src: gba, width: 360, format: 'webp' });
const floppySticker = await getImage({ src: floppies, width: 320, format: 'webp' });
const asciiSrc = await getImage({ src: cassettePhoto, width: 400, format: 'webp' });
const work = (await getCollection('work')).sort(
(a, b) => Number(b.data.featured) - Number(a.data.featured) || +b.data.date - +a.data.date,
);
const selected = work.slice(0, 6);
const posts = (await getCollection('blog', ({ data }) => !data.draft))
.sort((a, b) => +b.data.date - +a.data.date)
.slice(0, 3);
const counts = Object.fromEntries(
DISCIPLINES.map((d) => [d, work.filter((p) => p.data.disciplines.includes(d)).length]),
);
const fmt = (d: Date) => d.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' });
const now = new Date();
const season = ['Winter', 'Spring', 'Summer', 'Fall'][Math.floor(((now.getMonth() + 1) % 12) / 3)];
const issue = String(now.getMonth() + 1).padStart(2, '0');
---
<Base>
<!-- ================= COVER ================= -->
<section class="cover">
<div class="speedlines" aria-hidden="true"></div>
<div class="wrap cover-in">
<div class="poster">
<PosterBand word="YOYOS" captions={['TOOLS', 'WEB', 'GAMES', '3D', 'MUSIC']} ink="var(--cta-red)" paper="#fffdf7" />
<div class="panels">
<p class="plabel top">Software engineer ✦ Vol.{issue} {season} {now.getFullYear()}</p>
<figure class="p p1 hover-glitch">
<Image src={motoToon} alt="Cafe racer motorcycle, cel-shaded" widths={[400, 700, 960]} sizes="(min-width: 60rem) 40vw, 72vw" loading="eager" />
</figure>
<figure class="p p2">
<AsciiCanvas client:visible src={asciiSrc.src} cols={34} fg="#f9e300" bg="#141412" />
<span class="plabel in">ASCII.EXE</span>
</figure>
<figure class="p p3 hover-glitch">
<Image src={guitarPop} alt="Electric guitar in pop-art dots" widths={[300, 500]} sizes="36vw" />
</figure>
<h1 class="tags">
<Tag text="Johan" size="clamp(2.8rem, 14.5vw, 7.5rem)" color="#fffdf7" shadow="var(--cta-blue)" rotate={-8} />
<Tag text="Sandoval" font="drip" size="clamp(1.9rem, 9.6vw, 4.8rem)" color="var(--cta-yellow)" shadow="var(--cta-red)" rotate={-3} />
</h1>
<p class="bubble say" aria-hidden="true">I build the tools teams run on!</p>
<p class="bubble dots" aria-hidden="true">· · · !</p>
<div class="badge" aria-hidden="true">
<CircularText client:visible text="OPEN TO WORK ✦ SOFTWARE ENGINEER ✦ " spinDuration={16} onHover="speedUp" className="badge-ring" />
<span class="sparkle" style="--s:2rem;--c:var(--cta-yellow)"></span>
</div>
<div class="sticker sticker-gba" aria-hidden="true">
<StickerPeel client:visible imageSrc={gbaSticker.src} width={84} rotate={-10} peelDirection={20} shadowIntensity={0.45} lightingIntensity={0.08} />
</div>
<span class="sparkle s1" style="--s:1.5rem;--c:#fff;--d:1.8s" aria-hidden="true"></span>
<span class="sparkle s2" style="--s:1.1rem;--c:var(--cta-pink);--d:2.6s" aria-hidden="true"></span>
<p class="plabel bottom">yoyos.sh</p>
</div>
</div>
<div class="deck">
<p class="lede">
I build the software operations teams run on: <mark>dashboards</mark>, deployment tooling and
the APIs behind them. Off the clock I make games, 3D models, hardware and music.
</p>
<div class="cta">
<a class="btn btn--primary" href="/work">See my work</a>
<a class="btn" href="/contact">Hire me</a>
<a class="btn" href={SITE.resume}>Résumé</a>
</div>
</div>
<ul class="coverlines">
<li class="cl cl-1">
<a href="/work/usmt-dash">
<span class="num">01</span>
<span class="big">10 → 25</span>
daily builds after shipping USMT Dash
</a>
</li>
<li class="cl cl-2">
<span class="num">02</span>
<span class="big">Self-hosted!</span>
this site runs on my own servers, deployed from git
</li>
<li class="cl cl-3">
<a href="/music">
<span class="num">03</span>
<span class="big">Also inside</span>
games, 3D, hardware &amp; guitar
</a>
</li>
</ul>
<div class="checker strip" style="--h:14px" aria-hidden="true"></div>
<Starburst class="burst" color="var(--cta-yellow)" size="clamp(6.5rem, 22vw, 9.5rem)" rotate={10}>
{SITE.availability.open ? 'Open to work!' : 'Say hi!'}
</Starburst>
<div class="barcode-wrap"><Barcode value="YOYOS.SH-2026" /></div>
</div>
</section>
<!-- ================= TICKER ================= -->
<div class="ticker" aria-hidden="true">
<ScrollVelocity
client:visible
velocity={45}
numCopies={4}
texts={['Software Engineer ✦ Internal Tools ✦ Automation ✦ Web Apps ✦ ', 'Games ✦ 3D ✦ Hardware ✦ Music ✦ Homelab ✦ ']}
className="ticker-text"
/>
</div>
<!-- ================= STATS + COLLAGE ================= -->
<section class="wrap section stats-wrap">
<div class="collage" aria-hidden="true">
<div class="tv-wrap" data-reveal="tilt">
<FxImage src={tv} mode="crt" amount={1} ratio="1 / 1" position="center 70%" sizes="50vw" class="tv" />
<span class="tv-label">CH 03</span>
</div>
<Clipping class="c-pile" src={pile} ratio="4 / 3" rotate={5} tape="top" widths={[300, 500]} sizes="45vw" />
<Clipping class="c-cassette" src={cassette} ratio="16 / 10" rotate={-7} widths={[260, 420]} sizes="40vw" />
<div class="sticker sticker-floppy">
<StickerPeel client:visible imageSrc={floppySticker.src} width={130} rotate={12} peelDirection={-30} shadowIntensity={0.4} lightingIntensity={0.06} />
</div>
<p class="bubble pow">Pow!</p>
<Image class="boombox sticker-pop" src={boombox} alt="" widths={[200, 320]} sizes="9rem" />
</div>
<div class="stats" data-reveal data-reveal-stagger>
<div class="stat" style="--c: var(--cta-yellow)">
<b><CountUp client:visible to={16000} separator="," duration={1.6} />+</b>
<span>devices deployed with tooling I wrote</span>
</div>
<div class="stat" style="--c: var(--cta-pink)">
<b><CountUp client:visible from={10} to={25} duration={1.4} /> / day</b>
<span>machine builds after shipping USMT Dash</span>
</div>
<div class="stat" style="--c: var(--cta-blue); --t: #fff">
<b><CountUp client:visible to={1900} separator="," duration={1.6} /></b>
<span>machines closed against a 1,300 scope</span>
</div>
</div>
</section>
<!-- ================= SELECTED WORK ================= -->
<section class="section work">
<div class="wrap head" data-reveal>
<h2><span class="hl" style="--c: var(--cta-yellow)">Selected work</span></h2>
<a class="more" href="/work">All projects →</a>
</div>
<div class="rail" data-reveal data-reveal-stagger>
{selected.map((p, i) => <ProjectCard project={p} index={i + 1} />)}
</div>
<p class="swipe wrap" aria-hidden="true">Swipe →</p>
</section>
<div class="checker" style="--h:20px;--a:var(--cta-red);--b:var(--paper)" aria-hidden="true"></div>
<!-- ================= WHAT I DO ================= -->
<section class="wrap section">
<div class="head" data-reveal>
<h2><span class="hl" style="--c: var(--cta-yellow)">What I work on</span></h2>
<Image class="spraycan sticker-pop" src={spraycan} alt="" widths={[120, 200]} sizes="4.5rem" />
</div>
<div class="what">
<ul class="lines" data-reveal data-reveal-stagger>
{
DISCIPLINES.map((d) => (
<li style={`--c:${LINES[d].color}`}>
<a href={d === 'music' ? '/music' : d === '3d' ? '/models' : `/work?d=${d}`}>
<LineBadge d={d} size="2.4rem" />
<span class="lname">{LINES[d].label}</span>
<span class="track" aria-hidden="true" />
<span class="count">{counts[d]}</span>
</a>
</li>
))
}
</ul>
<div class="what-photos" aria-hidden="true">
<Clipping src={guitar} ratio="1 / 1" rotate={3} tape="top" widths={[300, 500]} sizes="40vw" class="hover-glitch" />
<Clipping src={motoPixel} ratio="4 / 3" rotate={-4} widths={[300, 500]} sizes="40vw" class="pixelated hover-glitch" data-parallax="0.2" />
</div>
</div>
</section>
<!-- ================= BLOG ================= -->
<section class="wrap section">
<div class="head" data-reveal>
<h2><span class="hl" style="--c: var(--cta-pink)">From the blog</span></h2>
<a class="more" href="/blog">All posts →</a>
</div>
<ol class="posts" data-reveal data-reveal-stagger>
{
posts.map((post) => (
<li>
<a href={`/blog/${post.id}`}>
<time datetime={post.data.date.toISOString()}>{fmt(post.data.date)}</time>
<span class="ptitle">{post.data.title}</span>
<span class="psum">{post.data.summary}</span>
</a>
</li>
))
}
</ol>
</section>
</Base>
<style>
/* ============ cover: street poster (mobile first) ============ */
.cover {
position: relative;
overflow: hidden;
padding-block: var(--space-4) var(--space-7);
color: var(--ink);
background:
radial-gradient(circle, color-mix(in oklab, var(--cta-red) 22%, transparent) 1.2px, transparent 1.6px) 0 0 / 9px 9px,
var(--paper);
border-bottom: 3px solid var(--ink);
}
.cover > .speedlines {
color: var(--ink);
}
.cover-in {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-5);
}
.poster {
position: relative;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
border: 3px solid var(--ink);
background: #fffdf7;
box-shadow: 7px 7px 0 var(--cta-blue);
/* fold creases across the whole poster */
background-image:
linear-gradient(90deg, transparent calc(50% - 1px), rgb(255 255 255 / 0.35) calc(50% - 1px) 50%, rgb(0 0 0 / 0.12) 50% calc(50% + 2px), transparent calc(50% + 2px)),
linear-gradient(transparent calc(40% - 1px), rgb(255 255 255 / 0.35) calc(40% - 1px) 40%, rgb(0 0 0 / 0.12) 40% calc(40% + 2px), transparent calc(40% + 2px));
animation: rise 0.8s var(--ease) both;
}
.poster :global(.band) {
font-size: clamp(2.5rem, 12.5vw, 5.6rem);
border-right: 3px solid var(--ink);
}
.panels {
position: relative;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto auto 1fr auto auto;
grid-template-areas:
'top top'
'p1 p1'
'p2 p3'
'tags tags'
'bottom bottom';
gap: 6px;
padding: 8px;
min-width: 0;
}
.plabel {
font-family: var(--ff-poster);
font-size: clamp(0.55rem, 2.4vw, 0.85rem);
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--ink);
}
.plabel.top {
grid-area: top;
}
.plabel.bottom {
grid-area: bottom;
justify-self: end;
}
.p {
position: relative;
margin: 0;
overflow: hidden;
border: 3px solid var(--ink);
background: var(--ink);
}
.p :global(img) {
width: 100%;
height: 100%;
object-fit: cover;
}
.p1 {
grid-area: p1;
aspect-ratio: 4 / 3;
clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.p2 {
grid-area: p2;
align-self: start;
rotate: -1.5deg;
}
.p3 {
grid-area: p3;
aspect-ratio: 1;
rotate: 2deg;
}
.plabel.in {
position: absolute;
left: 4px;
bottom: 3px;
padding: 0 4px;
background: var(--cta-yellow);
color: var(--ink);
font-size: 0.55rem;
}
.tags {
grid-area: tags;
position: relative;
z-index: 3;
display: grid;
justify-items: start;
margin-top: clamp(-7.5rem, -24vw, -4.5rem);
font-weight: 400;
}
.tags :global(.tag-graffiti:last-child) {
margin: -0.35em 0 0 0.6em;
animation: rise 0.7s 0.45s var(--ease) both;
}
.tags :global(.tag-graffiti:first-child) {
animation: rise 0.7s 0.3s var(--ease) both;
}
.say {
position: absolute;
z-index: 4;
top: 2.2rem;
right: 0.5rem;
max-width: 9.5rem;
font-size: 0.78rem;
rotate: 3deg;
animation: pop 0.5s 0.9s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.dots {
position: absolute;
z-index: 4;
right: 0.6rem;
top: 58%;
font-size: 0.8rem;
animation: pop 0.5s 1.1s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
@keyframes pop {
from {
opacity: 0;
transform: scale(0.4);
}
}
.badge {
position: absolute;
z-index: 5;
top: 2rem;
left: -0.4rem;
display: grid;
place-items: center;
width: 4.8rem;
height: 4.8rem;
border-radius: 50%;
background: var(--ink);
color: var(--paper);
border: 3px solid var(--cta-yellow);
}
.badge :global(.badge-ring) {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
margin: 0;
font-family: var(--ff-mono);
font-weight: 500;
color: var(--paper);
}
.badge :global(.badge-ring span) {
font-size: 0.5rem;
inset: 0.18rem;
}
.sticker {
position: absolute;
z-index: 4;
}
.sticker-gba {
right: -0.8rem;
top: 40%;
width: 84px;
height: 110px;
}
.panels > .sparkle {
position: absolute;
z-index: 4;
}
.s1 {
top: 30%;
left: 6%;
}
.s2 {
top: 12%;
right: 40%;
}
.deck {
display: grid;
gap: var(--space-4);
}
.lede {
font-size: 1.12rem;
line-height: 1.55;
}
.lede mark {
background: linear-gradient(transparent 55%, var(--cta-yellow) 55%);
color: inherit;
}
.cta {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-2);
}
.cta .btn {
justify-content: center;
min-height: 48px;
font-size: 0.95rem;
}
.cta .btn:first-child {
grid-column: 1 / -1;
}
.coverlines {
display: grid;
gap: var(--space-3);
list-style: none;
padding: 0;
}
.cl {
position: relative;
padding: 0.75rem 0.9rem 0.75rem 3.1rem;
border: 2px solid var(--ink);
font-family: var(--ff-grotesk);
font-weight: 600;
line-height: 1.25;
box-shadow: 4px 4px 0 var(--ink);
}
.cl a {
color: inherit;
text-decoration: none;
display: block;
}
.cl .num {
position: absolute;
left: 0.6rem;
top: 0.75rem;
display: grid;
place-items: center;
width: 1.9rem;
height: 1.9rem;
border-radius: 50%;
background: var(--ink);
color: var(--paper);
font-family: var(--ff-mag);
font-size: 0.8rem;
}
.cl .big {
display: block;
font-family: var(--ff-tag);
font-weight: 400;
font-size: 1.9rem;
line-height: 1;
}
.cl-1 {
background: var(--cta-pink);
rotate: -1.2deg;
}
.cl-2 {
background: #fffdf7;
rotate: 0.8deg;
}
.cl-3 {
background: var(--cta-blue);
color: #fff;
rotate: -0.6deg;
}
.strip {
border: 2px solid var(--ink);
--a: var(--ink);
--b: var(--cta-yellow);
}
.cover :global(.burst) {
position: absolute;
right: 0;
bottom: -0.5rem;
z-index: 5;
}
.barcode-wrap {
justify-self: start;
border: 2px solid var(--ink);
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(28px);
}
}
/* ============ cover (desktop) ============ */
@media (min-width: 60rem) {
.cover {
padding-block: var(--space-6) var(--space-8);
}
.cover-in {
grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
grid-template-areas:
'poster deck'
'poster lines'
'poster strip'
'poster code';
column-gap: var(--space-7);
align-items: start;
}
.poster {
grid-area: poster;
}
.deck {
grid-area: deck;
}
.coverlines {
grid-area: lines;
}
.strip {
grid-area: strip;
}
.barcode-wrap {
grid-area: code;
}
.poster :global(.band) {
font-size: 5.4rem;
}
.lede {
font-size: 1.25rem;
}
.say {
max-width: 13rem;
font-size: 0.95rem;
}
.badge {
width: 7.5rem;
height: 7.5rem;
top: auto;
left: auto;
bottom: 3rem;
right: -1.5rem;
}
.badge :global(.badge-ring span) {
font-size: 0.72rem;
}
.cover :global(.burst) {
right: 2rem;
bottom: -1rem;
}
}
/* ============ ticker ============ */
.ticker {
background: var(--ink);
color: var(--paper);
padding-block: 0.6rem;
border-bottom: 3px solid var(--ink);
}
.ticker :global(.ticker-text) {
font-family: var(--ff-mag);
font-weight: 400;
font-size: clamp(1.6rem, 6vw, 3.4rem);
line-height: 1.25;
letter-spacing: -0.01em;
text-transform: uppercase;
}
.ticker :global(.parallax:nth-child(2) .ticker-text) {
color: var(--cta-yellow);
}
/* ============ stats + collage ============ */
.stats-wrap {
display: grid;
gap: var(--space-7);
}
.collage {
position: relative;
height: 24rem;
}
.tv-wrap {
position: absolute;
left: 0;
top: 0;
width: 56%;
padding: 8px 8px 26px;
background: #2a2622;
border: 3px solid var(--ink);
border-radius: 14px;
box-shadow: 5px 5px 0 var(--ink);
rotate: -3deg;
z-index: 1;
}
.tv-wrap :global(.tv) {
border-radius: 18px / 14px;
}
.tv-label {
position: absolute;
bottom: 4px;
right: 12px;
font-family: var(--ff-crt);
color: var(--phosphor);
font-size: 1rem;
}
.collage :global(.c-pile) {
position: absolute;
right: 0;
top: 1.5rem;
width: 46%;
}
.collage :global(.c-cassette) {
position: absolute;
left: 22%;
bottom: 0;
width: 52%;
z-index: 2;
}
.sticker-floppy {
right: 0;
bottom: 0.5rem;
width: 130px;
height: 90px;
}
.pow {
position: absolute;
z-index: 3;
right: 12%;
top: 47%;
background: var(--cta-yellow);
font-family: var(--ff-mag);
font-weight: 400;
font-size: 1.4rem;
rotate: 8deg;
}
.pow::after {
background: var(--cta-yellow);
}
.collage :global(.boombox) {
position: absolute;
z-index: 3;
left: -0.5rem;
bottom: 3.5rem;
width: 7.5rem;
height: auto;
rotate: -9deg;
}
.spraycan,
.head :global(.spraycan) {
width: 3.6rem;
height: auto;
rotate: 18deg;
margin-left: auto;
}
.stats {
display: grid;
gap: var(--space-4);
}
.stat {
display: grid;
gap: 0.2rem;
padding: 1rem 1.1rem;
background: var(--c);
color: var(--t, var(--ink));
border: 2px solid var(--ink);
box-shadow: 5px 5px 0 var(--ink);
}
.stat b {
font-family: var(--ff-mag);
font-weight: 400;
font-size: clamp(2.3rem, 10vw, 3.4rem);
line-height: 1;
letter-spacing: -0.03em;
}
.stat span {
font-family: var(--ff-grotesk);
font-weight: 600;
}
@media (min-width: 52rem) {
.stats-wrap {
grid-template-columns: 1fr 1fr;
align-items: center;
}
.collage {
height: 30rem;
}
}
/* ============ sections ============ */
.head {
display: flex;
flex-wrap: wrap;
align-items: end;
justify-content: space-between;
gap: var(--space-3);
margin-bottom: var(--space-6);
}
.head h2 {
font-size: clamp(2.3rem, 10vw, 4.75rem);
}
.hl {
padding: 0 0.12em;
background: linear-gradient(transparent 55%, var(--c) 55% 92%, transparent 92%);
}
.more {
font-family: var(--ff-grotesk);
font-weight: 700;
min-height: 44px;
display: inline-flex;
align-items: center;
}
.rail {
display: grid;
grid-auto-flow: column;
grid-auto-columns: min(82vw, 21rem);
gap: var(--space-4);
overflow-x: auto;
scroll-snap-type: x mandatory;
padding: 0.5rem var(--gutter) 1rem;
scroll-padding-inline: var(--gutter);
scrollbar-width: none;
overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar {
display: none;
}
.rail > :global(*) {
scroll-snap-align: start;
}
.swipe {
font-family: var(--ff-mono);
font-size: 0.8rem;
color: var(--fg-muted);
}
@media (min-width: 60rem) {
.rail {
grid-auto-flow: row;
grid-template-columns: repeat(3, 1fr);
grid-auto-columns: auto;
overflow: visible;
width: min(100% - 2 * var(--gutter), var(--max-w));
margin-inline: auto;
padding: 0;
gap: var(--space-5);
}
.swipe {
display: none;
}
}
.what {
display: grid;
gap: var(--space-7);
}
.lines {
display: grid;
gap: var(--space-2);
list-style: none;
padding: 0;
}
.lines a {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: var(--space-3);
min-height: 3.25rem;
text-decoration: none;
color: var(--ink);
}
.lname {
font-family: var(--ff-grotesk);
font-weight: 800;
font-size: clamp(1.35rem, 5.5vw, 2rem);
letter-spacing: -0.03em;
}
.track {
display: none;
}
.count {
display: grid;
place-items: center;
min-width: 2rem;
height: 2rem;
border: 2px solid var(--ink);
border-radius: 999px;
font-family: var(--ff-mono);
font-size: 0.85rem;
}
.what-photos {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-4);
align-items: start;
}
.what-photos :global(.pixelated img) {
image-rendering: pixelated;
}
@media (min-width: 52rem) {
.what {
grid-template-columns: 1.4fr 1fr;
align-items: center;
}
.lines a {
grid-template-columns: auto auto 1fr auto;
}
.track {
display: block;
height: 10px;
border-radius: 5px;
background: var(--c);
border: 2px solid var(--ink);
}
}
.posts {
list-style: none;
padding: 0;
border-top: 3px solid var(--ink);
}
.posts a {
display: grid;
gap: 0.3rem;
padding-block: var(--space-4);
border-bottom: 2px solid var(--ink);
text-decoration: none;
color: var(--ink);
}
.posts a:active,
.posts a:hover {
background: var(--cta-yellow);
}
time {
font-family: var(--ff-mono);
font-size: var(--step--1);
}
.ptitle {
font-family: var(--ff-mag);
font-size: clamp(1.5rem, 6vw, 2rem);
line-height: 1.1;
}
.psum {
color: var(--ink-2);
}
@media (min-width: 52rem) {
.posts a {
grid-template-columns: 9rem 1fr;
column-gap: var(--space-5);
}
.psum {
grid-column: 2;
}
}
</style>