@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Gap Sans";
  src: url("../fonts/gapsans-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gap Sans Bold";
  src: url("../fonts/gapsansbold-webfont.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gap Sans Black";
  src: url("../fonts/gapsansblack-webfont.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --padding: 20px;
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #777;
  --color-light: #efefef;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #a7bd68;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #b294bb;
  --font-family-serif: "Times New Roman", serif;
  --font-family-sans: "Gap Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background-color: #F7F7EB;
}
img {
  max-width: 100%;
  display: block;
  margin: auto;
}

body {
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 1em;
  max-width: 700px;
  padding: 20px;
  margin: 0 auto;
  background-color: #F7F7EB;
}

li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}

@keyframes fast-shake {
  0% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(1px, -1px) rotate(0.4deg); }
  40% { transform: translate(-1px, 1px) rotate(-0.4deg); }
  60% { transform: translate(1px, 1px) rotate(0.4deg); }
  80% { transform: translate(-1px, -1px) rotate(-0.4deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

a:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  animation: fast-shake 100ms ease-in-out infinite;
  will-change: transform;
}

.home-menu__toggle:hover {
  animation: none;
}

a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input[type="button"]:focus,
input[type="button"]:focus-visible,
input[type="submit"]:focus,
input[type="submit"]:focus-visible,
a:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active {
  animation: none;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.color-grey {
  color: var(--color-text-grey);
}

.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.home-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.home-menu {
  position: fixed;
  top: 50%;
  left: 2vh;
  transform: translateY(-50%);
  height: 700px;
  width: 170px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  overflow: hidden;
  z-index: 1;
}

@media (max-height: 699px) {
  .home-menu {
    display: none;
  }

  .home-main {
    margin-left: 0;
  }
}

@media (max-width: 64rem) {
  .home-menu {
    display: none;
  }
}

.home-menu__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: block;
}

.home-menu__frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-menu__frame svg .st0,
.home-menu__frame svg [stroke] {
  fill: #F7F7EB;
  stroke: #000;
  stroke-width: 2px !important;
}

.home-menu > *:not(.home-menu__frame) {
  position: relative;
  z-index: 1;
}

.home-menu__toggle {
  position: absolute !important;
  top: 12px;
  left: 20px;
  width: 15px;
  height: 15px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1.5px solid #111;
  background: transparent;
  cursor: pointer;
  z-index: 4;
}

.home-menu.is-alt-logo .home-menu__toggle {
  background: #111;
}

.home-menu__logo [data-logo-secondary] {
  display: none;
}

.home-menu.is-alt-logo .home-menu__logo [data-logo-primary] {
  display: none;
}

.home-menu.is-alt-logo .home-menu__logo [data-logo-secondary] {
  display: block;
}

.home-menu__logo {
  margin-top: 10px;
  margin-bottom: -10px;
}

.home-menu__logo img {
  width: 100%;
  height: auto;
}

.home-menu__logo span {
  display: block;
  line-height: 0;
  font-size: 0;
}

.home-menu__logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.home-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.home-menu__link {
  font-size: 0.95rem;
  display: inline-block;
  padding: 18px 14px;
  text-transform: lowercase;
  width: 100%;
  text-align: center;
  border: none;
  position: relative;
}

.home-menu__link-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.home-menu__link-border svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-menu__link-border svg .st0,
.home-menu__link-border svg [stroke] {
  stroke-width: 2px !important;
}

.home-menu__link-text {
  position: relative;
  z-index: 1;
}

.home-menu__contact,
.home-menu__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

.home-menu__contact a,
.home-menu__social a,
.home-menu__links a {
  display: inline-block;
}

.home-menu__address {
  font-size: 0.95rem;
  line-height: 1.35;
}

.home-menu__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2vh;
}

.logo {
  padding: 20px 0 20px 0;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.social {
  display: flex;
  padding: 0 .5rem;
}
.social a {
  padding: 1rem .5rem;
}

.grid {
  margin-top: 80px;
  --columns: 12;
  --gutter: 20px;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: 0;
}

.grid > .column:last-child .project-excerpt {
  margin-bottom: 4rem;
}

.autogrid {
  --gutter: 20px;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: bold;
  line-height: inherit;
  padding-top: 20px;
}

.text {
  line-height: 1.5em;
}
.text a {
  text-decoration: underline;
}
.text a:hover {
  text-decoration: none;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}

.intro-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 5vw;
  background: #d8c9a8;
}

.no-scroll {
  overflow: hidden;
  height: 100%;
}

.intro-modal.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-modal__panel {
  position: relative;
  width: min(980px, 100%);
  min-height: min(640px, 90vh);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-content: start;
  background: #d8c9a8;
  color: #111;
  z-index: 1;
}

.intro-modal__panel::before,
.intro-modal__panel::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  opacity: 1;
  z-index: 0;
}

