:root {
  --bg: #000000;
  --panel: #070707;
  --panel-alt: #0d0d0d;
  --text: #ededed;
  --muted: #8f8f8f;
  --line: #242424;
  --accent: #b9d0b5;
  --accent-strong: #dfe9dc;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 4px
    ),
    var(--bg);
  color: var(--text);
  font: 16px/1.72 Verdana, Geneva, Tahoma, sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  background: var(--accent-strong);
  color: #000000;
  text-decoration: none;
}

.page-shell {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.9);
}

.topline,
.site-kicker,
.site-tagline,
.top-nav,
.post-date,
.site-footer,
h2,
.social-list span {
  font-family: "Lucida Console", Monaco, "Courier New", monospace;
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.path-link,
.path-current,
.path-sep {
  display: inline-block;
  padding: 0 2px;
}

.path-link {
  color: var(--muted);
  text-decoration: none;
}

.path-link:hover,
.path-link:focus {
  color: #000000;
}

.path-current {
  color: var(--accent-strong);
}

.path-sep {
  color: var(--muted);
}

.site-header,
.top-nav,
.panel {
  border: 1px solid var(--line);
}

.site-header {
  background: var(--panel);
  padding: 16px;
}

.hero-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: start;
}

.hero-copy > *:last-child {
  margin-bottom: 0;
}

.photo-slot {
  width: 100%;
}

.photo-slot__inner {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-alt);
}

.photo-slot__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.92) contrast(1.04);
}

.compact-header {
  padding-bottom: 12px;
}

.site-kicker,
.site-tagline,
.post-date,
.site-footer {
  color: var(--muted);
  font-size: 0.92rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font: 400 clamp(2.1rem, 8vw, 3.8rem) / 1.08 "Trebuchet MS", Verdana, sans-serif;
  letter-spacing: 0.02em;
}

.home-title::after {
  content: "_";
  margin-left: 2px;
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  background: var(--panel);
}

.top-nav a {
  display: inline-block;
  width: fit-content;
  padding: 2px 6px;
  color: var(--accent);
  text-decoration: none;
}

.top-nav a::before {
  content: "> ";
  color: var(--text);
}

.top-nav a[aria-current="page"] {
  background: var(--accent-strong);
  color: #000000;
}

.top-nav a[aria-current="page"]::before {
  color: #000000;
}

.panel {
  margin-bottom: 14px;
  padding: 16px;
  background: var(--panel-alt);
}

.hover-note {
  display: inline-block;
  position: relative;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: help;
}

.hover-note:focus {
  outline: 1px dotted var(--accent);
  outline-offset: 2px;
}

.hover-note__text {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  min-width: max-content;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-family: "Lucida Console", Monaco, "Courier New", monospace;
  font-size: 0.9em;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;
  pointer-events: none;
}

.hover-note:hover .hover-note__text,
.hover-note:focus .hover-note__text,
.hover-note:focus-within .hover-note__text {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.green-underline {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.intro-panel p:last-child,
.panel p:last-child,
.panel ul:last-child,
.post-card h2 {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding-left: 20px;
}

.social-list {
  list-style: none;
  padding-left: 0;
}

.social-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.social-list span {
  width: 110px;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: lowercase;
}

.site-footer {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .page-shell {
    width: min(100% - 20px, 760px);
    margin: 10px auto 18px;
    padding: 10px;
  }

  .topline {
    flex-direction: column;
    gap: 4px;
  }

  .breadcrumb {
    flex-direction: row;
    gap: 0;
  }

  .hero-header {
    grid-template-columns: 1fr;
  }

  .photo-slot {
    max-width: 220px;
  }

  .split-panel {
    grid-template-columns: 1fr;
  }

  .social-list span {
    width: auto;
    min-width: 92px;
  }
}
