@font-face {
  font-family: Montserrat;
  src: url("montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Code;
  src: url("source-code-pro.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ink: #172a38;
  --muted: #536875;
  --line: #d3dfe4;
  --accent: #086d65;
  --nav: #102d38;
  --mono: Code,ui-monospace,monospace;
  font: 15px/1.6 Montserrat,system-ui,sans-serif;
  color: var(--ink);
  background: #f4f7f8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none!important;
}

body {
  margin: 0;
}

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

a:hover {
  text-decoration: underline;
}

button,.primary {
  cursor: pointer;
  font-family: inherit;
  font-size: .94rem;
  line-height: 1.4;
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: .65rem 1rem;
  background: var(--accent);
  color: white;
}

button:hover,.primary:hover {
  filter: brightness(.93);
}

button:disabled {
  opacity: .55;
  cursor: wait;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible {
  outline: 3px solid #db9035;
  outline-offset: 3px;
}

header {
  background: var(--nav);
  border-bottom: 3px solid #5cccb3;
  color: white;
}

.bar,main {
  width: min(1190px,calc(100% - 64px));
  margin: auto;
}

.bar,.brand,nav,.accountNav,.split,.tools,.tabs {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bar {
  min-height: 70px;
  gap: 32px;
}

.brand,.bar a {
  color: white;
  text-decoration: none;
}

.brand {
  gap: 9px;
  font-weight: 780;
  font-size: 1.14rem;
  white-space: nowrap;
  letter-spacing: -.04em;
}

.mark {
  font: 800 1rem var(--mono);
  display: grid;
  place-items: center;
  width: 31px;
  height: 34px;
  background: #a5edd5;
  color: var(--nav);
  clip-path: polygon(0 0,100% 0,100% 70%,50% 100%,0 70%);
}

nav {
  align-self: stretch;
  gap: 4px;
}

nav a,.accountNav a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: .86rem;
  font-weight: 600;
}

.bar a[aria-current] {
  background: #214552;
  color: #b9fae6;
  box-shadow: inset 0 -3px #79dec5;
}

.accountNav {
  margin-left: auto;
  gap: 4px;
}

.quiet {
  color: var(--accent);
  background: white;
  border-color: var(--line);
}

.accountNav button {
  background: transparent;
  color: #dae6e9;
  border-color: #58717c;
}

main {
  padding: 40px 0 74px;
}

.skip {
  position: absolute;
  left: 1em;
  top: -100px;
  background: white;
  padding: .5em;
  z-index: 5;
}

.skip:focus {
  top: 0;
}

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

h1,h2,h3 {
  line-height: 1.15;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(2rem,4vw,3.8rem);
  margin: .12em 0 .28em;
}

h2 {
  font-size: clamp(1.25rem,2.4vw,1.65rem);
  margin: 0 0 .75em;
}

h3 {
  margin: 1.6em 0 .5em;
}

.pageTitle {
  padding: 10px 0 20px;
}

.pageTitle p,.context {
  margin: .25rem 0;
  color: var(--muted);
}

.mode,.credit,.stats dt,.context,#revision,#health,#clock,th {
  font-family: var(--mono);
}

.mast,.loginPhoto {
  position: relative;
  background: linear-gradient(90deg,rgba(8,28,39,.94),rgba(8,28,39,.71) 45%,rgba(8,28,39,.18)),url("goldstone.webp") center 58%/cover;
  color: white;
}

.mast {
  border-radius: 14px;
  min-height: 320px;
  display: grid;
  align-items: center;
  padding: clamp(25px,5vw,66px);
  overflow: hidden;
}

.mastCopy {
  max-width: 85%;
}

.mast h1 {
  max-width: 20ch;
  margin: .15em 0;
}

.mode {
  color: #acf3db;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}

.mast #clock {
  color: #e2eeee;
  margin: 12px 0 25px;
}

.primary {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  background: #abeed8;
  color: #14332e;
  text-decoration: none;
}

.credit {
  position: absolute;
  bottom: 8px;
  right: 13px;
  font-size: .65rem;
  color: white;
  text-shadow: 0 1px 3px #000;
}

.stats,.links {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin: 20px 0;
}

.panel,#detail,.stats>div,.links>a,.loginWrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.panel,#detail,.stats>div,.links>a {
  padding: clamp(17px,2.6vw,32px);
}

.panel,#detail {
  margin-bottom: 18px;
}

