/* Site-wide theme for taypc6.com — a reproduction of the old Squarespace
   (Brine/Clarkson) look: black background, Minion-style serif body, Futura-
   style green headings. Colors and metrics taken from the archived compiled
   site CSS. Originally the blog's own theme; now shared across the whole site
   (home, about, resume, projects) so everything matches the "Technical
   Ramblings" blog. The blog imports this file via docs/blog/style.css.

   The original fonts (Futura PT, Minion Pro) are Adobe Typekit; matched here
   with self-hosted OFL look-alikes — Jost (Futura homage) and Source Serif 4
   (by Minion Pro's designer) — so the site stays self-contained. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-italic.woff2") format("woff2");
}

:root {
  --bg:      #000000;
  --fg:      #ffffff;
  --muted:   #999999;
  --title:   #00dd55;   /* site title  */
  --h1:      #44f000;   /* post title  */
  --h2:      #00f00c;
  --h3:      #34d100;
  --border:  #222222;
  --code-bg: #0f0f0f;
  --serif: "Source Serif 4", "Minion Pro", Georgia, "Iowan Old Style",
           "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans:  "Jost", "Futura PT", Futura, "Century Gothic", "Avenir Next",
           Avenir, "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

/* ---- site header ---- */
.site-header {
  text-align: center;
  padding: 2.6rem 0 1.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.6rem;
}
.site-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--title);
  text-decoration: none;
  display: inline-block;
}
.site-title:hover { color: var(--h1); }
.site-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a:focus { color: var(--h2); outline: none; }
.site-nav a[aria-current="page"] { color: var(--h1); }

/* ---- post / page title ---- */
.entry-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.15;
  color: var(--h1);
  margin: 0 0 0.6rem;
}
.entry-meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
}
.entry-meta .cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry-meta .cat { color: var(--h3); text-transform: uppercase; font-size: 0.74rem; }
.entry-meta .cat::before { content: "#"; opacity: 0.6; }

/* ---- prose ---- */
.prose { font-family: var(--serif); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-family: var(--sans); font-weight: 400; font-size: 24px; color: var(--h2); margin: 2.2rem 0 0.7rem; }
.prose h3 { font-family: var(--sans); font-weight: 400; font-size: 19px; color: var(--h3); margin: 1.8rem 0 0.5rem; }
.prose h4 { font-family: var(--sans); font-weight: 400; font-size: 17px; color: var(--h3); margin: 1.5rem 0 0.4rem; opacity: 0.9; }
.prose p { margin: 0 0 1.2rem; }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--h2); }
.prose a:hover { color: var(--h2); }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.5rem; }
.prose li { margin: 0.35rem 0; }
.prose strong, .prose b { color: #fff; font-weight: 700; }
.prose em, .prose i { font-style: italic; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.2rem 0; }

.prose blockquote {
  font-family: var(--serif);
  color: var(--muted);
  border-left: 3px solid var(--border);
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
}

.prose code {
  font-family: "SFMono-Regular", Consolas, "DejaVu Sans Mono", monospace;
  font-size: 0.9em;
  color: #fff;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
}
.prose pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 0 0 1.4rem;
  line-height: 1.45;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: #fff;
  white-space: pre;
}

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border: 1px solid var(--border);
}

.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.4rem; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.45rem 0.7rem; text-align: left; }
.prose th { font-family: var(--sans); font-weight: 400; color: var(--h2); }

.backlink { margin: 3rem 0 0; font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.backlink a { color: var(--muted); text-decoration: none; }
.backlink a:hover { color: var(--h2); }

/* ---- index post list ---- */
.blog-intro { margin: 0 0 2rem; color: var(--muted); font-style: italic; }
.postlist { list-style: none; margin: 0; padding: 0; }
.post-row {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.post-row a.post-link { text-decoration: none; display: block; }
.post-row .row-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.3rem;
}
.post-row .row-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--h1);
  transition: opacity 0.15s ease;
}
.post-row a.post-link:hover .row-title { opacity: 0.7; }
.post-row .cats { margin-top: 0.45rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.post-row .cat { font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--h3); }
.post-row .cat::before { content: "#"; opacity: 0.6; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  padding: 2rem 0 3rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--h2); }
.site-footer .foot-links { margin-bottom: 0.6rem; display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; text-transform: uppercase; }

/* ============================================================= */
/* Main-page components (home / about / resume / projects). These */
/* build on the same palette and fonts so the pages match the blog. */
/* ============================================================= */

/* lead tagline under a page title */
.lede {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: -0.2rem 0 2.2rem;
}

/* home page section menu — mirrors the blog post list */
.pagelist { list-style: none; margin: 0; padding: 0; }
.page-row { padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.page-row:first-child { border-top: 1px solid var(--border); }
.page-row a.page-link { text-decoration: none; display: block; }
.page-row .row-title {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--h1);
  transition: opacity 0.15s ease;
}
.page-row a.page-link:hover .row-title { opacity: 0.7; }
.page-row .row-desc { display: block; font-family: var(--serif); color: var(--muted); margin-top: 0.3rem; }

/* contact list */
.contact-list { list-style: none; margin: 1.4rem 0 0; padding: 0; font-family: var(--sans); }
.contact-list li { margin: 0.55rem 0; letter-spacing: 0.5px; }
.contact-list .k {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  display: inline-block;
  min-width: 6.5em;
}
.contact-list a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--h2); }
.contact-list a:hover { color: var(--h2); }

/* résumé / research entries */
.cv-entry { margin: 0 0 1.9rem; }
.cv-role { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; color: var(--h1); }
.cv-org { color: var(--fg); }
.cv-when {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.2rem 0 0.6rem;
}
.cv-entry .repo { font-family: var(--sans); font-size: 0.82rem; margin-top: 0.3rem; }
.cv-entry .repo a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--h3); }
.cv-entry .repo a:hover { color: var(--h2); }

/* skills grid */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}
.skill-card { border: 1px solid var(--border); border-radius: 4px; padding: 1rem 1.1rem; background: var(--code-bg); }
.skill-card h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--h2);
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.5rem;
}

/* project list */
.proj-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.proj-list li { margin: 0 0 1.1rem; }
.proj-list .proj-name { font-family: var(--sans); font-weight: 700; color: var(--h3); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
