@font-face {
  font-family: Caslon;
  src: url('/assets/caslon.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
:root {
  color-scheme: light;
  background: #f8f5ee;
  color: #211f20;
  font-family: Caslon, Georgia, serif;
  --page-width: min(1200px, calc(100% - 112px));
  --paper: #f8f5ee url('/assets/ivory-paper-seamless.svg') repeat;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; background: var(--paper); background-size: 1700px 1700px; }
a, button { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 1px solid #211f20; outline-offset: 8px; }
body[data-view=home] .view:not(#home),
body[data-view=portfolio] .view:not(#portfolio) { display: none; }
h1, h2, p { font-weight: 400; }
.home-page { min-height: 100svh; display: grid; padding: 48px 14vw; }
.home-page main { display: flex; align-items: center; justify-content: center; }
.identity { width: min(100%, 880px); margin: 0; }
.wordmark { display: block; width: 100%; height: auto; }
.header, .content { width: var(--page-width); margin-inline: auto; }
.header {
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
}
.home-link { width: 176px; display: block; }
.home-link img { display: block; width: 100%; height: auto; }
body[data-view=home] .site-header .home-link { visibility: hidden; pointer-events: none; }
.menu-toggle, .menu-close {
  border: 0;
  background: transparent;
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  cursor: pointer;
  padding: 12px;
}
.menu-toggle span { width: 26px; height: 1px; background: currentColor; display: block; margin: 4px 0; }
.menu-close::before, .menu-close::after {
  content: '';
  width: 27px;
  height: 1px;
  background: currentColor;
  grid-area: 1 / 1;
  transform: rotate(45deg);
}
.menu-close::after { transform: rotate(-45deg); }
.content { padding: 164px 0 100px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: space-between;
  column-gap: 0;
  row-gap: 88px;
  padding: 0 0 32px;
  list-style: none;
  margin: 0;
}
.company { height: 104px; display: flex; align-items: center; justify-content: center; }
.logo-link { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.company img { display: block; width: var(--logo-width); max-width: 100%; height: auto; position: relative; top: var(--logo-offset, 0px); }
.logo-static { position: relative; width: var(--logo-width); max-width: 100%; }
.logo-static img { width: 100%; }
.exited {
  position: absolute;
  bottom: calc(100% + 5px);
  right: -5px;
  white-space: nowrap;
  color: #6c6862;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: var(--paper);
  background-size: 1700px 1700px;
  color: #211f20;
}
.menu::backdrop { background: #f8f5ee; }
.menu nav { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; }
.menu nav a { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.035em; text-decoration: none; line-height: 1.3; }
.menu nav a[aria-current=page] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 12px; }
.menu nav a:hover { opacity: .76; }
.fallback-nav { display: none; }
body.menu-open { overflow: hidden; }
@media (max-width: 1150px) {
  :root { --page-width: calc(100% - 72px); }
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; row-gap: 56px; }
}
@media (max-width: 600px) {
  :root { --page-width: calc(100% - 48px); }
  .header { height: 96px; }
  .home-link { width: 140px; }
  .home-page { padding: 32px 14vw; }
  .content { padding: 132px 0 64px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; padding-bottom: 20px; }
  .company { height: 52px; }
  .company img, .logo-static { width: calc(var(--logo-width) * .7); }
  .company img { top: calc(var(--logo-offset, 0px) * .7); }
  .logo-static img { width: 100%; }
  .exited {
    font-size: 9px;
    /* Keep the 5px overhang within the cell as phone columns narrow. */
    right: clamp(-5px, calc((var(--logo-width) * .7 - (100vw - 72px) / 2) / 2), 0px);
  }
  .menu nav { gap: 30px; }
}
.logo-art { display: block; position: relative; width: var(--logo-width); max-width: 100%; top: var(--logo-offset, 0px); }
.logo-art img { width: 100%; height: auto; top: 0; transition: opacity 200ms; }
.logo-art .logo-color { position: absolute; inset: 0; height: 100%; opacity: 0; pointer-events: none; }
.logo-static .logo-art { width: 100%; top: 0; }
.logo-link:focus-visible .logo-mono { opacity: 0; }
.logo-link:focus-visible .logo-color { opacity: 1; }
@media (hover: hover) {
  :is(.logo-link, .logo-static):hover .logo-mono { opacity: 0; }
  :is(.logo-link, .logo-static):hover .logo-color { opacity: 1; }
}
@media (max-width: 600px) {
  .logo-art { width: calc(var(--logo-width) * .7); top: calc(var(--logo-offset, 0px) * .7); }
  .logo-static .logo-art { width: 100%; top: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
