/* Earful — ortak stil. Raporla aynı görsel dil: kağıt, mürekkep, tek kırmızı kalem. */

:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --sheet: #ffffff;
  --ink: #141413;
  --ink-2: #4a4944;
  --muted: #8a877f;
  --rule: #e3e0d7;
  --rule-strong: #c9c5b9;
  --pen: #d23a1d;          /* kırmızı kalem: yalnızca "en önemli şey" için */
  --pen-wash: #fbe9e4;
  --data: #2a78d6;         /* rapordaki veri rengiyle aynı */
  --data-2: #eb6834;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pen); }
::selection { background: var(--pen-wash); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Tipografi --- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.022em; }
h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; }
h1 em, h2 em { font-style: italic; }
p { margin: 0 0 1em; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.small { font-size: 14px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }

/* Kırmızı kalem altı çizgisi: elle çizilmiş gibi, ama düzgün. */
.pen-mark {
  background-image: linear-gradient(var(--pen), var(--pen));
  background-size: 100% 3px;
  background-position: 0 92%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  white-space: nowrap;
}

/* --- Logo --- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 22px; height: 18px; }
.logo span { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }

/* --- Üst menü --- */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top nav a.btn, .top nav a.btn:hover { color: var(--paper); }
.top nav a.lang { font-family: var(--mono); font-size: 13px; color: var(--muted); border: 1px solid var(--rule-strong); border-radius: 3px; padding: 2px 6px; }
.top nav a.lang:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 860px) { .top nav a.lang { display: inline-block; } }

/* --- Düğmeler ve form --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 4px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font: 500 16px/1 var(--sans);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #2a2a28; }
.btn:focus-visible, .field input:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sheet); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 15px; }

.scan { display: flex; gap: 8px; max-width: 560px; }
.field { flex: 1; min-width: 0; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 4px;
  border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink);
  font: 16px var(--sans);
}
.field input::placeholder { color: var(--muted); }
.scan-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.scan-msg { margin-top: 10px; font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.scan-msg.err { color: var(--pen); }

/* --- Bölümler --- */
section { padding: 96px 0; border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; margin-bottom: 48px; align-items: end; }
.section-head h2 { max-width: 15em; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 36em; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 14px; display: block; }

/* --- Kağıt: rapordan bir parça --- */
.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(20, 20, 19, 0.04), 0 12px 32px -18px rgba(20, 20, 19, 0.18);
  padding: 28px 30px 24px;
}
.sheet-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 13px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.sheet-title { font-family: var(--serif); font-size: 21px; font-weight: 500; margin: 0 0 2px; color: var(--ink); }
.caption { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Öncelik listesi (rapordaki "Öncelikli sorunlar") */
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--rule); }
.ranked li:last-child { border-bottom: 0; }
.ranked li::before {
  content: counter(r); position: absolute; left: 0; top: 13px;
  font-family: var(--serif); font-size: 20px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.ranked li:first-child::before { color: var(--pen); }
.ranked b { display: block; font-weight: 500; font-size: 16px; }
.ranked span { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ranked .up { color: var(--pen); white-space: nowrap; }

/* Veri tablosu */
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { font-weight: 500; font-size: 12.5px; color: var(--muted); text-align: left; padding: 0 10px 8px 0; border-bottom: 1px solid var(--rule-strong); }
table.data td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.data .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.hi { font-weight: 600; }

/* Gerçek gerçek bilgi satırı (rapordaki "facts") */
.facts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 14px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 16px; }

.quote { font-family: var(--serif); font-size: 18px; line-height: 1.45; margin: 0 0 6px; }
.quote-meta { font-size: 12.5px; color: var(--muted); }

/* --- Altbilgi --- */
footer { border-top: 1px solid var(--ink); padding: 40px 0 56px; font-size: 14px; color: var(--ink-2); }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer h4 { font: 500 13px var(--sans); color: var(--muted); margin: 0 0 10px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 6px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .top nav a:not(.btn) { display: none; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .lede { font-size: 18px; }
  .scan { flex-direction: column; }
  .sheet { padding: 22px 18px 18px; }
}
.top nav a.lang[hidden] { display: none; }
