@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/albert-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/albert-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Albert Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/albert-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/albert-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


@font-face {
  font-family: "Pixelify Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/pixelify-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Pixelify Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/pixelify-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #fef8ec;
  --paper: #fffaf2;
  --ink: #2a2622;
  --muted: #5c534c;
  --rust: #c05020;
  --rust-dark: #8a3814;
  --line: #e6d5c3;
  --sage: #4a7a5a;
  --gold: #e88c40;
  --dusk: #5a709e;
  --pixel: "Pixelify Sans", "Albert Sans", system-ui, sans-serif;
  --radius: 10px;
  --max: 68rem;
  --space: 1.25rem;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  font-family: "Albert Sans", system-ui, sans-serif;
  font-weight: 430;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("assets/pixel-dither.png");
  background-size: 16px 16px;
  background-repeat: repeat;
  image-rendering: pixelated;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; image-rendering: auto; }

.pixel-banner {
  height: 176px;
  position: relative;
  background-color: #5a709e;
  background-image:
    url("assets/pixel-hills.png"),
    url("assets/pixel-clouds.png"),
    url("assets/pixel-stars.png"),
    linear-gradient(
      to bottom,
      #5a709e 0 20px,
      #7a8cba 20px 36px,
      #a6b0ce 36px 52px,
      #d6baba 52px 68px,
      #f0c496 68px 88px,
      #f6d6a8 88px 108px,
      #fce8c8 108px 132px,
      #fef8ec 132px 176px
    );
  background-repeat: repeat-x, no-repeat, repeat-x, no-repeat;
  background-position: bottom center, 12.5rem 24px, top center, top;
  background-size: 768px 72px, 800px 56px, 384px 48px, 100% 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.pixel-banner::after {
  content: "";
  position: absolute;
  left: clamp(1.25rem, 10vw, 8.75rem);
  top: 48px;
  width: 40px;
  height: 40px;
  background: url("assets/pixel-sun.png") no-repeat center;
  background-size: 40px 40px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

h1, h2, .brand span {
  font-family: var(--pixel);
  font-weight: 600;
  letter-spacing: 0;
}
a { color: var(--rust); text-underline-offset: 0.15em; }
a:hover { color: var(--rust-dark); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--hill, #7a4028);
  box-shadow: 0 2px 0 #e88c40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav {
  display: flex;
  gap: 1.15rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--rust); }

.social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.social a {
  color: var(--ink);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  text-decoration: none;
}
.social a:hover {
  color: var(--rust);
  background: color-mix(in srgb, var(--rust) 10%, transparent);
}
.social svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4.25rem;
  text-align: left;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}
.tagline {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 430;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.4rem;
  margin-top: 2.25rem;
}

.studio-intro {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-summary {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  align-items: center;
}
.stores a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.stores a:hover { color: var(--rust); }
.stores svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* Sections */
section {
  padding: 4.25rem 0 1rem;
}
section + section {
  padding-top: 3.25rem;
}
section + section::before {
  content: "";
  display: block;
  height: 8px;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto 2.25rem;
  background-image: url("assets/pixel-divider.png");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 48px 16px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}
.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 38rem;
  font-size: 0.98rem;
}
.lede a { font-weight: 550; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1.15rem;
}

.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-media {
  display: block;
  background: var(--cream);
  aspect-ratio: 63 / 50;
  overflow: hidden;
}
.card-media.iconish {
  aspect-ratio: 1 / 1;
  padding: 1.35rem;
  display: grid;
  place-items: center;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media.iconish img {
  object-fit: contain;
  width: 72%;
  height: 72%;
}
.card-body {
  padding: 0.7rem 0.8rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.card h3 a:hover { color: var(--rust); }
.price {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}
.price s {
  color: color-mix(in srgb, var(--muted) 70%, var(--cream));
  margin-right: 0.25rem;
}
.sale {
  color: var(--rust);
  font-weight: 600;
  margin-left: 0.2rem;
}
.card-links {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.card-links a { font-weight: 550; text-decoration: none; }
.card-links a:hover { text-decoration: underline; }


/* Footer */
.site-footer {
  margin-top: 4.5rem;
  padding: 2.5rem 0 3rem;
  border-top: 2px solid #7a4028;
  box-shadow: 0 -2px 0 #e88c40;
  background: var(--cream);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.footer-meta {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-meta .stores { gap: 0.5rem 1rem; }
.footer-meta .stores a { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.footer-meta .stores a:hover { color: var(--rust); }

.page-404 {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding: 5rem 0;
}
.page-404 h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0;
  line-height: 1.15;
}
.page-404 p { color: var(--muted); margin: 0.8rem 0 0; }

@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .header-inner { min-height: 3.75rem; }
  .nav { display: none; }
  .hero { padding: 2.5rem 0 3rem; }
  .hero h1 { font-size: 1.75rem; }
  section { padding: 3rem 0 0.5rem; }
  section + section { padding-top: 2.5rem; }
  section h2 { font-size: 1.25rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr)); gap: 0.85rem; }
  .site-footer { margin-top: 3.5rem; }
  .brand span { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
