/* İki mürekkepli risograf baskı: gazete kâğıdı, mavi ve pembe mürekkep, yarım ton noktalar. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+2113,
    U+A720-A7FF;
}

:root {
  --paper: #e8e8e2;
  --paper-deep: #dcdcd4;
  --blue: #2c46a0;
  --pink: #e2457f;
  --yellow: #f2c230;
  --gray: #6e7280;
  --ink: var(--blue);
  --rule: var(--blue);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121a3a;
    --paper-deep: #1a2450;
    --blue: #8fa6f0;
    --pink: #ff7aaa;
    --yellow: #e8c547;
    --gray: #9aa0b4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121a3a;
  --paper-deep: #1a2450;
  --blue: #8fa6f0;
  --pink: #ff7aaa;
  --yellow: #e8c547;
  --gray: #9aa0b4;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

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

[hidden] {
  display: none !important;
}

h1,
h2 {
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Üst ve alt bilgi */

.site-header,
main,
.site-footer {
  max-width: 76rem;
  margin: 0 auto;
  padding-inline: 1rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 3px solid var(--rule);
}

.site-name {
  color: var(--ink);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
}
.site-nav .text-button,
.icon-button {
  border: 2px solid var(--ink);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.site-nav .text-button {
  padding: 0.15rem 0.6rem;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
}
.icon-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.site-nav .text-button:hover,
.icon-button:hover {
  background: var(--ink);
  color: var(--paper);
}
.icon-sun {
  display: none;
}
:root[data-theme="dark"] .icon-sun {
  display: inline;
}
:root[data-theme="dark"] .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: inline;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}

.site-footer {
  margin-top: 4rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 3px solid var(--rule);
  font-size: 0.92rem;
}
.footer-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}
.footer-projects a,
.footer-meta a {
  color: var(--ink);
}
.footer-projects a[aria-current="page"] {
  color: var(--pink);
  font-weight: 700;
}
.footer-meta {
  margin: 0.8rem 0 0;
  color: var(--gray);
}

/* Giriş */

.lead-in {
  padding-top: 2.5rem;
}
.lead-in h1 {
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem);
  max-width: 16ch;
}
.intro {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: var(--gray);
  font-size: 1.1rem;
}

/* Hesaplayıcı */

.calc {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--rule);
}
@media (min-width: 60rem) {
  .calc {
    grid-template-columns: 19rem 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.field-group + .field-group {
  margin-top: 1.4rem;
}
.field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.field {
  width: 100%;
  max-width: 14rem;
  padding: 0.35rem 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  font-stretch: 112%;
}
.field:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 4px 4px 0 var(--pink);
}
.field[aria-invalid] {
  border-color: var(--pink);
}
.hint,
.error {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
}
.hint {
  color: var(--gray);
}
.error {
  color: var(--pink);
  font-weight: 700;
}
.error:empty {
  display: none;
}

.result {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--rule);
}
.result p {
  margin: 0;
}
.result-label {
  font-weight: 700;
}
.result-value {
  font-size: clamp(3.6rem, 2.8rem + 3vw, 5rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  color: var(--pink);
  margin-top: 0.2rem !important;
}
.result-decision {
  margin-top: 0.5rem !important;
  font-weight: 600;
}
.warning {
  margin-top: 1rem !important;
  padding: 0.5rem 0.7rem;
  background: var(--yellow);
  color: #1b1d2a;
  font-size: 0.92rem;
}

/* Model seçici */

.picker {
  margin: 0 0 0.8rem;
  padding: 0;
  border: 0;
}
.picker legend {
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.picker-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.picker-options label {
  padding: 0.25rem 0.65rem;
  border: 2px solid var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.picker-options input:checked + label {
  background: var(--ink);
  color: var(--paper);
}
.picker-options input:focus-visible + label {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

/* Harita ve grafikler */

.map,
.roc-figure {
  margin: 0;
  min-width: 0;
}
.map svg,
.roc-figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.plate {
  fill: var(--paper-deep);
}
.map-dots circle {
  transition: r 260ms ease-out, fill 160ms;
}
.map-dots circle.instant {
  transition: fill 160ms;
}
.dot-skip {
  fill: var(--blue);
}
.dot-show {
  fill: var(--pink);
}
.person {
  fill: var(--paper);
  stroke: var(--gray);
  stroke-width: 1;
}
.person.bought {
  fill: var(--yellow);
  stroke: #1b1d2a;
  stroke-width: 1;
}
.tick {
  fill: var(--gray);
  font-size: 12px;
}
.axis-title {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
/* Senin noktan: kâğıt renginde bir hale üstünde mürekkep hedef işareti */
.you-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  paint-order: stroke;
}
.you-cross {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: square;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--gray);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.key {
  display: inline-block;
  flex: none;
  border-radius: 50%;
}
.key-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--blue);
}
.key-bought {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--yellow);
  border: 1px solid #1b1d2a;
}
.key-person {
  width: 0.4rem;
  height: 0.4rem;
  border: 1px solid var(--gray);
}
.key-you {
  width: 0.8rem;
  height: 0.8rem;
  border: 3px solid var(--ink);
}

/* Eşik paneli */

.threshold {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--rule);
}
.threshold h2,
.notes h2,
.model-section h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
}
.threshold-head p {
  max-width: 44rem;
  margin: 0.8rem 0 0;
}
.slider {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 1.2rem;
  font-weight: 700;
}
.slider input {
  flex: 1 1 14rem;
  max-width: 28rem;
  accent-color: var(--pink);
}
.slider output {
  min-width: 4ch;
  font-size: 1.6rem;
  font-weight: 900;
  font-stretch: 125%;
  color: var(--pink);
}

