/* Kapsül — link karşılama sitesi.
   Görsel kimlik: "Gündüz Kâğıdı" (docs/kapsam.md). Uygulamadaki
   lib/ui/tokens.dart ile aynı renkler; turuncu ve renk geçişi yok. */

/* Gömülü yazı tipleri (uygulamayla aynı: Figtree, Newsreader; OFL 1.1,
   docs/yazi_tipleri.md). Dışarıdan hiçbir yazı tipi çekilmez. */
@font-face {
  font-family: "Figtree";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Figtree-400.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Figtree-600.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Newsreader-400.woff2") format("woff2");
}

:root {
  --ground: #f6f3ee;
  --surface: #fffdf9;
  --ink: #1c1b19;
  --ink-soft: rgba(28, 27, 25, 0.7);
  --ink-faint: rgba(28, 27, 25, 0.5);
  --accent: #1f6f6b;
  --on-accent: #fffdf9;
  --rose: #d9a5a0;
  --danger: #b3261e;
  --hairline: rgba(28, 27, 25, 0.08);
  --edge: rgba(28, 27, 25, 0.1);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

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

html {
  /* Kullanıcının tarayıcı yazı boyutu ayarına saygı: rem tabanı sabitlenmez. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  /* Dar telefonda da kenar boşluğu; docs/kalite.md §1 web karşılığı. */
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  flex: 1 0 auto;
  padding: 48px 0 32px;
}

a {
  color: var(--accent);
}

.mark {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.mark .plane {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.plane-body {
  fill: var(--accent);
}

.plane-fold {
  fill: #17504d;
}

/* Her sayfanın üst çubuğu: logo solda, dil anahtarı sağda. */
.topbar {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar .mark {
  margin: 0;
}

.legal {
  padding-top: 24px;
}

/* "TR | EN" anahtarı: gerçek bağlantılar (JavaScript olmadan da çalışır). */
.langsw {
  display: inline-flex;
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 2px;
  background: var(--surface);
}

.langsw a,
.langsw button {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
}

.langsw [aria-current],
.langsw [aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
}

.langsw a:focus-visible,
.langsw button:focus-visible,
.mark:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 12px;
  /* Uzun gönderen adları taşmasın. */
  overflow-wrap: anywhere;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 32px 0 8px;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  margin: 0 0 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 16px;
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 6px;
}

/* Geri sayım: rakamlar değişirken satır zıplamasın. */
.countdown {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 7vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  margin: 0;
  line-height: 1.15;
}

.when {
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.theme-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rose);
  flex: 0 0 auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.btn {
  flex: 1 1 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn--quiet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--edge);
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.note {
  color: var(--ink-faint);
  font-size: 0.875rem;
  margin: 24px 0 0;
}

.error {
  color: var(--danger);
}

.link-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  word-break: break-all;
  background: var(--ground);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0 0;
}

.flush {
  margin: 0;
}

/* Faz 7'de metni gelecek sayfalar için bekleme kutusu. */
.pending {
  border: 1px dashed var(--edge);
  border-radius: 16px;
  padding: 20px;
  color: var(--ink-soft);
}

footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
  color: var(--ink-faint);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
}

/* Ekran okuyucuya görünür, göze görünmez. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Yasal metinler (üretilen sayfalar: tool/yasal_metinler.dart). */
.legal h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 24px 0 6px;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin: 0 0 6px;
}

.legal h2,
.legal h3 {
  /* Bağlantıyla gelinen bölüm başlığı üst kenara yapışmasın. */
  scroll-margin-top: 16px;
}

.summary {
  margin: 16px 0 8px;
}

.summary ul {
  margin: 0;
}
