:root {
  --bg: #000000;
  --header: #000000;
  --ink: #f7f4ef;
  --muted: #b7aea3;
  --line: rgba(231, 215, 193, 0.22);
  --beige: #e7d7c1;
  --white: #ffffff;
  --pill: #141414;
  --sans: "Inter", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --script: "Allura", cursive;
  --column: 36rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--beige);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--beige);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 20;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 1.75rem 0.85rem;
}

.mark {
  display: inline-block;
  font-family: var(--script);
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--beige);
  text-decoration: none;
  position: relative;
  top: 0.18em;
}

.nav-bar {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin-top: 0.85rem;
}

.nav nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}

.nav nav a:hover,
.nav nav a[aria-current] {
  color: var(--beige);
  border-bottom-color: var(--beige);
}

.menu-btn {
  display: none;
}

main {
  padding: 2.75rem 1.5rem 1rem;
}

.portrait {
  margin: 0 auto 2.25rem;
  width: min(200px, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 82%;
  display: block;
}

.column {
  width: min(var(--column), 100%);
  margin: 0 auto;
}

.block {
  scroll-margin-top: 7.5rem;
}

.block + .block {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.label {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose p,
.intro,
.entry p,
.log p {
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.prose strong {
  font-weight: 600;
}

.pill {
  appearance: none;
  border: 0;
  border-radius: 0.4rem;
  background: var(--pill);
  color: var(--beige);
  font: 400 0.95rem/1 var(--sans);
  padding: 0.55rem 0.95rem;
  cursor: pointer;
}

.pill:hover {
  background: #242424;
  color: var(--white);
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.chips li {
  border-radius: 999px;
  background: var(--pill);
  color: var(--beige);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.28rem 0.75rem;
}

.entry h2,
.log h2 {
  margin: 0 0 0.25rem;
  font: 500 1rem/1.35 var(--sans);
  color: var(--white);
}

.log-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.log-link:hover h2 {
  color: var(--beige);
}

.quiet {
  color: var(--beige);
  text-decoration: none;
  font-style: italic;
}

.quiet:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.log {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
}

.log li {
  padding: 0.15rem 0 0;
}

.log li + li {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.log time {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.log p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.essay h1 {
  margin: 0 0 0.45rem;
  font: 500 1.45rem/1.35 var(--sans);
  color: var(--white);
}

.essay time {
  display: block;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.essay-art {
  margin: 0 0 1.75rem;
}

.essay-art img {
  display: block;
  width: min(22rem, 86%);
  height: auto;
  margin: 0 auto;
}

.note p {
  margin: 0 0 0.95rem;
  color: var(--ink);
  font-size: 1rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.note cite {
  font-style: italic;
}

.signoff {
  margin: 1.75rem 0 0;
  font-family: var(--script);
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1;
  color: var(--beige);
}

.label a {
  color: inherit;
  text-decoration: none;
}

.label a:hover {
  color: var(--beige);
}

.socials {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 1.75rem;
}

.socials a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 4rem;
  color: var(--beige);
  text-decoration: none;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.social-mark {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.social-mark svg {
  width: 0.7rem;
  height: 0.7rem;
  display: block;
}

.socials a:hover {
  color: var(--white);
}

.game canvas {
  width: 100%;
  height: 260px;
  display: block;
  background: #3a1812;
  border: 1px solid var(--line);
  border-radius: 12px;
  touch-action: none;
  cursor: crosshair;
}

.game-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.game-note {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  margin-top: 3.5rem;
  padding: 2.5rem 1.5rem 2.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin: 0.35rem 0;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--beige);
}

@media (max-width: 720px) {
  .nav {
    padding: 0.7rem 1.15rem 0.65rem;
  }

  .nav-bar {
    min-height: 2.75rem;
  }

  .mark {
    font-size: 2.05rem;
  }

  .menu-btn {
    display: grid;
    place-items: center;
    position: absolute;
    right: 0.15rem;
    top: calc(50% + 0.12em);
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    margin-right: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--beige);
    cursor: pointer;
  }

  .menu-icon {
    position: relative;
    display: block;
    width: 1.35rem;
    height: 1.5px;
    background: currentColor;
  }

  .menu-icon::before,
  .menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
  }

  .menu-icon::before {
    top: -0.42rem;
  }

  .menu-icon::after {
    top: 0.42rem;
  }

  .nav.is-open .menu-icon {
    background: transparent;
  }

  .nav.is-open .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav.is-open .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav nav {
    display: none;
    margin-top: 0.7rem;
  }

  .nav.is-open {
    z-index: 40;
    background: #000;
    border-bottom: 0;
  }

  .nav.is-open .mark,
  .nav.is-open .menu-btn {
    color: var(--beige);
  }

  .nav.is-open nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: #000;
    animation: menu-drop 0.28s ease;
  }

  .nav.is-open nav a {
    padding: 1.05rem 1.5rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
  }

  .nav.is-open nav a:first-child {
    border-top: 1px solid var(--line);
  }

  .nav.is-open nav a:hover,
  .nav.is-open nav a[aria-current] {
    color: var(--beige);
    border-bottom-color: var(--line);
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {

  .log-link {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .log time {
    order: -1;
  }
}

@keyframes menu-drop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav.is-open {
    animation: none;
  }
}
