:root {
  --bg: #f6f1e7; --surface: #fffbf3; --ink: #241e17; --muted: #6f6556;
  --line: #e2d8c6; --accent: #a95f0f; --accent-soft: #f0dfc2; --tag: #ece2cf;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a1712; --surface: #231f19; --ink: #efe8dc; --muted: #a79d8e; --line: #383228; --accent: #e0a050; --accent-soft: #3a2c19; --tag: #302a21; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 960px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: ui-serif, "Iowan Old Style", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 16px; }
h2 { font-size: 1.6rem; margin: 0 0 10px; }
h3 { font-size: 1.3rem; margin: 0 0 6px; }
.muted { color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0; }

/* Header and footer */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 2; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 650; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.mark { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--ink) 0 34%, var(--accent) 35% 100%); }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
footer.site { border-top: 1px solid var(--line); margin-top: 72px; color: var(--muted); font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 20px; padding-bottom: 32px; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }

/* Sections */
main > section, main > article { margin-top: 56px; }
.hero { padding-top: 24px; }
.section { margin-bottom: 18px; }
.product { text-align: center; }
.product .lede { margin: 0 auto; }

/* Keel feature on the home page */
.feature {
  display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 32px 0; color: inherit; text-decoration: none; overflow: hidden;
}
.feature:hover { border-color: var(--accent); }
.feature-text { padding-bottom: 32px; }
.feature p { color: var(--muted); font-size: 1.1rem; margin: 0 0 16px; }
.more { color: var(--accent); font-weight: 600; }
.feature .shot { align-self: end; border-radius: 22px 22px 0 0; border-bottom: 0; }
.app-icon { border-radius: 22%; display: block; margin-bottom: 14px; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.app-icon.big { margin: 0 auto 18px; }
.shot { border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 6px 24px rgb(0 0 0 / .08); background: var(--surface); }

/* Game cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent); }
.card-body { padding: 18px 20px 20px; }
.card p { color: var(--muted); margin: 8px 0 0; }
.tag { display: inline-block; background: var(--tag); color: var(--muted); font: 600 .72rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; vertical-align: middle; }
.art { height: 150px; }
.art.wide { height: 190px; border-radius: 16px; margin-bottom: 20px; }
/* Simple painted panels until there's real key art. */
.art-overburden {
  background:
    radial-gradient(ellipse 80% 75% at 50% 120%, #ffd27a 0%, #ff8a2a 22%, #c2410f 42%, #5a170b 62%, transparent 63%),
    radial-gradient(ellipse 90% 85% at 50% 120%, rgb(255 120 40 / .35) 0%, transparent 70%),
    linear-gradient(180deg, #120d14 0%, #2a1416 55%, #3d1a12 100%);
}
.art-smithing {
  background:
    radial-gradient(circle at 30% 70%, #ffd27a 0%, #ff8a2a 14%, rgb(180 60 10 / .6) 32%, transparent 55%),
    linear-gradient(160deg, #2b2f33 0%, #191b1e 60%, #0f1012 100%);
}
.game h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.game p { max-width: 680px; }

/* Keel page */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.steps { padding-left: 22px; }
.steps li { margin: 6px 0; }

/* Policy pages */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.25rem; margin-top: 32px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  nav { gap: 14px; }
  main > section, main > article { margin-top: 40px; }
  .feature { grid-template-columns: 1fr; padding: 24px 24px 0; }
  .feature .shot { width: 70%; justify-self: center; }
  .cards, .split { grid-template-columns: 1fr; }
}
