@font-face {
  font-family: "Grandstander";
  src: url("../fonts/grandstander-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f8f5ec;
  --ink: #292724;
  --pencil: #656058;
  --coral: #c34430;
  --peach: #f0b09c;
  --sage: #c7d1ba;
  --rule: #d5cfc2;
  --about: #ded7c7;
  --about-pencil: #5c574f;
  --peach-ink: #623b2e;
  --sage-ink: #3b4b37;
  --font: "DM Sans", sans-serif;
  --font-display: "Grandstander", sans-serif;
  color-scheme: light;
  scrollbar-color: var(--coral) var(--paper);
  scroll-padding-top: 2rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { color: var(--paper); background: var(--coral); }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .25em; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 6px; }
button, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 750; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 4.5vw, 4rem); }
.wrap { width: min(100% - 8rem, 76rem); margin-inline: auto; }
.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.accent-period { color: var(--coral); }
.skip-link { position: absolute; top: 1rem; left: 1rem; z-index: 10; padding: .75rem 1rem; color: var(--paper); background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); color: var(--paper); }

/* Supplied transparent logos stay unmodified. Black at 84% opacity blends
   into the warm page as dark ink, preserving every edge of the artwork. */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.15rem; border-bottom: 1px solid var(--rule); }
.studio-brand { display: block; flex: 0 0 auto; text-decoration: none; }
.studio-logo { display: block; width: 13rem; height: auto; }
.studio-logo, .about-mark, .hero-art img { filter: brightness(0); opacity: .84; }
.main-nav { display: flex; align-items: center; gap: 2.5rem; }
.main-nav a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: .95rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; }
.main-nav .icon { width: 1rem; height: 1rem; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .9fr); align-items: center; column-gap: 1rem; padding-block: 4.5rem 4.75rem; }
.hero-copy { position: relative; z-index: 1; }
h1 { font-size: clamp(3.5rem, 6.7vw, 6rem); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; }
h1 > span { color: var(--coral); }
.hero-intro { margin-top: 1.75rem; }
.hero-intro p { max-width: 46ch; font-size: 1.0625rem; line-height: 1.65; }
.hero-intro strong { font-weight: 700; }
.hero-art { align-self: center; margin-inline: -1rem -1.75rem; pointer-events: none; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }

/* Native button styling keeps the backdrop and focus outline crisp. */
.studio-button { display: inline-flex; align-items: center; justify-content: center; position: relative; isolation: isolate; gap: 1.2rem; min-height: 52px; margin-top: 1.5rem; padding: .85rem 1.2rem; border: 0; border-radius: 0; background: none; color: var(--paper); font-family: var(--font); font-size: 1rem; font-weight: 650; line-height: 1.3; box-shadow: none; filter: none; transform: none; text-decoration: none; }
.studio-button::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 2px solid var(--ink); border-radius: 4px; background: var(--ink); transition: background-color 140ms ease-out; }
.studio-button:hover, .studio-button:focus-visible { color: var(--paper); box-shadow: none; transform: none; }
.studio-button:focus-visible { outline: 3px solid var(--coral); outline-offset: 6px; }
.studio-button:hover::before, .studio-button:focus-visible::before { border-color: var(--coral); background: var(--coral); }

.games { padding-bottom: 3.5rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; column-gap: 3.5rem; row-gap: 3.5rem; }
.game { display: flex; flex-direction: column; min-width: 0; }
.game > img, .game-art, .game-slideshow { flex: 0 0 auto; }
.game > img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.game-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; aspect-ratio: 8 / 5; padding: 2rem; overflow: hidden; }
.art-coral { background: var(--peach); color: var(--peach-ink); }
.art-sage { background: var(--sage); color: var(--sage-ink); }
.art-border { position: absolute; inset: .85rem; border: 1.5px solid currentColor; opacity: .45; pointer-events: none; border-radius: 4px; }
.art-lettering { padding-bottom: .65rem; font-family: var(--font-display); font-size: clamp(2.25rem, 3.8vw, 3.75rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.02; text-align: center; }
.art-lettering span { font-weight: 800; }
.art-label { position: absolute; bottom: 1.45rem; font-size: .75rem; font-weight: 500; letter-spacing: .025em; }
.game-title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 1.6rem; }
.game h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.game-description { flex-grow: 1; max-width: 55ch; margin-top: .75rem; color: var(--pencil); line-height: 1.7; }
.game-play { display: inline-flex; align-self: flex-start; align-items: center; gap: 1.25rem; min-height: 48px; margin-top: 1rem; padding-block: .5rem; border-bottom: 2px solid var(--ink); font-size: 1rem; font-weight: 700; text-decoration: none; }
.game-play:hover { border-color: var(--coral); }
.game-play .icon { width: 1.125rem; height: 1.125rem; }

