@import url("https://use.typekit.net/gnu6eqb.css");

/* Variables */

:root {
  --font-size-h1: clamp(22px, 2.4vw, 34px);
  --font-size-h2: 14px;
  --font-size-p: 14px;
  --thumbnail-width: 462px;
  --thumbnail-height: 260px;
  --image-gap: 130px;
}

/* RESET-ISH / GENERAL */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  color: #0068ff;
}

h1 {
  font-family: halyard-display, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: var(--font-size-h1);
  letter-spacing: 0.005em;
  line-height: 1.02;
}

h2 {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: var(--font-size-h2);
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}

p {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: var(--font-size-p);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.light-italic {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: var(--font-size-p);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.bold {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: var(--font-size-p);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.dash {
  margin-right: -0.04em;
}

/* ABOUT PAGE STYLES *************************************/

/* ABOUT PAGE BACKGROUND */

.blue-background {
  background-image: url("assets/background_blue.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  width: 100%;
  height: 100vh;
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* ABOUT PAGE NAV */

#about-page-nav {
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  width: 100%;
  height: 70px;
  padding: 0 20px;
  z-index: 1000;
  color: white;
}

.home-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

a {
  text-decoration: none;
  list-style: none;
  color: inherit;
  cursor: pointer;
}

a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

/* ABOUT PAGE CONTENT CONTAINER */
.about-content {
  display: flex;
  flex-direction: column;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

#bio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: calc(100vh - 140px);
  gap: 1rem;
  color: white;
}

.large-text {
  width: 664px;
  max-width: 100%;
  /* line-height: 1.05; */
  font-size: 33px;
}

.small-text {
  width: clamp(320px, 34vw, 420px);
  line-height: 1.15;
  /* font-weight: 300; */
}

#contact {
  width: 100%;
  height: 70px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

#contact a {
  color: white;
  font-family: neue-haas-grotesk-display, sans-serif;
  /* font-weight: 300; */
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* HOME PAGE STYLES *************************************/

#home-page-nav {
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  width: 100%;
  height: 70px;
  padding: 0 20px;
  z-index: 1000;
}

#home-page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1500px;
  padding: 95px 20px;
  margin: 0 auto;
  gap: var(--image-gap);
}

.home-project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

.label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

.label h1 {
  max-width: var(--thumbnail-width);
}

.label p,
h2 {
  width: clamp(400px, 48vw, 692px);
}

/* SPECIFIC PROJECT PAGE STYLES *************************************/

/* PROJECT PAGE BACKGROUND */

.beige-background {
  background-image: url("assets/background_beige.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
  width: 100%;
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* PROJECT PAGE NAV */

#project-page-nav {
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  height: 70px;
  width: 100%;
  padding: 0 20px;
  z-index: 1000;
}

/* PROJECT PAGE CONTENT CONTAINER */
.project-content {
  display: flex;
  flex-direction: column;
  max-width: 1500px;
  margin: 0 auto;
  padding: 70px 20px;
}

/* PROJECT OVERVIEW */

.project-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0 105px 0; /* T R B L */
  gap: 0.9rem;
}

.project-overview h1,
h2,
p {
  width: clamp(400px, 48vw, 692px);
  max-width: calc(100vw - 40px);
}

/* PROJECT IMAGES */

.project-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--image-gap);
  padding-bottom: 150px;
}

.project-images img,
.home-project-card img {
  width: var(--thumbnail-width);
  max-width: calc(100vw - 40px);
  height: auto;
  cursor: pointer;
}

.project-images .extra-narrow,
.home-project-card .extra-narrow {
  width: 210px;
}

.project-images .narrow,
.home-project-card .narrow {
  width: 350px;
}

.project-images .wide,
.home-project-card .wide {
  width: 600px;
}

.project-images .extra-wide,
.home-project-card .extra-wide {
  width: 800px;
}

.home-img-wrap {
  position: relative;
  display: inline-block;
}
.home-img-wrap img {
  display: block;
}

.home-img-overlay {
  position: absolute;
  inset: 0;
}

.overlay-blend-dark {
  background-color: black;
  mix-blend-mode: color;
  opacity: 0.7;
}

.overlay-blend-light {
  background-color: black;
  mix-blend-mode: color;
  opacity: 0.7;
}

.overlay-fill-white {
  background-color: white;
  opacity: 0.1;
}

.overlay-fill-black {
  background-color: black;
  opacity: 0.04;
}

/* Create a zoomable / clickable area that fills the image container */
.zoom {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
}

/* Overlay after clicking to zoom */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: zoom-out;
}

#overlay img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
