*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #f2f2f2;
}

html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

::selection {
  background: #2a2a2a;
  color: #fff;
}

a {
  color: #7eb6f8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

code {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.86em;
}

.shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 40px 32px;
  border-right: 1px solid #222;
  background: #000;
}

.mark {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 0 22px;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 2vw + 1.4rem, 3.1rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.count {
  margin-top: auto;
  padding-top: 24px;
}

.count-label {
  margin: 0 0 8px;
  font-size: 14px;
  color: #9a9a9a;
}

.count-nums {
  margin: 0;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.count-nums span {
  display: inline-block;
  min-width: 1.4ch;
}

.count-nums small {
  margin-right: 0.55rem;
  margin-left: 0.12rem;
  font-size: 0.65em;
  font-weight: 400;
  color: #9a9a9a;
}

.count-nums small:last-child {
  margin-right: 0;
}

.main {
  min-height: 100vh;
  padding: 48px 56px 80px;
  background: #111;
}

.main p,
.times,
.qa,
h2 {
  max-width: 40rem;
}

.main p {
  margin: 0 0 1em;
}

h2 {
  margin: 2.4rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.times {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  column-gap: 1.2rem;
  row-gap: 0.55rem;
  margin: 0.2rem 0 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}

.times dt {
  margin: 0;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.92em;
}

.times dd {
  margin: 0;
}

.qa > div {
  max-width: 40rem;
  padding: 0.95rem 0 1.05rem;
  border-top: 1px solid #2a2a2a;
}

.qa > div:last-child {
  border-bottom: 1px solid #2a2a2a;
}

.q {
  margin: 0 0 0.3rem;
  font-weight: 700;
}

.a {
  margin: 0;
  color: #9a9a9a;
}

.end {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #2a2a2a;
}

.face {
  display: block;
  width: 180px;
  height: auto;
  margin-top: 2.4rem;
}

@media (max-width: 800px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
    height: auto;
    padding: 22px 20px 18px;
    border-right: 0;
    border-bottom: 1px solid #222;
  }

  .count {
    margin-top: 18px;
    padding-top: 0;
  }

  .mark {
    width: 84px;
    margin-bottom: 12px;
  }

  .main {
    padding: 24px 20px 64px;
  }

  .times {
    grid-template-columns: 1fr;
    row-gap: 0.12rem;
  }

  .times dt {
    margin-top: 0.75rem;
  }

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