:root {
  --paper: #faf9f5;
  --ink: #171717;
  --line: #c7c4bb;
  --page: 1180px;
  --gutter: clamp(22px, 5vw, 70px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 1.5px; }

.page-width {
  width: min(var(--page), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-header {
  min-height: 104px;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
}

.wordmark,
.site-nav a {
  font-size: 15px;
  text-decoration: none;
}

.wordmark { font-weight: 500; letter-spacing: -.01em; }
.site-nav { display: flex; gap: 24px; }

.menu-button {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.menu-close { display: none; }

.intro {
  padding-top: 24px;
  padding-bottom: 28px;
}

.intro-copy { max-width: 590px; }
h1, h2, p { margin-top: 0; }
h1, .portfolio > h2 {
  margin-bottom: 38px;
  font-size: clamp(30px, 4.1vw, 54px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.035em;
}

.intro p { margin-bottom: 20px; max-width: 550px; }
.signature { margin-top: 34px; }
.text-link { display: inline-block; margin-top: 6px; }

.featured-work,
.portfolio {
  display: grid;
  grid-template-columns: 1fr;
}

.artwork { margin: 0; }
.artwork img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.featured-work .artwork {
  width: min(100%, 860px);
  margin-inline: auto;
  margin-bottom: clamp(90px, 13vw, 180px);
}

.artwork-portrait img { max-height: 1080px; }
.artwork figcaption {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.portfolio {
  padding-top: clamp(30px, 5vw, 70px);
  padding-bottom: clamp(90px, 12vw, 160px);
}

.portfolio > h2 { margin-bottom: clamp(70px, 10vw, 120px); }
.portfolio-item {
  width: min(100%, 930px);
  margin-inline: auto;
  padding-top: clamp(54px, 8vw, 94px);
  margin-bottom: clamp(66px, 10vw, 120px);
  border-top: 1px solid var(--line);
}
.artwork-wide { width: min(100%, 1060px); }
.work-note {
  width: min(100%, 930px);
  margin: 0 auto;
  padding-top: 5px;
  font-size: 15px;
}
.work-note p { margin-bottom: 4px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 100px) 0 clamp(70px, 9vw, 110px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) 1fr 1fr;
  gap: 48px;
}
.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
}
.footer-grid p { margin-bottom: 8px; }
.footer-name { font-weight: 500; }
.footer-statement p:last-child { max-width: 340px; }

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .site-header {
    min-height: 78px;
    padding-top: 22px;
    padding-bottom: 22px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .menu-button { display: block; font-size: 14px; }
  .menu-button[aria-expanded="true"] .menu-open { display: none; }
  .menu-button[aria-expanded="true"] .menu-close { display: inline; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    padding-top: 38px;
    padding-bottom: 8px;
  }
  .site-nav.is-open { display: flex; }
  .intro { padding-top: 70px; }
  h1, .portfolio > h2 { font-size: 39px; }
  .featured-work .artwork { margin-bottom: 92px; }
  .portfolio > h2 { margin-bottom: 64px; }
  .portfolio-item { padding-top: 48px; margin-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* -------------------------------------------------------
   catalog-first homepage
   ------------------------------------------------------- */

.catalog-home {
  --catalog-ink: #003B49;
  --catalog-pale: #e5eeee;
  --catalog-soft: #78959b;
  color: var(--catalog-ink);
  background: #fafcfa;
}

.catalog-home .site-header {
  color: var(--catalog-ink);
}

.catalog-hero {
  padding-top: 60px;
  padding-bottom: 60px;
}

.project-kicker {
  margin-bottom: 22px;
  color: var(--catalog-soft);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.catalog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(50px, 9vw, 130px);
  align-items: end;
}

.catalog-hero h1 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.035em;
}

.catalog-deck {
  max-width: 680px;
  margin: 38px 0 0;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(12px, 1vw, 21px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.catalog-intro {
  padding-bottom: 5px;
  font-size: 15px;
  line-height: 1.65;
}

.catalog-intro p {
  margin-bottom: 17px;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 31px;
}

.project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--catalog-ink);
  border-radius: 999px;
  background: var(--catalog-ink);
  color: #f7faf9;
  text-decoration: none;
  transition: transform .16s ease, opacity .16s ease;
}

.project-button:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.catalog-feature {
  padding-bottom: clamp(100px, 13vw, 170px);
}

.section-line-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
  padding: 19px 0 22px;
  border-top: 1px solid rgba(0,59,73,.26);
}

.section-line-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.section-line-heading span {
  font-size: 18px;
}

.catalog-frame-wrap {
  position: relative;
  width: 100%;
  height: min(76vh, 820px);
  min-height: 640px;
  border: 1px solid rgba(0,59,73,.25);
  background: #edf4f4;
  overflow: hidden;
}

.catalog-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #edf4f4;
}

.frame-note {
  width: min(610px, 100%);
  margin: 18px 0 0 auto;
  color: #657a7f;
  font-size: 13px;
  line-height: 1.5;
}

.project-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 70px);
  padding-bottom: clamp(100px, 12vw, 160px);
}

.project-notes article {
  padding-top: 20px;
  border-top: 1px solid rgba(0,59,73,.23);
}

.project-notes h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -.025em;
}

.project-notes article > p:last-child {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
}

