/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f5f4f0;
  --surface:     #ffffff;
  --text:        #1a1a1a;
  --text-muted:  #666;
  --text-faint:  #999;
  --border:      rgba(0,0,0,0.1);
  --accent:      #111;
  --link:        #111;
  --header-bg:   #111111;
  --header-text: #ffffff;
  --footer-bg:   #111111;
  --footer-text: #666666;
  --mono:        #f0efeb;
  --radius:      6px;
}

[data-theme="dark"] {
  --bg:          #1a1a1a;
  --surface:     #242424;
  --text:        #e8e6e0;
  --text-muted:  #999;
  --text-faint:  #666;
  --border:      rgba(255,255,255,0.1);
  --accent:      #fff;
  --link:        #e8e6e0;
  --header-bg:   #0a0a0a;
  --footer-bg:   #0a0a0a;
  --mono:        #2e2e2e;
}

html { font-size: 16px; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Header ── */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 0 2rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-monogram {
  width: 36px;
  height: 36px;
  border: 1.5px solid #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.site-logo {
  height: 32px;
  width: auto;
  display: block;
}
.site-title-wrap { display: flex; flex-direction: column; }
.site-title {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: normal;
  color: #fff;
  line-height: 1.2;
}
.site-subtitle {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ── Nav ── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: #bbb;
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover,
.site-nav a.active { color: #fff; }

.theme-toggle {
  background: none;
  border: 1px solid #444;
  border-radius: 4px;
  color: #bbb;
  cursor: pointer;
  font-size: 13px;
  padding: 3px 8px;
  margin-left: 8px;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  transition: border-color 0.15s, color 0.15s;
}
.theme-toggle:hover { border-color: #888; color: #fff; }

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  padding: 5px 8px;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #bbb;
}

/* ── Main layout ── */
.site-main {
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.site-main--full {
  grid-template-columns: 1fr;
  max-width: 1080px;
  margin: 2rem auto;
}

.intro-block {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

/* ── Post list ── */
.posts-section-label {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1rem;
}

.post-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.post-meta {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.post-card h2 {
  font-size: 1.15rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { text-decoration: underline; }

.post-summary {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.read-more {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 12px;
  color: var(--text-faint);
}
.read-more:hover { color: var(--text); text-decoration: none; }

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin-bottom: 1rem;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}



/* ── Pagination ── */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 1.5rem;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
}
.pagination a, .pagination span {
  padding: 4px 10px;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}
.pagination a:hover { background: var(--surface); text-decoration: none; }
.pagination .current { background: var(--accent); color: var(--header-text); border-color: var(--accent); }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }

.sidebar-widget {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.sidebar-widget-title {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border);
}

.about-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--border);
}

.about-headshot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.about-monogram {
  width: 38px;
  height: 38px;
  background: #111;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.about-name {
  font-size: 14px;
  font-weight: normal;
  color: var(--text);
  line-height: 1.3;
}
.about-pronouns {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: var(--text-faint);
}

.about-body {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.about-body p + p { margin-top: 8px; }

.recent-list { list-style: none; }
.recent-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 0.5px solid var(--border);
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
}
.recent-list li:last-child { border-bottom: none; }
.recent-list li a { color: var(--text); font-style: italic; font-family: Georgia, serif; }
.recent-list li a:hover { text-decoration: underline; }
.recent-list .recent-year { color: var(--text-faint); font-size: 11px; flex-shrink: 0; margin-left: 8px; }

.sidebar-link {
  display: block;
  margin-top: 10px;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 12px;
  color: var(--text-faint);
}
.sidebar-link:hover { color: var(--text); text-decoration: none; }

/* ── Single post ── */
.post-full {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
}

.post-full-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 0.5px solid var(--border); }
.post-full-meta {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.post-full h1 { font-size: 1.6rem; font-weight: normal; line-height: 1.3; }

.post-content { font-size: 1rem; line-height: 1.8; }
.post-content p { margin-bottom: 1.2em; }
.post-content h2 { font-size: 1.2rem; font-weight: normal; margin: 2em 0 0.6em; }
.post-content h3 { font-size: 1.05rem; font-weight: normal; margin: 1.5em 0 0.5em; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.2em; }
.post-content li { margin-bottom: 0.3em; }
.post-content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.5em 0;
}
.post-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--mono);
  padding: 1px 5px;
  border-radius: 3px;
}
.post-content pre {
  background: var(--mono);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.2em;
}
.post-content pre code { background: none; padding: 0; }

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg);
  padding: 12px 2rem;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: var(--footer-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #aaa; text-decoration: none; }

/* ── Mobile ── */
@media (max-width: 720px) {
  .site-header { padding: 0 1rem; }

  .site-nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #111;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    border-top: 0.5px solid #333;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 8px 0; color: #ccc; font-size: 15px; }
  .theme-toggle { margin-left: 0; margin-top: 8px; }

  .nav-toggle { display: flex; }

  .site-main {
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem;
    gap: 1.5rem;
  }

  .post-full { padding: 1.25rem 1rem; }

  .site-footer { flex-direction: column; text-align: center; }
}

/* ── Update card kind badges ── */
.update-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.kind-badge {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.kind-github {
  background: #1a1a1a;
  color: #e0e0e0;
}
[data-theme="dark"] .kind-github {
  background: #333;
  color: #ccc;
}

.kind-printables {
  background: #ff6600;
  color: #fff;
}

.kind-project {
  background: var(--mono);
  color: var(--text-muted);
}

/* ── Job summary cards (list page) ── */
.job-summary-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.job-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 1rem;
}

.job-title {
  font-size: 1rem;
  font-family: Georgia, serif;
  color: var(--text);
  margin-bottom: 2px;
}

.job-employer {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

.job-meta {
  text-align: right;
  flex-shrink: 0;
}

.job-dates {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 12px;
  color: var(--text-faint);
}

.job-location {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: var(--text-faint);
}

.job-summary-text {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ── Credits table ── */
.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
}

.credits-table th {
  text-align: left;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0 8px 8px 0;
  border-bottom: 0.5px solid var(--border);
  font-weight: normal;
}

.credits-table td {
  padding: 7px 8px 7px 0;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.credits-table td:first-child {
  color: var(--text);
}

.credits-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 720px) {
  .job-summary-header { flex-direction: column; }
  .job-meta { text-align: left; }
  .credits-table th:nth-child(3),
  .credits-table td:nth-child(3) { display: none; }
}

/* ── Production gallery ── */

.production-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem;
}

.production-gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.photo-credit {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 12px;
  color: var(--text-faint);
  text-align: right;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .production-gallery {
    grid-template-columns: 1fr;
  }
}

.gallery-figure {
  margin: 0;
}

.gallery-figure figcaption {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
  line-height: 1.4;
}

