@font-face {
    font-family: 'EMH Grotesk';
    src: url('https://cdn.evanhollander.org/fonts/EMHGrotesk.woff2') format('woff2-variations'),
         url('https://cdn.evanhollander.org/fonts/EMHGrotesk.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'EMH Mono';
    src: url('https://cdn.evanhollander.org/fonts/EMHMono.woff2') format('woff2-variations'),
         url('https://cdn.evanhollander.org/fonts/EMHMono.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --page: #fff7e6;
    --cobalt: #000099;
    --green: #0f8a55;
    --yellow: #ffc933;
    --red: #e23d3d;
    --purple: #6b3fd4;
    --orange: #ff7a1a;
    --blue: #1f6feb;
    --brown: #8b4a2b;
    --teal: #0c8f99;
    --pink: #ee3f8f;
    --ink: #14142b;
}
@media (prefers-color-scheme: dark) {
    :root { --page: #0b0b1a; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--page);
    font-family: 'EMH Grotesk', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.grid {
    max-width: 72rem;
    margin: 0 auto;
    padding: clamp(0.75rem, 2vw, 1.5rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(10.5rem, auto);
    gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 1.75rem;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(.3,1.6,.5,1), box-shadow 0.2s;
}
a.tile:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 14px 0 -6px rgba(0, 0, 0, 0.25); }
a.tile:nth-of-type(even):hover { transform: translateY(-4px) rotate(1deg); }
a.tile:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }

.mono {
    margin: 0;
    font-family: 'EMH Mono', ui-monospace, monospace;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.85;
}
.title {
    margin-top: auto;
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}
.desc { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.35; max-width: 22rem; }
.arrow {
    position: absolute;
    top: 0.9rem;
    right: 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.hero {
    grid-column: 1 / -1;
    background: var(--cobalt);
    min-height: clamp(16rem, 38vw, 26rem);
    justify-content: space-between;
    border-radius: 2.25rem;
}
.hero h1 {
    margin: 0;
    font-size: clamp(3.5rem, 15vw, 11rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.85;
}

.big { grid-column: span 2; grid-row: span 2; }
.big .title { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.big .desc { font-size: 1.0625rem; }
.wide, .half { grid-column: span 2; }

.about {
    grid-column: 1 / -1;
    min-height: 0;
    background: var(--ink);
    justify-content: center;
}
.about p { margin: 0; font-size: clamp(1.0625rem, 1.9vw, 1.375rem); line-height: 1.4; font-weight: 500; }
@media (prefers-color-scheme: dark) { .about { background: #1d1d3d; } }

.c-green  { background: var(--green); }
.c-yellow { background: var(--yellow); color: var(--ink); }
.c-red    { background: var(--red); }
.c-purple { background: var(--purple); }
.c-orange { background: var(--orange); color: var(--ink); }
.c-blue   { background: var(--blue); }
.c-brown  { background: var(--brown); }
.c-teal   { background: var(--teal); }
.c-pink   { background: var(--pink); color: var(--ink); }

@media (max-width: 52rem) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .big, .wide, .about { grid-column: span 2; }
    .big { grid-row: span 1; min-height: 14rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tile { transition: none; }
    a.tile:hover, a.tile:nth-of-type(even):hover { transform: none; }
}
