:root {
  color-scheme: dark;
  --bg: #11110f;
  --panel: #25251f;
  --panel-2: #303028;
  --text: #e7e1c9;
  --muted: #a9a38c;
  --line: #56513f;
  --accent: #d6b95d;
  --accent-2: #70b3a2;
  --danger: #d97958;
  --shadow: rgba(0, 0, 0, 0.4);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(112, 179, 162, 0.06), transparent 260px),
    radial-gradient(circle at 50% 0, rgba(214, 185, 93, 0.08), transparent 360px),
    var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-2);
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.shell-narrow {
  width: min(820px, calc(100% - 32px));
}

.shell-article {
  width: min(1080px, calc(100% - 32px));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  display: block;
  image-rendering: pixelated;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.94rem;
}

nav a[aria-current="page"] {
  color: var(--text);
  text-decoration-thickness: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 360px);
  gap: 44px;
  align-items: start;
  padding: 24px 0 28px;
}

.server-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(37, 37, 31, 0.72);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.server-strip span {
  flex: 1 1 106px;
  min-width: 0;
  border: 1px solid;
  border-color: rgba(140, 146, 132, 0.48) rgba(41, 44, 33, 0.86) rgba(41, 44, 33, 0.86) rgba(140, 146, 132, 0.48);
  background: rgba(48, 48, 40, 0.66);
  padding: 6px 8px 5px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.2;
}

.server-strip strong {
  display: block;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

#home-clock {
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: 0;
}

.lede {
  max-width: 72ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.professional-callout {
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.cs-btn {
  min-width: 124px;
  text-align: center;
}

.status-panel {
  width: 100%;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: 0 18px 42px var(--shadow);
}

.home-side {
  display: grid;
  align-content: start;
  gap: 14px;
  justify-items: end;
}

.headshot-panel {
  justify-self: end;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 42px var(--shadow);
  padding: 8px;
}

.headshot-panel img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 28%;
  border: 1px solid rgba(86, 81, 63, 0.78);
  filter: saturate(0.85) contrast(0.96);
}

.panel-title {
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

dl {
  margin: 0;
  padding: 12px;
}

dl div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(86, 81, 63, 0.65);
}

dl div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--text);
}

.cs-hr {
  margin: 34px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding: 8px 0 32px;
}

.about-copy {
  border: 1px solid var(--line);
  background: rgba(37, 37, 31, 0.56);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  padding: 18px;
}

.about-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.about-copy h2,
.about-copy p,
.tag-panel h2 {
  margin: 0;
}

.tag-panel {
  display: grid;
  gap: 24px;
  align-self: start;
  padding: 18px 0;
}

.mini-section h2 {
  margin: 0;
}

.credit-copy {
  margin: 14px 0 0;
  color: var(--muted);
}

.about-copy p {
  max-width: 72ch;
}

.about-copy p + p {
  padding-top: 14px;
  border-top: 1px solid rgba(86, 81, 63, 0.52);
}

.about-grid p,
.page-head p,
.article p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line);
  background: rgba(48, 48, 40, 0.7);
  padding: 4px 9px;
  color: var(--text);
  font-size: 0.88rem;
}

.log {
  padding-top: 8px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.post-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.post-row time {
  color: var(--accent-2);
  font-size: 0.88rem;
}

.post-row p {
  margin: 0;
  color: var(--muted);
}

.page-head {
  padding-bottom: 28px;
}

.page-head h1,
.article h1 {
  max-width: 16ch;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
}

.article {
  padding-bottom: 48px;
}

.article > .back-link,
.article header {
  width: min(100%, 92ch);
  margin-inline: auto;
}

.article header {
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article p {
  max-width: none;
  font-size: 1.08rem;
  line-height: 1.74;
  text-wrap: pretty;
}

.article-body {
  display: grid;
  gap: 24px;
  width: min(100%, 92ch);
  margin-inline: auto;
}

.article-body p {
  margin: 0;
}

.article-body p:first-child {
  color: var(--text);
  font-size: 1.14rem;
}

.article-break {
  width: min(220px, 42%);
  margin: 12px auto;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(231, 225, 201, 0.08);
}

.article-note {
  border: 1px solid var(--line);
  background: rgba(37, 37, 31, 0.56);
  padding: 14px 16px;
  color: var(--accent-2);
  font-size: 0.95rem;
}

.article-note-ai {
  color: var(--muted);
}

.comments-panel {
  width: min(100%, 96ch);
  margin: 12px auto 0;
  border: 1px solid;
  border-color: rgba(140, 146, 132, 0.8) rgba(41, 44, 33, 0.95) rgba(41, 44, 33, 0.95) rgba(140, 146, 132, 0.8);
  background: linear-gradient(180deg, rgba(62, 70, 55, 0.9), rgba(37, 37, 31, 0.92));
  box-shadow: 0 18px 42px var(--shadow);
}

.comments-titlebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 15, 0.5);
}