.stats dt {
  color: var(--muted);
  font-size: .84rem;
}

.stats dd {
  font: 600 clamp(1.6rem,3vw,2.6rem)/1.35 var(--mono);
  margin: .25em 0 0;
  letter-spacing: -.06em;
}

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

.links>a {
  position: relative;
  text-decoration: none;
  display: grid;
  gap: 6px;
  padding-right: 42px;
}

.links strong {
  font-size: 1.2rem;
  color: var(--ink);
}

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

.links b {
  position: absolute;
  top: 24px;
  right: 22px;
}

.split {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.split h2 {
  margin: 0;
}

.tools {
  flex-wrap: wrap;
  margin: 15px 0;
}

.tabs {
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #eff4f5;
}

.tabs button {
  padding: 6px 12px;
  color: var(--muted);
  background: transparent;
}

.tabs [aria-pressed=true] {
  color: white;
  background: var(--nav);
}

.scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  font-size: .76rem;
  color: var(--muted);
  background: #eff4f5;
  white-space: nowrap;
}

td {
  overflow-wrap: anywhere;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f7fbfa;
}

.scoreboard td:first-child {
  font-family: var(--mono);
  font-weight: bold;
}

.scoreboard td:nth-child(4) {
  font: 650 1rem var(--mono);
}

.scoreboard a {
  font-weight: 650;
}

.empty,.context,#health {
  color: var(--muted);
}

.prose {
  max-width: 82ch;
}

.prose p,#description {
  white-space: pre-line;
}

.roster {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  gap: 12px;
}

.roster li {
  border-left: 3px solid #72c6aa;
  padding-left: 9px;
}

.loginWrap {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  max-width: 920px;
  margin: 6vh auto;
}

.loginPhoto {
  padding: 36px;
  font-size: 1.4rem;
}

.loginForm {
  padding: clamp(20px,4vw,52px);
  align-self: center;
}

.loginForm h1 {
  font-size: 2rem;
}

.forms details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.forms details:last-child {
  border: 0;
}

.forms summary {
  font-weight: 650;
  cursor: pointer;
}

form {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  max-width: 56rem;
}

form button {
  justify-self: start;
}

label {
  display: grid;
  gap: 5px;
  font-weight: 600;
}

input:not([type=checkbox]),textarea,select {
  width: 100%;
  max-width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid #aebfc6;
  border-radius: 5px;
  padding: 8px;
  background: #fff;
}

input[type=checkbox] {
  justify-self: start;
}

textarea {
  min-height: 92px;
}

pre {
  padding: 15px;
  background: #132d38;
  color: #dbefe8;
  border-radius: 7px;
  overflow: auto;
}

#message {
  border-left: 3px solid var(--accent);
  background: #e2f5ee;
  padding: 10px 14px;
}

#detail {
  scroll-margin: 20px;
}

@media(max-width:850px) {
  .bar {
    flex-wrap: wrap;
    padding-top: 12px;
    gap: 6px 16px;
  }
  .accountNav {
    order: 1;
  }
  nav {
    order: 2;
    width: 100%;
    overflow: auto;
  }
  nav a {
    padding: 11px 9px;
  }
  .bar,main {
    width: calc(100% - 32px);
  }
  main {
    padding-top: 22px;
  }
  .stats,.links {
    gap: 9px;
  }
}

@media(max-width:600px) {
  .stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stats>div:last-child {
    grid-column: 1/-1;
  }
  .links,.loginWrap {
    grid-template-columns: 1fr;
  }
  .mastCopy {
    max-width: 100%;
  }
  .mast {
    min-height: 265px;
  }
  .loginWrap {
    margin: 0;
  }
  .loginPhoto {
    min-height: 122px;
  }
  .accountNav a,.accountNav button {
    font-size: .77rem;
    padding: 6px;
  }
  .brand {
    font-size: .96rem;
  }
  .bar {
    gap: 8px;
  }
  .scoreboard table {
    min-width: 540px;
  }
  .scroll {
    max-width: 100%;
  }
  .panel,#detail {
    min-width: 0;
  }
  .tabs button {
    padding: 5px 8px;
  }
  th,td {
    padding: 9px 7px;
  }
}
