/* PowerMud site: responsive dark-red theme (replaces the 2000s fixed-width layout) */
:root {
  --bg: #0b0000;
  --panel: #160303;
  --panel-2: #1f0606;
  --line: #4a1111;
  --text: #e2d6d6;
  --muted: #a99494;
  --red: #c01717;
  --red-bright: #ff4a4a;
  --link: #ff6b6b;
  --ok: #46c46a;
  --radius: 10px;
  --maxw: 100%;
  --gutter: clamp(14px, 2.6vw, 56px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg) url(../images/bin.gif); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Verdana, sans-serif;
}
a { color: var(--link); text-decoration: none; border-bottom: 1px dotted var(--red); }
a:hover, a:focus-visible { color: #fff; border-bottom-color: var(--red-bright); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; letter-spacing: .04em; color: #f0dede; line-height: 1.25; }
h3 { font-size: 1.7rem; margin: 0 0 .6rem; }
h4 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; padding-bottom: .25rem; border-bottom: 1px dotted var(--line); }
p { margin: 0 0 1rem; }
pre { overflow-x: auto; background: #0e0202; border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; font: 14px/1.35 ui-monospace, Consolas, "Courier New", monospace; color: #eadada; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 100; border: 0; }
.skip:focus { left: 8px; top: 8px; }

/* header */
.top { background: linear-gradient(#240505, #120202); border-bottom: 2px solid var(--red); }
.top-in { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter) 10px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.logo { border: 0; display: block; }
.logo b { display: block; font: normal clamp(2rem, 7vw, 3.4rem)/1 Georgia, serif; letter-spacing: clamp(.1em, 1.6vw, .45em); color: #c01717; text-shadow: 0 0 18px #5a0808; }
.logo i { display: block; font-style: normal; color: var(--muted); letter-spacing: .12em; font-size: .85rem; margin-top: 2px; }
.status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); padding: 6px 12px; border-radius: 999px; font-size: .9rem; border-bottom: 1px solid var(--line); color: var(--text); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #666; flex: 0 0 auto; }
.dot.up { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.down { background: var(--red); }
.btn { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; }
.btn:hover, .btn:focus-visible { background: #e02323; color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--red); color: var(--link); }

/* nav */
.nav { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 10px; }
.nav-toggle { display: none; }
.nav-btn { display: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); user-select: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nav li a { display: block; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; color: #f3caca; background: #4a0a0a; }
.nav li a:hover, .nav li a:focus-visible { background: var(--red); color: #fff; }
.nav li a[aria-current="page"] { background: var(--red); color: #fff; font-weight: 600; }
.search { display: flex; gap: 6px; margin-left: auto; }
.search input { background: #0e0202; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; min-width: 0; width: 11rem; font-size: 1rem; }

/* layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.has-side { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .has-side { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 899px) { .side { order: 2; } }
.side, .content { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.side h4 { margin-top: 0; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { margin: .35rem 0; }
.side a[aria-current="page"] { color: #fff; font-weight: 600; border-bottom-color: var(--red-bright); }
.content { overflow-wrap: anywhere; min-width: 0; }

/* home */
.hero { background: linear-gradient(135deg, #2a0707, #120202); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.hero h3 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
@media (min-width: 1200px) { .cards { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr) minmax(260px, 1fr); } }
.card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card h4 { margin-top: 0; }

/* tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.board { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.board th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--red); padding: 6px 12px; overflow-wrap: normal; word-break: normal; }
table.board td { padding: 6px 12px; border-bottom: 1px solid #2a0c0c; overflow-wrap: normal; word-break: normal; }
table.board td:first-child, table.board th:first-child { width: 1%; white-space: nowrap; }
table.board td.who { white-space: nowrap; }
table.board tbody tr:nth-child(odd) { background: #130303; }
table.board tbody tr:hover { background: #260909; }
table.board td.who { color: #fff; font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.tabs a { display: block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
.tabs a[aria-current="true"] { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.meta { color: var(--muted); font-size: .85rem; margin: .4rem 0 1rem; }

/* search */
.results { list-style: none; padding: 0; margin: 0; }
.results li { padding: .8rem 0; border-bottom: 1px solid #2a0c0c; }
.results small { display: block; color: var(--muted); }
.notice { border-left: 3px solid var(--red); background: var(--panel-2); padding: .7rem 1rem; border-radius: 0 8px 8px 0; margin: 0 0 1rem; }

/* footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; padding: 20px 16px 40px; }

@media (max-width: 760px) {
  body { font-size: 18px; }
  .nav-btn { display: inline-block; margin: 4px 0; }
  .nav ul { display: none; flex-direction: column; margin-top: 8px; }
  .nav-toggle:checked ~ ul { display: flex; }
  .search { margin-left: 0; width: 100%; margin-top: 8px; }
  .search input { flex: 1; width: auto; }
  .status { width: 100%; }
  .content, .side { padding: 14px 14px; }
  table.board { font-size: .82rem; }
  table.board th, table.board td { padding: 6px 5px; }
  table.board td:first-child, table.board th:first-child { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
