/* =============================================================
   style.css: shared styles for the two pages of the portfolio
   Used by:  index.html (home + working log) and about.html
   Goal:     simple, clean, minimal. One column, little decoration.
   Colours and fonts are the same as before (brand continuity);
   the old v3.4 "lab look" (textures, shadows, bento grid) is gone.
   ============================================================= */

/* ============ Design tokens: every colour and font is defined once here ============ */
:root{
  --bg: #0b0f12;          /* page background */
  --surface: #11171b;     /* terminal blocks, cards */
  --line: #22303a;        /* borders */
  --line-soft: #1a242b;   /* section dividers */
  --ink: #e6edf0;         /* main text */
  --ink-2: #c3d0d6;       /* secondary text */
  --muted: #93a4ad;       /* muted text */
  --muted-2: #7d8f99;     /* labels, dates */
  --accent: #46e08a;      /* green: links, buttons, prompt */
  --cyan: #54c7d6;        /* entry kind (log / note) */
  --amber: #f2b84b;       /* in progress, text still to write */
  --maxw: 760px;          /* one readable column */
  /* IBM Plex is used if it is installed locally; nothing is downloaded */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ============ Base ============ */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{ margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1,h2,h3,p,dl,dd{ margin: 0; }
ul{ margin: 0; padding: 0; list-style: none; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }
*:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden]{ display: none !important; }
.mono{ font-family: var(--font-mono); }
.skip-link{ position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--bg); padding: 10px 16px; }
.skip-link:focus{ left: 16px; top: 16px; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

/* ============ Layout: one centred column ============ */
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* Sections: a visible divider (--line instead of --line-soft) and more space, so each block reads as its own part */
.section{ padding: 64px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.section h2{ font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.sub{ color: var(--muted); }
section[id]{ scroll-margin-top: 72px; }   /* jump links land below the sticky header */

/* ============ Header: name left, two links right ============ */
.site-header{ position: sticky; top: 0; z-index: 20; background: rgba(11,15,18,.92); border-bottom: 1px solid var(--line-soft); }
.header-inner{ max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand{ display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-mono); font-weight: 600; font-size: 15px; }
.brand:hover{ text-decoration: none; }
.brand-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.brand-host{ color: var(--muted-2); font-weight: 400; }
.nav{ display: flex; gap: 4px; font-family: var(--font-mono); font-size: 14px; }
.nav a{ color: var(--ink-2); padding: 8px 10px; }
.nav a:hover, .nav a[aria-current="page"]{ color: var(--accent); text-decoration: none; }

/* ============ Intro: eyebrow, title, lead, buttons ============ */
.intro{ padding: 88px 0 64px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow{ font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--accent); }
.intro h1{ font-size: clamp(30px, 5vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.intro h1 .soft{ color: var(--muted); }
.lead{ font-size: 18px; color: var(--ink-2); }
.btn-row{ display: flex; flex-wrap: wrap; gap: 12px; }
.btn{ font-size: 15px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.btn:hover{ border-color: var(--accent); text-decoration: none; }
.btn-primary{ background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }

/* ============ Working log: one row per entry (date · kind · title · teaser) ============ */
.log-list{ border-top: 1px solid var(--line); }
.log-list a{ display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 20px; row-gap: 4px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.log-list a:hover{ text-decoration: none; }
.log-list a:last-of-type{ border-bottom: none; }   /* no line under the last entry: the next section's divider follows */
.log-list a:hover .log-title{ color: var(--accent); }
.log-date{ font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); padding-top: 3px; }
.log-kind{ color: var(--cyan); }
.log-title{ font-weight: 600; }
.log-teaser{ grid-column: 2; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px){ .log-list a{ grid-template-columns: minmax(0, 1fr); } .log-teaser{ grid-column: 1; } }

/* ============ Label → value rows (what I run, background) ============ */
.rows{ display: grid; grid-template-columns: 120px minmax(0, 1fr); row-gap: 10px; column-gap: 16px; }
.rows dt{ font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); padding-top: 3px; }
.rows dd{ color: var(--ink-2); }
@media (max-width: 560px){ .rows{ grid-template-columns: minmax(0, 1fr); row-gap: 2px; } .rows dd{ margin-bottom: 10px; } }

/* ============ Prose (about page) and simple lists ============ */
.prose{ display: flex; flex-direction: column; gap: 16px; color: var(--ink-2); }
.prose strong{ color: var(--ink); }
.dots{ display: flex; flex-direction: column; gap: 8px; }
.dots li{ position: relative; padding-left: 18px; color: var(--ink-2); }
.dots li::before{ content: "·"; position: absolute; left: 4px; color: var(--muted); }
.label{ font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }

/* ============ Blog posts on the about page (full text in <details>) ============ */
.post{ display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.post:first-of-type{ border-top: 1px solid var(--line); }
.post:last-of-type{ border-bottom: none; }   /* no line under the last post: the next section's divider follows (avoids two lines in a row) */
.post h3{ font-size: 19px; font-weight: 600; }
.meta{ font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); }
.post summary{ cursor: pointer; font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.post details .prose{ padding-top: 14px; }

/* ============ Entry detail view (#session/<id>) ============ */
.detail{ padding: 48px 0 80px; display: flex; flex-direction: column; gap: 32px; }
.back{ font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); }
.detail h1{ font-size: clamp(26px, 4vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.tags{ display: flex; flex-wrap: wrap; gap: 8px; }
.tag{ font-family: var(--font-mono); font-size: 12px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.tag.kind{ color: var(--cyan); }
.tag.progress{ color: var(--amber); border-color: var(--amber); }
.block{ display: flex; flex-direction: column; gap: 10px; }
.term{ background: #070a0c; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.term-bar{ padding: 8px 14px; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.term pre{ margin: 0; padding: 16px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--ink-2); white-space: pre; }
.term .prompt{ color: var(--accent); }
.case{ border-left: 2px solid var(--line); padding-left: 16px; }
.chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.chip{ font-family: var(--font-mono); font-size: 12px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }

/* ============ Text still to be written (staging only, must be gone before release) ============ */
.todo{ color: var(--amber); border: 1px dashed var(--amber); padding: 8px 12px; border-radius: 6px; font-family: var(--font-mono); font-size: 14px; }

/* ============ Footer ============ */
.site-footer{ border-top: 1px solid var(--line-soft); }
.footer-inner{ max-width: var(--maxw); margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); }
.footer-links{ display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a{ color: var(--muted); }