/* A small, plain portfolio page in the spirit of late-1990s personal sites. */
body.home-page {
  --ink: #24211c;
  --text: #37332d;
  --muted: #716b61;
  --rule: #d8d1c4;
  --link: #00009c;
  margin: 0;
  background: #fffdf7;
  color: var(--text);
  font: 13px/1.55 Arial, Helvetica, sans-serif;
}

.home-page a { color: var(--link); text-decoration: none; }
.home-page a:hover,
.home-page a:focus-visible { text-decoration: underline; }
.home-page .shell { width: auto; max-width: none; margin: 0; }

/* Shared document edges. This is content alignment, not a card or panel. */
.home-page .header-inner,
.home-page main,
.home-page footer {
  width: min(100% - 48px, 700px);
  margin: 0 auto;
}

.home-page .site-header { background: #fffdf7; }
.home-page .header-inner {
  display: flex;
  align-items: center;
  min-height: 43px;
  border-bottom: 1px solid var(--rule);
}
.home-page .wordmark {
  color: var(--ink);
  font: bold 12px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
.home-page .header-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 13px;
  margin-left: auto;
}
.home-page .header-inner nav a { font-size: 11px; white-space: nowrap; }

.home-page main {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Intro */
.home-page .hero { padding: 29px 0 25px; }
.home-page .hero-text { max-width: 650px; }
.home-page .hero .eyebrow,
.home-page .section-label,
.home-page .eyebrow {
  margin: 0;
  color: var(--muted);
  font: 10px/1.25 Verdana, Arial, Helvetica, sans-serif;
  letter-spacing: .01em;
  text-transform: none;
}
.home-page .hero h1 {
  max-width: 610px;
  margin: 0 0 7px;
  color: var(--ink);
  font: 400 clamp(27px, 3.5vw, 34px)/1.1 "Times New Roman", Times, serif;
  letter-spacing: 0;
}
.home-page .hero-copy {
  max-width: 590px;
  margin: 0;
  color: #474747;
  font-size: 14px;
  line-height: 1.48;
}

/* Major sections only receive a separator. */
.home-page main > section + section { border-top: 1px solid var(--rule); }
.home-page .intro-section,
.home-page .work-section,
.home-page .projects-section,
.home-page .public-section,
.home-page .experience-section { padding: 24px 0 27px; }
.home-page .intro-section,
.home-page .public-section { display: block; }
.home-page .section-label { display: block; margin-bottom: 6px; }
.home-page .section-heading,
.home-page .public-section .section-heading,
.home-page .experience-section .section-heading { max-width: 640px; margin: 0 0 15px; }
.home-page .section-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 400 20px/1.15 "Times New Roman", Times, serif;
  letter-spacing: 0;
}

/* About */
.home-page .intro-copy,
.home-page .public-copy { max-width: 650px; }
.home-page .intro-copy p { margin: 0 0 10px; color: var(--text); }
.home-page .intro-copy p:last-child { margin-bottom: 0; }
.home-page .intro-copy .intro-lead {
  color: var(--ink);
  font: 400 16px/1.48 "Times New Roman", Times, serif;
}
.home-page strong { color: var(--ink); font-weight: 700; }

/* What I build */
.home-page .work-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  background: transparent;
  border: 0;
}
.home-page .work-columns article,
.home-page .work-columns article:first-child,
.home-page .work-columns article:last-child {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.home-page .work-number { display: none; }
.home-page .work-columns h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font: 400 16px/1.22 "Times New Roman", Times, serif;
}
.home-page .work-columns article > p:last-child {
  margin: 0;
  color: #4d4d4d;
  font-size: 12px;
  line-height: 1.52;
}

/* Work is presented as a small image index, without cards or per-item rules. */
.home-page .projects-section { padding-top: 26px; }
.home-page .projects-section .section-heading h2 { font-size: 22px; }
.home-page .portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 19px;
  border: 0;
  counter-reset: none;
}
.home-page .portfolio-grid article {
  border: 0;
  background: transparent;
  overflow: visible;
}
.home-page .project-card {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  height: auto;
  padding: 0;
}
.home-page .project-card::before { display: none; }
.home-page .project-thumbnail {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e6e6e6;
}
.home-page .project-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(.96);
  opacity: .92;
}
.home-page .project-card-copy { padding: 1px 0 0; }
.home-page .project-card-copy h3 {
  margin: 0 0 4px;
  color: var(--link);
  font: 400 18px/1.18 "Times New Roman", Times, serif;
  letter-spacing: 0;
  text-decoration: none;
}
.home-page .project-card-copy p {
  max-width: 490px;
  margin: 0;
  color: #4b4b4b;
  font-size: 13px;
  line-height: 1.5;
}
.home-page .project-card:hover h3,
.home-page .project-card:focus-visible h3 { text-decoration: underline; }

