:root {
  color-scheme: dark;
  --paper: #f3ede0;
  --muted: #b6afa0;
  --gold: #e8c18a;
  --ink: #171713;
  --surface: #201f19;
  --line: #3b382e;
  background: var(--ink);
  color: var(--paper);
  font-family: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.wrap { width: min(1240px, calc(100% - 2 * clamp(16px, 5vw, 72px))); margin-inline: auto; }

.top, .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top { min-height: 78px; }
.brand { display: inline-flex; align-items: center; font-size: 23px; font-weight: 750; letter-spacing: -.06em; }
.brand-dot { color: var(--gold); }
.mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-right: 9px;
  border: 1px solid #6e5d47;
  color: var(--gold);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0;
}

nav { display: flex; gap: clamp(10px, 3vw, 32px); }
nav a, .footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; }
nav a:hover, .footer a:hover { color: var(--gold); }

.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(450px, 53vw, 600px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #262520;
}

.hero > img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > img { object-fit: cover; object-position: 62% center; z-index: -2; }
.hero::after {
  z-index: -1;
  background: linear-gradient(90deg, #10110fee 0%, #10110fcf 30%, #10110f20 76%), linear-gradient(0deg, #10110fc9, transparent 36%);
  content: "";
}
.hero-copy { max-width: 560px; padding: clamp(22px, 6vw, 82px); }
.label { margin: 0 0 14px; color: var(--gold); font-size: 12px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(49px, 8.1vw, 104px); letter-spacing: -.055em; line-height: .94; }
.hero-copy > p:not(.label) { max-width: 34ch; margin: 24px 0 28px; color: #e0d9cd; line-height: 1.6; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--gold);
  color: #20180f;
  font-size: 14px;
  font-weight: 700;
}
.button:hover { background: #f7d6aa; }
.play { border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hero-credit { position: absolute; right: 17px; bottom: 14px; color: #eee5d5; font-size: 11px; }
.slide-title { margin: 0; font-size: clamp(49px, 8vw, 104px); letter-spacing: -.055em; line-height: .94; }
.showcase .hero { animation: reveal-slide .58s ease-out both; }
@keyframes reveal-slide {
  from { opacity: .55; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.sports-slide { background: #25201f url(assets/spor-pist.png) center / cover; }
.roof-slide { background: radial-gradient(ellipse at 80% 35%, #444073, #1a2035 70%); }
.finance-slide { background: radial-gradient(ellipse at 80% 35%, #5343ab, #231f3b 70%); }
.hero > .slide-art {
  inset: auto 9% 10% auto;
  width: min(37%, 320px);
  height: 80%;
  object-fit: contain;
  object-position: center;
}
.hero.sports-slide > .slide-art { right: 14%; bottom: 4%; height: 94%; }
.showcase-controls { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 10px; }
.showcase-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--paper);
  cursor: pointer;
}
.showcase-controls button:hover { border-color: var(--gold); }
.slide-indicators { display: flex; }
.slide-indicators button { width: 32px; border-color: transparent; background: transparent; }
.slide-indicators button::before { width: 7px; height: 7px; border-radius: 20px; background: var(--muted); content: ""; }
.slide-indicators button[aria-pressed="true"]::before { width: 18px; background: var(--gold); }

.catalog { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 4vw, 56px); margin-block: 45px 60px; }
.shelf { min-width: 0; scroll-margin-top: 22px; }
.shelf h2 { margin: 0 0 15px; font-size: clamp(30px, 4vw, 41px); letter-spacing: -.04em; }
.game-card, .app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 98px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.game-card:hover, .app-card:hover { border-color: #a2865d; }
.shelf > a + a { margin-top: 9px; }
.game-icon, .catalog-icon {
  display: grid;
  place-items: center;
  flex: 0 0 53px;
  height: 53px;
  border-radius: 8px;
  background: #30291e;
  color: var(--gold);
}
.catalog-icon { overflow: hidden; font-size: 25px; }
.catalog-icon img { width: 100%; height: 100%; object-fit: contain; }
.card-copy { min-width: 0; }
.card-copy strong, .card-copy small { display: block; }
.card-copy strong { font-size: 15px; line-height: 1.4; }
.card-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.arrow { margin-left: auto; padding-inline: 8px; color: var(--gold); font-size: 21px; }
.project { margin-block: 12px 60px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; color: var(--gold); font-size: 14px; }
.back:hover { text-decoration: underline; }
.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, .7fr);
  align-items: center;
  gap: clamp(20px, 5vw, 70px);
  min-height: 330px;
  padding: clamp(22px, 5vw, 66px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: radial-gradient(ellipse at right, var(--project-glow, #35291d), var(--surface) 62%);
}
.project--ed-finans { --project-glow: #302447; }
.project--ed-yts { --project-glow: #283445; }
.project--filament-takip { --project-glow: #203e39; }
.project--spor { --project-glow: #473328; }
.project--roof-to-roof { --project-glow: #282d46; }
.project-copy h1 { font-size: clamp(43px, 7vw, 85px); line-height: .99; }
.showcase .sports-title, .project-copy .sports-title { font-size: clamp(34px, 5vw, 65px); }
.project-copy > p:last-child { margin: 20px 0 0; max-width: 50ch; color: var(--muted); line-height: 1.65; }
.project-art { display: grid; place-items: center; }
.project-art img { display: block; width: min(100%, 240px); max-height: 240px; object-fit: contain; border-radius: 15px; }
.preview-panel {
  margin-top: 26px;
  padding: clamp(15px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.preview-panel h2 { margin: 0 0 18px; font-size: clamp(30px, 5vw, 45px); }
.app-screenshot { width: min(100%, 440px); margin: 0 auto; }
.app-screenshot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.app-screenshot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.app-gallery { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.desktop-screenshot { width: 100%; }
.desktop-screenshot a { display: block; border-radius: 12px; }
.desktop-screenshot img { aspect-ratio: 3.5; object-fit: cover; object-position: top; }
@media (max-width: 880px) {
  .app-gallery { grid-template-columns: 1fr; }
}
.sprint-preview { position: relative; overflow: hidden; aspect-ratio: 16 / 8; border-radius: 9px; }
.sprint-track { width: 100%; height: 100%; object-fit: cover; }
.sprint-runner { position: absolute; bottom: -9%; left: 40%; height: 125%; width: auto; filter: drop-shadow(0 8px 8px #12121277); }
.animal-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; border: 0; }
.animal-picker legend { padding: 0; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.animal-picker label { display: grid; justify-items: center; gap: 12px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.animal-picker label:has(input:checked) { border-color: var(--gold); background: #30291e; }
.animal-picker input { accent-color: var(--gold); }
.animal-picker img { width: min(100%, 78px); height: 60px; object-fit: contain; image-rendering: pixelated; }
.project-details { margin-top: 36px; }
.project-details h2 { margin: 0 0 16px; font-size: 36px; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.feature-list > div { padding: 17px; border: 1px solid var(--line); border-radius: 9px; }
.feature-list dt { font-weight: 650; }
.feature-list dd { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.availability { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.footer { min-height: 75px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer a { gap: 8px; }
.instagram { display: grid; place-items: center; position: relative; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 5px; }
.instagram::before { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.instagram::after { position: absolute; top: 2px; right: 2px; width: 2px; height: 2px; border-radius: 50%; background: currentColor; content: ""; }

@media (max-width: 800px) {
  .catalog { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 630px) {
  .project-hero { grid-template-columns: 1fr; }
  .project-art { grid-row: 1; justify-content: start; }
  .project-art img { width: min(45vw, 120px); }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .top { min-height: 64px; }
  .brand { font-size: 21px; }
  .mark { width: 26px; height: 26px; font-size: 18px; }
  nav a { font-size: 13px; }
  .hero { min-height: 490px; align-items: end; }
  .hero > img { object-position: 49% center; }
  .hero::after { background: linear-gradient(0deg, #10110f 4%, #10110fe8 32%, #10110f15 85%); }
  .hero-copy { padding-bottom: 49px; }
  .hero > .slide-art, .hero.sports-slide > .slide-art { inset: 18px 12% auto auto; height: 48%; width: 47%; }
  .hero-copy > p:not(.label) { margin-block: 15px 20px; }
  .catalog { margin-block: 30px 40px; }
  .app-card { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase .hero { animation: none; }
}
