/* loncaapp.com — uygulamanın kimliği (lonca_ui belirteçleri).
   Archivo: SIL Open Font License 1.1, bkz. /assets/fonts/OFL.txt */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #f4f1ee;        /* LoncaColors.bg */
  --paper: #f8f4f1;     /* neutral100: baloncuk */
  --surface: #eae5e1;   /* neutral200 */
  --ink: #2e211c;       /* text */
  --muted: #645144;     /* neutral700 */
  --wordmark: #ec3013;  /* accent: yalnız LONCA yazısı */
  --link: #ae1800;      /* accent700: 6,6:1 zeminde */
  --radius-sheet: 28px; /* AuthSheet */
  --radius-soft: 16px;
  --shadow-sheet: 0 18px 44px rgba(46, 33, 28, 0.16), 0 2px 6px rgba(46, 33, 28, 0.08);
  --measure: 66ch;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 12px;
}
.skip:focus { top: 1rem; }

/* ---------- üst çubuk ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1120px; margin: 0 auto; padding: 1.25rem 1.25rem 0;
}
.wordmark {
  font-weight: 800; font-size: 1.5rem; letter-spacing: 0.12em; line-height: 1;
  color: var(--wordmark); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.wordmark img { display: block; width: 1.75rem; height: 1.75rem; }
.bar nav { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--link); }
.bar nav .wide { display: none; }

/* ---------- belge sayfaları ---------- */
.doc {
  max-width: 1120px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem;
  display: grid; gap: 2rem;
}
/* Izgara çocukları içerikten geniş olmasın: tablo kendi kutusunda kayar. */
.doc > * { min-width: 0; }
.doc-head h1 {
  font-weight: 800; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.08;
  letter-spacing: -0.01em; margin: 0 0 0.6rem;
}
.doc-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.doc-head .draft {
  display: inline-block; margin-top: 0.9rem; padding: 0.35rem 0.8rem;
  background: var(--surface); border-radius: 999px; color: var(--ink); font-size: 0.85rem;
}

