/* Mortals and Monsters — public landing (same palette as the browser client). */
:root {
  --bg: #0a0a0a;
  --rule: #5a5a5a;
  --silver: #e8e8e8;
  --teal: #7ec8a8;
  --muted: #8a8a8a;
  --gold: #c9a227;
  --input-bg: #121212;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--silver);
  font-family: Consolas, "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.5;
}

body {
  position: relative;
  min-height: 100vh;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--input-bg);
  color: var(--silver);
  border: 1px solid var(--teal);
  border-radius: 3px;
  text-decoration: none;
}

.skip-link:focus {
  left: 1.25rem;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

header {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.door-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
}

.door-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.door-nav a:hover,
.door-nav a:focus {
  border-bottom-color: var(--teal);
}

.door-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal);
}

.lede {
  margin: 0 0 1.25rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin: 0 0 0.65rem;
}

.fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

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

a:hover {
  color: var(--silver);
}

.play {
  display: inline-block;
  background: var(--input-bg);
  color: var(--silver);
  border: 1px solid var(--teal);
  border-radius: 3px;
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.play:hover {
  color: var(--teal);
}

.quiet {
  color: var(--muted);
}

section {
  margin-bottom: 1.85rem;
}

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
}

.why article {
  margin: 0;
  padding-left: 0.85rem;
  border-left: 1px solid var(--rule);
}

.why p {
  margin: 0;
  color: var(--silver);
  font-size: 0.92rem;
}

.connect {
  margin: 0;
  padding-left: 1.2rem;
}

.connect li {
  margin-bottom: 0.65rem;
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
}

.steps li {
  margin-bottom: 0.45rem;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

code {
  font-family: inherit;
  color: var(--gold);
}

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin: 0 0 0.4rem;
}

.muted {
  color: var(--muted);
}

.atlas-section {
  margin-top: 2rem;
}

.atlas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.atlas-swatch {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.35rem;
  vertical-align: -1px;
}

.atlas-swatch-town {
  border-radius: 50%;
  background: var(--teal);
}

.atlas-swatch-dungeon {
  background: var(--gold);
  transform: rotate(45deg);
}

.atlas-frame {
  position: relative;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule);
  line-height: 0;
}

.atlas-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.atlas-pin {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 1px solid var(--bg);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.atlas-pin:focus {
  outline: 2px solid var(--silver);
  outline-offset: 2px;
  z-index: 2;
}

.atlas-pin:hover {
  z-index: 2;
  transform: translate(-50%, -50%) scale(1.35);
}

.atlas-pin-town {
  border-radius: 50%;
  background: var(--teal);
}

.atlas-pin-dungeon {
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.atlas-pin-dungeon:hover,
.atlas-pin-dungeon:focus {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.35);
}

.atlas-readout {
  min-height: 1.5em;
  margin: 0.65rem 0 0.5rem;
  color: var(--teal);
  font-size: 0.9rem;
}

.atlas-list {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.atlas-list summary {
  cursor: pointer;
  color: var(--gold);
}

.atlas-list ul {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.2rem;
}

.news-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.news-list li {
  margin: 0 0 1.25rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--rule);
}

.news-list time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.news-list p {
  margin: 0;
}

.news-list .try {
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

.news-ticker {
  margin: 1.1rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--rule);
  background: var(--input-bg);
}

.news-ticker-label {
  margin: 0 0 0.35rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.news-ticker-current {
  display: block;
  text-decoration: none;
  min-height: 3.2rem;
}

.news-ticker-current time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.news-ticker-summary {
  display: block;
  color: var(--silver);
}

.news-ticker-current:hover .news-ticker-summary,
.news-ticker-current:focus .news-ticker-summary {
  color: var(--teal);
}

.news-ticker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-top: 0.65rem;
}

.news-ticker-controls button {
  font: inherit;
  color: var(--silver);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.35rem 0.7rem;
  min-height: 44px;
  cursor: pointer;
}

.news-ticker-controls button:hover,
.news-ticker-controls button:focus {
  border-color: var(--teal);
  color: var(--teal);
}

.news-ticker-pos {
  color: var(--muted);
  font-size: 0.85rem;
}

.news-ticker-all {
  margin-left: auto;
}

.news-archive {
  max-height: 70vh;
  overflow-y: auto;
  margin: 1.1rem 0 0;
  padding: 0.15rem 0.35rem 0.15rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.news-item {
  margin: 0;
  padding: 0.65rem 0 0.65rem 0.85rem;
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.news-item summary {
  cursor: pointer;
  list-style: none;
}

.news-item summary::-webkit-details-marker {
  display: none;
}

.news-item time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.news-item-head {
  color: var(--teal);
}

.news-item[open] .news-item-head {
  color: var(--gold);
}

.news-item-body {
  margin-top: 0.55rem;
}

.news-item-body p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .news-ticker-current {
    min-height: 0;
  }
}

.cheatsheet {
  margin: 0;
}

.cheatsheet dt {
  margin: 0.85rem 0 0.2rem;
  font-weight: 600;
  color: var(--teal);
}

.cheatsheet dt:first-child {
  margin-top: 0;
}

.cheatsheet dd {
  margin: 0 0 0 0.85rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--rule);
  color: var(--silver);
  font-size: 0.92rem;
}

.cheatsheet.glossary dt {
  color: var(--gold);
}

.origin-grid {
  margin-top: 0.5rem;
}

.wiki-index {
  margin: 0;
  padding-left: 1.2rem;
}

.wiki-index li {
  margin-bottom: 0.4rem;
}

.help-body {
  margin: 0;
  padding: 0.85rem;
  overflow-x: auto;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  background: var(--input-bg);
  border: 1px solid var(--rule);
}

@media (max-width: 40rem) {
  h1 {
    font-size: 1.45rem;
  }

  .why {
    grid-template-columns: 1fr;
  }
}
