@font-face {
  font-family: 'Pixelify Sans';
  src: url('/fonts/PixelifySans.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0e0a0c;
  --panel: #171214;
  --line: #2c2326;
  --text: #e9e1d4;
  --muted: #a99f93;
  --gold: #d3ae78;
  --crimson: #a3242c;
  --crimson-hi: #c4333c;
  --pixel: 'Pixelify Sans', ui-monospace, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }
a:hover { color: #ecc993; }

img { max-width: 100%; display: block; }

.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* Header */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: 18px 0;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font: 600 20px var(--pixel); letter-spacing: .08em;
  color: var(--text); text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; }
.top nav a {
  margin-left: 22px; color: var(--muted); text-decoration: none;
  font: 500 15px var(--pixel); letter-spacing: .05em;
}
.top nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid; place-items: center;
  text-align: center;
  padding: 120px 0 80px;
  background:
    linear-gradient(180deg, rgba(14,10,12,.55) 0%, rgba(14,10,12,.35) 40%, var(--bg) 100%),
    url('/img/castle.jpg') center 30% / cover no-repeat;
  image-rendering: pixelated;
}
.hero .icon {
  width: 132px; height: 132px; margin: 0 auto 26px;
  border-radius: 30px; image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 60px rgba(163,36,44,.45);
}
h1, h2, h3 { font-family: var(--pixel); font-weight: 600; letter-spacing: .04em; line-height: 1.15; }
.hero h1 { font-size: clamp(44px, 9vw, 88px); margin: 0; letter-spacing: .1em; text-shadow: 0 4px 0 #000; }
.hero .tag { font: 500 clamp(18px, 2.6vw, 24px) var(--pixel); color: var(--gold); margin: 10px 0 18px; }
.hero p.lead { max-width: 600px; margin: 0 auto 32px; color: #d8cfc2; font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  background: var(--crimson); color: #fff;
  border: 2px solid #000; box-shadow: inset 0 -4px 0 rgba(0,0,0,.35), 0 0 0 2px var(--crimson);
  font: 600 18px var(--pixel); letter-spacing: .06em; text-decoration: none;
}
.btn:hover { background: var(--crimson-hi); color: #fff; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.soon { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 80px 0; }
section h2 { font-size: clamp(28px, 4.4vw, 40px); text-align: center; margin: 0 0 12px; }
section .sub { text-align: center; color: var(--muted); margin: 0 auto 44px; max-width: 560px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--panel);
  border: 2px solid var(--line);
  padding: 26px 22px;
}
.card h3 { margin: 0 0 8px; font-size: 21px; color: var(--gold); }
.card p { margin: 0; color: #cfc6b9; font-size: 16px; }
.card .glyph { font-size: 28px; margin-bottom: 10px; }

.shots {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 20px 20px;
  justify-content: safe center;
}
.shots img {
  flex: 0 0 auto; width: 240px; height: auto;
  border: 2px solid var(--line); scroll-snap-align: center;
}

.contact { text-align: center; }
.contact .mail { font: 600 22px var(--pixel); }

/* Legal pages */
.page { padding: 120px 0 60px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(32px, 6vw, 48px); margin: 0 0 6px; }
.page .meta { color: var(--muted); margin: 0 0 36px; font-size: 15px; }
.page h2 { text-align: left; font-size: 24px; margin: 40px 0 10px; color: var(--gold); }
.page h3 { font-size: 19px; margin: 24px 0 6px; }
.page p, .page li { color: #d8cfc2; }
.page ul { padding-left: 22px; }
.page table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.page th { background: var(--panel); font-weight: 600; color: var(--text); }
.top.solid { position: static; background: var(--panel); border-bottom: 2px solid var(--line); }
.top.solid + .page { padding-top: 56px; }

/* Footer */
footer { border-top: 2px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav a { margin-right: 20px; color: var(--muted); }
footer nav a:hover { color: var(--text); }

@media (max-width: 560px) {
  .top nav a { margin-left: 14px; font-size: 14px; }
  .top nav a.hide-sm { display: none; }
  section { padding: 60px 0; }
  .shots img { width: 200px; }
}

.page h1, .page h2, .page p, .page li { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .page table, .page tbody, .page tr, .page th, .page td { display: block; width: 100%; }
  .page tr:first-child { display: none; }
  .page td { border-top: 0; }
  .page td:first-child { border-top: 1px solid var(--line); background: var(--panel); font-weight: 600; }
}