.toc { font-size: 0.95rem; }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: 0.75rem 0 0; padding-left: 1.4rem; }
.toc li { margin: 0.3rem 0; color: var(--muted); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

.sheet {
  background: var(--paper); border-radius: var(--radius-sheet); box-shadow: var(--shadow-sheet);
  padding: 1.75rem 1.4rem 2rem;
}
.sheet > :first-child { margin-top: 0; }
.sheet h2 {
  font-weight: 750; font-size: 1.3rem; line-height: 1.25; margin: 2.2rem 0 0.6rem;
  scroll-margin-top: 1.5rem;
}
.sheet h3 { font-weight: 700; font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }
.sheet p, .sheet ul, .sheet ol, .sheet table { max-width: var(--measure); }
.sheet p { margin: 0 0 0.9rem; }
.sheet ul, .sheet ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.sheet li { margin: 0.35rem 0; }
.sheet strong { font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
.sheet table { border-collapse: separate; border-spacing: 0 0.4rem; width: 100%; font-size: 0.95rem; }
.sheet th { text-align: left; font-weight: 700; padding: 0 0.9rem 0.2rem; color: var(--muted); }
.sheet td { background: var(--bg); padding: 0.7rem 0.9rem; vertical-align: top; }
.sheet td:first-child { border-radius: 14px 0 0 14px; font-weight: 600; }
.sheet td:last-child { border-radius: 0 14px 14px 0; }

/* adımlar (hesap silme): gerçekten bir sıra */
.steps { list-style: none; padding: 0; counter-reset: adim; }
.steps li {
  counter-increment: adim; position: relative; padding: 0.15rem 0 0.15rem 2.6rem; margin: 0.9rem 0;
}
.steps li::before {
  content: counter(adim); position: absolute; left: 0; top: 0;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 0.95rem;
  display: grid; place-items: center;
}

.note {
  background: var(--surface); border-radius: var(--radius-soft); padding: 1rem 1.1rem; margin: 1.2rem 0;
  max-width: var(--measure);
}
.note p:last-child { margin-bottom: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 1.4rem; border-radius: 14px; background: var(--link); color: #fff;
  font-weight: 700; text-decoration: none;
}
.button:hover { background: #8f1400; }
.button.quiet { background: var(--surface); color: var(--ink); }
.button.quiet:hover { background: #dbcfc6; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 0.4rem; }

.support { display: grid; gap: 1.25rem; }
.support .sheet h2 { margin-top: 0; }

/* ---------- alt bilgi ---------- */
.foot {
  max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 3rem; color: var(--muted); font-size: 0.9rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-bottom: 0.8rem; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { color: var(--link); text-decoration: underline; }
.foot p { margin: 0.2rem 0; }

/* ---------- ana sayfa ---------- */
.home { position: relative; }
.home .bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; justify-content: flex-end; }
.home .bar nav a { color: #fff; text-shadow: 0 1px 8px rgba(20, 12, 8, 0.45); }
.home .bar nav a:hover { color: #fff; text-decoration: underline; }
.hero {
  position: relative; min-height: 78svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: #2e211c url("/assets/img/kadikoy-900.webp") center 38% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 8, 0) 35%, rgba(20, 12, 8, 0.55) 100%);
}
.hero .inner { position: relative; z-index: 1; max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 1.25rem 2.5rem; }
.hero h1 {
  font-weight: 800; font-size: clamp(4.5rem, 22vw, 9.5rem); line-height: 0.9; letter-spacing: -0.035em;
  margin: 0 0 0.8rem;
}
.hero p { font-size: clamp(1.15rem, 4.4vw, 1.5rem); margin: 0; max-width: 24ch; line-height: 1.35; }

.intro { max-width: 1120px; margin: -2rem auto 0; padding: 0 0.75rem; position: relative; z-index: 2; }
.intro .sheet { padding: 1.6rem 1.4rem 1.8rem; }
.intro h2 { font-weight: 800; font-size: 1.5rem; line-height: 1.2; margin: 0 0 0.6rem; }
.intro p { margin: 0 0 0.8rem; max-width: 52ch; }
.soon { color: var(--muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: no-preference) {
  .intro .sheet { animation: rise 640ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes rise { from { transform: translateY(calc(100% + 30px)); } to { transform: none; } }
}

/* ---------- geniş ekran ---------- */
@media (min-width: 760px) {
  .bar { padding-top: 1.75rem; }
  .bar nav .wide { display: inline; }
  .sheet { padding: 2.5rem 2.75rem 2.75rem; }
}

@media (min-width: 980px) {
  .doc { grid-template-columns: 240px 1fr; column-gap: 3rem; align-items: start; }
  .doc-head { grid-column: 2; }
  .toc { grid-column: 1; grid-row: 2; position: sticky; top: 1.5rem; }
  .toc summary { list-style: none; pointer-events: none; }
  .toc summary::-webkit-details-marker { display: none; }
  .doc .sheet, .doc .support { grid-column: 2; grid-row: 2; }

  .home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
  .home .hero { min-height: 100vh; background-image: url("/assets/img/kadikoy-1350.webp"); background-position: center; }
  .home .side { display: flex; flex-direction: column; }
  .home .side .bar { width: 100%; position: static; justify-content: flex-start; padding-left: 3rem; }
  .home .bar nav a { color: var(--ink); text-shadow: none; }
  .home .bar nav a:hover { color: var(--link); }
  .intro { margin: auto 0; padding: 2rem 3rem; max-width: 620px; }
  .home .foot { width: 100%; padding-left: 3rem; }
  .hero .inner { padding: 0 3rem 3.5rem; }
}

@media print {
  .bar nav, .toc, .foot nav, .skip { display: none; }
  .sheet { box-shadow: none; padding: 0; }
  body { background: #fff; }
}

/* Taslakta sahibin dolduracağı yerler (yayından önce kalkar). */
.fill { background: #ffe9a8; border-radius: 6px; padding: 0 0.3em; }
