:root {
  --gutter: clamp(1rem, 4vw, 4.5rem);
  --content-max: 84rem;
  --reading-max: 48rem;
  --section-space: clamp(2.5rem, 5vw, 5rem);
  --heading-ink: #242923;
}

.site-header { min-height: 4.25rem; }
.site-header nav { gap: clamp(.65rem, 1.6vw, 1.5rem); }
.site-header .logo { max-width: 8.5rem; }
.site-header .cta, .interior-cta .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  white-space: nowrap;
}
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #876520;
  outline-offset: 3px;
}

.interior {
  --interior-gutter: max(var(--gutter), calc((100% - var(--content-max)) / 2));
}
.interior-heading {
  padding: clamp(1.65rem, 4vw, 3.5rem) var(--interior-gutter) clamp(1.85rem, 4.5vw, 3.75rem);
  background: #efeee5;
}
.interior-heading .breadcrumbs {
  gap: .25rem .75rem;
  margin-bottom: .9rem;
  color: #525b50;
  font-size: .875rem;
  font-weight: 500;
}
.breadcrumbs a + a::before { margin-right: .75rem; }
.interior-heading h1 {
  max-width: 23ch;
  margin: 0;
  color: var(--heading-ink);
  font-size: clamp(2.15rem, 1.65rem + 2.1vw, 4rem);
  line-height: 1.09;
  letter-spacing: -.045em;
  font-weight: 600;
  text-wrap: pretty;
}
.interior-heading--long h1 {
  max-width: 38ch;
  font-size: clamp(1.8rem, 1.35rem + 1.65vw, 3.1rem);
  line-height: 1.13;
  letter-spacing: -.035em;
}
.interior-heading > p {
  max-width: 64ch;
  margin: .9rem 0 0;
  color: #4f594d;
  font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
  line-height: 1.55;
}
.content-body {
  width: min(calc(100% - 2 * var(--gutter)), var(--reading-max));
  padding-block: clamp(1.9rem, 4vw, 3.75rem);
  font-size: clamp(1rem, .97rem + .2vw, 1.125rem);
  line-height: 1.65;
}
.interior--wide .content-body {
  width: min(calc(100% - 2 * var(--gutter)), 67rem);
}
.reading {
  display: flow-root;
  min-width: 0;
}
.reading > :first-child { margin-top: 0; }
.reading > :last-child { margin-bottom: 0; }
.content-body :is(h2, h3, h4) {
  color: var(--heading-ink);
  font-weight: 650;
  line-height: 1.24;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.content-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.content-body h3 { font-size: clamp(1.2rem, 1rem + .65vw, 1.65rem); }
.content-body h4 { font-size: 1.075em; }
.content-body time {
  display: block;
  margin-bottom: 1rem;
  font-size: .875rem;
}
.reading :is(iframe, embed, object) { max-width: 100%; }
.reading :is(ul, ol) { padding-inline-start: 1.45em; }
.reading pre { max-width: 100%; overflow: auto; }
.reading :is(p, li, blockquote) { text-wrap: pretty; }
.content-body .gallery {
  grid-template-columns: repeat(auto-fit, minmax(min(11.5rem, 100%), 1fr));
  gap: clamp(.55rem, 1.5vw, 1.2rem);
}
.interior--project .content-body > figure.image {
  max-width: 57rem;
  margin: 0 auto 1.75rem;
}
.interior--project .content-body > figure.image img { width: 100%; }
.content-body .gallery a { display: block; }
.content-body .gallery img { border: 1px solid #d9d8cb; }
.project-lightbox {
  width: min(calc(100% - 2rem), 64rem);
  max-height: calc(100dvh - 2rem);
  padding: 3.2rem .85rem 1rem;
  border: 0;
  border-radius: .45rem;
  background: #f7f6ef;
  color: var(--ink);
}
.project-lightbox::backdrop { background: #151d18e8; }
.project-lightbox img {
  display: block;
  width: 100%;
  height: min(63dvh, 42rem);
  object-fit: contain;
  background: #e8e7de;
}
.project-lightbox figcaption { padding: .5rem; text-align: center; }
.project-lightbox button {
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-inline: .8rem;
  border: 1px solid #a3a598;
  border-radius: .25rem;
  background: #fffef9;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.project-lightbox .lightbox-close { position: absolute; inset: .35rem .85rem auto auto; font-size: 1.3rem; }
.lightbox-controls:not([hidden]) { display: flex; justify-content: center; gap: .55rem; }

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #d5d5c7;
  border-radius: .35rem;
  background: #fffef9;
  overscroll-behavior-inline: contain;
}
.table-scroll table {
  display: table;
  width: 100%;
  min-width: 31rem;
  margin: 0;
  font-size: .925rem;
  line-height: 1.45;
  overflow-wrap: normal;
}
.table-scroll :is(th, td) { padding: .7rem .85rem; border-color: #d8d9cd; }
.table-scroll th { text-align: start; background: #e8eadf; color: #2e4235; }
.table-scroll tr:nth-child(even) > td { background: #f4f3eb; }
.table-scroll time { display: inline; white-space: nowrap; }
.table-scroll .table-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.reading table:not(:has(tr)) { display: none; }
.table-note { display: none; color: #535b4e; font-size: .875rem; }
.table-note[data-overflow] { display: block; margin: 1rem 0 .45rem; }
.table-scroll { margin-bottom: 1rem; }
.interior--calendar .reading > :is(p, ul, ol, blockquote) { max-width: 72ch; }

.interior .archive-list { padding: var(--section-space) var(--interior-gutter); }
.interior .archive-tabs { padding: 1.35rem var(--interior-gutter) 0; gap: .55rem; }
.archive-tabs a { padding: .55rem .8rem; border-radius: .25rem; }
.listing-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr));
  gap: clamp(.7rem, 2vw, 1.5rem);
  align-items: stretch;
}
.archive-card {
  display: flex;
  flex-direction: column;
  border-radius: .35rem;
  background: #f1efe6;
}
.archive-card:hover { border-color: #8b8f78; text-decoration: none; }
.archive-card:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.archive-card img { border-radius: .3rem .3rem 0 0; }
.archive-caption { padding: .95rem 2rem .95rem .95rem; margin-block: auto; }
.archive-caption h3 { font-size: clamp(1.05rem, .94rem + .55vw, 1.375rem); line-height: 1.28; letter-spacing: -.02em; }
.archive-caption time { display: block; margin-bottom: .4rem; }
.archive-caption span { right: .75rem; bottom: .95rem; }
.interior-cta { padding: 1.5rem var(--interior-gutter); gap: .75rem 1.5rem; }
.interior-cta h2 { font-size: clamp(1.4rem, 1.12rem + 1vw, 2.125rem); line-height: 1.25; letter-spacing: -.03em; }

.site-search { margin-top: 1rem; max-width: 36rem; }
.site-search > div { display: flex; gap: .5rem; }
.site-search input { flex: 1; width: auto; min-width: 0; min-height: 2.75rem; border-radius: .2rem; }
.site-search button { min-height: 2.75rem; border-radius: .2rem; }
.content-body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), textarea, select),
#enquiry :is(input, textarea, select) { font-size: 1rem; max-width: 100%; }
.content-body :is(button, input[type=submit]), #enquiry button { min-height: 2.75rem; }
.office-addresses { grid-template-columns: repeat(auto-fit,minmax(min(13rem,100%),1fr)); }
.office-addresses > div { min-width: 0; }
.office-addresses > div > div { min-width: 0; overflow-wrap: anywhere; }

.hero { min-height: clamp(28rem, 41vw, 39rem); }
.hero .lead { min-width: 0; }
.hero h1 {
  font-size: clamp(3rem, 1.3rem + 4.5vw, 6.25rem);
  line-height: 1;
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
}
.hero .intro { max-width: 39ch; line-height: 1.6; }
:is(.projects, .services, .assembly, .showcase, .markets, .planning, .talk, #brief) h2 {
  font-size: clamp(1.9rem, 1.32rem + 2.15vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -.048em;
}
.home-details.content-body { width: auto; }
.exhibit-rail h3 { font-size: clamp(1.4rem, 1rem + 1.7vw, 2.7rem); line-height: 1.1; }
.work-tools output { white-space: nowrap; }
.slide-nav button, .work-tools button { min-width: 2.75rem; min-height: 2.75rem; }
.footer-directory a { overflow-wrap: anywhere; }
.footer-base { flex-wrap: wrap; gap: .4rem 1rem; }

@media (max-width: 920px) {
  .menu-toggle {
    min-height: 2.75rem;
    font: 600 .875rem/1.2 "Segoe UI", Arial, sans-serif;
  }
  .site-header nav { max-height: calc(100vh - 4.25rem); overflow-y: auto; }
  .site-header nav a { display: flex; align-items: center; min-height: 2.75rem; }
  .site-header nav .cta { justify-content: center; }
}

@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero .lead { padding-block: 1.9rem; }
  .hero h1 { font-size: clamp(2.55rem, 1.5rem + 4.9vw, 4.1rem); margin-block: .9rem; }
  .hero .feature { min-height: clamp(15rem, 70vw, 22rem); }
  .hero .under { margin-top: 1rem; }
  .interior-heading .breadcrumbs { margin-bottom: .75rem; }
  .content-body .gallery { grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr)); }
  .interior-cta { align-items: flex-start; }
  .studio-footer { padding-inline: var(--gutter); }
  .reading > table { display: block; overflow-x: auto; }
}

@media (max-width: 420px) {
  .exhibit-gallery .section-title { align-items: flex-start; flex-wrap: wrap; }
  .work-tools { align-self: flex-end; }
  .office-addresses { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .feature figcaption { left: .6rem; bottom: .6rem; max-width: calc(100% - 1.2rem); padding: .45rem .6rem; gap: .55rem; }
  .feature figcaption span { padding-left: .55rem; }
}