.catalog-home .site-footer {
  border-top-color: rgba(0,59,73,.25);
}

@media (max-width: 820px) {
  .catalog-hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .catalog-hero h1 {
    font-size: clamp(68px, 24vw, 116px);
  }

  .catalog-intro {
    max-width: 560px;
  }

  .catalog-frame-wrap {
    height: 760px;
    min-height: 0;
  }

  .project-notes {
    grid-template-columns: 1fr;
    gap: 54px;
  }
}

@media (max-width: 520px) {
  .catalog-hero {
    padding-top: 70px;
  }

  .catalog-deck {
    margin-top: 28px;
  }

  .catalog-frame-wrap {
    width: calc(100% + 40px);
    margin-left: -20px;
    height: 720px;
    border-left: 0;
    border-right: 0;
  }

  .section-line-heading span {
    font-size: 16px;
  }
}


/* Restored personal About section on catalog homepage */
.catalog-home .homepage-about {
  padding-top: 48px;
  padding-bottom: 56px;
}

.catalog-home .homepage-about h1 {
  margin-bottom: 24px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.catalog-home .homepage-about p {
  max-width: 680px;
  font-size: 14px;
  line-height: 1.5;
}

.catalog-home .homepage-about a {
  color: var(--catalog-ink);
}



/* -------------------------------------------------------
   PMS 309 treatment for the restored About section
   ------------------------------------------------------- */

.catalog-home .homepage-about {
  position: relative;
  margin-top: 0;
  padding-top: clamp(82px, 10vw, 132px);
  padding-bottom: clamp(90px, 11vw, 145px);
  border-top: 1px solid rgba(0, 59, 73, .24);
  border-bottom: 1px solid rgba(0, 59, 73, .18);
  background:
    linear-gradient(
      180deg,
      rgba(220, 231, 232, .34) 0%,
      rgba(247, 250, 249, .88) 44%,
      rgba(247, 250, 249, 0) 100%
    );
}

.catalog-home .homepage-about::before {
  margin-bottom: 18px;
  font-size: 10px;
}

.catalog-home .homepage-about > * {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.catalog-home .homepage-about h1,
.catalog-home .homepage-about h2 {
  color: #003B49;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.035em;
}

.catalog-home .homepage-about h1 {
  margin-bottom: clamp(28px, 4vw, 48px);
  font-size: clamp(46px, 7vw, 88px);
  line-height: .95;
}

.catalog-home .homepage-about h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.catalog-home .homepage-about p {
  max-width: 760px;
  color: #255B66;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.72;
}

.catalog-home .homepage-about p + p {
  margin-top: 1.15em;
}

.catalog-home .homepage-about strong {
  color: #003B49;
  font-weight: 600;
}

.catalog-home .homepage-about a {
  color: #003B49;
  text-decoration-color: rgba(0, 59, 73, .40);
  text-underline-offset: .18em;
  transition: opacity .15s ease;
}

.catalog-home .homepage-about a:hover {
  opacity: .62;
}

.catalog-home .homepage-about img {
  border: 1px solid rgba(0, 59, 73, .18);
  box-shadow: 0 18px 50px rgba(0, 42, 52, .07);
}

.catalog-home .homepage-about hr {
  border: 0;
  border-top: 1px solid rgba(0, 59, 73, .20);
}

@media (max-width: 640px) {
  .catalog-home .homepage-about::before,
  .catalog-home .homepage-about > * {
    width: calc(100% - 36px);
  }

  .catalog-home .homepage-about {
    padding-top: 10px;
    padding-bottom: 12px;
  }
}

.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #003B49;
  text-decoration: none;
}

.github-link:hover {
  opacity: 0.6;
}

.github-link svg {
  width: 22px;
  height: 22px;
}

/* compact homepage About section */
.catalog-home .intro {
  padding-top: 24px;
  padding-bottom: 28px;
}

.catalog-home .intro h1 {
  margin-bottom: 20px;
  font-size: 34px;
  line-height: 1;
}

.catalog-home .intro p {
  max-width: 590px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.catalog-home .intro .signature {
  margin-top: 20px;
}

/* blog */

.blog,
.blog-post {
  padding-top: 48px;
  padding-bottom: 80px;
}

.blog > h1 {
  margin-bottom: 48px;
  font-size: 32px;
  font-weight: 400;
  color: #003B49;
}

.blog-listing {
  max-width: 600px;
  padding: 22px 0;
  border-top: 1px solid rgba(0, 59, 73, 0.2);
}

.blog-listing time,
.blog-date {
  font-size: 11px;
  color: #6b8186;
}

.blog-listing h2 {
  margin: 10px 0;
  font-size: 22px;
  font-weight: 400;
}

.blog-listing a {
  color: #003B49;
}

.blog-listing p {
  font-size: 14px;
  line-height: 1.55;
}

.blog-post > * {
  max-width: 620px;
}

.blog-post h1 {
  margin: 12px 0 32px;
  font-size: 34px;
  font-weight: 400;
  color: #003B49;
}

.blog-post p {
  font-size: 15px;
  line-height: 1.7;
}
.blog-photo {
  max-width: 620px;
  margin: 36px 0;
}

.blog-photo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.blog-photo figcaption {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: #6b8186;
}
.blog-spacer {
  height: 50px;
}
