/* Mercenomics, mercenomics.org
   Plain static stylesheet. No scripts, no animation, no external requests. */

:root {
  --ink: #15171A;
  --ink-muted: #4A4F57;
  --paper: #F7F6F3;
  --rule: #D9D5CE;
  --oxblood: #8B2E2E;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --serif: "Times New Roman", Tinos, "Liberation Serif", Times, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

.wrap {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ---- Masthead ---- */

header.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--ink);
}

.brand .block {
  width: 46px;
  height: 46px;
  background: var(--oxblood);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 29px;
  line-height: 46px;
  text-align: center;
  flex: none;
}

.brand .name {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.strap {
  margin: 0.8rem 0 0;
  color: var(--ink-muted);
  font-size: 13px;
}

nav.main {
  margin: 1.4rem 0 0;
  padding: 0 0 1rem;
  font-size: 13px;
}

nav.main a {
  color: var(--ink);
  margin-right: 1.4rem;
  display: inline-block;
}

nav.main a[aria-current="page"] { color: var(--oxblood); }

/* ---- Text ---- */

main { padding: 2rem 0 0; }

h1 {
  font-size: 25px;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 1rem;
  max-width: 54rem;
}

h2 {
  font-size: 17px;
  font-weight: bold;
  margin: 2.2rem 0 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 15px;
  font-weight: bold;
  margin: 1.4rem 0 0.3rem;
}

p { margin: 0 0 1rem; }

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

ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin: 0 0 0.5rem; }

dl { margin: 0 0 1rem; }
dt { margin: 1rem 0 0.2rem; font-weight: bold; }
dd { margin: 0 0 0.3rem; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2rem 0; }

.lead {
  font-size: 18px;
  line-height: 1.6;
  max-width: 60rem;
}

.note { color: var(--ink-muted); font-size: 14px; }

.status {
  border: 1px solid var(--rule);
  background: #FFFFFF;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.6rem;
  font-size: 15px;
}

.status p:last-child { margin-bottom: 0; }

/* ---- Columns ---- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
  align-items: start;
}

.cols3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 3rem;
  align-items: start;
}

.panel h2:first-child { margin-top: 0; }

/* Definition lists that sit directly on a page, such as the glossary and the
   source library, run in two columns on a wide screen so the lines stay short. */

@media (min-width: 62rem) {
  main > .wrap > dl {
    column-count: 2;
    column-gap: 4rem;
  }
  main > .wrap > dl > dt { break-after: avoid; }
  main > .wrap > dl > dd { break-inside: avoid; margin-bottom: 0.9rem; }
}

/* ---- Portrait placeholder ---- */

.portrait {
  border: 1px solid var(--rule);
  background: #FFFFFF;
  width: 190px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-muted);
  font-size: 12px;
  padding: 0.8rem;
  margin: 0 0 1rem;
}

/* ---- Tables ---- */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1.4rem;
  font-size: 15px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 1rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: bold;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--ink);
}

td.figure, th.figure {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  text-align: right;
  padding-right: 0;
}

blockquote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
  color: var(--ink-muted);
}

/* ---- Footer ---- */

footer.site {
  border-top: 1px solid var(--rule);
  margin: 3rem 0 0;
  padding: 1.2rem 0 2.5rem;
  font-size: 13px;
  color: var(--ink-muted);
}

footer.site p { margin: 0 0 0.4rem; }
footer.site a { color: var(--ink-muted); }

/* ---- Narrow screens ---- */

@media (max-width: 62rem) {
  .split, .cols3 { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 40rem) {
  .wrap { padding: 0 1rem; }
  body { font-size: 15px; }
  .brand .name { font-size: 21px; }
  .brand .block { width: 38px; height: 38px; font-size: 24px; line-height: 38px; }
  h1 { font-size: 21px; }
  .lead { font-size: 16px; }
  nav.main a { margin-right: 1rem; }
  table { font-size: 14px; }
}
