:root {
  --paper: #f7f5f0;
  --ink: #262a25;
  --muted: #666a62;
  --line: #d9d9d0;
  --accent: #be4927;
  --sans: "Segoe UI",Arial,sans-serif;
  --serif: Georgia,"Times New Roman",serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

::selection {
  background: #e9bba6;
  color: #262a25;
}

.wrap {
  width: calc(100% - 112px);
  max-width: 1264px;
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 20;
  padding: 12px 20px;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 29px;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 13px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.4px;
}

.identity-caption {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.site-icon {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 11px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 14px;
  font-weight: 500;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

nav a:hover, .text-link:hover {
  color: var(--accent);
}

.nav-count {
  font-size: 11px;
  margin-left: 4px;
  vertical-align: super;
  color: var(--muted);
}

.github-link {
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid #c9ccc1;
  border-radius: 100px;
  padding: 10px 17px;
}

.github-link span[aria-hidden] {
  font-size: 19px;
  line-height: 18px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-block: 66px 72px;
}

.eyebrow {
  margin: 0 0 23px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 550;
}

.small-sun {
  color: var(--accent);
  font-family: Arial,sans-serif;
  font-size: 28px;
  line-height: 1;
}

h1 {
  font-weight: 500;
  font-size: clamp(47px,5.8vw,82px);
  line-height: 1.06;
  letter-spacing: -4.3px;
  margin: 0;
}

h1 em {
  font-family: var(--serif);
  font-weight: 400;
  color: #747961;
  letter-spacing: -3.7px;
}

.hero-description {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin: 25px 0 24px;
  max-width: 640px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  padding-block: 9px;
  border-bottom: 1px solid #b3b5aa;
}

.text-link span[aria-hidden] {
  font-size: 21px;
  line-height: 15px;
}

.hero-aside {
  align-self: center;
  flex: 0 0 246px;
  padding: 33px 0 0 18px;
}

.icon-stack {
  display: flex;
  padding-left: 0;
  height: 76px;
  align-items: center;
}

.stack-icon {
  height: 63px;
  width: 63px;
  flex-shrink: 0;
  border: 4px solid var(--paper);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 3px 8px #252c2410;
  display: grid;
  place-content: center;
  margin-left: -9px;
  transform: rotate(-9deg);
  background: #161826;
}

.stack-icon:first-child {
  margin-left: 0;
  z-index: 4;
}

.stack-icon:nth-child(2) {
  transform: rotate(6deg);
  z-index: 3;
}

.stack-icon:nth-child(3) {
  transform: rotate(-5deg);
  z-index: 2;
}

.stack-icon:nth-child(4) {
  transform: rotate(8deg);
  z-index: 1;
}

.stack-refless img {
  width: 36px;
  height: 36px;
}

.stack-pingdit img {
  width: 49px;
  height: 49px;
}

.stack-micro img, .stack-tiny img {
  height: 58px;
  width: 58px;
  max-width: none;
  object-fit: cover;
}

.hero-aside>p {
  font-size: 24px;
  font-family: var(--serif);
  line-height: 1.25;
  margin: 18px 0;
  color: #565b4c;
  letter-spacing: -.5px;
}

.aside-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9e7340;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-block: 25px 26px;
}

.section-heading h2 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
  letter-spacing: -.35px;
}

.section-heading h2 span {
  margin-left: 12px;
  font-size: 12px;
  letter-spacing: .6px;
  font-weight: 400;
  color: var(--muted);
}

.section-heading>p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 35px 28px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  container: card / inline-size;
}

.project-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: 12px;
}

.project-link:focus-visible {
  outline: none;
}

