/* ---------- base ---------- */
:root {
  --bg: #dcdcd8;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
}

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

html, body {
  height: 100%;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'pp_moriregular';
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  animation: pageFadeIn 0.35s ease forwards;
}

body.is-leaving {
  animation: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

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



/* ---------- FONT STYLES ----------  */


@font-face {
    font-family: 'times_nowlight';
    src: url('assets/fonts/timesnow-light-webfont.woff2') format('woff2'),
         url('assets/fonts/timesnow-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'times_nowlight_italic';
    src: url('assets/fonts/timesnow-lightitalic-webfont.woff2') format('woff2'),
         url('assets/fonts/timesnow-lightitalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'times_nowsemilight';
    src: url('assets/fonts/timesnow-semilight-webfont.woff2') format('woff2'),
         url('assets/fonts/timesnow-semilight-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'pp_moriextralight';
    src: url('assets/fonts/ppmori-extralight-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'pp_moriextralight_italic';
    src: url('assets/fonts/ppmori-extralightitalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'pp_moriitalic';
    src: url('assets/fonts/ppmori-italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'pp_moriregular';
    src: url('assets/fonts/ppmori-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'pp_morisemibold';
    src: url('assets/fonts/ppmori-semibold-webfont.woff2') format('woff2'),
         url('assets/fonts/ppmori-semibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ----------  FONT STYLES END ---------- */




/* ---------- top nav ---------- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  position: fixed;
  top: -5px;
  left: 0;
  right: 0;
  z-index: 50;
  /* background: var(--bg); */
}

body {
  padding-top: 4rem;
}

.logo {
  font-family: "pp_moriregular";
  font-size:1.1rem;
  color:#ffffff;
  letter-spacing: 0.01em;
  /* background: rgba(255, 255, 255, 0.55); */
  backdrop-filter: blur(6px);
     background:#000000;
  padding:  0.3rem 0.6rem 0.6rem;
  border-radius: 10px;
  opacity:90%;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  font-family: "pp_moriregular";
  font-size:1.1rem;
  color:#101010;
  transition: opacity 0.2s ease;
  /* background: rgba(0, 0, 0, 0.75); */
   background:#ffffff;
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.6rem 0.6rem;
  border-radius: 10px;opacity:90%;
}

.nav-links a:hover {
  /* opacity: 0.5; */
  background: rgba(13, 13, 13);
  color:rgb(255, 255, 255);
}

.logo:hover{
  background: rgb(255, 255, 255);
  color:rgb(0, 0, 0);
}


/* ---------- landing centerpiece ---------- */
.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem 4rem;
  gap: 1rem;
}

/* big mixed-font headline */
.intro {
  /* font-family: 'Inter', sans-serif; */
  font-weight: 100;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.85;
  text-align: center;
  letter-spacing: -0.07em;
  max-width: 1400px;
  transform: translateY(-10px);
}

.intro .line {
  display: block;
}

.intro .bold {
  font-weight: 10;
  font-family: 'pp_moriregular';
}

.homepage_serif {
  font-family: 'times_nowlight';
  font-weight: 10;
  letter-spacing: -0.035em;
}

.homepage_sansserif{
  font-family: 'pp_moriregular';
  font-weight: 10;
  letter-spacing: -0.04em;
}


/* 
.intro .serif-italic {
  font-family: 'times_nowlight_italic', serif;
  font-style: italic;
  letter-spacing: -0.03em;
} */

/* ---------- inline icons between words ---------- */
.inline-icon {
  display: inline-block;
  height: 0.85em;
  width: auto;
  vertical-align: -0.1em;
  margin: 0 0.02em;
  user-select: none;
  -webkit-user-drag: none;
}

.icon-purple {
  height: 1em;
  vertical-align: -0.18em;
  margin-left:0px;
 
}

.icon-green {
  height: 1em;
  vertical-align: -0.18em;
}


/* ---------- bio paragraph ---------- */
.bio {
  
  
  font-size: clamp(1.07rem, 1.1vw, 1.8rem);
  line-height: 1.4;
  text-align: center;
  max-width: 800px;
  color: var(--ink);
  margin-top:40px;
}

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: 'pp_moriregular', sans-serif;
  font-size: 1.1rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  cursor: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.2s ease, color 0.2s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  .site-nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .landing {
    padding: 2rem 1.8rem 3rem;
    gap: 1.5rem;
  }

  .intro {
    font-size: clamp(2rem, 11vw, 3.5rem);
    line-height: 0.9;
  }

  .bio {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}



/* ---------- works / project grid ---------- */
.works {
  padding: 5rem 2.5rem 10rem;
 
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 2.5rem;
  max-width: 1600px;
  margin: 0 auto;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom:70px;
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 0.25rem;
}

.work-title {
  font-family: 'pp_moriregular';
  font-size: 16px;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  margin: 0;
}

.work-tags {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: 'pp_moriregular';
  font-size: 16px;
  font-size: 0.78rem;
  font-weight: 400;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(10, 10, 10, 0.35);
  border-radius: 999px;
  white-space: nowrap;
  color: #1a1a1a;
  background: transparent;
}

.work-media {
  display: block;
  aspect-ratio: 4 / 3;
  width: 100%;

  overflow: hidden;
  background: #f6f5f1;
  transition: border-radius 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.work-media:hover {
  border-radius: 24px;
}

.work-media-empty {
  background: #f6f5f1;
  cursor: default;
}

.work-media-empty:hover {
  border-radius: 24px;
}

.work-caption {
  font-family: 'pp_moriregular';
  font-size: 0.85rem;
  font-weight: 400;
  color: #1a1a1a;
  padding: 0 0.25rem;
  margin: 0;
}



/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .works {
    padding: 3rem 1.25rem 4rem;
  }

  .work-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}


@media (max-width: 600px) {
  .tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem;
  }
}