@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

/* Studio identity: "uçak" is Turkish for airplane, so the studio borrows from airmail.
   Airmail navy and red, pale airmail-paper blue, the striped envelope edge, postage stamps.
   Game pages keep their own look (Capsule Craze: sky blue + Nunito) inside the studio frame. */
:root {
  --paper: #ffffff;
  --mist: #eef2f8;
  --ink: #142a5c;
  --ink-2: #56627e;
  --line: #dfe5ef;
  --red: #d62e3e;
  --blue: #2f5bcb;
  --studio: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --text: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 44px);
  --airmail: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--paper) 14px 22px, var(--blue) 22px 36px, var(--paper) 36px 44px);

  /* Capsule Craze */
  --sky: #b7d2ed;
  --cc-ink: #1d2b4f;
  --cc-ink-2: #53648a;
  --orange: #ff6a13;
  --rare: #6a38dc;
  --secret: #8a5d00;
  --game: "Nunito", ui-rounded, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--studio); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 14px; border-radius: 8px; }

/* Studio frame */
.stripe { height: 7px; background: var(--airmail); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--studio); font-weight: 700; font-size: 21px; letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 38px; height: 38px; margin: -6px -4px -6px -8px; }
.topbar nav { display: flex; gap: clamp(18px, 3vw, 32px); font-weight: 700; font-size: 16px; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }

/* Studio home */
.hero { padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 112px); }
.flight .trail { fill: none; stroke: var(--ink); stroke-opacity: .42; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 13; }
.flight .reveal { fill: none; stroke: #fff; stroke-width: 26; stroke-linecap: round; }
.hero { overflow-x: clip; }
.wordmark { font-size: clamp(72px, 15.2vw, 200px); line-height: .86; letter-spacing: -.055em; padding-top: .78em; }
/* The U is the logo's U, at the height of the capitals. Its dart has taken off: the dotted trail starts at the
   U's slanted cut and the plane flies on above the rest of the name. Sizes are in em, so it scales with the type. */
.wordmark .u { position: relative; display: inline-block; line-height: 0; margin-right: .04em; }
.wordmark .u > svg:first-child { display: block; width: .6105em; height: .66em; fill: var(--ink); }
.wordmark .flight { position: absolute; left: calc(100% - .01em); bottom: calc(100% - .074em); width: 4.5em; max-width: none; height: .9em; overflow: visible; }
.hero .sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 72px); margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(20px, 2.4vw, 28px); border-top: 2px solid var(--ink); }
.hero .sub .lead { font-family: var(--studio); font-weight: 700; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.2; letter-spacing: -.015em; max-width: 22ch; }
.hero .sub p:last-child { color: var(--ink-2); max-width: 50ch; }
@media (prefers-reduced-motion: no-preference) {
  .flight .reveal { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: fly 2.2s cubic-bezier(.45, .05, .25, 1) .25s forwards; }
  .flight .plane { opacity: 0; transform-box: fill-box; transform-origin: center; animation: arrive .7s cubic-bezier(.2, .8, .2, 1) 1.95s forwards; }
  @keyframes fly { to { stroke-dashoffset: 0; } }
  @keyframes arrive { from { opacity: 0; transform: translate(-26px, 8px) rotate(6deg); } to { opacity: 1; transform: none; } }
}

.games { background: var(--mist); padding-block: clamp(56px, 8vw, 112px); }
.games h2, .contact h2 { font-size: clamp(36px, 4.6vw, 60px); }
.feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(32px, 4vw, 52px); }
.feature .art > a img { border-radius: 18px; box-shadow: 0 30px 50px -34px rgba(20, 42, 92, .55); }
.feature h3 { font-size: clamp(32px, 3.4vw, 44px); }
.feature p { margin-top: 14px; color: var(--ink-2); max-width: 40ch; }
.status { display: flex; width: fit-content; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(214, 46, 62, .16); }
.feature .status { margin-top: 20px; }
.button { display: inline-block; margin-top: 24px; padding: 13px 24px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.button:hover { background: #1f3a7a; }

/* A postage stamp: perforated edge cut with a mask; the drop shadow sits on the wrapper so it follows the holes. */
.stamp-wrap { float: right; width: clamp(92px, 9.5vw, 124px); margin: -14px 0 18px 24px; filter: drop-shadow(0 8px 12px rgba(20, 42, 92, .26)); transform: rotate(5deg); }
.stamp { aspect-ratio: 12 / 15; padding: 9px; background: var(--paper);
  -webkit-mask: radial-gradient(circle, transparent 4.5px, #000 5px) -7px -7px / 14px 14px, linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(circle, transparent 4.5px, #000 5px) -7px -7px / 14px 14px, linear-gradient(#000 0 0) content-box; }
.stamp div { height: 100%; padding: 7px; background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-rows: 1fr auto; gap: 6px; }
.stamp img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.stamp span { font-family: var(--studio); font-weight: 700; font-size: 10px; line-height: 1; letter-spacing: 0; text-align: center; color: var(--ink); }

.contact { padding-block: clamp(56px, 8vw, 112px); }
.envelope { border: 12px solid transparent; border-image: var(--airmail) 12; background: var(--paper); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.envelope p { margin-top: 14px; color: var(--ink-2); max-width: 44ch; }
.envelope .address { font-family: var(--studio); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.02em; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; overflow-wrap: anywhere; }
.envelope .address:hover { color: var(--blue); border-color: var(--blue); }

.footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 32px 40px; }
.footer .brand { font-size: 18px; color: var(--ink); }
.footer .brand svg { width: 32px; height: 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer + .stripe { height: 5px; }

/* Capsule Craze page (the game's own look inside the studio frame) */
.cc { color: var(--cc-ink); }
.cc h1, .cc h2, .cc h3 { font-family: var(--game); font-weight: 900; letter-spacing: -.01em; line-height: 1.05; }
.game-hero { background: var(--sky); }
.game-hero .title { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: center;
  padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(150px, 19vw, 240px); }
.app-icon { width: clamp(88px, 11vw, 136px); border-radius: 23%; box-shadow: 0 18px 30px -16px rgba(29, 43, 79, .55); }
.game-hero h1 { font-size: clamp(46px, 7.4vw, 96px); letter-spacing: -.035em; line-height: .92; }
.tagline { margin-top: 12px; font-family: var(--game); font-weight: 800; font-size: clamp(18px, 2vw, 23px); line-height: 1.3; max-width: 30ch; }
.game-hero .status { margin-top: 16px; font-family: var(--game); font-weight: 800; }
.cc .status::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 19, .2); }

.screens { margin-top: calc(-1 * clamp(118px, 15.5vw, 200px)); }
.screens ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter) 24px; display: flex; gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.screens li { flex: 0 0 clamp(168px, 19vw, 210px); scroll-snap-align: start; }
.screens figure { margin: 0; }
.screens img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; border-radius: 26px; border: 5px solid #fff; background: #fff;
  box-shadow: 0 22px 36px -22px rgba(29, 43, 79, .5); }
.screens figcaption { margin-top: 12px; font-family: var(--game); font-weight: 800; font-size: 15px; line-height: 1.3; padding-inline: 4px; }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 72px); padding-block: clamp(48px, 7vw, 96px); }
.cc h2 { font-size: clamp(30px, 3.4vw, 42px); }
.how .body { color: var(--cc-ink-2); max-width: 54ch; }
.how .body p + p { margin-top: 1em; }

