/* Iron Steps — forged iron, ember, and brass */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --iron: #16110D;
  --iron-2: #201913;
  --iron-3: #2B221A;
  --line: #3E3126;
  --text: #F6EEE5;
  --muted: #BCAB99;
  --body: #E2D6C8;
  --ember: #F07A2E;
  --ember-2: #FF9A52;
  --brass: #E3B254;
  --moss: #8DB36A;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(900px 520px at 12% -12%, rgba(240, 122, 46, 0.16) 0%, transparent 60%),
    radial-gradient(800px 560px at 92% -4%, rgba(227, 178, 84, 0.12) 0%, transparent 60%),
    var(--iron);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--ember-2); }
a:hover { color: #FFC08C; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ember); color: var(--iron); padding: 8px 14px; border-radius: 8px; z-index: 99; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 16px 32px;
  background: rgba(22, 17, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; letter-spacing: -0.2px; }
.logo:hover { color: var(--text); }
.logo img { display: block; }
.top nav { display: flex; gap: 24px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--ember); }

/* Home */
.hero { text-align: center; padding: 88px 24px 40px; max-width: 760px; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--brass); border: 1px solid rgba(227, 178, 84, 0.4); background: rgba(227, 178, 84, 0.08); padding: 4px 12px; border-radius: 100px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(44px, 8vw, 80px); font-weight: 800; letter-spacing: -2px; line-height: 1.02; margin-bottom: 20px;
  background: linear-gradient(90deg, var(--brass), var(--ember) 55%, #E0563A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 12px 26px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
a.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ember); color: var(--iron); box-shadow: 0 6px 24px rgba(240, 122, 46, 0.3); }
.btn.primary[aria-disabled="true"] { cursor: default; }
.btn.ghost { border: 1px solid var(--line); color: var(--text); background: var(--iron-2); }
.btn.ghost:hover { color: var(--text); border-color: var(--ember); }