.threshold-body {
  display: grid;
  gap: 2rem;
  margin-top: 1.8rem;
}
@media (min-width: 60rem) {
  .threshold-body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.cell {
  padding: 0.8rem;
  border: 2px solid var(--ink);
  vertical-align: top;
}
.cell span {
  display: block;
}
.cell-count {
  font-size: 2.3rem;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
}
.cell-name {
  margin-top: 0.4rem;
  font-weight: 700;
}
.cell-note {
  font-size: 0.82rem;
  color: var(--gray);
}
.cell-tp {
  background: var(--pink);
  color: #fff;
}
.cell-tp .cell-note {
  color: #fff;
}
.cell-fn {
  background: var(--yellow);
  color: #1b1d2a;
}
.cell-fn .cell-note {
  color: #1b1d2a;
}

.stats dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}
.stats dt {
  font-weight: 700;
}
.stats dd {
  margin: 0;
}
.stats dd:not(.stat-note) {
  font-size: 2rem;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1.05;
}
.stat-note {
  font-size: 0.85rem;
  color: var(--gray);
}
.summary {
  margin: 1.2rem 0 0;
  padding-top: 0.8rem;
  border-top: 2px solid var(--rule);
  font-weight: 600;
}

.roc-figure figcaption {
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.roc-figure figcaption span {
  font-weight: 400;
  color: var(--gray);
}
.chance {
  stroke: var(--gray);
  stroke-dasharray: 4 4;
}
.roc {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
}
.roc-point {
  fill: var(--pink);
  stroke: var(--paper);
  stroke-width: 2;
}
.note {
  margin: 1.2rem 0 0;
  font-size: 0.88rem;
  color: var(--gray);
}

/* Açıklamalar */

.notes {
  display: grid;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--rule);
}
@media (min-width: 60rem) {
  .notes {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.notes p,
.model-section p {
  max-width: 42rem;
  margin: 0.8rem 0 0;
}
.privacy {
  font-weight: 700;
}

/* Model sayfası */

.table-scroll {
  overflow-x: auto;
  margin-top: 2rem;
}
.results {
  width: 100%;
  border-collapse: collapse;
  border-top: 3px solid var(--rule);
  border-bottom: 3px solid var(--rule);
}
.results caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--gray);
}
.results th,
.results td {
  padding: 0.55rem 0.9rem 0.55rem 0;
  text-align: left;
  font-weight: 400;
}
.results thead th {
  border-bottom: 2px solid var(--rule);
  font-weight: 700;
}
.results .num {
  text-align: right;
  white-space: nowrap;
}
.results tbody tr + tr > * {
  border-top: 1px solid color-mix(in srgb, var(--rule) 30%, transparent);
}
.results .selected th {
  font-weight: 800;
}
.results .baseline > * {
  color: var(--gray);
}
.tag {
  margin-left: 0.4rem;
  padding: 0 0.4rem;
  background: var(--pink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 40rem) {
  .results .wide {
    display: none;
  }
}

.model-section {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--rule);
}
.model-section h2 + p {
  margin-top: 0.8rem;
}
.split {
  display: grid;
  gap: 2rem;
}
.split h2 + p + h2 {
  margin-top: 2rem;
}
@media (min-width: 60rem) {
  .split {
    grid-template-columns: 1fr 22rem;
    gap: 3rem;
  }
}
.roc-other {
  stroke: var(--gray);
  stroke-width: 1.5;
  opacity: 0.7;
}
.roc-selected {
  stroke: var(--pink);
  stroke-width: 3;
}
.roc-legend {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}
.roc-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.roc-legend .swatch {
  display: inline-block;
  width: 1.2rem;
  height: 3px;
  background: var(--gray);
}
.roc-legend .roc-selected {
  font-weight: 700;
}
.roc-legend .roc-selected .swatch {
  background: var(--pink);
}

.card {
  display: grid;
  gap: 0.3rem 2rem;
  margin: 1rem 0 0;
  max-width: 52rem;
}
.card dt {
  font-weight: 700;
}
.card dd {
  margin: 0 0 0.8rem;
}
@media (min-width: 40rem) {
  .card {
    grid-template-columns: 10rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-dots circle {
    transition: none !important;
  }
}
