/* Kelime Düellosu — akavado.com
   Tek stil dosyası. Renk token'ları docs/tasarim/Main.dc.html ile uyumludur. */

:root {
  color-scheme: light dark;

  /* Avo yeşilleri */
  --avo: #7FA46A;
  --avo-600: #6E9259;
  --avo-700: #4F7D3C;
  --avo-900: #2F4A24;
  --avo-soft: #DDE9B4;
  --leaf: #A9CB94;
  --seed: #C8976A;
  --coral: #F29A8C;
  --blush: #F3B3A6;

  /* Zemin ve yüzeyler */
  --bg: #FAF6EC;
  --surface: #FFFDF7;
  --surface-2: #F4EEDD;
  --line: #E0D6BB;
  --line-soft: #EEE6D0;

  /* Metin */
  --text: #2B3622;
  --text-2: #3D4A33;
  --muted: #56614B;
  --heading: #2F4A24;
  --link: #3A6329;
  --link-hover: #2F4A24;

  /* Düğmeler */
  --btn-bg: #4F7D3C;
  --btn-text: #FFFFFF;
  --btn-shadow: #2F4A24;

  /* Uyarı (taslak) */
  --warn-bg: #FDEBE7;
  --warn-line: #F29A8C;
  --warn-text: #6B2A20;

  --focus: #2F4A24;

  --radius-s: 9px;
  --radius: 14px;
  --radius-l: 18px;
  --radius-xl: 28px;

  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Trebuchet MS", system-ui, sans-serif;

  --wrap: 1080px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161C12;
    --surface: #1F2719;
    --surface-2: #28331F;
    --line: #3A4830;
    --line-soft: #2E3A25;

    --text: #F4EEDD;
    --text-2: #E4DDC8;
    --muted: #C3C8B0;
    --heading: #CFE3BC;
    --link: #B9DBA3;
    --link-hover: #DDEFCF;

    --avo-soft: #34442A;

    --btn-bg: #A9CB94;
    --btn-text: #16200F;
    --btn-shadow: #5E8249;

    --warn-bg: #3A2320;
    --warn-line: #F29A8C;
    --warn-text: #FFD9D1;

    --focus: #F29A8C;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161C12;
  --surface: #1F2719;
  --surface-2: #28331F;
  --line: #3A4830;
  --line-soft: #2E3A25;
  --text: #F4EEDD;
  --text-2: #E4DDC8;
  --muted: #C3C8B0;
  --heading: #CFE3BC;
  --link: #B9DBA3;
  --link-hover: #DDEFCF;
  --avo-soft: #34442A;
  --btn-bg: #A9CB94;
  --btn-text: #16200F;
  --btn-shadow: #5E8249;
  --warn-bg: #3A2320;
  --warn-line: #F29A8C;
  --warn-text: #FFD9D1;
  --focus: #F29A8C;
}

/* ---------- Temel ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 600;
  text-wrap: balance;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
a:hover { color: var(--link-hover); text-decoration-thickness: .14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

strong { font-weight: 800; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--surface);
  color: var(--text);
  padding: .6em 1em;
  border-radius: var(--radius-s);
  border: 2px solid var(--line);
  font-weight: 800;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Üst bar ---------- */

.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
}
.brand:hover { color: var(--heading); }
.brand img { width: 30px; height: 46px; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
}
.site-nav a:hover { color: var(--link-hover); text-decoration: underline; }

@media (max-width: 560px) {
  .site-nav .hide-sm { display: none; }
}

/* ---------- Düğmeler ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: .7em 1.4em;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 0;
  box-shadow: 0 4px 0 var(--btn-shadow);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { color: var(--btn-text); transform: translateY(-1px); box-shadow: 0 5px 0 var(--btn-shadow); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-shadow); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  box-shadow: 0 4px 0 var(--line);
}
.btn-ghost:hover { color: var(--text); box-shadow: 0 5px 0 var(--line); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--line); }

/* Mağaza "yakında" rozetleri: tıklanamaz */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  min-height: 60px;
  padding: .55em 1.1em;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  background: var(--surface);
  color: var(--text-2);
  line-height: 1.25;
  cursor: not-allowed;
}
.store small {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.store span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
}

@media (max-width: 440px) {
  .store { flex: 1 1 100%; }
}

/* ---------- Ana sayfa ---------- */

