/* joshuahughes.io — personal site. Geist-inspired, minimal, and legible. */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* One light, warm palette to suit the colored-pencil drawing. There is no
   dark variant: the site stays light whatever the visitor's system setting. */
:root {
  color-scheme: light;
  --bg: #fcfbf8;
  --ink: #2d2b28;
  --muted: #77736c;
  --line: #ebe7df;
  --link: #3566b8;
  --accent: #377a54;
  --chip-bg: #f4f1ea;
  --max: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Landing ---------- */
body.landing { min-height: 100vh; }

/* ---------- Global site header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-brand { font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.site-brand:hover { text-decoration: none; }
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a.active { color: var(--ink); }

/* ---------- Generic page wrapper ---------- */
.page-wrap { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.page-wrap h1 { margin: 0.25rem 0 0.5rem; }
.muted { color: var(--muted); }

/* ---------- Page background ---------- */
html { background: var(--bg); }

/* ---------- Portfolio layout ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-nav { max-width: 860px; padding: 1.1rem 1.25rem; }
.site-nav-links { display: flex; gap: 1.25rem; margin-left: auto; }
.site-nav a { font-size: .9rem; }
.home-wrap, .page-wrap { max-width: 860px; margin: 0 auto; padding: 5rem 1.25rem 3rem; }
.intro { max-width: 760px; padding-bottom: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.intro-copy-wrap { max-width: 520px; }
.eyebrow, .section-label { color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
/* The page heading is the small name label, not a display headline. */
.intro h1 { margin: 0 0 1rem; font-weight: 500; }
.intro-copy { color: var(--muted); font-size: 1.15rem; max-width: 34rem; }
.pencil-sun { width: clamp(150px, 25vw, 245px); height: auto; flex: 0 0 auto; transform: rotate(3deg); }
.section-block { border-top: 1px solid var(--line); padding: 1.5rem 0 4rem; }
.section-label { margin: 0 0 1.25rem; }
.project-list { border-top: 1px solid var(--line); }
.project { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1.1rem 0; color: var(--ink); }
.project:hover { text-decoration: none; color: var(--link); }
.project strong, .project small { display: block; }
.project-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; object-fit: contain; }
.project-text { flex: 1 1 auto; }
.project strong { font-size: 1.15rem; font-weight: 600; }
.project small { color: var(--muted); margin-top: .2rem; }
.arrow { font-size: 1.3rem; }
.writing-teaser p:not(.section-label), .writing-page .muted { color: var(--muted); font-size: 1.1rem; }
.text-link { color: var(--link); font-weight: 500; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; padding-top: 1.25rem; font-family: "JetBrains Mono", monospace; font-size: .72rem; }
.site-footer-links { display: flex; gap: 1rem; }
.writing-page { padding-top: 5rem; }
.writing-page h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -.06em; margin: 1rem 0; }

@media (max-width: 620px) {
  .intro { align-items: flex-start; flex-direction: column; }
  .pencil-sun { width: 180px; align-self: flex-end; margin-top: -1rem; }
}
