:root {
  color-scheme: light;
  --paper: #faf7f0;
  --ink: #22231f;
  --muted: #74746b;
  --line: #e6e0d5;
  --accent: #ad7440;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; padding: 12px 18px; background: var(--ink); color: white; border-radius: 8px; z-index: 10; }

.nav { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .21em; text-transform: uppercase; }
.brand img { width: 34px; height: 42px; object-fit: contain; }
.navlinks { display: flex; align-items: center; gap: 35px; font-size: 13px; font-weight: 600; }
.navlinks a:hover, .game-action a:hover, h3 a:hover, .footer a:hover { color: var(--accent); }
.contact-nav { border: 1px solid #cfc7b9; border-radius: 999px; padding: 11px 20px; white-space: nowrap; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #e8e1d6; border-bottom: 1px solid var(--line); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #faf7f029, transparent 70%); pointer-events: none; }
.hero-collage { position: absolute; z-index: -2; inset: -25px -35px; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-content: center; gap: 15px; }
.collage-shot { aspect-ratio: 1179 / 2556; overflow: hidden; background: #fff; border: 4px solid #fff; border-radius: 16px; box-shadow: 0 8px 20px #3322171f; }
.collage-shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-layout { min-height: clamp(650px, 49vw, 1000px); padding-block: 55px; display: flex; align-items: center; }
.hero-copy { width: min(720px, 72%); padding: 45px; border: 1px solid #ffffffb3; border-radius: 24px; background: rgb(250 247 240 / 75%); backdrop-filter: blur(5px); box-shadow: 0 16px 55px #33221712; }
.eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .21em; line-height: 1.6; text-transform: uppercase; color: #98704d; }
.hero h1 { font: 500 clamp(52px, 5.5vw, 78px)/1.05 var(--serif); letter-spacing: -.065em; margin: 24px 0; }
.hero h1 em { font-style: normal; color: #bd8857; }
.hero-lede { padding-bottom: 5px; max-width: 465px; font-size: 17px; line-height: 1.8; color: #65675f; margin: 0; }
.round-link { margin-top: 24px; border: 1px solid #cfbda6; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; transition: transform .2s, background .2s; }
.round-link:hover { background: #f0e6d7; transform: translateY(4px); }

.screenshots-details { border-bottom: 1px solid var(--line); }
.screenshots-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 25px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; }
.screenshots-details > summary::-webkit-details-marker { display: none; }
.screenshots-details > summary > span { color: var(--muted); font-size: 11px; font-weight: 400; white-space: nowrap; }
.screenshots-details > summary > span > span { display: inline-block; margin-left: 15px; font-size: 18px; transition: transform .2s; }
.screenshots-details[open] > summary > span > span { transform: rotate(45deg); }
.screenshots-details > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.screenshots-details .screenshot-gallery { padding-block: 10px 30px; }

/* Every preview uses the same phone ratio; links open the original captures. */
.screenshot-gallery { --shot-height: 510px; }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.gallery-hint { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.gallery-controls { display: flex; align-items: center; gap: 9px; }
.gallery-controls button { width: 42px; height: 42px; border: 1px solid #cfc7b9; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 21px; }
.gallery-controls button:hover:enabled { background: #f0e6d7; }
.gallery-controls button:disabled { opacity: .3; cursor: default; }
.gallery-position { font-size: 11px; color: var(--muted); min-width: 66px; text-align: right; margin-right: 9px; font-variant-numeric: tabular-nums; }
.shot-wall { display: flex; gap: 24px; margin: 0; padding: 5px 5px 22px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 5px; scrollbar-color: #b8a58d #ebe5da; scrollbar-width: thin; border-radius: 18px; }
.shot-wall:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.shot { flex: 0 0 auto; scroll-snap-align: start; }
.shot figure { margin: 0; width: min-content; }
.shot-image { display: block; height: var(--shot-height); aspect-ratio: 1179 / 2556; border: 5px solid #fff; border-radius: 21px; background: #fff; box-shadow: 0 5px 14px #33221712; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { padding: 14px 5px 0; line-height: 1.5; }
.shot-name { display: block; font-size: 13px; font-weight: 700; }
.shot-description { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head h2, .about h2 { font: 500 clamp(38px, 5vw, 64px)/1.08 var(--serif); letter-spacing: -.045em; margin: 12px 0 0; }
.section-head > p { max-width: 330px; font-size: 15px; line-height: 1.75; color: var(--muted); margin: 0; }
.showcase { padding-block: 95px 115px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 35px; }
.filter { background: transparent; color: #6e6a61; border: 1px solid #d8d1c5; border-radius: 99px; padding: 10px 19px; min-height: 42px; cursor: pointer; font-size: 13px; transition: color .15s, background .15s, border-color .15s; }
.filter:hover { border-color: #8b7963; }
.filter.active { background: #24241f; border-color: #24241f; color: white; }
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-card { background: #fff; border: 1px solid #e9e4da; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 24px; transition: transform .22s, box-shadow .22s; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 16px 45px #49331c13; }
.art { height: 265px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.art::before, .art::after { content: ''; position: absolute; border: 1px solid #ffffff80; border-radius: 50%; width: 260px; height: 260px; right: -70px; top: -120px; }
.art::after { width: 190px; height: 190px; right: auto; left: -80px; top: auto; bottom: -120px; }
.art img { width: 116px; height: 116px; object-fit: cover; border-radius: 26px; box-shadow: 0 24px 38px #28201436; position: relative; z-index: 1; transform: rotate(-6deg); transition: transform .25s; }
.game-card:hover .art img { transform: rotate(0) scale(1.06); }
.art.toy { background: linear-gradient(145deg, #fbd4a9, #f39a82); }
.art.topple { background: linear-gradient(145deg, #abdcf1, #70b7d4); }
.art.blob { background: linear-gradient(145deg, #a4d8f8, #7490e8); }
.art.roll { background: linear-gradient(145deg, #ffc7b7, #f58b88); }
.art.astro { background: linear-gradient(145deg, #a1cae5, #527cae); }
.art.tumbletown { background: linear-gradient(145deg, #c3e7f5, #7faed7); }
.coming-tag { position: absolute; top: 18px; left: 18px; z-index: 2; background: #fffffff0; color: #5d5145; padding: 7px 11px; border-radius: 50px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.game-info { padding: 27px 26px 24px; flex: 1; display: flex; flex-direction: column; }
.game-info h3 { font: 500 25px/1.18 var(--serif); letter-spacing: -.025em; margin: 0 0 10px; }
.game-info > p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 25px; flex: 1; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 22px; }
.app-badge { display: inline-flex; flex-shrink: 0; transition: opacity .18s; }
.app-badge:hover { opacity: .75; }
.app-badge img { height: 37px; width: auto; }
.store-soon { display: inline-flex; align-items: center; min-height: 37px; padding: 7px 10px; border: 1px solid #e0dbd2; border-radius: 6px; color: #827b70; font-size: 10px; line-height: 1.4; white-space: nowrap; }
.game-action { border-top: 1px solid #ece8e1; padding-top: 17px; display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 13px; }
.game-action > a:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1; min-height: 28px; }
.game-action > a:first-child > span { font-size: 18px; font-weight: 400; }

.everyday { background: #efede6; padding-block: 104px 116px; }
.everyday-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.utility { border-radius: 23px; background: #fdfcf8; padding: 35px; display: flex; flex-direction: column; min-width: 0; }
.utility.ricebowl { background: #f8f0e2; }
.util-top { display: flex; align-items: center; gap: 18px; }
.utility-icon { flex-shrink: 0; width: 72px; height: 72px; border-radius: 17px; overflow: hidden; }
.utility-icon img { width: 100%; height: 100%; object-fit: contain; }
.centered-space .utility-icon { background: #fff; border: 1px solid #e1dcd3; padding: 13px; }
.utility h3 { font: 500 31px/1.2 var(--serif); letter-spacing: -.025em; margin: 0; }
.utility .small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8f775b; margin: 0 0 6px; }
.utility > p { color: #76756c; line-height: 1.75; font-size: 15px; max-width: 350px; margin: 25px 0; flex: 1; }
.utility .store-row { margin-top: auto; margin-bottom: 18px; }

.about { padding-block: 112px 105px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; border-bottom: 1px solid var(--line); }
.about h2 { font-size: clamp(39px, 4vw, 61px); line-height: 1.12; }
.about-copy > p { color: #686960; font-size: 17px; line-height: 1.85; margin: 0 0 21px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.value { border-top: 1px solid #d9d3c8; padding-top: 18px; }
.value h3 { font-size: 14px; margin: 0; }
.value p { font-size: 13px; line-height: 1.65; margin: 7px 0; color: #777469; }
.footer { padding-block: 60px 35px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer h2 { font: 500 42px/1.15 var(--serif); letter-spacing: -.025em; margin: 12px 0; }
.email { font-size: 17px; border-bottom: 1px solid #ae7e51; padding-block: 6px; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 60px; padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; color: #837d72; font-size: 11px; line-height: 1.7; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 1100px) {
  .navlinks { gap: 23px; }
  .hero h1 { font-size: clamp(55px, 6.2vw, 75px); }
  .hero-lede { max-width: 390px; font-size: 16px; }
  .games { gap: 18px; }
  .game-info { padding: 25px 22px 22px; }
  .about { gap: 55px; }
}
@media (max-width: 950px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navlinks { gap: 18px; }
  .navlinks a:not(.contact-nav) { display: none; }
  .hero h1 { font-size: clamp(52px, 7vw, 66px); }
  .hero-copy { padding: 35px; }
  .hero-lede { max-width: 330px; font-size: 15px; }
  .screenshot-gallery { --shot-height: 470px; }
  .utility { padding: 27px; }
  .utility h3 { font-size: 27px; }
  .utility-icon { width: 60px; height: 60px; }
  .about { gap: 40px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 18px; }
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 75px; gap: 12px; }
  .brand { font-size: 10px; gap: 10px; letter-spacing: .16em; }
  .brand img { width: 28px; height: 35px; }
  .contact-nav { font-size: 11px; padding: 9px 13px; }
  .hero-layout { min-height: 740px; padding-block: 50px; }
  .hero-collage { inset: -20px -16px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
  .collage-shot { border-width: 2px; border-radius: 9px; }
  .hero-copy { width: 100%; padding: 30px 24px; border-radius: 18px; }
  .hero .eyebrow { max-width: 290px; font-size: 9px; letter-spacing: .17em; }
  .hero h1 { font-size: clamp(40px, 10.6vw, 68px); letter-spacing: -.06em; margin-block: 22px 25px; }
  .hero-lede { max-width: 480px; font-size: 15px; line-height: 1.8; }
  .screenshots-details > summary { font-size: 12px; gap: 12px; }
  .screenshots-details > summary > span { font-size: 10px; }
  .round-link { display: none; }
  .screenshot-gallery { --shot-height: clamp(390px, 140vw, 550px); }
  .gallery-heading { gap: 12px; margin-bottom: 18px; }
  .gallery-position { display: none; }
  .gallery-controls { gap: 6px; }
  .gallery-controls button { width: 38px; height: 38px; }
  .gallery-heading .eyebrow { font-size: 9px; }
  .gallery-hint { font-size: 11px; max-width: 175px; }
  .shot-wall { gap: 16px; }
  .shot-image { border-width: 4px; border-radius: 17px; }
  .showcase, .everyday { padding-block: 75px; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head > p { margin-top: 18px; max-width: 420px; font-size: 14px; }
  .section-head h2 { font-size: clamp(37px, 9.5vw, 52px); }
  .games, .everyday-grid, .about { grid-template-columns: 1fr; }
  .games { gap: 22px; }
  .art { height: 230px; }
  .game-info { padding: 25px; }
  .filter-row { gap: 7px; margin-bottom: 26px; }
  .filter { padding: 10px 14px; font-size: 12px; }
  .utility { padding: 28px; }
  .utility h3 { font-size: 29px; }
  .utility-icon { width: 64px; height: 64px; }
  .about { padding-block: 75px; gap: 26px; }
  .about h2 { font-size: 42px; }
  .about-copy > p { font-size: 15px; }
  .values { gap: 20px; }
  .footer { padding-block: 50px 30px; }
  .footer-top, .footer-bottom { display: block; }
  .footer h2 { font-size: 38px; margin-bottom: 25px; }
  .email { font-size: 15px; }
  .footer-bottom { margin-top: 45px; }
  .footer-bottom nav { margin-top: 15px; }
}
@media (max-width: 350px) {
  .hero-layout { min-height: 740px; }
  .hero-copy { padding: 26px 18px; }
  .hero h1 { font-size: 35px; }
  .screenshots-details > summary > span { font-size: 0; }
  .brand { max-width: 125px; font-size: 8px; }
  .contact-nav { font-size: 10px; padding: 8px 10px; }
  .screenshot-gallery { --shot-height: calc((100vw - 54px) * 16 / 9); }
  .gallery-heading { align-items: end; }
  .gallery-controls button { width: 32px; height: 32px; }
  .gallery-hint { max-width: 130px; }
  .utility, .game-info { padding: 20px; }
  .utility h3 { font-size: 24px; }
  .utility-icon { width: 48px; height: 48px; }
  .values { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