.hero {
  padding-block: clamp(40px, 8vw, 88px) clamp(40px, 7vw, 72px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75em;
}
.lead {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--text-2);
  max-width: 34em;
}
.hero .stores { margin-top: 1.6em; }
.hero-note { margin-top: 1em; color: var(--muted); font-size: .95rem; }

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 0 0;
  border-radius: 50% 50% 46% 54% / 58% 56% 44% 42%;
  background: var(--avo-soft);
  z-index: -1;
}
.hero-art img { width: 100%; }

.bubble {
  position: absolute;
  top: 0;
  left: -8%;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 4px;
  padding: .5em .9em;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 4px 0 var(--line);
  max-width: 13em;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(70%, 240px); }
  .bubble { left: auto; right: -30%; font-size: .9rem; }
}
@media (max-width: 420px) {
  .bubble { display: none; }
}

.section { padding-block: clamp(48px, 8vw, 88px); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 40em; margin-bottom: 2rem; }
.section-head p { color: var(--text-2); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius-l);
  padding: 22px 20px 20px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--avo-soft);
  color: var(--heading);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--text-2); font-size: 1rem; }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  border-top: 3px solid var(--avo);
  padding-top: 14px;
}
.features h3 { margin-bottom: .3em; }
.features p { margin: 0; color: var(--text-2); font-size: 1rem; }

@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

.meet {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 40px);
}
.meet img { width: 100%; max-width: 180px; margin-inline: auto; }
.meet p:last-child { margin-bottom: 0; }
@media (max-width: 620px) {
  .meet { grid-template-columns: 1fr; text-align: left; }
  .meet img { max-width: 130px; margin-inline: 0; }
}

.cta {
  text-align: center;
}
.cta .stores { justify-content: center; margin-top: 1.4em; }
.cta p { color: var(--text-2); max-width: 32em; margin-inline: auto; }

/* ---------- Metin sayfaları ---------- */

.page { padding-block: clamp(28px, 6vw, 56px) clamp(48px, 8vw, 80px); }

.doc {
  max-width: 760px;
  margin-inline: auto;
}

.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.doc h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-top: 2.2em;
  padding-top: .2em;
  scroll-margin-top: 16px;
}
.doc h3 { margin-top: 1.6em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc li > ul { margin-top: .4em; }

.meta { color: var(--muted); font-size: .98rem; }

.draft {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 2px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 28px;
  font-size: .98rem;
  line-height: 1.5;
}
.draft strong { display: block; font-size: 1.02rem; }
.draft p { margin: 0; }
.draft::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--warn-line);
  color: #3A1510;
  font-family: var(--font-head);
  font-weight: 600;
}

.ph {
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 0 .3em;
  font-weight: 800;
  white-space: normal;
}

.toc {
  background: var(--surface);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius-l);
  padding: 16px 20px;
  margin: 24px 0 8px;
}
.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 .5em;
  padding: 0;
}
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 16em; column-gap: 32px; }
.toc li { margin-bottom: .25em; break-inside: avoid; }

.callout {
  background: var(--surface);
  border: 2px solid var(--line-soft);
  border-left: 6px solid var(--avo);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 1.2em;
}
.callout > :last-child { margin-bottom: 0; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 2px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
  line-height: 1.5;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
thead th {
  background: var(--surface-2);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--heading);
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 800; }

@media (max-width: 620px) {
  /* Dar ekranda tabloyu kart listesine çevir: yatay kaydırma olmasın */
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack th, .stack td { display: block; padding: 2px 0; border: 0; }
  .stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-top: 6px;
  }
}

.steps-inline {
  counter-reset: s;
  list-style: none;
  padding: 0 !important;
}
.steps-inline li {
  counter-increment: s;
  position: relative;
  padding-left: 48px;
  min-height: 36px;
  margin-bottom: 14px;
}
.steps-inline li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--avo-soft);
  color: var(--heading);
  font-family: var(--font-head);
  font-weight: 600;
}

kbd {
  font-family: var(--font-head);
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 0 .4em;
}

/* Tek mesajlı sayfalar (indir, reset, 404) */
.solo {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
.solo img { width: 150px; margin: 0 auto 20px; }
.solo .stores { justify-content: center; margin: 1.4em 0; }
.solo .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.4em; }
.solo .callout { text-align: left; }

/* ---------- Altbilgi ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
  padding-block: 36px 28px;
  font-size: .96rem;
  color: var(--text-2);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px 40px;
}
.site-footer h2 {
  font-size: 1rem;
  margin-bottom: .6em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--link-hover); }
.site-footer .fine {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9rem;
}
@media (max-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

@media print {
  .site-header nav, .site-footer, .skip, .toc { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