/* The supplied title artwork starts the inline, uncropped slideshow. */
.game-slideshow { position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: var(--ink); color: var(--paper); touch-action: pan-y pinch-zoom; }
.game-slideshow > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.game-slideshow > img:first-child { z-index: 1; opacity: 1; background: var(--ink); pointer-events: none; transition: opacity 400ms ease-out; }
.game-slideshow.is-previewing > img:first-child { opacity: 0; }
.game-slideshow > img[hidden], .slideshow-controls[hidden] { display: none; }
.slideshow-controls { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; transition: opacity 140ms ease-out; }
.game-slideshow:hover .slideshow-controls, .game-slideshow:has(:focus-visible) .slideshow-controls { opacity: 1; }
.slideshow-button { position: absolute; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer; pointer-events: auto; }
.slideshow-button::before { content: ""; position: absolute; inset: 4px; z-index: -1; border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--ink) 64%, transparent); transition: background-color 160ms ease-out, border-color 160ms ease-out; }
.slideshow-button .icon { width: 1rem; height: 1rem; }
.slideshow-button:hover { color: var(--peach); }
.slideshow-button:hover::before, .slideshow-button:focus-visible::before { border-color: var(--peach); background: color-mix(in srgb, var(--ink) 82%, transparent); }
.slideshow-button:focus-visible { outline-color: var(--peach); outline-offset: 3px; }
.slideshow-previous, .slideshow-next { top: calc(50% - 22px); }
.slideshow-previous { left: .75rem; }
.slideshow-next { right: .75rem; }
.slideshow-progress { position: absolute; z-index: 1; inset: auto 0 0; display: block; height: 3px; background: color-mix(in srgb, var(--paper) 24%, var(--ink)); pointer-events: none; }
.slideshow-progress[hidden] { display: none; }
.slideshow-progress > span { display: block; height: 100%; background: var(--peach); transform: scaleX(0); transform-origin: left; }
@media (hover: none), (pointer: coarse) {
  .slideshow-controls { opacity: 1; }
}

.section-wave { position: relative; z-index: 1; height: 4rem; margin-block: -1px; background-repeat: repeat-x; background-position: center bottom; background-size: 6rem 4rem; pointer-events: none; }
.section-wave--about { background-color: var(--paper); background-image: url("../images/wave-about.svg"); }
.section-wave--footer { background-color: var(--about); background-image: url("../images/wave-footer.svg"); background-position: calc(50% + 2rem) bottom; }
.about { --pencil: var(--about-pencil); padding-block: 2rem 2.5rem; background: var(--about); }
.about-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 4rem; }
.about-heading { display: flex; align-items: center; gap: 1.5rem; }
.about-mark { width: 6.5rem; height: auto; flex: 0 0 auto; transform: rotate(-8deg); }
.about h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
.about-lead { margin-bottom: .75rem; font-size: 1.375rem; font-weight: 650; line-height: 1.4; }
.about-copy > p:not(.about-lead) { max-width: 55ch; }
.editorial-placeholder { margin-top: 1rem; color: var(--pencil); font-size: .875rem; }

