/* Chill Farm tanıtım sitesi — masal kitabı: krem kâğıt, mürekkep kontur (siyah değil, paletin koyu tonu),
   taralı gölge, risograf greni. Renkler oyunun paletinden (tools/asset-gen/src/palette.js). */
@font-face { font-family: "Patrick Hand"; src: url("fonts/PatrickHand-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #4f383e;
  --ink-soft: #7a6267;
  --paper: #fbf2e3;
  --paper-2: #f9e9cd;
  --card: #fff8e7;
  --peach: #f6ad8f;
  --peach-2: #f0ada0;
  --rose: #f07c82;
  --rose-2: #c04851;
  --grass: #b7d07a;
  --grass-2: #7aa35a;
  --sky: #eef7f2;
  --sky-2: #f4c7ba;
  --honey: #f8c471;
  --water: #93d5dc;
  --link: #c04851;
  --shadow: rgba(79, 56, 62, .9);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3e3d3;
    --ink-soft: #cdb7aa;
    --paper: #2b2124;
    --paper-2: #33272a;
    --card: #3a2d30;
    --sky: #2f3a3a;
    --sky-2: #4a3434;
    --link: #f6ad8f;
    --shadow: rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f3e3d3; --ink-soft: #cdb7aa; --paper: #2b2124; --paper-2: #33272a; --card: #3a2d30;
  --sky: #2f3a3a; --sky-2: #4a3434; --link: #f6ad8f; --shadow: rgba(0, 0, 0, .55); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 "Nunito", system-ui, sans-serif;
  overflow-x: hidden;
}
/* Risograf greni: tüm sayfanın üstünde, tıklamayı engellemez. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .31 0 0 0 0 .22 0 0 0 0 .24 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; }
a { color: var(--link); overflow-wrap: anywhere; }
h1, h2, h3, .hand { font-family: "Patrick Hand", "Nunito", cursive; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(48px, 9vw, 88px); margin: 0; letter-spacing: .5px; }
h2 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 12px; }
h3 { font-size: 26px; margin: 0 0 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Dil: her metin iki kez yazılır, etkin olmayan gizlenir (assets/site.js). */
html[lang="tr"] [data-l="en"], html[lang="en"] [data-l="tr"] { display: none !important; }

/* --- üst şerit --- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Patrick Hand", cursive; font-size: 28px; }
.brand img { width: 40px; height: 40px; }
.langs { display: flex; gap: 6px; }
.langs button {
  font: 600 14px "Nunito", sans-serif; color: var(--ink); background: var(--card); cursor: pointer;
  border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; box-shadow: 2px 2px 0 var(--shadow);
}
.langs button[aria-pressed="true"] { background: var(--peach); color: #4f383e; }

/* --- kahraman --- */
.hero { position: relative; padding: 24px 0 8px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 30% 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 0%, var(--sky-2) 0%, var(--sky) 55%, transparent 80%);
}
.tag { font-size: clamp(20px, 3vw, 26px); color: var(--ink-soft); margin: 6px 0 18px; font-family: "Patrick Hand", cursive; }
.lead { max-width: 640px; margin: 0 auto 22px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 800 17px "Nunito", sans-serif; color: #4f383e; background: var(--honey);
  border: 2.5px solid var(--ink); border-radius: 16px; padding: 12px 22px; box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn.alt { background: var(--card); color: var(--ink); }
.note { font-size: 14px; color: var(--ink-soft); }
.scene { display: block; width: 100%; margin: 18px auto 0; max-width: 980px; filter: drop-shadow(0 18px 0 rgba(79, 56, 62, .08)); }

/* --- bölümler --- */
section { padding: 48px 0; }
.center { text-align: center; }
.sub { color: var(--ink-soft); max-width: 640px; margin: 0 auto 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  position: relative; background: var(--card); border: 2.5px solid var(--ink); border-radius: 22px;
  padding: 18px 20px 20px; box-shadow: 6px 6px 0 var(--shadow);
}
/* Taralı gölge hissi: kartın arkasında ince çizgiler. */
.card::before {
  content: ""; position: absolute; inset: 10px -10px -10px 10px; z-index: -1; border-radius: 22px;
  background: repeating-linear-gradient(135deg, var(--peach-2) 0 2px, transparent 2px 7px); opacity: .55;
}
.card .art { height: 130px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 10px; }
.card .art img { max-height: 130px; width: auto; }
.card p { margin: 0; }

.band { background: var(--paper-2); border-top: 2.5px dashed var(--ink-soft); border-bottom: 2.5px dashed var(--ink-soft); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.pill { background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 15px; }

details { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 16px; margin: 0 0 12px; box-shadow: 3px 3px 0 var(--shadow); }
details summary { cursor: pointer; font-weight: 800; }
details p { margin: 8px 0 0; }
.faq { max-width: 760px; margin: 0 auto; }

/* --- yasal sayfalar --- */
.doc { max-width: 820px; margin: 0 auto; padding: 8px 16px 48px; }
.doc .paper { background: var(--card); border: 2.5px solid var(--ink); border-radius: 22px; padding: 24px clamp(16px, 4vw, 40px); box-shadow: 6px 6px 0 var(--shadow); }
.doc h1 { font-size: clamp(38px, 7vw, 56px); margin-bottom: 4px; }
.doc h2 { font-size: 30px; margin-top: 28px; }
.doc .meta { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; border-bottom: 1.5px dashed var(--ink-soft); padding: 8px 10px 8px 0; }
th { font-weight: 800; }
ol li, ul li { margin: 4px 0; }

/* --- alt bilgi --- */
footer { border-top: 2.5px solid var(--ink); padding: 24px 0 40px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--ink); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { width: 100%; justify-content: center; }
  .card .art { height: 110px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
