/* S for Freedom — yardımcı sayfalar
   Palet oyunun kendi dünyasından: sığdan derine giden su tonları,
   uyarılar için şamandıra sarısı, geri alınamaz işlemler için derin kızıl. */

:root {
  --ink: #0B2A3D;
  --deep: #06202E;
  --tide: #E7F0F2;
  --paper: #FBFDFD;
  --current: #1B7A8F;
  --current-dark: #145E6E;
  --buoy: #E8A317;
  --undertow: #A6392A;
  --mist: #BFD3D8;
  --muted: #46626D;

  --measure: 63ch;
  --rule: 1px solid var(--mist);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--tide);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-optical-sizing: auto;
}

/* --- Kabuk ------------------------------------------------------------- */

.shell {
  max-width: 76ch;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 5vw, 3rem);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding: 2.25rem 0 1.5rem;
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.wordmark svg { display: block; }

.masthead nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.masthead nav a { color: var(--muted); }
.masthead nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* --- Tipografi --------------------------------------------------------- */

h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 2.5rem 0 0.6rem;
  max-width: 20ch;
}

h2 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.015em;
  margin: 3rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: var(--rule);
}

h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  margin: 1.9rem 0 0.4rem;
}

p, li { max-width: var(--measure); }
p { margin: 0 0 1rem; }

.lede {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2rem;
}

a { color: var(--current-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

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

code, .mono { font-family: var(--mono); font-size: 0.88em; }

.stamp {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Veri dökümü: bu sayfaların asıl gövdesi --------------------------- */

.manifest {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 2rem;
  font-size: 0.95rem;
}

.manifest caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.6rem;
}

.manifest th, .manifest td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: var(--rule);
}

.manifest thead th {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1.5px solid var(--ink);
}

.manifest tbody th { font-weight: 600; width: 34%; }

.verdict {
  font-family: var(--mono);
  font-size: 0.79rem;
  white-space: nowrap;
  padding: 0.12rem 0.5rem;
  border-radius: 2px;
}
.verdict.gone { background: #F3DCD7; color: var(--undertow); }
.verdict.kept { background: #FAEBCC; color: #7A5406; }

/* --- Bloklar ----------------------------------------------------------- */

.route {
  background: var(--paper);
  border: var(--rule);
  border-left: 4px solid var(--current);
  padding: 1.3rem 1.5rem;
  margin: 1.2rem 0;
}
.route h3 { margin-top: 0; }
.route :last-child { margin-bottom: 0; }

.notice {
  background: var(--paper);
  border: var(--rule);
  border-left: 4px solid var(--buoy);
  padding: 1.1rem 1.4rem;
  margin: 1.6rem 0;
}
.notice.grave { border-left-color: var(--undertow); }
.notice :first-child { margin-top: 0; }
.notice :last-child { margin-bottom: 0; }

.mailto {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 3px;
  margin-top: 0.4rem;
}
.mailto:hover { background: var(--current-dark); color: var(--paper); }

/* --- Dil geçişi. JS çalışmazsa iki dil de görünür kalır. --------------- */

.langbar { display: flex; gap: 0.4rem; margin: 1.6rem 0 0; }

.langbar button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.32rem 0.85rem;
  background: transparent;
  border: 1.5px solid var(--mist);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}
.langbar button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

[data-lang] > h1:first-child { margin-top: 1.6rem; }

/* --- Alt bilgi --------------------------------------------------------- */

footer {
  margin-top: 4.5rem;
  padding: 2rem 0 3rem;
  border-top: 2px solid var(--ink);
  font-size: 0.9rem;
  color: var(--muted);
}
footer p { max-width: none; }

@media (max-width: 34rem) {
  body { font-size: 16px; }
  .manifest, .manifest tbody, .manifest tr, .manifest tbody th, .manifest td { display: block; width: auto; }
  .manifest thead { display: none; }
  .manifest tr { border-bottom: var(--rule); padding: 0.55rem 0; }
  .manifest tbody th, .manifest td { border: 0; padding: 0.15rem 0; }
}

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