:root {
  --ink: #262629;
  --text: #262629;
  --muted: #5d5b56;
  --amber: #CFA64C;
  --gold: #CFA64C;
  --gold-dark: #735725;
  --line: #dedbd5;
  --soft: #f7f6f3;
  --on-dark: #f8f7f4;
  --dark-muted: #e8e4dc;
}

.refresh .wrap {
  width: min(70rem, calc(100% - 2 * clamp(1.25rem, 6vw, 4rem)));
  margin-inline: auto;
}

.brandbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.5;
}

.brandbar-inner, .brandbar-name, .brandbar-links {
  display: flex;
  align-items: center;
}

.brandbar-inner {
  min-height: 4.55rem;
  padding-block: .85rem;
  gap: .75rem 2rem;
  justify-content: space-between;
}

.brandbar-name {
  gap: .65rem;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brandbar-name img { flex: none; display: block; }
.brandbar-suffix { color: #666; font-weight: 400; }
.brandbar-links { gap: .45rem clamp(.85rem, 2.1vw, 1.65rem); flex-wrap: wrap; }
.brandbar-links a { color: #4d4b47; font-size: .875rem; text-decoration: none; }
.brandbar-links a:hover, .brandbar-links a[aria-current] { text-decoration: underline; }

.home-band, .page-band {
  background: var(--ink);
  color: var(--on-dark);
}

.refresh .home-band .intro {
  padding-block: clamp(2.65rem, 5vw, 4.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 17.5rem);
  gap: clamp(1.75rem, 6vw, 5.5rem);
  align-items: center;
}

.refresh .hero-name {
  color: var(--amber);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.refresh .home-band h1 {
  margin: .65rem 0 1rem;
  color: #fff;
  font-size: clamp(2.55rem, 5.25vw, 4.5rem);
  font-weight: 750;
  line-height: 1.035;
  letter-spacing: -.055em;
}

.motto-mobile-break { display: none; }

.refresh .home-band .bio {
  color: var(--dark-muted);
  max-width: 38rem;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
}

.refresh .home-band .availability-note {
  color: var(--dark-muted);
  border-color: #676464;
  overflow-wrap: anywhere;
}

.refresh .home-band figure.portrait {
  width: 100%;
  max-width: 17.5rem;
  margin: 0;
  align-self: center;
  justify-self: end;
}

.refresh .home-band .portrait picture { display: block; }

.refresh .home-band .portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: .375rem;
}

.refresh .home-band .portrait figcaption {
  margin-top: .6rem;
  color: var(--dark-muted);
  font-size: .875rem;
  text-align: start;
}

.refresh .home-band .link-row {
  margin-top: 1.45rem;
  gap: .7rem;
}

.refresh .home-band .link-row a, .refresh .page-band .button {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: .55rem .85rem;
  border: 1px solid var(--amber);
  border-radius: .25rem;
  color: var(--ink);
  background: var(--amber);
  font-size: .875rem;
  font-weight: 750;
  text-decoration: none;
}

.refresh .home-band .link-row .button {
  border-color: #938c83;
  background: transparent;
  color: #fff;
}

.refresh .home-band .link-row a:hover, .refresh .page-band .button:hover {
  box-shadow: 0 0 0 2px var(--amber);
}

.refresh .home-band :focus-visible, .refresh .page-band :focus-visible, .refresh .contact :focus-visible {
  outline-color: var(--amber);
}

.project-index { padding-block: clamp(2rem, 4.2vw, 3.5rem); }
.project-index h2 { margin-bottom: 1.3rem; }
.project-index-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.project-index-grid article { border-top: 1px solid var(--line); padding-top: .8rem; }
.project-index-grid .project-index-label { color: var(--gold-dark); font-weight: 700; font-size: .875rem; }
.project-index-grid h3 { margin: .35rem 0; font-size: 1.12rem; line-height: 1.25; }
.project-index-grid h3 a { text-decoration: none; }
.project-index-grid h3 a:hover { text-decoration: underline; }
.project-index-grid article > p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.5; }

.refresh .page-band :is(.about-intro, .archive-intro, .paper-hero) {
  max-width: none;
  padding-block: clamp(2.45rem, 5vw, 4.25rem);
}

.refresh .page-band h1 {
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
}

.refresh .page-band :is(p, .paper-byline, .paper-subtitle, .paper-lead, .about-index a, .text-link) {
  color: var(--dark-muted);
}

.refresh .page-band :is(.meta, .eyebrow) { color: var(--amber); }
.refresh .page-band h1 span { color: var(--on-dark); }
.refresh .page-band a { text-decoration-color: var(--amber); }
.refresh .page-band .link-row a:not(.button) { color: var(--on-dark); }
.refresh .catalogue-body { padding-top: 2rem; }
.refresh .paper-main { padding-bottom: 4rem; }
.refresh .paper-main .paper-layout { margin-top: 2.5rem; }
.refresh .contact { background: var(--ink); color: #fff; }

@media screen {
  .refresh.cv-page {
    background: var(--soft);
    color: var(--text);
    font-size: 1rem;
  }

  .refresh.cv-page .utility {
    width: min(51rem, calc(100% - 2.5rem));
    margin: 1.25rem auto 0;
  }

  .refresh.cv-page .sheet {
    width: min(51rem, calc(100% - 2.5rem));
    min-height: 0;
    margin: 1rem auto 1.75rem;
    padding: clamp(1.1rem, 4.5vw, 2.75rem);
    border: 1px solid var(--line);
    background: #fff;
  }

  .refresh.cv-page .masthead {
    background: var(--ink);
    color: #fff;
    margin: 0 0 1.35rem;
    padding: clamp(1.15rem, 3vw, 2rem);
  }

  .refresh.cv-page .masthead h1 { font-size: clamp(1.6rem, 4vw, 2.45rem); }
  .refresh.cv-page .masthead :is(.contacts, .availability) { color: var(--dark-muted); }
  .refresh.cv-page .masthead .affiliation { color: var(--amber); }
  .refresh.cv-page .masthead :focus-visible { outline-color: var(--amber); }
  .refresh.cv-page .page-foot { position: static; margin-top: 1.5rem; flex-wrap: wrap; }
  .refresh.cv-page :is(h3, .summary) { font-size: 1rem; }
  .refresh.cv-page :is(.summary, .entry, .publication) { margin-bottom: 1rem; }
  .refresh.cv-page h2 { margin-top: 1.4rem; color: var(--gold-dark); font-size: .88rem; }
}

@media (max-width: 52rem) {
  .project-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .brandbar-inner { position: relative; flex-direction: column; align-items: flex-start; }
  .brandbar-links a:last-child { position: absolute; top: .9rem; right: 0; padding: .35rem 0 .35rem .5rem; font-weight: 750; }

  .refresh .home-band .intro {
    --motto-size: clamp(1.75rem, 9vw, 2.65rem);
    --portrait-size: calc(var(--motto-size) * 2.92);
    grid-template-columns: minmax(0, 1fr) var(--portrait-size);
    grid-template-areas: "name name" "motto portrait" "bio bio" "links links" "availability availability";
    gap: 0 clamp(.75rem, 4vw, 1.5rem);
    padding-block: 1.75rem 2rem;
  }

  .refresh .home-band .intro-copy { display: contents; }
  .refresh .home-band .hero-name { grid-area: name; font-size: .75rem; margin-bottom: .9rem; }
  .refresh .home-band h1 {
    grid-area: motto;
    margin: 0;
    font-size: var(--motto-size);
    line-height: 1.085;
  }

  .motto-mobile-break { display: initial; }
  .motto-desktop-break { display: none; }

  .refresh .home-band figure.portrait { grid-area: portrait; position: relative; }
  .refresh .home-band .portrait figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .refresh .home-band .bio { grid-area: bio; margin-top: 1.1rem; }
  .refresh .home-band .link-row { grid-area: links; margin-top: 1.15rem; }
  .refresh .home-band .availability-note { grid-area: availability; }
}

@media (max-width: 23rem) {
  .project-index-grid { grid-template-columns: 1fr; }
}

@media print {
  .brandbar { display: none !important; }
  .refresh.cv-page { --text: #222222; --gold: #e0a03d; --gold-dark: #b67619; }
}

.thesis-summary {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .35rem;
  padding-block: 1.15rem;
}

.thesis-summary h4 { margin: 0 0 .45rem; }

@media (min-width: 50rem) {
  .thesis-summary { grid-template-columns: 12.5rem minmax(0, 1fr); gap: 1.5rem; }
}
