* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --fg: #f4f4f4;
  --muted: #777777;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  padding: clamp(20px, 6vw, 72px);
  display: grid;
  place-items: center;
}

.app.is-detail {
  place-items: start center;
}

.compressor {
  width: min(100%, 680px);
  display: grid;
  justify-items: start;
  gap: 2px;
  text-align: left;
}

.line {
  width: auto;
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  margin: 0;
}

.inventory {
  display: grid;
  gap: 0;
  width: 100%;
}

[hidden] {
  display: none !important;
}

.inventory-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 0;
}

.inventory-prefix {
  color: var(--muted);
  margin-right: 6px;
  user-select: none;
}

.inventory-label {
  /* sits next to badge */
}

.inventory-badge {
  color: var(--muted);
  white-space: nowrap;
  user-select: none;
}

.inventory button,
.home-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
}

.content {
  width: min(100%, 680px);
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.content-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-item {
  display: grid;
  gap: 2px;
}

.content-title {
  color: var(--fg);
}

a.content-title {
  text-decoration: none;
}

a.content-title:hover,
a.content-title:focus-visible,
.content-button:hover,
.content-button:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-button {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.content-meta {
  color: var(--muted);
}

.content-body {
  margin-top: 4px;
  white-space: pre-wrap;
}

.content a {
  color: inherit;
}

.content a:hover,
.content a:focus-visible {
  color: var(--fg);
  outline: none;
}

.project-page {
  display: grid;
  gap: 12px;
}

.project-page h1,
.markdown h2,
.markdown h3,
.markdown h4,
.project-summary,
.project-meta,
.project-links,
.markdown p,
.markdown ul,
.markdown pre {
  margin: 0;
}

.project-page h1,
.markdown h2,
.markdown h3,
.markdown h4 {
  color: var(--fg);
  font: inherit;
}

.project-summary {
  color: var(--fg);
}

.project-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.project-media {
  display: grid;
  gap: 8px;
  margin: 4px 0;
}

.project-media img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid #161616;
  background: #050505;
}

.article-image {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid #161616;
  background: #050505;
  margin-top: 8px;
}

.markdown {
  display: grid;
  gap: 10px;
}

.markdown ul {
  padding-left: 16px;
}

.markdown li + li {
  margin-top: 3px;
}

.markdown pre {
  overflow-x: auto;
  padding: 10px;
  border: 1px solid #161616;
  color: var(--fg);
  background: #050505;
  white-space: pre-wrap;
}

.inventory button:focus-visible {
  color: #ffffff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-link:hover,
.home-link:focus-visible {
  color: #ffffff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
