@charset "UTF-8";

@font-face {
  font-family: "Aspekta";
  src: url("./fonts/Aspekta-400.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aspekta";
  src: url("./fonts/Aspekta-500.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aspekta";
  src: url("./fonts/Aspekta-700.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apfel Grotezk";
  src: url("./fonts/ApfelGrotezk-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #fff;
  --color-text: #353b3c;
  --color-accent: #000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family:
    Ronzino,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  font-size: 20px;
  color: var(--color-text);
  line-height: 1.4;
  background-color: var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus,
a:visited {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

svg {
  vertical-align: middle;
}

p {
  margin: 0 0 1rem;
}

b,
strong {
  font-weight: 700;
}

h1,
h3,
h5 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.6rem;
}

h5 {
  font-size: 1rem;
  font-weight: 700;
}

.container {
  width: calc(100% - 120px);
  margin: 0 auto;
  padding: 0 0.75rem;
}

.layout {
  display: grid;
  gap: 1.5rem;
}

.layout--three {
  font-family:
    "Aspekta",
    Ronzino,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  font-size: 22px;
}

.site-nav {
  position: fixed;
  top: 50px;
  margin: 0 60px;
  width: calc(100% - 120px);
  z-index: 9999;
  background: #000;
  border-radius: 6px;
  color: var(--color-bg);
  border: 1px solid var(--color-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0;
  transition: all 0.3s;
}

.site-nav a,
.site-nav a:visited {
  color: var(--color-bg);
  text-decoration: none;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 1rem;
}

.site-nav__brand {
  font-size: 1rem;
  color: var(--color-bg);
}

.site-nav__menu {
  display: flex;
  flex: 1;
}

.site-nav__links {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav__item {
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 0 1rem;
}

.site-nav__item:hover {
  color: var(--color-accent);
}

.site-nav__toggle {
  display: none;
}

.site-nav__toggle-label {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  cursor: pointer;
}

.site-nav__toggle-label span,
.site-nav__toggle-label span::before,
.site-nav__toggle-label span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  position: relative;
  transition: transform 0.2s ease;
}

.site-nav__toggle-label span::before {
  position: absolute;
  top: -6px;
}

.site-nav__toggle-label span::after {
  position: absolute;
  top: 6px;
}

.hero {
  margin-bottom: 4rem;
  height: 95vh;
  padding-top: 20vh;
  height: 100%;
  min-height: 100px;
  width: 100%;
  min-width: 100px;
  position: relative;
  font-family:
    "Aspekta",
    Ronzino,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  background: url("./cover-img-below.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.hero-container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.5rem;
  margin: 0 60px;
  width: calc(100% - 120px);
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./cover-img-above.png") center top / cover no-repeat;
  z-index: 2;
  pointer-events: none;
}

.hero__title-block {
  grid-column: 3 / 8;
  color: black;
  font-weight: 400;
}

.hero__title {
  font-size: 132px;
  line-height: 0.9;
}

.hero__subtitle {
  margin-top: 1rem;
  margin-bottom: 3rem;
  font-weight: 400;
  grid-column: 3 / 12;
}

.hero__details p {
  font-size: 30px;
  line-height: 1.1;
}

.hero__details {
  grid-column: 2 / 12;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.5rem;
  margin: 0 60px;
  width: calc(100% - 120px);
  max-width: none;
}

.container.section-grid {
  max-width: none;
}

.section-grid > * {
  grid-column: 1 / 12;
}

.intro-text {
  font-size: 32px;
  margin-bottom: 5rem;
  font-family: "Apfel Grotezk", "Helvetica Neue", Arial, sans-serif;
  grid-column: 1 / 10;
}

.authors {
  margin-top: 1rem;
  font-family:
    "Aspekta",
    Ronzino,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  font-size: 22px;
}

.location-map,
.site-footer {
  font-family:
    "Aspekta",
    Ronzino,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  font-size: 22px;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.section--spaced {
  margin-top: 3rem;
}

.site-footer {
  margin-top: 5rem;
  padding-bottom: 3rem;
}

.site-footer h5 {
  font-weight: 700;
  font-size: 0.9rem;
}

.site-footer__logos {
  display: flex;
  flex-wrap: wrap;
  height: 2rem;
}

.site-footer__logos img {
  max-width: 100%;
  height: 3rem;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.site-footer__logos a {
  display: inline-flex;
  align-items: center;
}

.projects-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overflow: auto;
  overscroll-behavior: contain;
}

.projects-overlay:target {
  opacity: 1;
  pointer-events: auto;
}

.projects-overlay__panel {
  color: var(--color-text);
  border-radius: 10px;
  padding: 60px;
  max-height: calc(100vh);
  overflow: auto;
  overscroll-behavior: contain;
}

.projects-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.projects-overlay__title {
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  font-size: 1rem;
}

.projects-overlay__close {
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  margin-left: 1rem;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.projects-list__item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.projects-list__image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.projects-list__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.projects-overlay__panel .category {
  font-family:
    "Aspekta",
    Ronzino,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
}

.projects-overlay__panel .title {
  font-family:
    "Aspekta",
    Ronzino,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 0.4;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.project-card__image {
  width: 100%;
  display: block;
}

.project-card__title {
  font-size: 1rem;
  text-align: center;
  margin-top: 0.5rem;
}

.project-card:hover {
  color: var(--color-text);
}

.project-hero {
  padding-top: 20vh;
  margin-bottom: 3rem;
}

.project-strip {
  height: 180px;
  background: url(../projects/squirrels/assets/squirrel_4colours.png) repeat-x;
  background-size: auto 180px;
  margin-bottom: 2rem;
}

.project-title {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.project-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.project-content {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.project-content .container {
  max-width: 65vw;
}

.project-meta {
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.project-label {
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.project-meta-text {
  font-size: 0.9rem;
}

.project-media {
  border-radius: 3px;
  width: 100%;
  display: block;
}

.project-body h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
}

.project-body img {
  width: 100%;
  border-radius: 3px;
}

.project-body blockquote {
  margin: 0 0 2rem;
  color: var(--color-text);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .layout--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layout--two-wide {
    grid-template-columns: 1fr 2fr;
  }

  .layout--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .site-nav {
    top: 10px;
    margin: 0 10px;
    width: calc(100% - 20px);
  }

  .hero-container {
    margin: 0 10px;
    width: calc(100% - 20px);
  }

  .section-grid {
    margin: 0 10px;
    width: calc(100% - 20px);
  }

  .site-nav__inner {
    flex-wrap: wrap;
  }

  .site-nav__brand {
    order: 1;
  }

  .site-nav__toggle-label {
    display: inline-flex;
    order: 2;
  }

  .site-nav__menu {
    display: block;
    width: 100%;
    flex: 0 0 100%;
    order: 3;
    /* margin-top: 0.5rem; */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    /* visibility: hidden; */
    transition: max-height 0.3s ease;
  }

  .site-nav__toggle:checked + .site-nav__toggle-label + .site-nav__menu {
    max-height: 320px;
    opacity: 1;
    /* visibility: visible; */
  }

  .site-nav__links {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    padding-bottom: 0.5rem;
    align-items: flex-start;
  }

  .site-nav__item {
    padding: 0.25rem 0;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 72px;
  }

  .intro-text {
    font-size: 24px;
  }

  .project-title {
    font-size: 2.2rem;
  }

  .project-subtitle {
    font-size: 1.1rem;
  }

  .project-content .container {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  h3 {
    font-size: 1.75rem;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero {
    min-height: 80vh;
    padding-top: 20vh;
  }

  .hero__details p {
    font-size: 1rem;
  }
}
