/* Four Skies website. Same tokens as the app (ui/styles/tokens.css): stone background, navy ink, gold accent. */
:root {
  --bg: #E9E5E0;
  --surface: #FFFFFF;
  --surface-soft: #F4EFE4;
  --ink: #2E3A59;
  --ink-muted: #6B7390;
  --brand: #23274C;
  --gold: #C88200;
  --gold-soft: #E4C88A;
  --display: "Brygada 1918", Georgia, serif;
  --body: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

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

header.top { padding: 24px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font: 700 24px/1 var(--display); color: var(--brand); text-decoration: none; letter-spacing: .01em; }
.top nav { display: flex; gap: 20px; font-weight: 700; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-muted); }
.top nav a:hover { color: var(--ink); }

/* Home */
.hero { padding: 48px 0 32px; text-align: center; }
.eyebrow { font: 800 13px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.hero h1 { font: 700 clamp(40px, 7vw, 76px)/1.02 var(--display); color: var(--brand); margin: 0 auto 20px; max-width: 14ch; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-muted); max-width: 36em; margin: 0 auto 28px; }
.filet { width: 220px; height: 12px; margin: 0 auto 28px; display: block; }
.badge {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 800; letter-spacing: .04em; font-size: 15px;
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.gods {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  padding: 32px 0 64px; margin: 0; list-style: none;
}
.gods li { margin: 0; }
.gods img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: top;
  border-radius: 20px; border: 2px solid var(--gold-soft); background: var(--surface-soft);
  transition: transform .25s ease, border-color .25s ease;
}
.gods li:hover img { transform: translateY(-2px); border-color: var(--gold); }
.gods span { display: block; text-align: center; font: 700 17px/1.3 var(--display); margin-top: 10px; }
@media (max-width: 720px) {
  .gods { grid-template-columns: repeat(3, 1fr); }
  .gods li:nth-child(n+4) { display: none; }
}

.loop { background: var(--surface); border-block: 1px solid var(--gold-soft); padding: 64px 0; }
.loop h2 { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--display); color: var(--brand); text-align: center; margin: 0 0 40px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.steps li { border-top: 2px solid var(--gold); padding-top: 16px; }
.steps h3 { font: 700 21px/1.2 var(--display); margin: 0 0 8px; }
.steps p { margin: 0; color: var(--ink-muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.promise { padding: 64px 0; text-align: center; }
.promise p { font: 400 clamp(22px, 3vw, 30px)/1.35 var(--display); max-width: 30em; margin: 0 auto; color: var(--brand); }

footer { padding: 32px 0 48px; color: var(--ink-muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--gold-soft); padding-top: 24px; }
footer nav { display: flex; gap: 20px; }

/* Legal pages */
.doc { padding: 24px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font: 700 clamp(34px, 5vw, 48px)/1.1 var(--display); color: var(--brand); margin: 16px 0 8px; }
.doc .updated { color: var(--ink-muted); margin: 0 0 32px; }
.doc h2 { font: 700 24px/1.25 var(--display); color: var(--brand); margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; background: var(--surface); border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--surface-soft); vertical-align: top; }
.doc th { background: var(--surface-soft); font-weight: 800; }
@media (max-width: 600px) { .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc td:first-child { font-weight: 800; padding-bottom: 0; } }
