/* Brew & Slice web sitesi — tek stil dosyası. Renkler art/style-bible.md paletinden. */

/* Fredoka (OFL, assets/fonts/OFL.txt): latin + latin-ext (Türkçe ğ, ş, İ için) */
@font-face {
  font-family: 'Fredoka';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fredoka-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fredoka-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fredoka-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fredoka-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fredoka-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fredoka-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fredoka-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fredoka-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Fredoka'da olmayan ğ Ğ ş Ş İ: Fredoka'nın parçalarından kuruldu (tools/make-fredoka-tr.py) */
@font-face {
  font-family: 'Fredoka';
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fredoka-tr-400.woff2) format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fredoka-tr-500.woff2) format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fredoka-tr-600.woff2) format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fredoka-tr-700.woff2) format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}


:root {
  --cream: #f6ead7;
  --mozzarella: #fff8ec;
  --latte: #d9b99b;
  --espresso: #4a2c20;
  --deep: #2b1d16;
  --muted: #6b4a3b; /* krem zeminde 7:1 üstü */
  --tomato: #b4432b; /* paletteki #D8573C koyulaştırıldı: beyaz yazıyla AA */
  --tomato-bright: #d8573c;
  --basil: #44703a;
  --ember: #f29b45;
  --radius: 22px;
  --max: 1080px;
  --font: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* CJK dillerde Fredoka glifi yok: sistem yazı tipi */
  --font-cjk: system-ui, -apple-system, 'Hiragino Sans', 'Apple SD Gothic Neo', 'PingFang SC', 'Noto Sans CJK JP',
    'Noto Sans CJK KR', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--mozzarella);
  color: var(--espresso);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

:lang(ja),
:lang(ko),
:lang(zh) {
  font-family: var(--font-cjk);
}

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

a {
  color: var(--tomato);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--espresso);
}
:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--deep);
  color: var(--mozzarella);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}
.skip:focus {
  left: 16px;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Üst şerit: tente çizgisi + marka */
.awning {
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--tomato-bright) 0 48px, var(--mozzarella) 48px 96px);
  border-bottom: 3px solid var(--espresso);
}

.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(74, 44, 32, 0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--espresso);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--espresso);
}
.site-nav {
  display: flex;
  gap: 4px 16px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--espresso);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 2px;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Dil seçici */
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
  padding: 0;
  list-style: none;
}
.langs a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--espresso);
  color: var(--espresso);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--mozzarella);
  min-height: 40px;
  line-height: 24px;
}
.langs a[aria-current='true'] {
  background: var(--espresso);
  color: var(--mozzarella);
}

/* Dil bölümleri: JS yoksa :target, JS varsa .is-active */
.l10n {
  display: none;
}
html:not(.js) .l10n:target,
html:not(.js) .l10n-group:not(:has(.l10n:target)) .l10n.default,
html.js .l10n.is-active {
  display: block;
}
.l10n {
  scroll-margin-top: 16px;
}