/* Source and writing */
.home-page .public-section h2 { font-size: 20px; }
.home-page .public-copy p { margin: 0 0 7px; line-height: 1.52; }
.home-page .public-copy p:last-child { margin-bottom: 0; }

/* Experience stays an appendix: smaller, linear, and deliberately quiet. */
.home-page .experience-section { padding-bottom: 30px; }
.home-page .experience-section .section-heading h2 { font-size: 19px; }
.home-page .experience-nav {
  margin: -5px 0 20px;
  color: var(--muted);
  font: 11px/1.45 Verdana, Arial, Helvetica, sans-serif;
}
.home-page .experience-nav span { color: #aaa; }
.home-page .resume-entry,
.home-page .resume-subsection {
  max-width: 670px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}
.home-page .resume-entry-header {
  display: block;
  margin: 0;
}
.home-page .resume-entry h3 {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.25 "Times New Roman", Times, serif;
  letter-spacing: 0;
}
.home-page .resume-role-title { color: var(--text); font-weight: 400; }
.home-page .resume-role {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.home-page .resume-list {
  max-width: 650px;
  margin: 7px 0 0;
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.5;
}
.home-page .resume-list li { margin: 0 0 4px; padding-left: 2px; }
.home-page .resume-list li:last-child { margin-bottom: 0; }
.home-page .resume-subsection { margin-top: 24px; }
.home-page .resume-subsection .section-label { margin-bottom: 8px; }
.home-page .resume-projects,
.home-page .capabilities-list { max-width: 650px; margin: 0; font-size: 12px; line-height: 1.5; }
.home-page .resume-projects p,
.home-page .capabilities-list p { margin: 0 0 6px; }
.home-page .resume-projects p:last-child,
.home-page .capabilities-list p:last-child { margin-bottom: 0; }
.home-page .resume-entry-nested { margin-top: 16px; }
.home-page .resume-entry-nested.first-earlier { margin-top: 0; }
.home-page .resume-entry-nested p:not(.resume-role) { max-width: 650px; margin: 7px 0 0; font-size: 12px; line-height: 1.5; }

/* Footer */
.home-page footer {
  padding: 20px 0 27px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  box-shadow: none;
  color: var(--text);
}
.home-page footer .footer-inner { display: flex; justify-content: space-between; gap: 28px; }
.home-page footer p { max-width: 440px; margin: 4px 0 0; font-size: 12px; line-height: 1.5; }
.home-page footer .eyebrow { margin: 0; }
.home-page .footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.home-page .footer-links a { font-size: 12px; }

@media (max-width: 700px) {
  .home-page .header-inner,
  .home-page main,
  .home-page footer { width: min(100% - 32px, 700px); }
  .home-page .header-inner { min-height: 46px; padding: 8px 0; }
  .home-page .header-inner nav { gap: 3px 10px; justify-content: flex-end; }
  .home-page .work-columns { grid-template-columns: 1fr; gap: 14px; }
  .home-page .project-card { grid-template-columns: 145px minmax(0, 1fr); gap: 13px; }
}

@media (max-width: 470px) {
  .home-page .header-inner { align-items: flex-start; }
  .home-page .wordmark { padding-top: 2px; }
  .home-page .header-inner nav { max-width: 230px; }
  .home-page .hero { padding: 24px 0 21px; }
  .home-page .hero h1 { font-size: 30px; }
  .home-page .intro-section,
  .home-page .work-section,
  .home-page .projects-section,
  .home-page .public-section,
  .home-page .experience-section { padding: 21px 0 24px; }
  .home-page .project-card { grid-template-columns: 112px minmax(0, 1fr); gap: 11px; }
  .home-page .project-card-copy h3 { font-size: 16px; }
  .home-page .project-card-copy p { font-size: 12px; }
  .home-page footer .footer-inner { display: block; }
  .home-page .footer-links { align-items: flex-start; margin-top: 12px; }
}
