/* Waywrights: a placeholder site. Plain HTML and CSS, no scripts. */
:root {
  --ink: #2a2118;
  --paper: #f3ead8;
  --paper-deep: #e7d9bd;
  --accent: #a8431f;
  --leaf: #4c6b2a;
  --muted: #6b5d4b;
  --rule: #cdbb97;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #efe6d3;
    --paper: #1f1a14;
    --paper-deep: #2a231a;
    --accent: #e08a52;
    --leaf: #a9c77a;
    --muted: #b3a48c;
    --rule: #4a3f30;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}
img { display: block; max-width: 100%; height: auto; }

.hero { position: relative; background: #1f1a14; }
.hero img { width: 100%; max-height: 82vh; object-fit: cover; object-position: 50% 40%; }
.hero-text {
  position: absolute; inset: auto 0 0 0;
  padding: 6rem 1rem 2.25rem;
  text-align: center;
  color: #fff8e8;
  background: linear-gradient(to top, rgba(20, 14, 8, 0.88), rgba(20, 14, 8, 0));
}
h1 {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.tagline { margin: 0.75rem 0 0; font-size: clamp(1.05rem, 2.6vw, 1.5rem); font-style: italic; }
.status {
  display: inline-block; margin: 1rem 0 0; padding: 0.3rem 0.9rem;
  border: 1px solid rgba(255, 248, 232, 0.55); border-radius: 2rem;
  font: 600 0.8125rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
}

main { padding: 0 1rem; }
section { max-width: var(--measure); margin: 0 auto; padding: 3rem 0 0; }
h2 { margin: 0 0 0.75rem; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; color: var(--accent); }
p { margin: 0 0 1rem; }

.shots {
  max-width: 60rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); /* two across, one on a phone */
}
figure { margin: 0; }
figure img {
  width: 100%; border-radius: 4px;
  border: 6px solid var(--paper-deep);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
figure a:hover img, figure a:focus-visible img { border-color: var(--accent); }
figcaption { margin-top: 0.6rem; font-size: 0.9375rem; font-style: italic; color: var(--muted); }

.features ul { margin: 0; padding: 0; list-style: none; }
.features li { padding: 0.75rem 0 0.75rem 1.1rem; border-left: 3px solid var(--leaf); margin-bottom: 0.75rem; }
.features strong { color: var(--leaf); }

.download ul { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.download li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.download li a { font-weight: 700; }
.download li span { color: var(--muted); font-size: 0.9375rem; }
.download .sums { font-size: 0.9375rem; color: var(--muted); }
a { color: var(--accent); }
code { font-size: 0.9em; }

.state { padding-bottom: 1rem; }

footer {
  margin-top: 3.5rem; padding: 1.75rem 1rem 2.5rem;
  border-top: 1px solid var(--rule);
  text-align: center; color: var(--muted);
  font: 0.875rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
footer p { margin: 0.2rem 0; }

/* The index of buildings and units (/guide/, written by tools/site from the game's rules). */
.guide-head { max-width: var(--measure); margin: 0 auto; padding: 2.5rem 1rem 0; }
.guide-head h1 { color: var(--accent); text-shadow: none; font-size: clamp(2.25rem, 7vw, 3.5rem); margin: 0.25rem 0 1rem; }
.guide-head p { margin: 0 0 0.75rem; }
.guide-head nav { font: 0.9375rem/1.9 system-ui, -apple-system, "Segoe UI", sans-serif; padding: 0.75rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.guide h3 { margin: 1.5rem 0 0.25rem; font-size: 1.1875rem; color: var(--leaf); }
.guide article { padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule); }
.guide article p { margin: 0 0 0.4rem; }
.guide .who { font: 600 0.75rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); border-radius: 1rem; padding: 0.15rem 0.55rem; margin-left: 0.4rem; vertical-align: middle; white-space: nowrap; }
.guide .facts { font-size: 0.9375rem; color: var(--muted); }
.guide .facts span { font: 600 0.75rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 0.9rem; }
.guide .facts span:first-child { margin-left: 0; }
.guide dl.entries { margin: 0; }
.guide dt { margin-top: 0.9rem; font-weight: 700; color: var(--leaf); }
.guide dd { margin: 0.15rem 0 0; }
.guide table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 0.5rem 0 1rem; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 0.45rem 0.6rem 0.45rem 0; border-bottom: 1px solid var(--rule); }
.guide th { font: 600 0.75rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 34rem) {
  .guide table, .guide tbody, .guide tr, .guide td { display: block; }
  .guide thead { display: none; }
  .guide tr { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
  .guide td { border: 0; padding: 0.1rem 0; }
  .guide td:first-child { font-weight: 700; }
  .guide td:not(:first-child)::before { content: attr(data-label) " "; font: 600 0.6875rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-right: 0.35rem; }
}
.features .more { margin: 1.25rem 0 0; font-weight: 700; }

/* Buttons: the download and the tip. */
.actions { margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.button {
  display: inline-block; padding: 0.7rem 1.4rem; border-radius: 2rem;
  font: 700 1rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none;
  color: #fff8e8; background: rgba(20, 14, 8, 0.55); border: 2px solid rgba(255, 248, 232, 0.7);
}
.button.tip { background: #c8501f; border-color: #c8501f; color: #fff8e8; }
.button:hover, .button:focus-visible { filter: brightness(1.12); }
.button.big { font-size: 1.125rem; padding: 0.9rem 1.8rem; }
.support { text-align: center; }
.support p { margin-left: auto; margin-right: auto; }
