@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --background: #080808;
  --text: #e5e5e5;
  --secondary: #b0b0b0;
  --muted: #a5a5a5;
  --highlight: #ffffff;
  --scrim-center: #080808b8;
  --scrim-edge: #08080880;
  --scrim-mobile: #08080870;
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
:root[data-theme="light"] {
  color-scheme: light;
  --background: #ffffff;
  --text: #242424;
  --secondary: #555555;
  --muted: #555555;
  --highlight: #000000;
  --scrim-center: #ffffffb8;
  --scrim-edge: #ffffff80;
  --scrim-mobile: #ffffff70;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--background);
  scrollbar-width: none;
  overscroll-behavior: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
}
body {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100svh;
  overscroll-behavior: none;
}
::selection {
  background: #555;
  color: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--highlight);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 1px solid var(--secondary);
  outline-offset: 5px;
  border-radius: 2px;
}
.artwork {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
}
.hands {
  position: absolute;
  width: max(100%, 900px);
  max-width: none;
  aspect-ratio: 1140 / 320;
  background: url("../assets/creation-hands.svg") center / contain no-repeat;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  opacity: 0.33;
  animation: materialize 1.4s ease-out both;
}
/* The soft shadow behind the reading column preserves legibility without a card. */
.artwork::before,
.artwork::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(
    ellipse 390px 400px at 50% 45%,
    var(--scrim-center) 0%,
    var(--scrim-edge) 48%,
    transparent 100%
  );
}
.artwork::before {
  --scrim-center: #080808b8;
  --scrim-edge: #08080880;
  --scrim-mobile: #08080870;
}
.artwork::after {
  --scrim-center: #ffffffb8;
  --scrim-edge: #ffffff80;
  --scrim-mobile: #ffffff70;
  opacity: 0;
}
:root[data-theme="light"] .artwork::before {
  opacity: 0;
}
:root[data-theme="light"] .artwork::after {
  opacity: 1;
}
:root[data-theme="light"] .hands {
  filter: invert(1);
}
main {
  position: relative;
  width: min(100% - 48px, 536px);
  margin: auto;
  padding: 0;
  overflow-anchor: none;
}
/* Keep the changing text on its own layer during the reveal. */
.terminal-revealing {
  will-change: transform;
}
.terminal-reveal-run {
  display: contents;
}
.terminal-reveal-word {
  position: relative;
}
.terminal-reveal-word > .terminal-reveal-source {
  opacity: 0;
}
.terminal-reveal-glyphs {
  position: absolute;
  inset: 0;
  contain: strict;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
@media (prefers-reduced-motion: reduce) {
  .terminal-reveal-word > .terminal-reveal-source {
    opacity: 1;
  }
  .terminal-reveal-glyphs {
    display: none;
  }
}
h1 {
  margin: 0 0 15px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 550;
  letter-spacing: -0.8px;
}
.intro {
  position: relative;
}
.theme-toggle {
  position: absolute;
  top: -7px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--secondary);
  cursor: pointer;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle span {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.theme-toggle:hover {
  color: var(--highlight);
}
.intro p {
  color: var(--secondary);
  margin: 0;
  line-height: 1.75;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--secondary);
}
nav a {
  padding: 3px 0;
}
nav a > span[aria-hidden="true"] {
  font-size: 11px;
  margin-left: 3px;
  color: var(--muted);
}
section {
  margin-top: 28px;
}
h2 {
  width: fit-content;
  padding: 1px 5px;
  background: #393939;
  margin: 0 0 13px;
  color: #eeeeee;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.07em;
}
:root[data-theme="light"] h2 {
  background: #e5e2dc;
  color: #333333;
}
.entry {
  position: relative;
  margin-bottom: 8px;
}
.entry-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
}
.entry button {
  display: flex;
  flex: 1;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  min-width: 0;
  padding: 5px 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.entry-name {
  font-weight: 450;
  transition: color 180ms;
}
.entry-meta {
  font-family: inherit;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.visit {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 34px;
  flex: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  transition:
    color 180ms,
    transform 180ms;
}
.visit:hover {
  transform: translate(1px, -1px);
}
.description {
  margin: 0 40px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.65;
  padding: 3px 0 8px;
}
.description a,
.intro p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-name sup {
  font-size: 0.65em;
  line-height: 0;
  vertical-align: super;
}
.description-reveal {
  display: grid;
  grid-template-rows: 1fr;
}
.description-clip {
  min-height: 0;
  overflow: hidden;
}
.enhanced .description-reveal {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows 260ms ease,
    visibility 0s linear 260ms;
}
.enhanced .entry[data-revealed="true"] .description-reveal {
  grid-template-rows: 1fr;
  visibility: visible;
  transition:
    grid-template-rows 260ms ease,
    visibility 0s;
}
.enhanced .description {
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}
.enhanced .entry[data-revealed="true"] .description {
  opacity: 1;
  transform: none;
}
.entry[data-revealed="true"] .entry-name,
.entry[data-revealed="true"] .visit {
  color: var(--highlight);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
  padding-top: 18px;
  align-items: baseline;
}
.background-note {
  position: relative;
}
.background-note summary {
  list-style: none;
  cursor: pointer;
  padding: 5px 0;
}
.background-note summary::-webkit-details-marker {
  display: none;
}
.background-note summary:hover {
  color: var(--highlight);
}
.background-popover {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(320px, calc(100vw - 48px));
  padding: 18px;
  background: var(--background);
  color: var(--secondary);
  border: 1px solid var(--muted);
  border-radius: 5px;
  box-shadow: 0 8px 32px #00000022;
  font-size: 13px;
  line-height: 1.65;
}
.background-popover p {
  margin: 0 0 10px;
}
.background-popover a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.background-note[open] .background-popover {
  animation: note-in 160ms ease-out both;
}
@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes materialize {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.33;
  }
}
@media (min-width: 1600px) {
  .hands {
    top: 17%;
  }
}
@media (max-width: 600px) {
  body {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  main {
    width: calc(100% - 48px);
  }
  .hands {
    width: 900px;
    top: 28%;
    opacity: 0.25;
    animation: none;
  }
  .artwork::before,
  .artwork::after {
    background: linear-gradient(
      90deg,
      transparent,
      var(--scrim-mobile) 18%,
      var(--scrim-mobile) 82%,
      transparent
    );
  }
  section {
    margin-top: 24px;
  }
  .entry button {
    min-height: 44px;
    gap: 12px;
  }
  .visit {
    min-height: 44px;
    width: 36px;
    flex-basis: 36px;
  }
  .entry-line {
    gap: 5px;
  }
  .entry-meta {
    font-size: 13px;
  }
  .description {
    font-size: 12px;
    margin-right: 16px;
  }
  footer {
    margin-top: 20px;
  }
}
@media (max-width: 360px) {
  main {
    width: calc(100% - 36px);
  }
  .entry button {
    flex-wrap: wrap;
    gap: 0 10px;
  }
  .entry-meta {
    margin-left: auto;
  }
  .entry-name {
    font-size: 14px;
  }
  footer {
    font-size: 10px;
    gap: 8px;
  }
}
/* Enabled only by an explicit toggle, never during saved-theme restoration. */
.theme-ready,
.theme-ready
  :is(
    body,
    .intro p,
    nav,
    h2,
    .entry button,
    .entry-name,
    .entry-meta,
    .description,
    footer,
    .theme-toggle,
    .background-popover,
    a,
    summary
  ) {
  transition:
    background-color 350ms ease,
    color 350ms ease,
    border-color 350ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}
.theme-ready .hands {
  transition: filter 350ms ease;
}
.theme-ready .artwork::before,
.theme-ready .artwork::after {
  transition: opacity 350ms ease;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-height: 650px) {
  body {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  nav {
    margin-top: 14px;
  }
  section {
    margin-top: 12px;
  }
  .entry {
    margin-bottom: 2px;
  }
  footer {
    margin-top: 12px;
    padding-top: 12px;
  }
}
@media (forced-colors: active) {
  .artwork {
    display: none;
  }
  .entry button {
    color: ButtonText;
  }
  a {
    color: LinkText;
  }
}
