/* Kingshield: Tower Defense — site styles. No external fonts, no trackers. */
:root {
  --bg: #0d1424;
  --bg-2: #141e33;
  --panel: #18233b;
  --line: #2a3a5c;
  --text: #e8edf6;
  --muted: #a3b0c8;
  --gold: #e9b949;
  --gold-2: #f6d27a;
  --frost: #8fd3ff;
  --radius: 14px;
  --max: 820px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #22345a 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold-2); }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; border-radius: 4px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1100px; width: 100%; margin: 0 auto; padding: 18px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 30px; height: 34px; flex: none; }
.brand span { font: 700 20px/1 var(--serif); letter-spacing: .02em; }
.lang { font-size: 14px; color: var(--muted); }
.lang a { color: var(--muted); text-decoration: none; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; }
.lang a:hover { color: var(--text); border-color: var(--muted); }

main { flex: 1; width: 100%; }

/* Hero */
.hero { text-align: center; padding: 56px 20px 40px; max-width: 900px; margin: 0 auto; }
.crest { width: 112px; height: 128px; margin: 0 auto 22px; display: block; filter: drop-shadow(0 10px 30px rgba(233,185,73,.25)); }
.hero h1 {
  font: 700 clamp(44px, 9vw, 84px)/1 var(--serif);
  letter-spacing: .01em; margin: 0;
  background: linear-gradient(180deg, #fff 0%, var(--gold-2) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font: 600 clamp(14px, 2.6vw, 18px)/1.2 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--frost); margin: 14px 0 28px; }
.hero .pitch { font-size: clamp(18px, 3vw, 22px); color: var(--text); max-width: 640px; margin: 0 auto 10px; }
.hero .pitch2 { color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-2);
  font-weight: 600; letter-spacing: .04em;
  background: rgba(233,185,73,.08);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* Features */
.features { max-width: 1000px; margin: 20px auto 0; padding: 0 20px 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font: 700 19px/1.25 var(--serif); color: var(--gold-2); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Text pages */
.doc { max-width: var(--max); margin: 0 auto; padding: 28px 20px 64px; }
.doc h1 { font: 700 clamp(30px, 6vw, 42px)/1.15 var(--serif); margin: 10px 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font: 700 22px/1.3 var(--serif); color: var(--gold-2); margin: 36px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: #d6deec; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); color: var(--gold-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: auto; }
.foot .in { max-width: 1100px; margin: 0 auto; padding: 22px 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd { margin-bottom: 10px; }
}