.intro-modal__panel::before {
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  background-image: url("../imgs/intro-modal-texture-1.png");
  background-position: top right;
}

.intro-modal__panel::after {
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  background-image: url("../imgs/intro-modal-texture-2.png");
  background-position: bottom left;
}

.intro-modal__panel > * {
  position: relative;
  z-index: 1;
}

.intro-modal__logo img {
  max-width: 160px;
}

.intro-modal__text {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  max-width: 28rem;
}

.intro-modal__action {
  grid-column: 2 / -1;
  margin-top: 0rem;
  font-weight: 600;
  text-transform: lowercase;
  text-decoration: underline;
  justify-self: start;
}

@media (max-width: 760px) {
  .intro-modal {
    padding: 18px;
  }

  .intro-modal__logo {
    display: none;
  }

  .intro-modal__panel {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    min-height: 90vh;
    font-size: 1.05rem;
  }

  .intro-modal__action {
    grid-column: 1 / -1;
    margin-top: auto;
    font-size: 1.3rem;
    text-align: left;
  }

  .intro-modal__panel::before,
  .intro-modal__panel::after {
    width: 150vw;
    height: 100%;
  }

  .intro-modal__text {
    font-size: 1.3rem;
  }
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1 {
  font-size: 2rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
}
.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.text h3 {
  font-weight: 600;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 1rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 1rem 0;
  max-width: 800px;;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
  text-align: center;
  font-size: .85em;
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}


.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.margin-xl {
  margin-bottom: 4.5rem;
}


@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }

}

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.project-excerpt {
  line-height: 1.5em;
}

.figure-wrapper {
  background-color: #0000ff;
  margin: 0;
  padding: 0;
}

.project-excerpt figure {
  /* margin-bottom: .5rem; */
  filter: grayscale(1);
}
.project-excerpt figure:hover,
.project-excerpt:hover figure {
  mix-blend-mode: multiply;
}
.project-excerpt-title {
  font-weight: 600;
}

.project-excerpt {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-excerpt-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.project-excerpt-media,
.project-excerpt-body {
  flex: 1 1 50%;
}

.project-excerpt-media {
  display: block;
}

.project-excerpt-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
}

.project-excerpt-title a {
  text-decoration: none;
  color: inherit;
}

.project-excerpt-description {
  margin: 0;
  color: var(--color-text-grey);
  font-size: 0.95em;
}

.project-pdf {
  margin-top: 3rem;
  border: 2px solid currentColor;
  display: flex;
  justify-content: center;
}

.project-pdf a {
  width: 100%;
  display: block;
  padding: 1rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.project-pdf a:hover {
  background: var(--color-black);
  color: var(--color-white);
}

@media screen and (max-width: 59.999rem) {
  .project-excerpt-row {
    flex-direction: column;
  }

  .project-excerpt-media,
  .project-excerpt-body {
    flex: 1 1 auto;
  }
}

.project-tags {
  list-style: none;
  margin: 0.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.85em;
}

.project-tags li a {
  text-decoration: none;
  color: var(--color-text-grey);
  background: var(--color-bg-light);
  padding: 0em .6em;
  border-radius: 3em;
  border: 1px solid var(--color-text-grey);
}


#footnotes {
  color: var(--color-grey);
  font-size: .85em;
}


sup.footnote {
  font-size: .85em;
  vertical-align: super;
  line-height: 0;
  font-weight: bold;
}

sup.footnote > a {
  text-decoration: none;
}

sup.footnote > a:hover {
  text-decoration: underline;
}
