/* Clatterhill sitesi — ortak biçem (tanıtım + gizlilik + koşullar). Görünüş B paleti (docs/tema-b.md,
   scripts/ui_theme.gd): kobalt, lacivert, limon, fuşya, beyaz. Turuncu yok.
   Dış istek yok: yazı tipleri ve görseller aynı kaynaktan (fonts/, img/). Betik yok. CSP: site/_headers.
   Yazı: Bungee yalnız büyük başlıkta, Rubik her yerde (oyunla aynı). İmza: -10° eğik etiket + limon / fuşya şerit. */

@font-face {
  font-family: "Bungee";
  src: url("fonts/Bungee-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cobalt: #1b2bd6;
  --navy: #0b1270;
  --lime: #c8f03c;
  --fuchsia: #ff3f8e;
  --white: #ffffff;
  --brake: #c81e2c;
  --soft: #b9c0ff;          /* ikincil yazı, lacivert / kobalt üstünde */
  --paper: #f3f4ff;
  --display: "Bungee", "Rubik", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font: 400 1.0625rem/1.6 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--navy);
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--lime); color: var(--navy); padding: 8px 14px; font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------- Logo: oyundaki gibi CLATTER beyaz, HILL limon ---------- */
.logo {
  margin: 0;
  font: 400 clamp(3rem, 11vw, 6.6rem)/0.92 var(--display);
  letter-spacing: 0.01em;
  color: var(--white);
  text-shadow: 0.06em 0.06em 0 var(--navy);
}
.logo span { display: block; }
.logo span + span { color: var(--lime); }
.logo a { text-decoration: none; }

/* ---------- Üst çubuk (dil) ---------- */
.topbar {
  position: absolute; top: 0; right: 0; z-index: 3;
  padding: 14px var(--gutter);
}
.lang {
  display: inline-block; padding: 6px 14px;
  background: var(--navy); color: var(--white);
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transform: skewX(-10deg);
  box-shadow: 4px 4px 0 var(--lime);
}
.lang > span { display: inline-block; transform: skewX(10deg); }

/* ---------- Açılış ---------- */
.hero {
  position: relative;
  background: var(--cobalt);
  overflow: hidden;
}
.hero-art { position: relative; }
.hero-art .layer { position: absolute; inset: 0; }
.hero-art picture, .hero-art img { width: 100%; height: 100%; object-fit: cover; }
/* Telefonda: kare görüntü, alt kenar eğik; altında limon ve fuşya şerit. */
.hero-art { aspect-ratio: 1 / 1; max-height: 62vh; width: 100%; }
.hero-art .f { background: var(--fuchsia); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 22px)); }
.hero-art .l { background: var(--lime); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 0 calc(100% - 34px)); }
.hero-art picture { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 calc(100% - 46px)); }

.hero-copy { position: relative; z-index: 2; padding: 18px var(--gutter) 44px; }
.tagline {
  margin: 18px 0 6px;
  font: 800 clamp(1.7rem, 5.4vw, 2.6rem)/1.1 var(--body);
  color: var(--white);
}
.lede { margin: 0 0 22px; max-width: 34ch; color: var(--white); font-size: 1.125rem; }
.play {
  display: inline-block; padding: 14px 26px;
  background: var(--fuchsia); color: var(--white);
  font: 400 1.5rem/1 var(--display);
  text-decoration: none;
  transform: skewX(-10deg);
  box-shadow: 6px 6px 0 var(--navy);
}
.play > span { display: inline-block; transform: skewX(10deg); text-shadow: 2px 2px 0 var(--navy); }
.play:hover { box-shadow: 8px 8px 0 var(--navy); }
.play:active { transform: skewX(-10deg) translate(3px, 3px); box-shadow: 3px 3px 0 var(--navy); }
.soon { margin: 18px 0 0; max-width: 34ch; color: var(--white); font-size: 0.95rem; opacity: 0.92; }

