@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/sora-variable.ttf') format('truetype');
}

:root {
  color-scheme: dark;
  --background: #0b1220;
  --foreground: #edf3fb;
  --muted: #adbed2;
  --accent: #81e1db;
  --line: #2a394c;
  --recipe-surface: #dce9d9;
  --recipe-ink: #19372b;
  --recipe-muted: #3c5946;
  --game-surface: #15283b;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--background);
  color: var(--foreground);
  font-family: Sora, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--background); }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--background);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}
.site-nav a:hover { color: var(--foreground); text-decoration: underline; }

.hero { padding: 68px 0 46px; }
h1 {
  margin: 0;
  max-width: 1050px;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.lead {
  max-width: 65ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  text-wrap: pretty;
}

.projects {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 24px;
  padding-bottom: 56px;
  scroll-margin-top: 24px;
}
.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  grid-template-rows: 1fr auto;
  align-items: start;
  column-gap: 8px;
  row-gap: 28px;
  min-height: 340px;
  padding: 34px;
  border-radius: var(--radius);
  text-decoration: none;
}
.recipe { background: var(--recipe-surface); color: var(--recipe-ink); }
.game { background: var(--game-surface); }
.project-copy { position: relative; z-index: 1; }
h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.03em;
}
.category {
  margin: 10px 0 18px;
  color: var(--recipe-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.game .category { color: #a2d6e3; }
.description {
  margin: 0;
  max-width: 32ch;
  color: var(--recipe-muted);
  font-size: 15px;
  line-height: 1.85;
  text-wrap: pretty;
}
.game .description { color: #b4c6db; }
.project-art { align-self: center; justify-self: end; }
.recipe-art svg {
  display: block;
  width: 168px;
  height: 168px;
  filter: drop-shadow(0 12px 12px #163c2220);
}
.game-art img {
  display: block;
  width: 144px;
  height: 144px;
  border-radius: 32px;
}
.project-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding-top: 20px;
  border-top: 1px solid #7a987a80;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
.game .project-cta { border-color: #3b566b; color: var(--accent); }
.project-cta svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease-out;
}
.project:hover .project-cta { text-decoration: underline; text-underline-offset: 5px; }
.project:hover .project-cta svg { transform: translateX(4px); }
.project:focus-visible { outline-offset: 7px; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer p span { color: #9cafc6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a:hover { color: var(--foreground); }

@media (min-width: 1600px) {
  .hero { padding-top: 84px; padding-bottom: 56px; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 56px); }
  .project { grid-template-columns: minmax(0, 1fr) 112px; padding: 28px; column-gap: 8px; }
  .recipe-art svg { width: 124px; height: 124px; }
  .game-art img { width: 108px; height: 108px; border-radius: 24px; }
  h2 { font-size: 26px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 88px; }
  .brand { font-size: 27px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 12px; }
  .hero { padding: 42px 0 32px; }
  h1 { font-size: clamp(32px, 6.3vw, 46px); }
  .lead { max-width: 52ch; margin-top: 20px; font-size: 15px; }
  .projects { grid-template-columns: 1fr; gap: 18px; padding-bottom: 36px; }
  .project { min-height: 280px; grid-template-columns: minmax(0, 1fr) 124px; row-gap: 22px; padding: 28px; }
  .recipe-art svg { width: 132px; height: 132px; }
  .game-art img { width: 112px; height: 112px; }
  h2 { font-size: 28px; }
  .description { max-width: 38ch; }
  .site-footer { align-items: flex-start; padding-top: 18px; }
  .footer-nav { gap: 0 20px; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 36px); }
  .hero { padding-top: 34px; }
  h1 { font-size: clamp(29px, 8.3vw, 35px); line-height: 1.2; }
  .lead { font-size: 14px; }
  .project { grid-template-columns: minmax(0, 1fr) 84px; min-height: 300px; padding: 24px; column-gap: 12px; }
  h2 { font-size: 25px; }
  .category { font-size: 11px; margin-bottom: 14px; }
  .description { font-size: 14px; line-height: 1.8; }
  .recipe-art svg { width: 100px; height: 110px; }
  .game-art img { width: 84px; height: 84px; border-radius: 20px; }
  .project-cta { font-size: 13px; }
  .site-footer { font-size: 12px; }
}
@media (max-width: 340px) {
  .site-nav { gap: 12px; }
  .project { padding: 20px; grid-template-columns: minmax(0, 1fr) 64px; }
  h2 { font-size: 22px; }
  .recipe-art svg { width: 80px; }
  .game-art img { width: 64px; height: 64px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-cta svg { transition: none; }
  .project:hover .project-cta svg { transform: none; }
}
