/* fiveelementheroes.com: the game's own pages (owner, 2026-10-24). Cream paper and dark ink like the game's screens. */
:root {
  --paper: #f7f0e1;
  --sheet: #fffaf0;
  --ink: #2f241a;
  --muted: #6b5a47;
  --line: #e2d4b8;
  --accent: #b5462f;
  --accent-ink: #ffffff;
  --link: #8c3420;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

a { color: var(--link); }

header {
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand img { width: 36px; height: 36px; border-radius: 8px; }

nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main {
  max-width: 880px;
  margin: 24px auto 48px;
  padding: 0 16px;
}

.sheet {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 21px; margin: 28px 0 8px; }
h3 { font-size: 18px; margin: 20px 0 6px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--paper); }
.table-wrap { overflow-x: auto; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px 32px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 560px) {
  .sheet { padding: 18px 16px; }
  h1 { font-size: 25px; }
  nav { margin-left: 0; }
}