.comments-titlebar h2 {
  display: flex;
  align-items: center;
  margin: 0;
  border: 1px solid;
  border-color: rgba(140, 146, 132, 0.48) rgba(41, 44, 33, 0.86) rgba(41, 44, 33, 0.86) rgba(140, 146, 132, 0.48);
  background: rgba(48, 56, 39, 0.92);
  padding: 7px 10px 6px;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.comments-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px;
  margin: 0;
  padding: 0;
}

.comments-scoreboard div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid;
  border-color: rgba(140, 146, 132, 0.48) rgba(41, 44, 33, 0.86) rgba(41, 44, 33, 0.86) rgba(140, 146, 132, 0.48);
  background: rgba(48, 48, 40, 0.66);
  padding: 6px 8px 5px;
  min-width: 0;
}

.comments-scoreboard dt {
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.comments-scoreboard dd {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.comments-body {
  padding: 12px;
}

.giscus,
.giscus-frame {
  width: 100%;
}

.comments-setup {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(17, 17, 15, 0.35);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .article p {
    font-size: 1.125rem;
    line-height: 1.7;
  }

  .article-body,
  .article > .back-link,
  .article header {
    width: min(100%, 96ch);
  }
}

.site-credit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 20px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-credit-name {
  color: var(--text);
}

.site-credit-details {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
  justify-self: end;
  min-width: 0;
  text-align: right;
}

.site-credit-meta {
  color: var(--muted);
}

.site-credit-meta + .site-credit-meta::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 28px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .server-strip {
    width: min(100%, 330px);
  }

  h1 {
    max-width: 11ch;
  }

  .post-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .home-side {
    width: 100%;
    justify-self: stretch;
    justify-items: start;
  }

  .headshot-panel {
    justify-self: start;
    width: min(100%, 300px);
  }

  .status-panel {
    justify-self: start;
    width: min(100%, 330px);
  }

  .comments-titlebar,
  .comments-scoreboard {
    grid-template-columns: 1fr;
  }

  .comments-titlebar h2 {
    min-height: 34px;
  }
}

.draft-body {
  --bg: #4a5942;
  --panel: #3e4637;
  --panel-2: #303827;
  --text: #dedfd6;
  --muted: #a0aa95;
  --line: #292c21;
  --accent: #c4b550;
  --accent-2: #d8ded3;
  background:
    linear-gradient(rgba(41, 44, 33, 0.72), rgba(41, 44, 33, 0.84)),
    url("assets/radar.svg") center / min(840px, 110vw) auto fixed,
    #292c21;
}

.cs-draft-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.draft-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.cs-window {
  border: 1px solid;
  border-color: #8c9284 #292c21 #292c21 #8c9284;
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}

.cs-window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 6px;
  border-bottom: 1px solid #292c21;
  background: #3e4637;
  color: #fff;
}

.cs-window-title .close {
  margin-left: auto;
  min-width: 18px;
}

