@font-face {
  font-family: "Univers Local";
  src: local("Univers 55"), local("Univers 55 Roman"), local("UniversLTStd"), local("Univers");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url(assets/barlow-condensed-extrabold.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
}

html[data-type="helvetica"] {
  --heading-font: "Barlow Condensed", "Arial Narrow", sans-serif;
  --subheading-font: "Cormorant Garamond", Georgia, serif;
  --utility-font: system-ui, sans-serif;
  --text-font: system-ui, sans-serif;
  --utility-size: 12px;
  --utility-weight: 800;
  --utility-tracking: .16em;
  --cream: #f4e8d4;
  --bronze: #dda976;
}
html[data-type="helvetica"] h1,
html[data-type="helvetica"] h2 {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -.005em;
  line-height: .85;
}
.hero-copy h1 {
  font-size: clamp(49px, 6.4vw, 110px);
}
html[data-type="helvetica"] .hero-copy h1 {
  width: max-content;
  max-width: none;
  font-size: clamp(48px, 7.5vw, 128px);
  line-height: .87;
  letter-spacing: -.014em;
  transform: scaleX(.68);
  transform-origin: left center;
  white-space: nowrap;
}
html[data-type="helvetica"] h2 {font-size: clamp(44px, 6.1vw, 95px)}
html[data-type="helvetica"] .covers a,
html[data-type="helvetica"] .work-grid .project-link,
html[data-type="helvetica"] .work-dialog h3 {
  font-weight: 800;
  letter-spacing: .01em;
}
html[data-type="helvetica"] .covers a {font-size: clamp(13px, 1.75vw, 25px)}
html[data-type="helvetica"] .work-grid .project-link {font-size: clamp(20px, 2.45vw, 35px)}
html[data-type="helvetica"] .hero-copy p,
html[data-type="univers"] .hero-copy p {color: #ecdfcb}
html[data-type="helvetica"] .action {border-bottom-color: #bf8b5c}

html[data-type="ogg"] {
  --heading-font: Ogg, "Cormorant Garamond", Georgia, serif;
  --utility-font: var(--heading-font);
  --text-font: var(--heading-font);
  --utility-size: 13px;
  --utility-weight: 600;
  --utility-tracking: .19em;
}

html[data-type="univers"] {
  --heading-font: "Univers Local", Arial, sans-serif;
  --utility-font: var(--heading-font);
  --text-font: var(--heading-font);
  --utility-size: 11px;
  --utility-weight: 600;
  --utility-tracking: .14em;
  --cream: #f0e6d7;
  --bronze: #c9a47e;
}
html[data-type="univers"] h1,
html[data-type="univers"] h2 {
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.052em;
}
html[data-type="univers"] .hero-copy h1 {font-size: clamp(46px, 5.7vw, 100px)}
html[data-type="univers"] h2 {font-size: clamp(39px, 5.2vw, 82px)}
html[data-type="univers"] .covers a,
html[data-type="univers"] .work-grid .project-link {font-weight: 500}

body {font-family: var(--text-font, system-ui, sans-serif)}
.hero-copy p {font-weight: 500; line-height: 1.3}
nav a,
.action,
.label,
.work-grid small {
  font-family: var(--utility-font);
  font-size: var(--utility-size, 11px);
  font-weight: var(--utility-weight, 500);
  letter-spacing: var(--utility-tracking, .16em);
}
nav a {letter-spacing: .12em}
.action {letter-spacing: .15em}
.selected > .label,
.campaign > .label,
.portfolio .work-grid small {
  font-family: system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: .1em;
}

.selected > .label {
  font-size: 13px;
  line-height: 1.4;
}

.work-grid small {margin-bottom: 6px}

@media (max-width: 730px) {
  .portfolio .work-grid small {
    margin-bottom: 8px;
    color: #eed0a6;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: .08em;
  }
}
.work-dialog button {font-family: var(--utility-font)}

.campaign h2 {letter-spacing: -.025em}
.portfolio h2 {letter-spacing: -.035em}
.inquire-title {letter-spacing: -.01em}
html[data-type="helvetica"] .campaign h2 {letter-spacing: .01em}
html[data-type="helvetica"] .portfolio h2 {letter-spacing: -.015em}
html[data-type="univers"] .portfolio h2 {letter-spacing: -.045em}

html[data-type="helvetica"] .hero-copy p,
html[data-type="helvetica"] .inquire-intro {
  font-family: var(--subheading-font);
}

html[data-type="helvetica"] .hero-copy p {
  font-size: clamp(20px, 1.85vw, 29px);
}

.type-preview {
  display: flex;
  position: fixed;
  z-index: 6;
  bottom: 16px;
  right: 16px;
  gap: 2px;
  max-width: calc(100vw - 32px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #231711f2;
  box-shadow: 0 8px 20px #180e09a0;
}
.type-preview[hidden] {display: none}
.type-preview button {
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--cream);
  padding: 8px 10px;
  font: 11px/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.type-preview button[aria-pressed="true"] {background: #ead5b5;color: #24170f}

@media (min-width:731px) and (max-height:850px) {
  html[data-type="helvetica"] .hero-copy h1 {font-size: min(7.5vw,12.8vh)}
  html[data-type="univers"] .hero-copy h1 {font-size: min(5.7vw,11vh)}
}
@media (max-width:730px) {
  .hero-copy h1 {font-size: clamp(38px, 9.5vw, 70px)}
  html[data-type="helvetica"] .hero-copy h1 {font-size: clamp(40px, 11.5vw, 82px)}
  html[data-type="univers"] .hero-copy h1 {font-size: clamp(35px, 8.8vw, 66px)}
}
.inquire .inquire-title {
  font-size: clamp(32px, 6.8vw, 106px);
}

@media (max-width:380px) {
  .type-preview {right: 8px;bottom: 8px}
  .type-preview button {padding-inline: 7px}
}
