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

* {
  margin: 0;
  padding: 0;
}

:root {
  --padding-block: 16px;
  --padding-inline: 24px;
  --palmtree: #118c3c;
  --palmtree25: rgba(17, 140, 60, 0.25);
  --darkpalmtree: #0a5a26;
  --butter: #fff1cf;
  --fg: var(--palmtree);
  --bg: var(--butter);
  --Hh: 150px;
}

/* Import your font files */
@font-face {
  font-family: "Martin";
  src:
    url("../fonts/MartinaPlantijn-Black.woff2") format("woff2"),
    url("../fonts/MartinaPlantijn-Black.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  font-family: "Martin", serif;
  font-size: 12px;
  color: var(--fg);
  background: var(--bg);
}

body {
  width: 100%;
}

.fl {
  font-size: 25px;
  text-transform: uppercase;
}

img {
  width: 100%;
}

main {
  width: 100%;
  min-height: calc(100dvh - var(--Hh) - var(--padding-block));
  padding-top: var(--Hh);
  padding-inline: var(--padding-inline);
  padding-bottom: var(--padding-block);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 10px;
  row-gap: 100px;
  width: 100%;
}

section {
  position: relative;
  z-index: 5;
}

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  align-items: center;
  padding-block: 16px;
  padding-inline: 24px;
  transition: 0.7s color ease;
}

header.reverse {
  color: var(--butter);
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding-block: 24px;
  padding-inline: 24px;
  pointer-events: none;
}

.nav-project-title {
  opacity: 0;
  transition: 0.5s opacity ease;
  white-space: nowrap;
  color: var(--butter);
}

.nav-project-title.active {
  opacity: 1;
}

.logo {
  grid-column: 1/6;
  white-space: nowrap;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

nav {
  grid-column: 6/9;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
}
nav a {
  display: block;
  align-items: center;
  text-transform: lowercase;
  transition:
    0.7s filter ease,
    0.7s opacity ease;
}
nav :not(a[aria-current]) {
  filter: blur(0.8px);
  color: inherit;
  opacity: 1;
}

nav a[aria-current] {
  pointer-events: none;
}

nav a:hover {
  filter: blur(0px);
  opacity: 1;
}
nav:has(a:hover) a:not(:hover) {
  filter: blur(0.8px);
  opacity: 1;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* project page */

.project-background-container {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1;
}

.project-background-image {
  opacity: 0;
  transition: 0.3s opacity ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.project-background-image.active {
  opacity: 1;
}

.project-card {
  transition:
    0.3s filter ease,
    0.3s transform ease;
  filter: blur(0.5px);
}

.project-card.active {
  transform: scale(1.05);
  filter: blur(0px);
}

.project-card.not-active {
  filter: blur(5px);
  transform: scale(0.95);
}

.project-card:nth-child(5n + 1) {
  grid-column: 4/8;
}
.project-card:nth-child(5n + 2) {
  grid-column: 10/-1;
}
.project-card:nth-child(5n + 3) {
  grid-column: 1/3;
}
.project-card:nth-child(5n + 4) {
  grid-column: 9/12;
}
.project-card:nth-child(5n + 5) {
  grid-column: 4/9;
}

.media-block.portrait figure {
  width: 100%;
  aspect-ratio: 0.8;
  object-fit: cover;
}

.media-block.landscape figure {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}

.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project Page */

.project-section.grid-12 {
  align-items: start;
}
.static {
  grid-column: 1/5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sticky {
  position: sticky;
  top: var(--Hh);
  right: 0px;
  grid-column: 6/12;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.description {
  margin-bottom: 6px;
}

.details {
  margin-bottom: 6px;
  /* border-bottom: solid 1px var(--palmtree25); */
}

.details-heading {
  padding-bottom: 2px;
}

.detail {
  display: flex;
  justify-content: space-between;
  border-bottom: solid 1px var(--palmtree25);
  padding-block: 4px;
}

.cta-container {
  padding-top: 6px;
  display: flex;
  gap: 16px;
}

.cta-container :first-child {
  border: 1.5px solid var(--palmtree);
  padding: 8px 16px 8px 16px;
  border-radius: 50px;
}

.cta-container :nth-child(2) {
  border: 1.5px solid transparent;
  padding: 8px 16px 8px 16px;
  border-radius: 50px;
}