@media (min-width: 900px) {
  .hero { min-height: min(760px, 92vh); display: flex; align-items: center; }
  .hero-art {
    position: absolute; inset: 0 0 0 auto; width: 66%;
    aspect-ratio: auto; max-height: none;
  }
  /* Eğik sol kenar (menüdeki panel gibi): fuşya, limon, sonra görüntü. */
  .hero-art .f { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-art .l { clip-path: polygon(calc(18% + 22px) 0, 100% 0, 100% 100%, 22px 100%); }
  .hero-art picture { clip-path: polygon(calc(18% + 40px) 0, 100% 0, 100% 100%, 40px 100%); }
  .hero-copy { width: 46%; padding: 96px var(--gutter) 96px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
}

/* Tek açılış hareketi: şeritler ve görüntü sağdan kayar. Hareket istemeyen için yok. */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .f { animation: slide 700ms cubic-bezier(.2, .7, .2, 1) both; }
  .hero-art .l { animation: slide 700ms 90ms cubic-bezier(.2, .7, .2, 1) both; }
  .hero-art picture { animation: slide 700ms 180ms cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes slide { from { transform: translateX(14%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Bungee yalnız büyük harf çizer: küçük "i" noktasız "I" görünür. Başlıklar CSS ile büyütülür; sayfanın lang="tr"si
   sayesinde i -> İ doğru olur. Logo büyütülmez ("hill" -> "HİLL" olmasın diye). */
.band h2, .play, .promises strong, .legal h2 { text-transform: uppercase; }

/* ---------- Bölüm başlıkları ---------- */
.band { padding: clamp(48px, 8vw, 96px) 0; }
.band h2 {
  margin: 0 0 28px;
  font: 400 clamp(1.9rem, 5.6vw, 3.2rem)/1 var(--display);
}
.band .intro { margin: -12px 0 28px; max-width: 60ch; }

/* ---------- Görüntüler ---------- */
.shots { background: var(--paper); color: var(--navy); }
.shots h2 { color: var(--cobalt); }
.strip {
  list-style: none; margin: 0; padding: 0 var(--gutter) 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain;
}
.strip li { scroll-snap-align: start; }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); box-shadow: 6px 6px 0 var(--cobalt); }
.strip figcaption { margin-top: 12px; font-weight: 600; font-size: 0.98rem; }
.swipe { margin: 4px var(--gutter) 0; font-size: 0.9rem; color: #3a4290; }
@media (min-width: 900px) {
  .strip {
    max-width: var(--wrap); margin: 0 auto; overflow: visible;
    grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-columns: auto;
    gap: 34px 26px;
  }
  .strip li { grid-column: span 2; }
  .strip li:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .strip li:nth-child(4), .strip li:nth-child(5) { grid-column: span 3; }
  .swipe { display: none; }
}

/* ---------- Oyunda neler var ---------- */
.features { background: var(--navy); }
.features h2 { color: var(--lime); }
.feat {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0 48px;
}
.feat li { padding: 22px 0 24px; border-top: 2px solid rgba(255, 255, 255, 0.22); }
.feat h3 { margin: 0 0 6px; font: 800 1.3rem/1.2 var(--body); color: var(--lime); }
.feat p { margin: 0; color: var(--white); max-width: 46ch; }
@media (min-width: 680px) { .feat { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .feat { grid-template-columns: 1fr 1fr 1fr; } }
.now {
  margin: 36px 0 0; padding: 16px 20px; max-width: 70ch;
  background: var(--cobalt); color: var(--white);
  border-left: 6px solid var(--fuchsia);
}

/* ---------- İpuçları ---------- */
.tips { background: var(--white); color: var(--navy); }
.tips h2 { color: var(--cobalt); }
.tips-grid { display: grid; gap: 36px; align-items: center; }
.tips-grid picture img { width: 100%; box-shadow: -8px 8px 0 var(--lime), -16px 16px 0 var(--fuchsia); }
.tiplist { list-style: none; margin: 0; padding: 0; }
.tiplist li {
  display: grid; grid-template-columns: 7.6rem 1fr; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #d9dcf5;
}
.keys { display: flex; flex-wrap: wrap; gap: 6px; }
.key {
  display: inline-block; min-width: 3.4rem; padding: 7px 10px; text-align: center;
  border-radius: 8px; font: 700 0.85rem/1 var(--body); letter-spacing: 0.02em;
  background: var(--paper); color: var(--navy); border: 2px solid var(--navy);
}
.key.brake { background: var(--brake); color: var(--white); border-color: var(--brake); }
.key.boost { background: var(--fuchsia); color: var(--navy); border-color: var(--fuchsia); }
.key.mark { background: var(--lime); border-color: var(--lime); min-width: 0; width: 1.6rem; height: 1.6rem; padding: 0; transform: skewX(-10deg); }
@media (min-width: 900px) { .tips-grid { grid-template-columns: 5fr 6fr; gap: 64px; } }

/* ---------- Aile dostu ---------- */
.family { background: var(--lime); color: var(--navy); }
.family h2 { color: var(--navy); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 32px; grid-template-columns: 1fr 1fr; }
.promises strong { display: block; font: 400 clamp(1.15rem, 3.4vw, 1.6rem)/1.1 var(--display); }
.promises span { display: block; margin-top: 6px; font-size: 0.98rem; }
@media (min-width: 900px) { .promises { grid-template-columns: repeat(4, 1fr); } }
.family .more { margin: 30px 0 0; max-width: 70ch; font-weight: 500; }

/* ---------- Alt bilgi ---------- */
.site-foot { background: var(--navy); color: var(--soft); padding: 44px 0 56px; font-size: 0.92rem; border-top: 8px solid var(--cobalt); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 22px; font-weight: 700; color: var(--white); font-size: 1rem; }
.site-foot p { margin: 0 0 12px; max-width: 90ch; }
.site-foot a { color: var(--white); }

/* ---------- Gizlilik / koşullar (metin onaylı; yalnız çerçeve) ---------- */
.legal { background: var(--paper); color: var(--navy); }
.legal main a { color: var(--cobalt); }
.legal-head { background: var(--cobalt); color: var(--white); border-bottom: 8px solid var(--lime); box-shadow: 0 6px 0 var(--fuchsia); }
.legal-head .wrap { padding-top: 24px; padding-bottom: 22px; max-width: 860px; }
.legal-head .logo { font-size: clamp(2rem, 8vw, 2.8rem); }
.legal-head .logo a { color: var(--white); }
.legal-head p { margin: 8px 0 0; font-weight: 500; }
.legal-head nav { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.legal-head nav a {
  display: inline-block; padding: 5px 13px;
  background: var(--fuchsia); color: var(--white); text-decoration: none; font-weight: 700;
  transform: skewX(-10deg);
}
.legal-head nav a:focus-visible { box-shadow: 0 0 0 6px var(--cobalt); }
.legal main { max-width: 860px; margin: 0 auto; padding: 28px var(--gutter) 48px; }
.legal section { background: var(--white); border-left: 6px solid var(--cobalt); padding: 8px 22px 18px; margin: 0 0 28px; }
.legal h2 { color: var(--cobalt); font: 400 1.5rem/1.15 var(--display); margin: 18px 0 10px; }
.legal h3 { font-size: 1.08rem; margin: 20px 0 4px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal .short { background: var(--navy); color: var(--white); padding: 12px 16px; margin: 12px 0; border-left: 6px solid var(--lime); }
.legal .small { color: #3a4290; font-size: 0.9rem; }
