/* The Kingdom's Dawn website: the game's colours (night navy, dawn gold, parchment) and fonts (OFL). */
@font-face { font-family: "Title"; src: url("/fonts/title.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Text"; src: url("/fonts/text.ttf") format("truetype"); font-display: swap; }

:root {
  --night: #0f1124;
  --panel: #191c33;
  --panel2: #22264a;
  --gold: #e6bb6c;
  --dawn: #f2a65a;
  --parch: #efe5cf;
  --muted: #a9a3b8;
  --line: rgba(230, 187, 108, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--night); color: var(--parch); font: 17px/1.55 "Text", "Segoe UI", sans-serif; }
a { color: var(--gold); }
h1, h2, h3, .brand { font-family: "Title", Georgia, serif; font-weight: normal; color: var(--gold); letter-spacing: 0.5px; }
.small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }

/* the bar on top */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 12px 28px;
  background: linear-gradient(rgba(15, 17, 36, 0.95), rgba(15, 17, 36, 0.75)); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { font-size: 24px; text-decoration: none; white-space: nowrap; }
.menu { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.menu a { color: var(--parch); text-decoration: none; }
.menu a:hover { color: var(--gold); }
.menu .account { border: 1px solid var(--gold); border-radius: 6px; padding: 4px 12px; color: var(--gold); }
.langs { display: flex; gap: 4px; }
.langs button { background: none; border: 1px solid transparent; color: var(--muted); font: 14px "Text", sans-serif; padding: 3px 7px;
  border-radius: 5px; cursor: pointer; }
.langs button.on { color: var(--gold); border-color: var(--line); }
.burger { display: none; background: none; border: 0; color: var(--gold); font-size: 26px; cursor: pointer; }

/* the opening picture */
.hero { position: relative; min-height: clamp(560px, 92vh, 860px); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("/img/camp.jpg") center / cover no-repeat; transform: scale(1.05); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(15, 17, 36, 0.35), rgba(15, 17, 36, 0.92) 75%), linear-gradient(rgba(15, 17, 36, 0.2), var(--night)); }
.hero-inner { position: relative; max-width: 820px; padding: 120px 24px 60px; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); margin: 10px 0 8px; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7); }
.lead { font-size: clamp(18px, 2.2vw, 22px); margin: 0 auto 28px; max-width: 680px; text-shadow: 0 2px 8px #000; }
.badge { display: inline-block; border: 1px solid var(--dawn); color: var(--dawn); border-radius: 20px; padding: 2px 14px; font-size: 14px;
  background: rgba(15, 17, 36, 0.6); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.btn { display: inline-block; text-decoration: none; color: var(--parch); border: 2px solid var(--gold); border-radius: 8px; padding: 11px 26px;
  background: rgba(25, 28, 51, 0.85); font: 18px "Text", sans-serif; transition: transform 0.12s, background 0.12s; }
.btn:hover { transform: translateY(-2px); background: var(--panel2); }
.btn.primary { background: linear-gradient(#f0c879, #c9943f); color: #1d1408; border-color: #f6d79a; font-weight: bold;
  box-shadow: 0 6px 22px rgba(242, 166, 90, 0.35); }
.btn.primary:hover { background: linear-gradient(#f7d38a, #d6a24c); }
.btn.big { font-size: 22px; padding: 14px 34px; }

/* sections */
.section { padding: 84px 24px; max-width: 1180px; margin: 0 auto; }
.section.dark { max-width: none; background: linear-gradient(var(--night), var(--panel) 30%, var(--panel) 70%, var(--night)); }
.section.dark > * { max-width: 1132px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(32px, 4vw, 46px); text-align: center; margin: 0 0 10px; }
.section h2::after { content: ""; display: block; width: 120px; height: 2px; margin: 12px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.intro { text-align: center; max-width: 760px; margin: 0 auto 40px; color: var(--parch); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.card h3 { margin: 0 0 6px; font-size: 24px; }
.card p { margin: 0; color: var(--parch); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 18px 12px 8px; font-size: 15px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); }
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(5, 6, 14, 0.92); display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border: 1px solid var(--line); border-radius: 6px; }

.news { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; }
.news article { background: var(--panel); border-left: 3px solid var(--gold); border-radius: 6px; padding: 16px 20px; }
.news h3 { margin: 0; font-size: 22px; }
.news time { color: var(--muted); font-size: 14px; }
.news p { margin: 6px 0 0; }

.download { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 6px 0 18px 54px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold);
  color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: "Title", serif; font-size: 20px; }
.dl-box { background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
.dl-box h3 { margin: 10px 0 0; font-size: 22px; }
.req { text-align: left; margin: 0; padding-left: 20px; }

.foot { text-align: center; padding: 40px 20px 50px; border-top: 1px solid var(--line); color: var(--muted); }
.foot p { margin: 4px 0; }

@media (max-width: 860px) {
  .top { padding: 10px 16px; gap: 12px; }
  .burger { display: block; margin-left: auto; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night); border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu a { padding: 12px; width: 100%; text-align: center; }
  .menu .account { border: 0; }
  .download { grid-template-columns: 1fr; }
  .section { padding: 64px 16px; }
}
@media (max-width: 520px) {
  .brand { font-size: 18px; }
  .langs button { padding: 2px 4px; font-size: 13px; }
  .hero h1 { font-size: 40px; }
  .hero-inner { padding: 100px 16px 48px; }
  .btn { padding: 10px 18px; font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
}
