/* ---------- tokens ---------- */
:root {
  --bg:         #FBF7EC;   /* cream canvas */
  --surface:    #FFFFFF;   /* card/row background */
  --border:     rgba(16, 12, 8, 0.12);
  --grid-line:  rgba(16, 12, 8, 0.05);
  --ink:        #100C08;   /* smoky black - primary text */
  --ink-soft:   #5C584F;   /* muted warm gray for secondary text */

  --navy:       #001D51;
  --olive:      #6D712E;
  --burgundy:   #5C0E22;
  --mahogany:   #321912;
  --skyblue:    #4E9CB5;   /* darkened from Nantucket Breeze for text-safe contrast */
  --skyblue-bg: #87D1EA;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --max-width: 720px;
  --radius: 8px;
}

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

body {
  margin: 0;
  background: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

.wrap {
  max-width: var(--max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
@media (min-width: 1100px) {
  .wrap { max-width: 860px; }
}

a { color: inherit; }

.skip-link a {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  z-index: 100;
}
.skip-link a:focus { left: 24px; top: 24px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
}
.home-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.home-link:hover { color: var(--navy); }
.site-nav {
  display: flex;
  gap: 26px;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- main / typography ---------- */
main {
  padding-top: 52px;
  padding-bottom: 80px;
  min-height: 60vh;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); }
h2 {
  font-size: 0.8rem;
  margin-top: 2.6em;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p { margin: 0 0 1.1em; }

.page-head { margin-bottom: 36px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

/* the one bold moment: homepage hero */
.hero-split {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-photo {
  flex: 0 0 auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}
.hero-text { flex: 1 1 260px; min-width: 240px; }
.hero-text h1 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 3.4rem;
  margin: 0 0 8px;
  line-height: 1;
  color: var(--navy);
  letter-spacing: normal;
}
.hero-text p { color: var(--ink-soft); font-size: 0.98rem; margin: 0 0 20px; }
.links-row { display: flex; gap: 8px; flex-wrap: wrap; }
.link-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}
.link-pill.navy { background: var(--navy); }
.link-pill.olive { background: var(--olive); }
.link-pill.burgundy { background: var(--burgundy); }

/* ---------- centered header nav ---------- */
.site-header-inner {
  text-align: center;
  padding: 40px 0 0;
}
.site-header-inner .site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ---------- type-forward entry list (projects, books) ---------- */
.entry-list {
  display: flex;
  flex-direction: column;
  margin: 0 0 2.4em;
}
.entry-row {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.entry-list .entry-row:last-child { border-bottom: 1px solid var(--border); }
.entry-index {
  font-family: var(--sans);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--border);
  -webkit-text-stroke: 1px var(--ink-soft);
  flex: 0 0 auto;
  line-height: 1;
  padding-top: 2px;
  width: 66px;
}
.entry-body { flex: 1 1 auto; min-width: 0; }
.entry-row h3 {
  font-size: 1.4rem;
  margin: 0 0 8px;
  font-weight: 700;
}
.entry-row p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 14px;
  max-width: 52ch;
}
.entry-meta {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-bottom: 14px;
}
.entry-meta-row {
  display: flex;
  gap: 16px;
  padding: 6px 0;
  font-size: 0.85rem;
}
.entry-meta-row dt {
  color: var(--ink-soft);
  width: 80px;
  flex: 0 0 auto;
  font-weight: 500;
}
.entry-meta-row dd { margin: 0; }
.entry-row a.entry-link {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-soft);
}
.entry-row a.entry-link:hover { color: var(--navy); border-color: var(--navy); }

/* filled, bolder tag pills */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}
.tag-navy      { background: var(--navy);     color: #fff; }
.tag-olive     { background: var(--olive);    color: #fff; }
.tag-burgundy  { background: var(--burgundy); color: #fff; }
.tag-mahogany  { background: var(--mahogany); color: #fff; }
.tag-skyblue   { background: var(--skyblue-bg); color: var(--navy); }

/* ---------- blog listing ---------- */
.catalog-list { list-style: none; margin: 0; padding: 0; }
.catalog-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.catalog-row:first-child { border-top: 1px solid var(--border); }
.catalog-date {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  width: 96px;
}
.catalog-title {
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.catalog-title:hover { color: var(--navy); }

.empty-note { color: var(--ink-soft); }

/* ---------- blog post ---------- */
.post-body { max-width: 66ch; }
.post-body p { color: var(--ink); }
.post-back { margin-top: 3em; font-size: 0.9rem; }
.post-back a { color: var(--ink-soft); text-decoration: none; }
.post-back a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 26px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* ---------- accessibility / motion ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .catalog-row { flex-direction: column; gap: 4px; }
  .catalog-date { width: auto; }
  .entry-row { flex-direction: column; gap: 4px; }
  .entry-index { width: auto; }
}


/* ---------- resume page ---------- */
.resume-actions { margin-bottom: 24px; }
.resume-embed {
  display: block;
  width: 100%;
  height: 1150px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
@media (max-width: 700px) {
  /* phones don't render embedded PDFs well - the buttons above do the job */
  .resume-embed { display: none; }
}

/* ---------- blog intro ---------- */
.blog-intro { max-width: 66ch; margin-bottom: 1.8em; }
.blog-intro p { font-size: 1.02rem; line-height: 1.75; color: var(--ink); }
.blog-cta { margin-bottom: 2.6em; }