.project-link:focus-visible::after {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

.project-stage {
  order: -1;
  height: 355px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
}

.stage-top {
  position: absolute;
  z-index: 3;
  top: 25px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stage-number {
  font: 11px/1.2 var(--sans);
  letter-spacing: 1.2px;
  white-space: nowrap;
  opacity: .9;
}

.refless-wordmark {
  width: 100px;
  height: 28px;
  object-fit: contain;
}

.stage-tagline {
  position: absolute;
  z-index: 3;
  top: 76px;
  left: 28px;
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -1.1px;
  font-weight: 500;
}

.phone {
  position: absolute;
  width: 181px;
  border: 6px solid #242532;
  border-radius: 24px;
  overflow: hidden;
  background: #161826;
  box-shadow: 0 17px 28px #0003;
  transition: transform .35s ease;
}

.phone img {
  width: 100%;
  height: auto;
}

.project-card:has(.project-link:focus-visible) .phone {
  transform: translateY(-5px) rotate(0);
}

.refless .project-stage {
  background: #202334;
  color: #d2cefd;
}

.phone-refless {
  right: 37px;
  top: 72px;
  transform: rotate(8deg);
  width: 184px;
  border-color: #464859;
  box-shadow: -10px 16px 30px #070b2460;
}

.court {
  position: absolute;
  width: 470px;
  height: 310px;
  border: 1px solid #a5a0ce20;
  border-radius: 15px;
  left: -160px;
  top: 170px;
  transform: rotate(-25deg);
}

.court:before {
  content: "";
  position: absolute;
  height: 100%;
  left: 50%;
  border-left: 1px solid #a5a0ce20;
}

.court:after {
  content: "";
  position: absolute;
  border: 1px solid #a5a0ce20;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  left: calc(50% - 60px);
  top: calc(50% - 60px);
}

.court span {
  position: absolute;
  width: 125px;
  height: 190px;
  left: -1px;
  top: 60px;
  border: 1px solid #a5a0ce20;
}

.voice-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  position: absolute;
  bottom: 32px;
  left: 28px;
  padding: 10px 12px;
  background: #34374b;
  border: 1px solid #4b4b66;
  border-radius: 7px;
  font-size: 12px;
  text-wrap: balance;
  z-index: 3;
}

.sound-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 15px;
}

.sound-bars i {
  height: 7px;
  width: 2px;
  background: #bcb4fa;
  border-radius: 1px;
}

.sound-bars i:nth-child(2), .sound-bars i:nth-child(4) {
  height: 12px;
}

.sound-bars i:nth-child(3) {
  height: 17px;
}

.product-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.5px;
}

.product-wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.pingdit .project-stage {
  background: #e3def3;
  color: #3c355b;
}

.pingdit .stage-tagline {
  font-family: var(--serif);
  font-size: 33px;
  letter-spacing: -1px;
}

.phone-pingdit {
  right: 40px;
  top: 81px;
  width: 175px;
  transform: rotate(7deg);
  border-color: #3d3a50;
}

.ping-orbit {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid #b1a4da70;
  border-radius: 50%;
  left: 47px;
  top: 110px;
}

.orbit-two {
  width: 420px;
  height: 420px;
  left: -3px;
  top: 60px;
}

.watch {
  position: absolute;
  left: 70px;
  bottom: 70px;
  width: 96px;
  height: 96px;
  transform: rotate(-13deg);
  z-index: 4;
}

.watch-face {
  position: relative;
  border-radius: 50%;
  background: #161826;
  padding: 5px;
  border: 3px solid #686578;
  box-shadow: 0 9px 18px #342b4d40;
}

.watch-face:after {
  content: "";
  position: absolute;
  right: -6px;
  top: 36px;
  width: 4px;
  height: 11px;
  border-radius: 2px;
  background: #686578;
}

.watch-face img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.watch-strap {
  position: absolute;
  background: #9690a8;
  border: 3px solid #817a94;
  width: 50px;
  height: 150px;
  top: -28px;
  left: 23px;
  border-radius: 13px;
}

.stage-footnote {
  position: absolute;
  bottom: 25px;
  left: 28px;
  font-size: 12px;
  color: #5d517b;
}

.microtactics .project-stage {
  background: #1b3038;
  color: #b3d9c9;
}

.microtactics .stage-tagline {
  font-family: "Courier New",monospace;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.microtactics .product-wordmark {
  font-family: "Courier New",monospace;
  font-size: 17px;
  letter-spacing: -.7px;
}

.pixel-grid {
  position: absolute;
  inset: 65px 0 0;
  background-image: linear-gradient(#8fd3b809 1px,transparent 1px),linear-gradient(90deg,#8fd3b809 1px,transparent 1px);
  background-size: 31px 31px;
  transform: rotate(-9deg) scale(1.15);
}

.game-screen {
  position: absolute;
  right: 25px;
  top: 87px;
  width: 218px;
  transform: rotate(5deg);
  border: 5px solid #2e505b;
  box-shadow: -10px 15px 0 #10212880;
  transition: transform .35s;
}

.game-screen img {
  width: 100%;
  height: auto;
}

.project-card:has(.project-link:focus-visible) .game-screen {
  transform: translateY(-5px) rotate(2deg);
}

.game-stamp {
  position: absolute;
  left: 30px;
  bottom: 34px;
  font-family: "Courier New",monospace;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  color: #e8b855;
}

.game-stamp small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .25px;
  margin-top: 9px;
  color: #abd1c3;
}

.tinykeeping .project-stage {
  background: #e2e9db;
  color: #244c3a;
}

.tinykeeping .product-wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.6px;
}