/* Ana sayfa */
.hero {
  background: radial-gradient(120% 90% at 50% 0%, #fde6c4 0%, var(--cream) 60%);
  padding: 32px 0 40px;
  text-align: center;
}
.hero-icon {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  border-radius: 30px;
  border: 3px solid var(--espresso);
  box-shadow: 0 10px 0 rgba(74, 44, 32, 0.15);
}
.hero h1 {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 0.15em;
}
.tagline {
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  font-weight: 500;
  color: var(--tomato);
  margin: 0 0 12px;
}
.lead {
  max-width: 40em;
  margin: 0 auto 24px;
  color: var(--muted);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
  min-height: 60px;
  padding: 8px 22px;
  border-radius: 16px;
  background: var(--deep);
  color: var(--mozzarella);
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(43, 29, 22, 0.3);
  transition: transform 0.12s ease;
}
.store-btn small {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.2;
}
.store-btn strong {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}
.store-btn:hover {
  color: var(--mozzarella);
  transform: translateY(-2px);
}
.store-btn.play {
  background: var(--tomato);
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 40px 0 8px;
  margin: 0;
  list-style: none;
}
.feature {
  background: #fff;
  border: 2px solid rgba(74, 44, 32, 0.14);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.feature h2 {
  font-size: 1.25rem;
}
.feature .emoji {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 4px;
}
.feature p {
  margin: 0;
  color: var(--muted);
}

.shots {
  padding: 32px 0 48px;
}
.shots h2 {
  text-align: center;
  font-size: 1.5rem;
}
.shot-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 16px;
  margin: 0 -16px;
  list-style: none;
}
.shot-strip li {
  flex: 0 0 auto;
  scroll-snap-align: center;
}
.shot-strip img {
  width: 200px;
  border-radius: 20px;
  border: 3px solid var(--espresso);
  background: var(--cream);
}

/* Metin sayfaları (gizlilik, koşullar, destek) */
.doc {
  padding-top: 8px;
  padding-bottom: 48px;
}
.doc-head {
  background: var(--cream);
  padding: 28px 0 8px;
}
.doc-head h1 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
}
.doc-body {
  max-width: 46em;
}
.doc-body h2 {
  font-size: 1.35rem;
  margin-top: 1.8em;
}
.doc-body h3 {
  font-size: 1.1rem;
  margin-top: 1.4em;
}
.doc-body ul {
  padding-left: 1.3em;
}
.doc-body li {
  margin: 0.3em 0;
}
.meta {
  color: var(--muted);
  font-size: 0.95rem;
}
.note {
  background: #fff3de;
  border-left: 5px solid var(--ember);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 0;
}
.summary {
  background: #fff;
  border: 2px solid rgba(74, 44, 32, 0.14);
  border-radius: var(--radius);
  padding: 8px 22px;
}
.faq details {
  background: #fff;
  border: 2px solid rgba(74, 44, 32, 0.14);
  border-radius: 16px;
  padding: 4px 18px;
  margin: 10px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  min-height: 44px;
}
.faq details[open] summary {
  border-bottom: 1px solid rgba(74, 44, 32, 0.12);
  margin-bottom: 8px;
}
.toc {
  columns: 2 14em;
  padding-left: 1.3em;
}

/* Alt bilgi */
.site-footer {
  background: var(--deep);
  color: var(--cream);
  padding: 28px 0 36px;
  font-size: 0.95rem;
}
.site-footer a {
  color: var(--mozzarella);
}
.site-footer a:hover {
  color: var(--ember);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-block;
  padding: 4px 0;
}
.site-footer p {
  margin: 4px 0;
}

/* 404 */
.notfound {
  text-align: center;
  padding: 64px 0;
}
.notfound img {
  width: 120px;
  margin: 0 auto 20px;
  border-radius: 28px;
  border: 3px solid var(--espresso);
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .hero-icon {
    width: 168px;
    height: 168px;
    border-radius: 38px;
  }
  .shot-strip {
    justify-content: center;
  }
  .shot-strip img {
    width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .store-btn {
    transition: none;
  }
}

/* Dar ekranda dil seçici tek satır, yatay kaydırılır */
@media (max-width: 719px) {
  .langs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 12px -16px 4px;
    padding: 4px 16px 8px;
    scrollbar-width: none;
  }
  .langs::-webkit-scrollbar {
    display: none;
  }
  .langs li {
    flex: 0 0 auto;
  }
  .site-header nav[aria-label='Language'] {
    width: 100%;
  }
}
.summary h2 {
  margin-top: 0.8em;
}

/* Ana sayfa giriş paragrafı (dil sayfaları, tools/make-site.mjs) */
.intro {
  max-width: 46rem;
  margin: 32px auto 0;
  font-size: 1.1rem;
  text-align: center;
  color: var(--muted);
}
.intro + .features {
  padding-top: 24px;
}
