/* ============================================================
   project-page.css — individual project writeup pages
   Loaded by every file in projects/<name>.html
   ============================================================ */

/* Tighter top spacing on the writeup itself so the back link sits close */
.project-back {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.project-back:hover { color: var(--accent); opacity: 1; }

/* Metadata strip just under the project title — date, stack, repo link */
.project-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.project-meta span { color: var(--accent); }

/* ===== Heading hierarchy =====
   h1 biggest, each level smaller than the last. Mono throughout so headings
   read as section labels in a terminal writeup, not document chrome.
   These override base.css's h1/h2 inside .writeup only. */
.writeup h1 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 1.5rem;
}
.writeup h2 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}
.writeup h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
.writeup h4 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}
.writeup h5 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}
.writeup h6 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem 0 0.5rem;
}

/* Prose spans the full container width (as wide as the header), left-aligned */
/*.writeup p { }*/

/* Lists: flush with the article's left edge so bullets line up with
   headings + paragraphs + the navbar above. The marker is rendered with
   ::before so the indent only affects each line individually, not the
   block's outer left edge. */
.writeup ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  color: var(--muted);
}
.writeup ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
}
.writeup ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.writeup ul li strong { color: var(--text); font-weight: 600; }

/* Inline code-style spans for file paths, commands, flags.
   Pulls in the dark terminal background so they stand out from prose. */
.writeup code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: #010409;
  border: 1px solid var(--border);
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  color: var(--text);
}

/* Block warning callout — used for the BTRFS note */
.callout {
  border-left: 2px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--muted);
  background: rgba(126, 231, 135, 0.04);
}
.callout strong { color: var(--accent); font-weight: 600; }

/* ===== Images =====
   Block-level, responsive, never overflow the prose column.
   Same thin border + radius as the .terminal block so images
   feel like a first-class part of the writeup.
   `margin: 2rem auto` centers narrow images inside the container. */
.writeup img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.writeup figure {
  /* Full content width, centered; caption centers under the image. */
  margin: 2rem auto;
  max-width: 100%;
}

.writeup figure img {
  /* Fill the figure so the image is as wide as the body content.
     The figure handles outer spacing, so no image margin. */
  width: 100%;
  margin: 0;
}

.writeup figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: center;
}

/* ===== Terminal window =====
   The chrome around the fastfetch output: pure black inside,
   thin border, rounded corners, monospace at a small size. */
.terminal {
  background: #010409;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 2.25rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  overflow: hidden;  /* clips children to the rounded corners */
  max-width: min(920px, 100%);
}

/* Title bar at the top of the terminal — GNOME-style dark grey strip */
.term-bar {
  background: #2D2D2D;
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;  /* title left, window controls right */
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
}

/* The "anaximander@gentoo: ~" label — brighter than the window controls */
.term-bar .title { color: var(--text); }

/* The terminal body — content padding, horizontal scroll if it overflows */
.term-body { padding: 1rem 1.1rem; overflow-x: auto; }

.t-user { color: var(--accent); }  /* user@host — bold green */
.t-path { color: #79C0FF; }                           /* "~" path — blue */
.t-key { color: var(--accent); }                      /* field labels (OS, CPU…) */
