/* Sıfır Dokuz Studio: midnight navy, warm off-white, one coral accent. Not any single game's look: each game keeps its
   own page (/taso/ in its peach theme, /darkhand/ in its own dark one). */
:root {
  --navy: #191D3E;   /* the logo's own ground */
  --navy-2: #252A4D;
  --navy-3: #30366080;
  --cream: #F7F3EA;
  --muted: #B9B7C9;
  --coral: #FF6B57;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font: 400 17px/1.6 "Figtree", system-ui, sans-serif;
}
a { color: var(--cream); text-decoration-color: var(--coral); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* Both languages are on every page; lang.js sets data-lang, CSS hides the other. */
html[data-lang="tr"] [lang="en"], html[data-lang="en"] [lang="tr"] { display: none !important; }

/* Keyboard users: the first Tab shows it, Enter jumps past the header to <main id="main">. */
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 10; background: var(--cream); color: var(--navy);
  font-weight: 700; padding: 10px 14px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

header { padding: 20px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 44px; height: 44px; border-radius: 12px; display: block; }
.brand .name { font: 800 19px/1 "Bricolage Grotesque", sans-serif; letter-spacing: .01em; }
.lang { display: flex; gap: 4px; background: var(--navy-2); padding: 4px; border-radius: 999px; }
.lang button {
  border: 0; background: transparent; color: var(--muted); font: 700 14px/1 "Figtree", sans-serif;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.lang button.on { background: var(--cream); color: var(--navy); }

.hero { padding: 72px 0 56px; text-align: center; position: relative; }
.hero .big { width: min(340px, 62vw); height: auto; display: block; margin: 0 auto; }
.hero h1 { font: 800 clamp(30px, 5vw, 48px)/1.1 "Bricolage Grotesque", sans-serif; margin: 18px 0 12px; }
.lead { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 19px; }

h2 { font: 800 28px/1.2 "Bricolage Grotesque", sans-serif; margin: 0 0 20px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: auto; padding-top: 6px; }
.links a { font-weight: 700; }
.soon { font-size: 14px; color: var(--muted); border: 1px solid var(--navy-3); border-radius: 999px; padding: 3px 10px; }

footer { border-top: 1px solid var(--navy-3); padding: 22px 0 28px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

/* An app page (/tintaqua/): the feature graphic, the icon beside the title, the text. */
.app { padding: 8px 0 56px; }
.app .feature { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.app-head { display: flex; align-items: center; gap: 18px; margin: 26px 0 14px; }
.app-head .icon { width: 84px; height: 84px; border-radius: 20px; flex: none; }
.app-head h1 { font: 800 clamp(26px, 4.4vw, 40px)/1.15 "Bricolage Grotesque", sans-serif; margin: 0; }
.eyebrow { margin: 4px 0 0; color: var(--muted); }
.lead-left { color: var(--muted); font-size: 18px; max-width: 760px; }
.big-links { margin-top: 18px; }
/* The store pages, in a row that scrolls sideways. */
.shots { display: flex; gap: 14px; margin: 28px 0 0; padding: 0 0 12px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.shots li { flex: none; width: clamp(150px, 22vw, 210px); }
.shots img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* The 404 page (/404.html, served for any missing path): the studio hero with the way back. */
.notfound .links { justify-content: center; margin-top: 22px; }

/* The header and hero settle in on load (.appear, delay in --d): motion.js on the 404 page, home.js on the home page.
   Only under html.motion, which they set unless motion is reduced. Curves: design-to-motion's --e and --e2. */
html.motion .appear { opacity: 0; transform: translateY(6px); filter: blur(2px); }
html.motion.in .appear {
  opacity: 1; transform: none; filter: none;
  transition: transform .8s cubic-bezier(0.16, 1, 0.3, 1), opacity .6s cubic-bezier(0.33, 1, 0.68, 1),
              filter .6s cubic-bezier(0.33, 1, 0.68, 1);
  transition-delay: var(--d, 0s);
}