/* Town preview */
.town-stage { position: relative; width: 100%; max-width: 680px; aspect-ratio: 16/9; margin: 56px auto 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, #2A1B14 0%, #4A2A18 52%, #7A4320 100%); }
.town-stage .sun { position: absolute; left: 50%; top: 38%; width: 120px; height: 120px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, #FFC27A 0%, rgba(240, 122, 46, 0.55) 45%, transparent 70%); animation: glow 6s ease-in-out infinite alternate; }
.town-stage .hills { position: absolute; left: -5%; right: -5%; bottom: 20%; height: 26%; background: #3A2416; border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: 0.8; }
.town { position: absolute; left: 0; right: 0; bottom: 20%; display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.bld { position: relative; background: linear-gradient(180deg, #8A5A3A 0%, #5A3720 100%); border: 1px solid #A87650; border-bottom: none; border-radius: 3px 3px 0 0; }
.bld::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 12px; height: 18px; transform: translateX(-50%); background: #2A170C; border-radius: 6px 6px 0 0; }
.bld .win { position: absolute; top: 14px; left: 50%; width: 8px; height: 10px; transform: translateX(-50%); background: var(--brass); border-radius: 2px; box-shadow: 0 0 10px rgba(227, 178, 84, 0.8); }
.bld.tower { width: 44px; height: 118px; }
.bld.keep { width: 64px; height: 92px; }
.bld.hall { width: 96px; height: 70px; }
.bld.hut { width: 50px; height: 46px; }
.bld.tower::before, .bld.keep::before { content: ""; position: absolute; left: -1px; right: -1px; top: -9px; height: 9px;
  background: repeating-linear-gradient(90deg, #8A5A3A 0 8px, transparent 8px 14px); }
.bld.tower .flag { position: absolute; top: -34px; left: 50%; width: 2px; height: 26px; background: #C9B8A4; }
.bld.tower .flag::after { content: ""; position: absolute; top: 0; left: 2px; width: 16px; height: 10px; background: var(--ember); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background: #24160D; border-top: 1px solid #6B4226; }
.path { position: absolute; left: 6%; right: 6%; bottom: 7%; display: flex; justify-content: space-between; }
.step { width: 10px; height: 15px; border-radius: 50% 50% 45% 45%; background: var(--brass); opacity: 0.2; animation: walk 3.2s linear infinite; }
.step:nth-child(odd) { transform: translateY(-6px); }
.step:nth-child(1) { animation-delay: 0s; }
.step:nth-child(2) { animation-delay: 0.4s; }
.step:nth-child(3) { animation-delay: 0.8s; }
.step:nth-child(4) { animation-delay: 1.2s; }
.step:nth-child(5) { animation-delay: 1.6s; }
.step:nth-child(6) { animation-delay: 2.0s; }
.step:nth-child(7) { animation-delay: 2.4s; }
.step:nth-child(8) { animation-delay: 2.8s; }
.hud { position: absolute; top: 9%; left: 7%; text-align: left; font-size: 26px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.hud small { display: block; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }
.pop { position: absolute; top: 11%; right: 8%; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; color: var(--brass); animation: rise 3.2s ease-out infinite; }
@keyframes walk { 0%, 100% { opacity: 0.2; } 12% { opacity: 1; } 55% { opacity: 0.45; } }
@keyframes glow { to { transform: translate(-50%, -50%) scale(1.12); opacity: 0.85; } }
@keyframes rise { 0% { opacity: 0; transform: translateY(8px); } 25% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .town-stage .sun, .step, .pop { animation: none; }
  .step { opacity: 0.6; }
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 960px; margin: 80px auto; padding: 0 24px; }
.card { background: var(--iron-2); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card h2 { font-size: 16px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card .icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; background: rgba(240, 122, 46, 0.12); border: 1px solid rgba(240, 122, 46, 0.35); }
.card .icon svg { width: 22px; height: 22px; stroke: var(--ember-2); }
.card:nth-child(2) .icon { background: rgba(227, 178, 84, 0.12); border-color: rgba(227, 178, 84, 0.35); }
.card:nth-child(2) .icon svg { stroke: var(--brass); }
.card:nth-child(3) .icon { background: rgba(224, 86, 58, 0.12); border-color: rgba(224, 86, 58, 0.4); }
.card:nth-child(3) .icon svg { stroke: #F27A60; }

/* Document pages */
.doc { max-width: 720px; margin: 56px auto 0; padding: 0 24px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.doc h1 { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
.meta { font-size: 14px; color: var(--muted); padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.meta p { margin: 0; color: var(--muted); font-size: 14px; }
.intro { background: var(--iron-2); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: 12px; padding: 20px 24px; color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 19px; margin: 40px 0 12px; }
.doc h3 { font-size: 16px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 15px; color: var(--body); }
.doc p { margin-bottom: 14px; }
.doc .intro { color: var(--muted); }
.doc ul { margin: 8px 0 16px 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }

.contact { display: flex; gap: 18px; align-items: flex-start; background: var(--iron-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 40px; }
.contact .ico { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(240, 122, 46, 0.12); border: 1px solid rgba(240, 122, 46, 0.35); }
.contact .ico svg { width: 22px; height: 22px; stroke: var(--ember-2); }
.contact h3 { margin: 0 0 6px; }
.contact p { color: var(--muted); margin-bottom: 8px; }
.contact > div { min-width: 0; }
.contact a { font-weight: 600; overflow-wrap: anywhere; }
details.faq { background: var(--iron-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details.faq[open] summary { margin-bottom: 10px; }
details.faq p { color: var(--muted); margin: 0; }

.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot p { font-size: 13px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { font-size: 13px; color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }

@media (max-width: 720px) {
  .top { padding: 14px 20px; }
  .top nav { gap: 16px; }
  .hero { padding-top: 56px; }
  .features { grid-template-columns: 1fr; margin: 56px auto; }
  .doc h1 { font-size: 30px; }
  .foot { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .bld.hall { width: 64px; }
  .bld.tower { height: 92px; }
  .bld.keep { width: 48px; height: 72px; }
  .bld.hut { width: 36px; height: 36px; }
  .town { gap: 6px; }
  .hud { font-size: 20px; }
}