.tinykeeping .product-wordmark img {
  border-radius: 8px;
}

.tinykeeping .stage-tagline {
  font-family: var(--serif);
  font-size: 33px;
  letter-spacing: -1px;
  line-height: 1.07;
}

.phone-tiny {
  right: 37px;
  top: 74px;
  transform: rotate(7deg);
  width: 180px;
  background: #fafaf3;
  border-color: #fdfcf7;
  box-shadow: -8px 12px 26px #32433126;
}

.care-shape {
  position: absolute;
  border-radius: 50%;
  background: #f2e5d1;
  left: 72px;
  bottom: -118px;
  width: 310px;
  height: 310px;
}

.shape-two {
  width: 160px;
  height: 160px;
  bottom: 5px;
  left: 125px;
  background: #cddfc8;
}

.care-note {
  position: absolute;
  left: 30px;
  bottom: 43px;
  font-size: 13px;
  line-height: 1.6;
  color: #4d644d;
}

.care-note em {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.1;
  color: #36583f;
}

.project-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  padding-block: 20px 5px;
}

.project-category {
  grid-area: 1 / 1;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.project-info h3 {
  grid-area: 2 / 1 / 3 / 3;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.7px;
  margin: 8px 0 0;
  font-weight: 550;
}

.project-arrow {
  display: inline-block;
  font-size: 21px;
  font-weight: 400;
  transition: transform .2s;
  margin-left: 6px;
  color: #6d7464;
}

.project-card:has(.project-link:focus-visible) .project-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

@media (hover: hover) {
  .project-card:hover .phone {
    transform: translateY(-5px) rotate(0);
  }
  .project-card:hover .game-screen {
    transform: translateY(-5px) rotate(2deg);
  }
  .project-card:hover .project-arrow {
    transform: translateX(4px);
    color: var(--accent);
  }
}

.project-description {
  grid-area: 3 / 1 / 4 / 3;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 4px 0 0;
}

.status {
  grid-area: 1 / 2;
  justify-self: end;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid #d8d9cb;
  border-radius: 100px;
  padding: 6px 11px;
  margin: 0;
  color: #666553;
}

.status-available {
  color: #3e6553;
  border-color: #ccd9c6;
}

.status-available .status-dot {
  background: #517a5c;
}

.collection-note {
  font-size: 13px;
  color: #6a6e62;
  text-align: center;
  margin: 40px 0 0;
}

.collection-note span {
  color: #62665b;
  margin-left: 5px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-block: 66px 77px;
  margin-top: 68px;
  border-top: 1px solid var(--line);
}

.about-label {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding-top: 9px;
}

.about-label .small-sun {
  font-size: 37px;
}

.about-label p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--muted);
}

.about-copy h2 {
  font-weight: 400;
  line-height: 1.22;
  font-size: 38px;
  letter-spacing: -1.2px;
  margin: 0 0 20px;
}

.about-copy h2 em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -1px;
  color: #747961;
}

.about-copy p {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 12px;
}

.about-copy .text-link {
  margin-top: 6px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  border-top: 1px solid var(--line);
  padding-block: 26px 32px;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand, .footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}

.footer-name {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-size: 20px;
  letter-spacing: -.7px;
  color: var(--ink);
  font-weight: 600;
}

.footer-name img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

.footer-meta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}

.footer-meta a:hover {
  color: var(--accent);
}

.noscript-note {
  padding: 20px;
  color: var(--accent);
}

.project-dialog {
  width: min(930px,calc(100% - 48px));
  max-height: calc(100dvh - 64px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 25px 100px #10160c40;
  overflow: auto;
}

.project-dialog::backdrop {
  background: #1a201ab3;
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  right: 17px;
  top: 17px;
  z-index: 5;
  display: grid;
  place-content: center;
  background: var(--paper);
  border: 1px solid #cbd0c3;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  background: #e9e6dd;
}

.detail-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 550px;
}

.detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 38px;
  background: var(--panel);
  overflow: hidden;
}

.detail-visual img {
  width: auto;
  height: auto;
  max-height: 550px;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 12px 28px #0003;
}

.detail-copy {
  padding: 54px 40px 40px;
}

.detail-copy .eyebrow {
  font-size: 11px;
  margin-bottom: 18px;
  color: var(--muted);
}

.detail-copy h2 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1.4px;
  margin: 0 0 15px;
}

.detail-lede {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.5px;
  margin: 0 0 17px;
}

.detail-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.detail-features {
  padding: 0;
  list-style: none;
  margin: 23px 0;
}

.detail-features li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.5;
}

.detail-features li:before {
  content: "→";
  content: "→" / "";
  color: var(--accent);
  margin-right: 10px;
}

