* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-style: normal;
}

html {
  --color-bg: #121211;
  --color-text: #f9f9f7;
  --color-muted: #bdbdbd;
  --u-thickness: 1.1px;
  --u-spacing: 0.4rem;
  --u-offset: 0.2rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--color-bg);
  font: 14px/1.45 "Lucida Console", Monaco, monospace;
  letter-spacing: 0.01em;
}

a,
body {
  color: var(--color-text);
}

::selection {
  background: var(--color-text);
  color: var(--color-bg);
}

main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ct {
  margin: 0 auto;
  padding: 0.6em 1.6em;
  max-width: 52ch;
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 0.6em;
}

h1 > a {
  text-decoration: none;
}

.ct > h2 {
  margin: 2em 0 1rem;
  font-size: 1.3em;
}

h2,
h3 {
  margin: 1.5em 0 1.3rem;
}

.h {
  position: relative;
  z-index: 2;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2em 0;
}

li {
  margin: 0.6rem 0;
  position: relative;
}

a {
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

a::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1em;
  z-index: -1;
}

a::after {
  content: "";
  position: absolute;
  bottom: calc(-1.1 * var(--u-offset));
  left: 0;
  right: 0;
  height: var(--u-thickness);
  background: repeating-linear-gradient(to right, var(--color-muted) 0, var(--color-muted) 2px, transparent 2px, transparent var(--u-spacing));
  transition: background 0.3s ease-out;
  opacity: 0.75;
}

a:hover::after {
  background: var(--color-muted);
  height: calc(var(--u-thickness) * 0.5);
}

a:focus,
a:hover {
  text-decoration: none;
}

footer {
  padding: 1em 0;
}

small,
sup {
  color: var(--color-muted);
  font-size: 0.8em;
}

sup {
  font-size: 0.7em;
}

small {
  display: block;
  margin-top: 1.5em;
  text-align: center;
}

.so {
  position: absolute;
  display: block;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
}

.sn {
  margin-top: 2rem;
  display: flex;
}

.sn li:not(:last-child)::after {
  content: "·";
  margin: 0 0.5em;
  color: var(--color-text);
  position: static;
  height: auto;
  background: 0 0;
}

.hr {
  margin: 2rem 0;
  display: block;
  font-size: 1.6em;
  line-height: 0.4em;
}

#gl {
  --size: 180px;
  display: block;
  width: 100%;
  max-width: var(--size);
  aspect-ratio: 220/295;
  margin: calc(-1 * var(--size) / 4 + 7px);
  background: 0 0;
  border: none;
  position: relative;
  z-index: -1;
  cursor: pointer;
}

#gl:active {
  cursor: pointer;
}

a.as {
  cursor: pointer;
  user-select: none;
}

a.as::selection {
  background: 0 0;
}

a:not(.img):hover {
  position: relative;
}

a:hover {
  cursor: pointer;
}

.pt li {
  padding: 0 0 0 0.6em;
}

.pt li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 68%;
  width: 0.6em;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1s ease;
}

.pt li:hover::before {
  transform: scaleX(2);
  transition-duration: 0.3s;
}

.pt li a {
  display: inline-block;
  margin-left: 0.6em;
  white-space: nowrap;
}

.ec {
  padding: 0 0.5em;
}
