/*
  Otia — destek ve yasal sayfalar.

  Palet uygulamanın kendi "Kil" paletinden (src/theme.ts) alındı ve birebir aynı kaldı.
  Tek kutup koyu — ADR-0024'ün kararı; site de o dünyaya bağlı, yani tema anahtarı yok
  ve her renk açıkça boyanıyor.

  Accent (--accent) uygulamada "ekranda tam olarak bir yerde" kuralına tabi. Burada
  bağlantılar dışında kullanılmıyor; bu, o kuralın sitedeki karşılığı.
*/

:root {
  --ground: #17120f;
  --well: #1e1815;
  --raised: #262019;
  --hairline: #322820;
  --dim: #665d54;
  --muted: #9a8f85;
  --bright: #c6baae;
  --text: #f0e9e0;
  --accent: #8fa6b8;
  --warn: #c2715a;

  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.15rem, 5vw, 2rem) 5rem;
}

/* ——— başlık ——— */

header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2.5rem;
}

.wordmark {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--accent);
}

nav {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.9rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

nav a[aria-current="page"] {
  color: var(--text);
}

/* ——— metin ——— */

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.6rem;
  color: var(--text);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.35rem;
  color: var(--bright);
}

p,
li {
  color: var(--bright);
  text-wrap: pretty;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  color: var(--text);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--bright);
  background: var(--raised);
  padding: 0.08em 0.35em;
  border-radius: 2px;
}

.lede {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.stamp {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 2rem;
}

/* ——— kutular ——— */

.card {
  background: var(--well);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 1.15rem 1.35rem 1.25rem;
  margin: 0 0 1rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

/*
  Sağlık uyarısı. ADR-0066'dan sonra bu metin ürünün tek yazılı savunması, o yüzden
  kendi kutusunda ve uyarı renginde duruyor. Metin uygulamadaki `settings.disclaimer`
  ile **birebir aynı** — ikisi ayrışırsa hangisinin geçerli olduğu tartışılır hâle gelir.
*/
.notice {
  border-left: 2px solid var(--warn);
  background: var(--well);
  border-radius: 0 3px 3px 0;
  padding: 1.1rem 1.35rem;
  margin: 0 0 1.5rem;
}

.notice h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

/* ——— yollar ——— */

.routes {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.routes li {
  margin: 0;
  border-top: 1px solid var(--hairline);
}

.routes li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.routes a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}

.routes a:hover,
.routes a:focus-visible {
  color: var(--accent);
}

.routes span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/*
  Doldurulmamış taahhüt. Görünür olması bilerek: bu değerler Supabase projesi açılmadan
  ve satıcı kimliği belli olmadan yazılamıyor, ve yanlışlıkla böyle yayınlanmasınlar.
*/
.todo {
  background: var(--warn);
  color: var(--ground);
  font-family: var(--mono);
  font-size: 0.84em;
  font-weight: 600;
  padding: 0.1em 0.4em;
  border-radius: 2px;
}

/* ——— alt ——— */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.86rem;
  color: var(--muted);
}

footer p {
  color: var(--muted);
  margin: 0 0 0.4rem;
}

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