.window-icon {
  width: 16px;
  height: 15px;
  background: linear-gradient(90deg, #c4b550 0 55%, #70b3a2 55%);
  border: 1px solid #292c21;
}

.cs-window-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.player-card,
.menu-panel {
  border: 1px solid;
  border-color: #292c21 #8c9284 #8c9284 #292c21;
  background: #3e4637;
}

.player-card {
  padding: 12px;
}

.player-card h1 {
  max-width: none;
  margin-top: 12px;
  font-size: 2rem;
  line-height: 1.05;
}

.player-card p {
  margin-top: 10px;
  color: var(--accent-2);
}

.radar {
  display: block;
  width: 100%;
  border: 1px solid #292c21;
  image-rendering: pixelated;
}

.player-meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.player-meta span {
  border: 1px solid #292c21;
  background: #4a5942;
  padding: 5px 7px;
  color: #fff;
}

.draft-tabs .panel {
  min-height: 410px;
  padding: 20px;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
}

.menu-panel {
  padding: 14px;
}

.menu-panel h2 {
  color: #fff;
}

.menu-panel p {
  max-width: 48ch;
  margin-top: 14px;
  color: var(--accent-2);
}

.profile-notes {
  max-width: 620px;
}

.profile-notes p + p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #292c21;
  box-shadow: inset 0 1px 0 rgba(140, 146, 132, 0.35);
}

.radio-wrapper {
  margin: 12px 0;
}

.server-list {
  border: 1px solid;
  border-color: #292c21 #8c9284 #8c9284 #292c21;
  background: #303827;
}

.server-head,
.server-row {
  display: grid;
  grid-template-columns: minmax(245px, 1.45fr) minmax(145px, 0.8fr) 88px 78px;
  gap: 12px;
  padding: 9px 11px;
}

.server-head {
  color: #c4b550;
  background: #292c21;
}

.server-row {
  color: #dedfd6;
  text-decoration: none;
  border-top: 1px solid #292c21;
}

.mission-row {
  display: block;
}

.mission-row summary {
  display: grid;
  grid-template-columns: minmax(245px, 1.45fr) minmax(145px, 0.8fr) 88px 78px;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.mission-row summary::-webkit-details-marker {
  display: none;
}

.mission-row summary span:first-child::before {
  content: "+ ";
  color: #c4b550;
}

.mission-row[open] summary span:first-child::before {
  content: "- ";
}

.mission-row p {
  max-width: 72ch;
  margin: 10px 0 2px;
  padding-left: 16px;
  color: var(--accent-2);
}

.mission-row a {
  color: #c4b550;
}

.server-row:hover {
  color: #fff;
  background: #4a5942;
}

.server-browser {
  padding: 14px;
}

.link-list {
  margin-top: 12px;
}

.link-list .server-head,
.link-list .server-row {
  grid-template-columns: minmax(72px, 0.75fr) minmax(82px, 0.8fr) minmax(220px, 1.55fr) 38px;
  gap: 8px;
}

.cs-window-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 14px 14px;
}

@media (max-width: 900px) {
  .draft-topbar,
  .cs-window-body,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .draft-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .server-head {
    display: none;
  }

  .server-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .mission-row summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .mission-row summary span:first-child {
    grid-column: 1 / -1;
    color: #fff;
  }

  .mission-row summary span:nth-child(2) {
    grid-column: 1;
    color: var(--accent-2);
  }

  .mission-row summary span:nth-child(3) {
    grid-column: 2;
    justify-self: end;
    color: var(--muted);
    white-space: nowrap;
  }

  .mission-row summary span:nth-child(4) {
    grid-column: 1 / -1;
    justify-self: start;
    color: #c4b550;
  }

  .mission-row p {
    padding-left: 0;
  }

  .link-list .server-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .link-list .server-row span:first-child {
    grid-column: 1;
    color: #fff;
  }

  .link-list .server-row span:nth-child(2) {
    grid-column: 1;
    color: var(--accent-2);
  }

  .link-list .server-row span:nth-child(3) {
    grid-column: 1 / -1;
    color: var(--muted);
  }

  .link-list .server-row span:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    color: #c4b550;
    white-space: nowrap;
  }

  .link-list .server-row span:nth-child(4)::before {
    content: "ping ";
    color: var(--accent-2);
  }
}
