@font-face {
  font-family: "Nunito";
  src: url("/assets/brand/Nunito-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #0e1a3a;
  --ink-soft: #43516b;
  --line: #dce2ec;
  --ice: #edf2f9;
  --white: #fff;
  --gutter: clamp(1.25rem, 5.5vw, 5.5rem);
  --body-font: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading-font: "Nunito", var(--body-font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; background: var(--white); color: var(--night); font: 1rem/1.55 var(--body-font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #3b69a8; outline-offset: 4px; }
::selection { background: #cddcf3; color: var(--night); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 700; }
p { text-wrap: pretty; }
.container { width: min(77rem, calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }

.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 30; transform: translateY(-180%); padding: .7rem 1.2rem; border-radius: .4rem; background: var(--white); color: var(--night); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; min-height: 5.25rem; gap: clamp(1.5rem, 3.8vw, 3.75rem); }
.wordmark { display: inline-flex; align-items: center; flex: none; min-height: 2.75rem; }
.wordmark img { width: 8.5rem; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1.4rem, 2.65vw, 2.75rem); }
.primary-nav a { position: relative; display: flex; align-items: center; min-height: 2.75rem; font-size: .95rem; font-weight: 600; }
.primary-nav a::after { content: ""; position: absolute; inset: auto 0 .3rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="location"]::after { transform: scaleX(1); }
.header-actions, .language-switch { display: flex; align-items: center; }
.header-actions { gap: .55rem; }
.language-switch { padding: 3px; border-radius: 2rem; background: #f0f3f8; border: 1px solid #e4e9f1; }
.language-switch > * { display: grid; place-items: center; min-width: 2.65rem; min-height: 2.25rem; border-radius: 2rem; font: 700 .875rem/1 var(--heading-font); }
.language-switch a { color: var(--ink-soft); }
.language-switch a:hover { background: #dfe6f1; }
.language-switch [aria-current="true"] { background: var(--night); color: var(--white); }
.nav-toggle { display: none; }

.hero { position: relative; overflow: hidden; background: var(--night); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); column-gap: clamp(1rem, 3vw, 3rem); align-items: center; min-height: clamp(30rem, 40vw, 37rem); padding-block: clamp(3rem, 4.6vw, 4.8rem); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.65rem, 6.65vw, 6.5rem); line-height: .99; letter-spacing: -.055em; }
.hero h1 span { display: block; }
html:lang(tr) .hero h1 { font-size: clamp(3.1rem, 5.85vw, 5.7rem); }
.hero h1 span:first-child { color: #c6d5ee; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.25rem; padding: .72rem 1.55rem; border-radius: 2rem; font: 700 1rem/1.4 var(--heading-font); transition: background .18s, transform .18s; }
.hero-cta { margin-top: clamp(1.7rem, 2.7vw, 2.6rem); background: var(--white); color: var(--night); }
.hero-cta:hover { background: #e3ecfa; transform: translateY(-2px); }
.hero-cta:focus-visible { outline-color: #c6d5ee; }
.hero-art { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; aspect-ratio: 1.28; }
.hero-art::before { content: ""; z-index: -1; position: absolute; width: 128%; aspect-ratio: 760 / 580; background: url("/assets/night-orbits.svg") center / contain no-repeat; pointer-events: none; }
.hero-art img { width: clamp(9rem, 14.5vw, 14.8rem); }

.about { padding-block: clamp(3.3rem, 6.5vw, 6.2rem); }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: baseline; }
.section-label, .detail-label { font: 700 .875rem/1.45 var(--heading-font); letter-spacing: .09em; text-transform: uppercase; }
.section-label { display: flex; align-items: center; gap: .75rem; }
.section-label::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; flex: none; }
.studio-statement { max-width: 36ch; font-size: clamp(1.55rem, 2.5vw, 2.45rem); letter-spacing: -.038em; line-height: 1.34; font-weight: 500; }

.games-panel { display: grid; grid-template: "art copy" auto / minmax(0, .93fr) minmax(0, 1.07fr); align-items: center; gap: clamp(1rem, 4vw, 4rem); min-height: 22rem; padding: clamp(1.8rem, 3.4vw, 3.5rem) clamp(2rem, 5.2vw, 5rem); border: 1px solid #dce4ef; border-radius: 2rem; overflow: hidden; background: linear-gradient(110deg, #e2eaf5 0%, #eef3f9 57%, #f5f7fb 100%); }
.games-copy { grid-area: copy; }
.games-copy .section-label { color: var(--ink-soft); }
#games-heading { font-size: clamp(2.75rem, 4.7vw, 4.65rem); letter-spacing: -.054em; line-height: 1.04; }
.games-copy h2 { margin-top: 1rem; }
.games-description, .contact-description { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.6; }
.games-description { max-width: 33ch; margin-top: 1rem; }
.hourglass-art { grid-area: art; position: relative; isolation: isolate; display: grid; place-items: center; min-height: 16rem; }
.hourglass-art::before { content: ""; position: absolute; z-index: -1; width: min(16rem, 85%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 20%, #fff, #edf2f9 58%, #d5e0ef 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 65%); }
.hourglass-art::after { content: ""; position: absolute; z-index: -1; width: min(18rem, 97%); aspect-ratio: 1; border: 1px dashed #b4c3d8; border-radius: 50%; }
.hourglass-art img { width: min(15rem, 80%); transform: translateY(-2.5%) rotate(-8deg); filter: drop-shadow(0 .7rem .6rem rgb(14 26 58 / 12%)); }

.contact { padding-block: clamp(3.8rem, 7.3vw, 7.3rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6.5rem); align-items: center; }
.contact h2 { font-size: clamp(1.85rem, 2.8vw, 2.8rem); line-height: 1.15; letter-spacing: -.045em; }
.contact-description { margin-top: .7rem; }
.email-address { display: inline-block; max-width: 100%; margin-top: 1.35rem; font: 700 clamp(2rem, 4.35vw, 4.1rem)/1.23 var(--heading-font); letter-spacing: -.05em; overflow-wrap: anywhere; }
a.email-address { text-decoration: underline; text-decoration-color: #a6b7d1; text-decoration-thickness: .045em; text-underline-offset: .15em; }
a.email-address:hover { text-decoration-color: var(--night); }
.email-pending { font-size: .875rem; color: var(--ink-soft); }
.address-block { border-left: 1px solid var(--line); padding-left: clamp(1.75rem, 4vw, 4.5rem); }
.detail-label { color: var(--ink-soft); }
address { margin-top: .9rem; font-style: normal; line-height: 1.7; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.05rem; }
.footer-inner p { font-size: .8125rem; color: var(--ink-soft); }
.footer-inner a, .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .93rem; font-weight: 600; text-decoration: underline; text-decoration-color: #afbbcd; text-underline-offset: .25em; }
.footer-inner a:hover, .text-link:hover { text-decoration-color: var(--night); }

/* Populated game lists and detail pages share the shell of the homepage. */
.section-space { padding-block: clamp(3rem, 6vw, 6rem); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.game-card { display: block; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.game-card img, .game-cover { width: 100%; border-radius: 1.2rem; background: var(--ice); object-fit: cover; }
.game-card img { aspect-ratio: 16 / 10; }
.game-card h3 { margin-block: 1.2rem .5rem; font-size: 1.7rem; letter-spacing: -.035em; }
.game-card:hover h3 { text-decoration: underline; }
.game-card p, .game-summary { color: var(--ink-soft); }
.game-kicker { margin-top: 2.5rem; }
.game-detail h1 { margin-top: .85rem; font-size: clamp(2.65rem, 6vw, 5rem); line-height: 1.08; letter-spacing: -.05em; }
.game-summary { max-width: 48rem; margin-top: 1.4rem; font-size: 1.2rem; }
.game-cover { max-height: 42rem; margin-top: 2.5rem; }
.game-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); margin-top: 3rem; }
.game-prose p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1rem; }
.game-facts > p { margin-bottom: 1.5rem; }
.game-facts .detail-label { margin-bottom: .5rem; }
.game-store-links { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.button-primary { background: var(--night); color: var(--white); }
.button-primary:hover { background: #294268; }

@media (max-width: 800px) {
  html { scroll-padding-top: 5.5rem; }
  .header-inner { min-height: 4.5rem; flex-wrap: wrap; gap: 0 1rem; }
  .wordmark img { width: 7.1rem; }
  .header-actions { margin-left: auto; }
  .primary-nav { order: 3; width: 100%; margin: 0; justify-content: space-between; padding-bottom: .5rem; }
  .js .primary-nav { display: none; }
  .js .primary-nav[data-open="true"] { display: flex; }
  .js .nav-toggle { display: grid; place-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; }
  .nav-toggle span { width: 1.1rem; height: 2px; border-radius: 2px; background: currentColor; transition: transform .16s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero-grid { column-gap: 1rem; min-height: 25rem; }
  .hero h1 { font-size: clamp(3rem, 7vw, 3.85rem); }
  html:lang(tr) .hero h1 { font-size: clamp(2.7rem, 6.35vw, 3.5rem); }
  .hero-art img { width: 46%; }
  .games-panel { min-height: 18rem; padding: 2.25rem 1.8rem; gap: 1.5rem; }
  .hourglass-art { min-height: 13rem; }
  .hourglass-art img { width: min(12.5rem, 85%); }
  .contact-grid { column-gap: 1.5rem; }
  .address-block { padding-left: 1.25rem; }
  .game-body { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 2.65rem .7rem; row-gap: .65rem; }
  .hero h1 { font-size: clamp(3rem, 12.8vw, 4.35rem); }
  html:lang(tr) .hero h1 { font-size: clamp(2.3rem, 11.5vw, 3.95rem); }
  .hero-cta { margin-top: 1.45rem; min-height: 3rem; }
  .hero-art { aspect-ratio: auto; height: clamp(12rem, 57vw, 16rem); }
  .hero-art::before { width: min(102%, 25rem); }
  .hero-art img { width: clamp(5.6rem, 25vw, 7.5rem); }
  .about-grid, .contact-grid, .game-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 1.1rem; }
  .studio-statement { max-width: 33ch; }
  .games-panel { grid-template: "copy" "art" / minmax(0, 1fr); row-gap: .75rem; border-radius: 1.4rem; padding: 2rem 1.5rem 1.25rem; }
  .games-copy h2 { margin-top: .8rem; }
  .games-description { margin-top: .65rem; }
  .hourglass-art { min-height: 13.1rem; }
  .hourglass-art::before { width: 10.6rem; }
  .hourglass-art::after { width: 12rem; }
  .hourglass-art img { width: 10.7rem; }
  .contact-grid { row-gap: 2.25rem; }
  .email-address { font-size: clamp(1.65rem, 7.9vw, 2.7rem); margin-top: 1rem; }
  .address-block { border-left: 0; border-top: 1px solid var(--line); padding: 1.4rem 0 0; }
  .footer-inner { flex-wrap: wrap; padding-block: .75rem; }
}

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