.detail-platforms {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.7;
  margin-bottom: 13px;
}

.release-note {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 0;
}

.detail-cta {
  display: inline-flex;
  gap: 25px;
  background: var(--ink);
  color: #fff;
  padding: 14px 19px;
  border-radius: 6px;
  font-size: 15px;
  margin-top: 18px;
}

.detail-cta:hover {
  background: #42523b;
}

/* Card compositions follow the card's own width, not the viewport.
   Wide (default) >= 540px, medium < 540px, narrow < 420px, compact < 330px. */
@container card (max-width: 539px) {
  .project-stage {
    height: 330px;
  }
  .stage-top {
    left: 22px;
    right: 22px;
  }
  .stage-tagline {
    left: 22px;
    font-size: 25px;
  }
  .pingdit .stage-tagline, .tinykeeping .stage-tagline {
    font-size: 28px;
  }
  .microtactics .stage-tagline {
    font-size: 23px;
  }
  .phone-refless {
    right: 18px;
    top: 115px;
    width: 163px;
  }
  .phone-pingdit {
    right: 20px;
    top: 116px;
    width: 154px;
  }
  .phone-tiny {
    right: 19px;
    top: 115px;
    width: 160px;
  }
  .game-screen {
    right: 12px;
    top: 124px;
    width: 180px;
  }
  .voice-tag {
    left: 22px;
    bottom: 27px;
    font-size: 11px;
    padding: 8px;
  }
  .watch {
    left: 46px;
    transform: scale(.85) rotate(-13deg);
  }
  .game-stamp {
    font-size: 25px;
    left: 23px;
  }
  .care-note {
    left: 23px;
  }
  .product-wordmark {
    font-size: 16px;
  }
  .stage-number {
    font-size: 11px;
    letter-spacing: .9px;
  }
  .tinykeeping .product-wordmark {
    font-size: 20px;
  }
}

@container card (max-width: 419px) {
  .project-stage {
    height: 375px;
  }
  .stage-top {
    left: 24px;
    right: 24px;
    top: 23px;
  }
  .stage-number {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .stage-tagline {
    left: 24px;
    top: 80px;
    font-size: 28px;
  }
  .pingdit .stage-tagline, .tinykeeping .stage-tagline {
    font-size: 30px;
  }
  .microtactics .stage-tagline {
    font-size: 26px;
  }
  .phone-refless {
    right: 20px;
    top: 155px;
    width: 164px;
  }
  .phone-pingdit {
    right: 25px;
    top: 155px;
    width: 158px;
  }
  .phone-tiny {
    right: 21px;
    top: 155px;
    width: 164px;
  }
  .game-screen {
    right: 17px;
    top: 153px;
    width: 186px;
  }
  .voice-tag {
    max-width: 146px;
    left: 24px;
    bottom: 28px;
    font-size: 12px;
    line-height: 1.5;
    padding: 7px 8px;
  }
  .watch {
    left: 42px;
    bottom: 69px;
    transform: scale(.85) rotate(-13deg);
  }
  .stage-footnote {
    left: 24px;
    font-size: 12px;
    max-width: 120px;
    text-wrap: balance;
    bottom: 18px;
  }
  .care-note {
    left: 25px;
    bottom: 44px;
    max-width: 120px;
    font-size: 13px;
  }
  .care-note em {
    font-size: 20px;
  }
  .game-stamp {
    left: 25px;
    bottom: 35px;
    font-size: 26px;
    max-width: 115px;
  }
  .game-stamp small {
    font-size: 12px;
    line-height: 1.5;
    max-width: calc(100cqw - 245px);
    text-wrap: balance;
  }
  .sound-bars {
    flex-shrink: 0;
  }
}

@container card (max-width: 329px) {
  .project-stage {
    height: 355px;
  }
  .stage-top {
    left: 19px;
    right: 19px;
  }
  .stage-tagline {
    left: 19px;
  }
  .stage-number {
    font-size: 11px;
    letter-spacing: .4px;
  }
  .phone-refless, .phone-pingdit, .phone-tiny {
    width: 145px;
    right: 15px;
    top: 150px;
  }
  .game-screen {
    width: 162px;
    right: 12px;
    top: 150px;
  }
  .voice-tag {
    left: 16px;
    max-width: 122px;
    font-size: 11px;
  }
  .watch {
    left: 25px;
    bottom: 62px;
    transform: scale(.72) rotate(-13deg);
  }
  .game-stamp {
    left: 18px;
    font-size: 23px;
  }
  .care-note {
    left: 20px;
    max-width: 100px;
  }
  .stage-footnote {
    font-size: 11px;
    left: 18px;
  }
  .care-note em {
    font-size: 18px;
  }
  .game-stamp small {
    max-width: calc(100cqw - 207px);
  }
}

@media (min-width: 1500px) {
  .hero {
    padding-block: 78px 88px;
  }
  .project-stage {
    height: 385px;
  }
  .phone-refless {
    width: 205px;
  }
  .phone-pingdit {
    width: 193px;
  }
  .phone-tiny {
    width: 201px;
  }
  .game-screen {
    width: 238px;
  }
}

@media (max-width: 1120px) {
  .wrap {
    width: calc(100% - 72px);
  }
  h1 {
    font-size: 65px;
    letter-spacing: -3.8px;
  }
  .hero-aside {
    flex-basis: 205px;
    padding-left: 0;
  }
  .stack-icon {
    width: 57px;
    height: 57px;
  }
  .hero {
    gap: 25px;
  }
}

@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero-aside {
    display: none;
  }
  .hero {
    padding-block: 48px 50px;
  }
  h1 {
    font-size: 68px;
  }
  .project-grid {
    gap: 28px 20px;
  }
  .about {
    grid-template-columns: 1fr 2fr;
    gap: 25px;
  }
  .about-copy h2 {
    font-size: 32px;
  }
  .detail-copy {
    padding: 60px 28px 30px;
  }
  .detail-visual {
    padding: 30px 22px;
  }
  .detail-copy h2 {
    font-size: 30px;
  }
  .detail-lede {
    font-size: 22px;
  }
}

