/* WARTORA tanıtım sitesi: sistem yazı tipleri, harici kaynak yok */
:root {
  color-scheme: light dark;
  --navy: #142632; --gold: #E8B95B; --teal: #247D83; --ivory: #F3E8D5; --ember: #C75B43;
  --bg: #F3E8D5; --surface: #FBF5E9; --surface-2: #E9DCC2;
  --text: #142632; --muted: #44555e; --line: #cdbf9f;
  --accent: #7a5510; --link: #1b6267; --warn: #9c3b27;
  --head-bg: #142632; --head-text: #F3E8D5;
  --focus: #1b6267;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: 16px; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #142632; --surface: #1b3342; --surface-2: #234152;
    --text: #F3E8D5; --muted: #b7bfbd; --line: #36505f;
    --accent: #E8B95B; --link: #6cc3c8; --warn: #ee8f78;
    --head-bg: #0f1d27; --focus: #E8B95B;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--teal) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--sans); overflow-wrap: break-word; }
::selection { background: var(--gold); color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 10; font-weight: 700; }
.skip:focus { top: .5rem; outline-color: var(--navy); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* dil */
html:not([data-lang="en"]) [lang="en"], html[data-lang="en"] [lang="tr"] { display: none; }

/* üst şerit */
.top { background: var(--head-bg); color: var(--head-text); border-bottom: 2px solid var(--gold); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding-block: .5rem; }
.brand { display: block; line-height: 0; border-radius: 4px; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0 .15rem; margin-left: auto; align-items: center; }
.nav a, .lang { color: var(--head-text); text-decoration: none; padding: .5rem .6rem; min-height: 44px; display: inline-flex; align-items: center; font-size: .95rem; border-radius: 6px; }
.nav a:hover { color: var(--gold); }
.top :focus-visible, .foot :focus-visible, .dark-band :focus-visible { outline-color: var(--gold); }
.lang { background: transparent; border: 1px solid #8196a3; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 700; letter-spacing: .06em; min-width: 44px; justify-content: center; }
.lang:hover { border-color: var(--gold); color: var(--gold); }

/* tipografi */
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 8.5vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; max-width: 66ch; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.35rem); line-height: 1.5; }
.muted { color: var(--muted); }

/* bölümler */
section { padding-block: clamp(2.75rem, 8vw, 5.5rem); }
.hero { padding-top: clamp(2rem, 6vw, 4rem); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 5fr 7fr; gap: 3rem; } }
.hero h1 .l2 { display: block; color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.5rem; padding: .5rem .9rem; border: 1px solid var(--accent); border-radius: 999px; font-weight: 700; background: var(--surface); }
.status::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--ember); flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.3rem; border-radius: 8px; font-weight: 700; text-decoration: none; border: 2px solid var(--text); color: var(--text); background: transparent; font-size: 1rem; cursor: pointer; font-family: inherit; transition: background-color .18s ease-out, color .18s ease-out; }
.btn.primary { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.btn:hover, .btn.primary:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
@media (prefers-color-scheme: dark) {
  .btn.primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
  .btn:hover, .btn.primary:hover { background: var(--ivory); border-color: var(--ivory); }
}

figure { margin: 0; }
.art { border-radius: 14px; overflow: hidden; background: var(--navy); box-shadow: 0 14px 34px -14px rgba(10,20,28,.55); }
.art img { width: 100%; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.dark-band figcaption { color: #b7bfbd; }
.draft-tag { font-weight: 700; color: var(--warn); }
.dark-band .draft-tag { color: #ee8f78; }

.dark-band { background: var(--head-bg); color: var(--ivory); }
.dark-band a { color: #6cc3c8; }
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } .split.rev > :first-child { order: 2; } }

/* kahraman listesi */
.roster { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.roster li { display: grid; gap: .15rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .roster li { grid-template-columns: 11rem 1fr 1.4fr; align-items: baseline; } }
.roster strong { font-family: var(--serif); font-size: 1.2rem; color: var(--accent); }
.roster .what { color: var(--muted); }

dl.layers { margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 720px) { dl.layers { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
dl.layers dt { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--gold); margin-bottom: .25rem; }
dl.layers dd { margin: 0; color: #d9d6cb; }

.foot { padding-block: 2rem; background: var(--head-bg); color: #b7bfbd; font-size: .9rem; border-top: 2px solid var(--gold); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot a { color: var(--gold); }

/* tek hareket: açılış */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.16,1,.3,1) both; }
  .rise.d2 { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* durum sayfası */
.health { max-width: 34rem; margin: 2rem 0; padding: 1.5rem; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); }
.health-state { display: flex; align-items: center; gap: .8rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 800; margin: 0 0 .5rem; }
.health-state .dot { width: 1rem; height: 1rem; border-radius: 50%; background: var(--muted); flex: none; }
.health[data-state="up"] { border-color: var(--teal); }
.health[data-state="up"] .dot { background: var(--teal); }
.health[data-state="down"] { border-color: var(--ember); }
.health[data-state="down"] .dot { background: var(--ember); }
.health[data-state="checking"] .dot { background: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .health[data-state="checking"] .dot { animation: pulse 1.2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .35; } } }
.health p { margin: 0 0 .4rem; }
.health .btn { margin-top: 1rem; min-height: 44px; }

/* panel taslağı */
.draft-bar { background: var(--ember); color: #1a0c08; font-weight: 700; text-align: center; padding: .6rem var(--gutter); }
.panel-nav { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; }
.panel-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .8rem; border-radius: 8px; color: var(--head-text); text-decoration: none; border: 1px solid #8196a3; font-size: .95rem; }
.panel-nav a:hover { border-color: var(--gold); color: var(--gold); }
.panel section { padding-block: 2rem; border-bottom: 1px solid var(--line); }
.panel h2 { font-size: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.sample { font-family: var(--sans); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 4px; background: var(--gold); color: var(--navy); }
.field { display: grid; gap: .35rem; max-width: 28rem; margin-bottom: 1rem; }
.field label { font-weight: 700; }
.field input { font: inherit; min-height: 48px; padding: .5rem .8rem; border-radius: 8px; border: 2px solid var(--muted); background: var(--surface); color: var(--text); width: 100%; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tbl .num { font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: .1rem .55rem; border-radius: 4px; font-size: .82rem; font-weight: 700; border: 1px solid currentColor; }
.tag.ok { color: var(--link); } .tag.off { color: var(--muted); } .tag.warn { color: var(--warn); }
@media (max-width: 639px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: .15rem 0; }
  .tbl td::before { content: attr(data-l) ": "; color: var(--muted); font-weight: 700; }
}
.meters { display: grid; gap: 1rem; max-width: 36rem; }
.meters div { display: grid; grid-template-columns: 9rem 1fr 3.5rem; gap: .75rem; align-items: center; }
@media (max-width: 479px) { .meters div { grid-template-columns: 1fr 3.5rem; } .meters label { grid-column: 1 / -1; } }
meter { width: 100%; height: 1.1rem; }
.meters output { font-variant-numeric: tabular-nums; text-align: right; }
.ann { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; max-width: 44rem; }
.ann li { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ann .when { color: var(--muted); font-size: .85rem; }
.note { margin-top: 2rem; padding: 1.25rem; border: 2px dashed var(--accent); border-radius: 12px; background: var(--surface); }
.note h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.note ul { margin: 0; padding-left: 1.2rem; max-width: 62ch; }
.note li { margin-bottom: .5rem; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.empty { color: var(--muted); padding: 1rem 0; }
[hidden] { display: none !important; }
.after { margin-top: 1.5rem; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1 + .lead { margin-top: 1rem; }
.hero h1 + .lead { margin-top: 1.25rem; }
meter { accent-color: var(--teal); }
.panel main { padding-bottom: 3rem; }
