/*
 * fincan.ai ortak kâğıt dili (2026-11-28): ana sayfa (home.css) ve blog (journal.css) bunun üstüne kurulur.
 * Davetiye ve e-posta bağlantı sayfasıyla aynı jetonlar; tema sistemden. Mantıksal özellikler: sağdan sola kendiliğinden.
 * Dile göre yazı aileleri uygulamanın eş aileleri (AppTypeface).
 */


:root {
  --page: #f7f1e6;
  --paper: #efe6d6;
  --text: #2b1f14;
  --text-2: #6e5a48;
  --rule: rgba(43, 31, 20, 0.14);
  --rule-strong: rgba(43, 31, 20, 0.26);
  --accent: #76603c;
  --ink: #9a7345;
  --yes: #4f6b35;
  --no: #a2412b;
  --focus: #9a7345;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --measure: 41rem;
  --gutter: 20px;
  --body-size: 1.125rem;
  --body-leading: 1.72;
  --q-open: "\201C";
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1a130f;
    --paper: #241a14;
    --text: #f2ebe1;
    --text-2: rgba(242, 235, 225, 0.7);
    --rule: rgba(242, 235, 225, 0.12);
    --rule-strong: rgba(242, 235, 225, 0.24);
    --accent: #e2c896;
    --ink: #c8a464;
    --yes: #a9c48c;
    --no: #f0907b;
    --focus: #e2c896;
    color-scheme: dark;
  }
}

html[lang="el"] {
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --q-open: "\00AB";
}

/* Arapça: Latin harfleri (Fincan, App Store) Lora / Montserrat'tan, Arap harfleri sıradaki aileden. */
html[lang="ar"] {
  --serif: "Lora", "Noto Naskh Arabic", "Geeza Pro", serif;
  --sans: "Montserrat", "Alexandria", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --body-size: 1.1875rem;
  --body-leading: 1.95;
  --q-open: "\00AB";
}

html[lang="hy"] {
  --serif: "Noto Serif Armenian", "Lora", Georgia, serif;
  --sans: "Noto Sans Armenian", "Montserrat", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html[lang="fa"] {
  --serif: "Markazi Text", "Lora", Georgia, serif;
  --sans: "Vazirmatn", "Montserrat", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --q-open: "\00AB";
}

html[lang="he"] {
  --serif: "Frank Ruhl Libre", "Lora", Georgia, serif;
  --sans: "Rubik", "Montserrat", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html[lang="es"],
html[lang="it"] { --q-open: "\00AB"; }
html[lang="de"] { --q-open: "\201E"; }

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --body-size: 1.1875rem;
  }
  html[lang="ar"] { --body-size: 1.25rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--page);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* --- Üst şerit --------------------------------------------------------------------------------------------------- */

.masthead { border-bottom: 1px solid var(--rule); }

.masthead-bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.005em;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand-small { font-size: 1rem; }
.brand-small img { width: 22px; height: 22px; border-radius: 6px; }

.masthead-nav { display: flex; align-items: center; gap: 4px; }

.section-link,
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
}
.section-link:hover,
.lang-menu summary:hover { color: var(--text); }

.lang-menu { position: relative; }
.lang-menu summary { list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { color: var(--text); }
.lang-menu svg { transition: transform 0.2s ease; }
.lang-menu[open] svg { transform: rotate(180deg); }

.lang-menu ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  min-width: 11rem;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--page);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20, 12, 6, 0.16);
  z-index: 5;
}
.lang-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 0.9375rem;
}
.lang-menu li a:hover { background: var(--paper); }
.lang-menu li a[aria-current] { font-weight: 600; }
.lang-menu li a[aria-current]::after { content: " \2713"; color: var(--accent); }

/* --- Ortak --------------------------------------------------------------------------------------------------------- */

.kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
}
.kicker .dot { margin-inline: 0.5em; }
.kicker > span,
.kicker > time { white-space: nowrap; }

/* Uygulamanın sembol çizimi, kâğıda basılmış mürekkep gibi (tek renk şablon, maske). */
.plate {
  display: block;
  flex: none;
  background: var(--ink);
  -webkit-mask: var(--plate) center / contain no-repeat;
  mask: var(--plate) center / contain no-repeat;
}
.plate-head { width: 64px; height: 64px; margin-bottom: 22px; }
.plate-lead { width: 88px; height: 88px; }
.plate-entry { width: 44px; height: 44px; margin-top: 4px; }
.plate-small { width: 32px; height: 32px; }

/* --- Alt şerit ----------------------------------------------------------------------------------------------------- */

.site-foot { border-top: 1px solid var(--rule); }
.site-foot-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 24px var(--gutter);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.site-foot ul { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.site-foot ul a { display: inline-block; padding: 10px 0; text-decoration: none; }
.site-foot ul a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }
.site-foot p { margin: 0; margin-inline-start: auto; }
