:root {
  --paper: #fbfbf8;
  --ink: #20211f;
  --muted: #62645f;
  --rule: #ddddda;
  --accent: #8a6841;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --site-width: 980px;
  --measure: 650px;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
}

body { margin: 0; }

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover { color: var(--ink); }

.skip-link {
  left: -9999px;
  position: absolute;
  top: 0;
}

.skip-link:focus {
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  left: 1rem;
  padding: 0.5rem 0.75rem;
  top: 1rem;
  z-index: 10;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  text-align: center;
}

.site-header__inner {
  margin: 0 auto;
  max-width: var(--site-width);
  padding: 1.05rem 2rem 1rem;
}

.identity {
  color: var(--ink);
  display: block;
  font-size: 1.67rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  padding-bottom: 0.9rem;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
}

nav a {
  color: var(--ink);
  padding-bottom: 0.18rem;
  text-decoration: none;
}

.global-nav {
  border-top: 1px solid var(--rule);
  gap: 0.45rem 2rem;
  justify-content: center;
  letter-spacing: 0.025em;
  padding-top: 0.85rem;
}

.global-nav a[aria-current="page"] {
  border-bottom: 1px solid var(--ink);
}

.project-nav-shell {
  border-top: 1px solid var(--rule);
  text-align: left;
}

.project-nav__inner {
  align-items: baseline;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--site-width);
  padding: 0.72rem 2rem;
}

.project-nav__label {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.project-nav {
  gap: 0.4rem 1.35rem;
  justify-content: flex-end;
}

.project-nav a { color: var(--muted); }

.project-nav a[aria-current="page"] {
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
}

.page-shell {
  margin: 0 auto;
  max-width: var(--site-width);
  min-height: 70vh;
  padding: 7rem 2rem 8.5rem;
}

.page-shell > :not(.project-list) { max-width: var(--measure); }

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.9rem, 7vw, 4.35rem);
  margin: 0 0 1.7rem;
  max-width: 13ch;
}

h2 {
  border-top: 1px solid var(--rule);
  font-size: 1.75rem;
  margin: 4.5rem 0 1.2rem;
  padding-top: 1rem;
}

h3 { font-size: 1.25rem; margin: 2.6rem 0 1rem; }
p { margin: 0 0 1.25rem; }

.lead {
  color: var(--ink);
  font-size: 1.17rem;
  line-height: 1.55;
}

.portrait-thumb {
  display: block;
  float: right;
  height: auto;
  margin: 0.2rem 0 1.25rem 2rem;
  width: 150px;
}

.eyebrow,
.status {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  margin-bottom: 1.35rem;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  gap: 0.55rem 1.5rem;
  margin: 2rem 0;
}

.project-list {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6rem;
}

.project-list section {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.project-list h2 {
  border: 0;
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 0.55rem;
  padding: 0;
}

.project-list h2 a { color: var(--ink); text-decoration: none; }

.project-list p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.62;
  margin: 0;
}

.book-entry {
  align-items: start;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 2rem;
  grid-template-columns: 180px minmax(0, 1fr);
  margin: 4.5rem 0 0;
  padding-top: 1.25rem;
}

.book-cover {
  display: block;
  height: auto;
  max-width: 100%;
  width: 180px;
}

.book-copy h2 {
  border: 0;
  margin: 0 0 0.8rem;
  padding: 0;
}

.book-copy p:last-child { margin-bottom: 0; }

.book-meta {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.55;
}

table {
  border-collapse: collapse;
  margin: 2rem 0;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

code {
  background: #f0eee8;
  font-size: 0.88em;
  padding: 0.08em 0.25em;
}

.site-footer {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.67rem;
}

.site-footer__inner {
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 auto;
  max-width: var(--site-width);
  padding: 1rem 2rem 1.5rem;
}

.site-footer a { color: var(--muted); }

@media (max-width: 720px) {
  html { font-size: 16px; }
  .site-header__inner { padding: 1rem 1.25rem; }
  .identity { font-size: 1.625rem; }
  nav { font-size: 0.875rem; }
  .global-nav { gap: 0.55rem 1rem; }

  .project-nav__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.72rem 1.25rem;
  }

  .project-nav { gap: 0.55rem 1rem; justify-content: flex-start; }
  .project-nav__label,
  .eyebrow,
  .status,
  .site-footer { font-size: 0.75rem; }
  .page-shell { padding: 4.5rem 1.25rem 6rem; }
  h1 { font-size: 3rem; }

  .portrait-thumb {
    float: none;
    margin: 0 0 1.5rem;
    width: 130px;
  }

  .project-list {
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-top: 4.5rem;
  }

  .book-entry {
    gap: 1.5rem;
    grid-template-columns: 120px minmax(0, 1fr);
    margin-top: 3.5rem;
  }

  .book-cover { width: 120px; }

  .book-copy h2 { font-size: 1.45rem; }

  .site-footer__inner { padding: 1rem 1.25rem 1.5rem; }
}

@media (max-width: 420px) {
  .book-entry { grid-template-columns: 1fr; }
  .book-cover { width: 150px; }
}