@media (max-width: 720px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 400px) {
  .identity-caption {
    display: none;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    padding-block: 19px;
  }
  .identity {
    font-size: 15px;
    gap: 9px;
  }
  .identity-caption {
    font-size: 11px;
  }
  .site-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  nav {
    gap: 18px;
    font-size: 14px;
  }
  nav .github-link {
    display: none;
  }
  .nav-count {
    display: none;
  }
  .hero {
    padding-block: 38px 42px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.3px;
    gap: 7px;
    margin-bottom: 19px;
  }
  .eyebrow .small-sun {
    font-size: 23px;
  }
  h1 {
    font-size: clamp(36px,10.8vw,62px);
    letter-spacing: -2.3px;
    line-height: 1.08;
  }
  h1 em {
    letter-spacing: -2px;
  }
  .hero-description {
    font-size: 16px;
    line-height: 1.7;
    margin-top: 21px;
    margin-bottom: 17px;
    max-width: 410px;
  }
  .desktop-break {
    display: none;
  }
  .text-link {
    font-size: 15px;
  }
  .section-heading {
    padding-block: 20px;
    gap: 15px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading>p {
    display: none;
  }
  .section-heading h2 span {
    font-size: 12px;
  }
  .collection-note {
    font-size: 13px;
    line-height: 1.8;
    margin-top: 30px;
  }
  .collection-note span {
    display: block;
    margin: 0;
  }
  .about {
    display: block;
    margin-top: 40px;
    padding-block: 33px 39px;
  }
  .about-label {
    margin-bottom: 25px;
    align-items: center;
    gap: 12px;
  }
  .about-label .small-sun {
    font-size: 30px;
  }
  .about-label p {
    font-size: 13px;
  }
  .about-copy h2 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .about-copy p {
    font-size: 16px;
  }
  .site-footer {
    padding-block: 22px 24px;
  }
  .site-footer .footer-name {
    font-size: 18px;
  }
  .site-footer p {
    font-size: 13px;
  }
  .footer-brand, .footer-meta {
    column-gap: 18px;
  }
  .footer-meta {
    flex-basis: 100%;
  }
  /* Phones: GitHub and the return link share a row; the © line closes the footer. */
  .footer-top {
    margin-left: auto;
  }
  .footer-copy {
    order: 1;
    flex-basis: 100%;
  }
  .project-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }
  .detail-layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .detail-visual {
    order: 1;
    flex-shrink: 0;
    padding: 30px 25px;
  }
  .detail-visual img {
    width: min(70%, 260px);
    max-height: none;
    border-radius: 12px;
  }
  .detail-copy {
    padding: 27px 25px 30px;
  }
  .detail-copy h2 {
    font-size: 31px;
  }
  .detail-copy .eyebrow {
    margin-bottom: 13px;
    padding-right: 48px;
  }
  .detail-lede {
    font-size: 23px;
  }
  .detail-features {
    margin-block: 18px;
  }
  .detail-features li {
    padding-block: 10px;
  }
  .dialog-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 32px);
  }
  nav {
    gap: 16px;
  }
}



@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    transition: none!important;
    animation: none!important;
  }
}
