:root {
  --ink: #1a1e1f;
  --blue: #0390e2;
  --blue-hover: #036ba8;
  --powder: #bcd4d6;
  --cultured: #f4f4f4;
  --white: #ffffff;
  --border: #e1e3e4;
  --text: #3d4143;
  --caption: #6b7073;
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 8px;
}
/* Subtle brand-powder rule under section eyebrows. */
.eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 8px;
  border-radius: 1px;
  background: var(--powder);
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.wordmark {
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--ink); text-decoration: none; }
nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  margin-left: 18px;
  text-decoration: none;
}
nav a:hover { color: var(--blue); text-decoration: none; }
nav a[aria-current="page"] { color: var(--blue); }

.hero {
  background: var(--cultured);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  align-items: center;
}
.portrait {
  width: 240px;
  height: 336px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
}
h1 {
  margin: 0 0 6px;
  font-size: 42px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-transform: none;
}
.tagline {
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  max-width: 56ch;
}
.lead { margin: 0 0 16px; max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--blue); }

main { padding: 40px 0 64px; }
h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.section { margin-bottom: 40px; }
.muted { color: var(--caption); font-size: 15px; margin: 0 0 20px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: var(--white);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  text-decoration: none;
}
.card h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); font-weight: 650; }
.card p { margin: 0; color: var(--text); }

/* Featured "Selected work" strip on the home page. */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.feature:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  text-decoration: none;
}
.feature img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: var(--cultured);
}
.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
}
.feature-copy strong { color: var(--ink); font-weight: 600; }
.feature-copy > span:not(.pdf) { color: var(--caption); font-size: 15px; }
.feature-copy .pdf { margin-top: 6px; color: var(--blue); font-weight: 600; font-size: 14px; }

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--white);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.row:hover { border-color: var(--blue); transform: translateX(3px); }
.row .thumb {
  width: 135px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
/* First-page PDF previews: show the top of the document (masthead/headline). */
.row .thumb-doc {
  object-position: top;
  background: var(--white);
}
.row-copy { flex: 1; min-width: 0; }
.row strong { color: var(--ink); font-weight: 600; display: block; }
.row span { color: var(--caption); font-size: 15px; }
.row a.pdf {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.book {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.book-cover { display: block; width: 120px; }
.book-cover:hover { text-decoration: none; }
.book img {
  width: 120px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: transform 0.16s ease;
}
.book-cover:hover img { transform: translateY(-3px); }
.book-copy { display: flex; flex-direction: column; align-items: flex-start; }
.book-copy p { margin: 0 0 14px; }
.book-link { font-weight: 600; font-size: 15px; }

footer.site {
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: #c8ccce;
  padding: 28px 0;
  font-size: 15px;
}
footer.site a { color: var(--white); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Scroll-in reveal (disabled for reduced-motion users via the block below). */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .feature, .row { transition: none; }
}

@media (max-width: 800px) {
  .hero { padding: 40px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; justify-items: start; }
  .cards, .book, .features { grid-template-columns: 1fr; }
  .portrait { width: 176px; height: 232px; }
  h1 { font-size: 34px; }
  nav a { margin-left: 0; margin-right: 14px; }
  .row { flex-direction: column; align-items: flex-start; }
  .row:hover { transform: none; }
}