.site-footer { background: var(--ink); color: var(--paper); }
.footer-inner { padding-top: 4.5rem; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 3rem; padding-bottom: 4rem; }
.footer-main h2 { margin-bottom: 1rem; font-size: clamp(3.5rem, 7.5vw, 6rem); font-weight: 800; }
.footer-main .accent-period { color: var(--peach); }
.footer-main > div > p { color: var(--rule); }
.site-footer a:hover { color: var(--peach); }
.site-footer :focus-visible { outline-color: var(--peach); }
.contact-link { display: inline-flex; align-items: center; max-width: 100%; min-height: 48px; margin-top: 1rem; font-size: clamp(1rem, 1.8vw, 1.375rem); font-weight: 600; overflow-wrap: anywhere; }
.socials { justify-self: end; min-width: 14rem; padding-bottom: .25rem; }
.socials h3 { font-family: var(--font); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.social-list { display: flex; flex-direction: column; gap: .25rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.social-list a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 44px; font-size: .9375rem; text-decoration: none; }
.social-list a:hover { text-decoration: underline; }
.social-list span { color: var(--rule); }
.social-list a:is(:hover, :focus-visible) { color: var(--peach); text-decoration: underline; }
.social-list a:is(:hover, :focus-visible) span { color: inherit; }
.social-list .icon { width: .9rem; height: .9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.25rem; border-top: 1px solid var(--pencil); color: var(--rule); font-size: .8125rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.studio-mark { display: block; flex: 0 0 auto; width: 4rem; height: auto; }
.footer-bottom a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; text-decoration: none; }
.footer-bottom .icon { width: 1rem; height: 1rem; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 5rem); }
  .hero { grid-template-columns: minmax(0, 1.85fr) minmax(0, .75fr); padding-block: 3.5rem 4rem; }
  h1 { font-size: clamp(3rem, 6.6vw, 4.5rem); }
  .hero-art { margin-inline: -1rem; }
  .hero-intro p { max-width: 43ch; }
  .game-grid { column-gap: 2rem; }
  .about-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-heading { display: block; }
  .about-mark { width: 4.5rem; margin-bottom: 1rem; }
  .footer-main { gap: 2rem; }
  .socials { min-width: 0; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { flex-direction: column; gap: .5rem; padding-block: .9rem .5rem; }
  .studio-logo { width: 11rem; }
  .main-nav { justify-content: center; gap: 2.25rem; }
  .main-nav a { font-size: .9375rem; }
  .main-nav .icon { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) clamp(3.5rem, 20vw, 6.5rem); gap: 1.5rem 1rem; padding-block: 2.75rem 3.75rem; }
  .hero-copy, .hero-intro { display: contents; }
  h1 { grid-column: 1 / -1; font-size: clamp(2.45rem, 10.8vw, 4.3rem); line-height: 1.1; }
  .hero-intro p { grid-column: 1 / -1; max-width: 42ch; font-size: 1rem; }
  .hero-art { grid-column: 2; grid-row: 3; width: 100%; margin: 0; }
  .studio-button { grid-column: 1; grid-row: 3; justify-self: start; max-width: 100%; gap: .75rem; margin-top: 0; padding: .85rem 1rem; font-size: .9375rem; }
  .studio-button .icon { width: 1rem; }
  .section-heading { display: block; margin-bottom: 1.5rem; }
  .game-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .art-lettering { font-size: clamp(2.25rem, 10vw, 3.75rem); }
  .game-title-row { margin-top: 1.25rem; }
  .game h3 { font-size: 1.625rem; }
  .game-play { margin-top: .75rem; }
  .games { padding-bottom: 2.5rem; }
  .section-wave { height: 3.5rem; background-size: 5.25rem 3.5rem; }
  .section-wave--footer { background-position: calc(50% + 1.75rem) bottom; }
  .about { padding-block: 1.5rem 2rem; }
  .about-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-heading { display: flex; gap: 1rem; }
  .about-mark { width: 4.5rem; margin: 0; }
  .about h2 { font-size: 2rem; }
  .about-lead { font-size: 1.25rem; }
  .footer-inner { padding-top: 3rem; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; }
  .footer-main h2 { font-size: clamp(3.5rem, 14vw, 5rem); }
  .contact-link { font-size: 1.0625rem; }
  .socials { justify-self: start; }
  .footer-bottom { gap: .4rem 1rem; padding-block: 1rem; }
  .studio-mark { width: 3rem; }
  .footer-bottom > p { flex-basis: 100%; order: 3; }
}
@media (max-width: 360px) {
  .studio-button { font-size: .875rem; }
  .footer-bottom { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .section-wave { display: none; }
  .studio-button { border: 2px solid ButtonText; color: LinkText; }
  .art-border, .game-play, .footer-bottom { border-color: CanvasText; }
  .site-footer { background: Canvas; color: CanvasText; }
  .site-footer p, .social-list span { color: CanvasText; }
}