.shelf { padding-bottom: clamp(56px, 8vw, 104px); }
.shelf > p { margin-top: 12px; color: var(--cc-ink-2); max-width: 56ch; }
.shelves { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: clamp(36px, 5vw, 56px); margin-top: clamp(36px, 5vw, 56px); }
.shelves .row:nth-child(odd) .plinth { border-radius: 10px 0 0 10px; }
.shelves .row:nth-child(even) .plinth { border-radius: 0 10px 10px 0; }
.figs { list-style: none; margin: 0; padding: 0 clamp(8px, 2vw, 24px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.figs img { width: 100%; max-width: 150px; margin: 0 auto -10%; position: relative; z-index: 1; }
.plinth { height: 44px; border-radius: 10px; background: linear-gradient(#ffffff 0 26%, #e9f0f8 26% 100%);
  box-shadow: 0 30px 40px -26px rgba(29, 43, 79, .45), inset 0 -2px 0 rgba(29, 43, 79, .06); }
.names { align-items: start; list-style: none; margin: 14px 0 0; padding: 0 clamp(8px, 2vw, 24px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  text-align: center; font-family: var(--game); font-weight: 800; font-size: 15px; line-height: 1.25; }
.names em { display: block; font-style: normal; font-size: 13px; margin-top: 2px; }
.names .rare em { color: var(--rare); }
.names .secret em { color: var(--secret); }

.info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.facts { margin: 20px 0 0; }
.facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--cc-ink-2); }
.facts dd { margin: 0; font-weight: 700; }
.info .help p { margin-top: 16px; color: var(--cc-ink-2); max-width: 44ch; }
.info .help a { color: var(--cc-ink); font-weight: 700; }

/* Privacy policy */
.doc-head { padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(40px, 5.6vw, 68px); max-width: 15ch; }
.doc-head p { margin-top: 14px; color: var(--ink-2); }
.langs { display: flex; gap: 10px; margin-top: 22px; }
.langs a { font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--mist); }
.langs a:hover { background: #e2e9f4; }
.doc { max-width: 720px; padding-block: clamp(32px, 5vw, 64px); }
.doc section + section { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.doc h2 { font-size: 32px; }
.doc h3 { font-family: var(--text); font-size: 19px; font-weight: 700; letter-spacing: 0; margin-top: 32px; }
.doc p { margin-top: 10px; color: #2f3b58; }
.doc .summary { margin-top: 18px; padding: 18px 22px; border-radius: 14px; background: var(--mist); color: var(--ink); font-weight: 700; }

/* 404 */
.lost { padding-block: clamp(48px, 10vw, 140px); text-align: left; }
.lost h1 { font-size: clamp(44px, 8vw, 104px); max-width: 12ch; }
.lost p { margin-top: 16px; color: var(--ink-2); max-width: 46ch; }

@media (max-width: 860px) {
  .hero .sub, .feature, .how, .info, .envelope { grid-template-columns: 1fr; }
  .shelves { grid-template-columns: 1fr; }
  .shelves .row .plinth { border-radius: 10px; }
}
@media (max-width: 520px) {
  .wordmark .flight { width: 3.7em; height: .74em; }
  /* The drawing is a quarter of its desktop size here: thicker, wider-spaced dots keep the trail readable. */
  .wordmark .flight .trail { stroke-width: 8; stroke-dasharray: .5 26; }
  body { font-size: 16px; }
  .topbar nav { gap: 16px; font-size: 15px; }
  .game-hero .title { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 8em minmax(0, 1fr); }
}
.page-lost { min-height: 100svh; display: flex; flex-direction: column; }
.page-lost main { flex: 1; }
