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

:root {
    --header-height: 90px; /* adjust if needed */
}

@font-face {
    font-family: Inter;
    src: url(../fonts/InterTight-VariableFont_wght.ttf);
}

@font-face {
    font-family: Zen Kurenaido;
    src: url(../fonts/ZenKurenaido-Regular.ttf);
}

@font-face {
    font-family: Coromant;
    src: url(../fonts/Cormorant-VariableFont_wght.ttf);
}

@font-face {
    font-family: Optima;
    src: url(../fonts/Optima.ttf);
}

.site-header {
    position: fixed;  /* must be fixed for hide-on-scroll */
    top: 0;
    width: 100%;
    text-align: center;
    background-color: #F4ECE5;
    z-index: 1001;
    transition: transform 0.3s ease; /* smooth hide/show */
}

.site-header.header-hidden {
    transform: translateY(-100%); /* moves header completely out of view */
}

.site-title {
    font-family: 'Zen Kurenaido';
    font-size: 28px;
    font-weight: 400;
    padding: 20px 0 10px 0; /* much less top padding */
    margin: 0;
    color: #DE2720;
}

body {
    background-color: #F4ECE5;
    color: #DE2720;
    margin: 0;
    padding-top: 20px; /* space for title + nav */
    font-family: 'Coromant';
}

/* Center the nav and site-title */
nav {
    display: flex;
    align-items: center;  /* Vertically center the items */
    justify-content: center;  /* Center the nav and site title horizontally */
    width: 100%;
    padding: 10px 30px; /* Add some padding to the sides for breathing room */
}

.site-header nav {
    display: flex;
    align-items: center;  /* Vertically align the title and nav */
    justify-content: center;  /* Center everything horizontally */
    gap: 30px; /* Space between the site title and the navigation items */
}

ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Center the nav items horizontally */
    gap: 40px;
    margin: 0;
    padding: 0;
}

ul li a {
    font-family: 'Zen Kurenaido';
    font-size: 16px;
    font-weight: 400;
    color: #DE2720;
    text-decoration: none;
    padding: 10px 0;
    letter-spacing: 0.03em;
}

ul li a span {
    position: relative;
}

ul li a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1.5px;
    background-color: #DE2720;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

ul li a:hover span::after {
    transform: scaleX(1);
}

/* Tablet and Mobile Styles */

/* Tablet view: 1024px and below */
@media (max-width: 1024px) {
    .site-header {
        padding-top: 10px; /* Adjust for smaller screens */
    }

    nav {
        padding: 10px 20px;  /* Reduce space on the sides */
        gap: 20px;  /* Add some spacing between the title and nav */
    }

    .site-title {
        font-size: 24px; /* Smaller title on tablets */
    }

    ul {
        gap: 30px; /* Less space between nav items */
    }

    ul li a {
        font-size: 14px; /* Smaller font for mobile */
    }

    .footer-inner {
    flex-direction: column;
    gap: 20px;
    }
}

/* Mobile view: 768px and below */
@media (max-width: 768px) {
    nav {
        padding: 15px 15px;  /* Add padding for mobile */
        justify-content: center; /* Ensure title and nav items stay centered */
    }

    .site-title {
        font-size: 20px; /* Even smaller font size for mobile */
    }

    ul {
        gap: 20px; /* Less space between nav items */
    }

    ul li a {
        font-size: 14px; /* Smaller font size */
    }
}


/* =========================
   PROJECT PAGE STYLES
========================= */

.project-page {
    width: 90%;
    max-width: 1400px;
    margin: 140px auto 100px auto; /* space for fixed header */
}

/* =========================
   INTRO SPLIT LAYOUT
========================= */

.project-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start; /* prevents stretching */
    margin-bottom: 100px;
}


.intro-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.intro-right {
    display: flex;
    justify-content: flex-end; /* pushes image inward slightly */
}

.intro-right img {
    width: 90%;  /* makes image smaller */
    height: auto;
    display: block;
}

/* Typography adjustments */

.project-title {
    font-family: 'Zen Kurenaido';
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 15px;
}

.project-meta {
    font-family: 'Coromant';
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    opacity: 0.8;
}

.project-description p {
    font-family: 'Coromant';
    font-size: 18px;
    line-height: 2.5;
    margin-bottom: 20px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {

    .project-intro {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .intro-right {
        order: -1; /* image moves above text on tablet/mobile */
    }

    .project-description p {
    font-family: 'Coromant';
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}
}

/* =========================
   INK LABEL ROW
========================= */

.ink-labels {
    margin-bottom: 120px;
}

.ink-labels h3 {
    font-family: 'Zen Kurenaido';
    font-size: 20px;
    margin-bottom: 40px;
}


.labels-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.labels-row img {
    width: 100%;
    height: auto;
    display: block;
    transition: 
        transform 0.4s cubic-bezier(.4,0,.2,1),
        box-shadow 0.4s cubic-bezier(.4,0,.2,1),
        filter 0.4s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
}

/* Slight dim of non-hovered images */
.labels-row:hover img {
    filter: brightness(0.85);
}

/* Expand hovered image */
.labels-row img:hover {
    transform: scale(1.4);
    filter: brightness(1);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* =========================
   EDITORIAL GALLERY
========================= */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 60px 40px; /* vertical / horizontal */
}

.project-gallery figure {
    margin: 0;
}

.project-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* Art-directed placements */
.project-gallery figure:nth-child(1) { grid-column: span 7; }
.project-gallery figure:nth-child(2) { grid-column: span 5; }
.project-gallery figure:nth-child(3) { grid-column: span 6; }
.project-gallery figure:nth-child(4) { grid-column: span 6; }
.project-gallery figure:nth-child(5) { grid-column: span 6; }
.project-gallery figure:nth-child(6) { grid-column: span 8; }

/* Caption styling */
.project-gallery figcaption {
    font-family: 'Coromant';
    font-size: 18px;
    margin-top: 12px;
    opacity: 0.7;
    line-height: 1.4;
    max-width: 90%;
}

/* Responsive */

@media (max-width: 1024px) {

    .project-gallery {
        grid-template-columns: repeat(6, 1fr);
    }

    .project-gallery figure {
        grid-column: span 6 !important;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {

    .labels-row {
        grid-template-columns: repeat(4, 1fr);
    }

}

@media (max-width: 768px) {

    .project-page {
        width: 92%;
    }

    .project-title {
        font-size: 30px;
    }

    .labels-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.site-footer {
  width: 100%;
  background-color: #F4ECE5;
  padding: 40px 0;
}

.footer-inner {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center; /* vertical centering */
}

.footer-left p {
  font-family: 'Zen Kurenaido';
  font-size: 20px;
  font-weight: 400;
  color: #DE2720;
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 30px;
}

.footer-right a {
  font-family: 'Zen Kurenaido';
  font-size: 14px;
  font-weight: 400;
  color: #DE2720;
  text-decoration: none;
  letter-spacing: 0.03em;
  position: relative;
}

/* underline hover, same language as nav */
.footer-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background-color: #DE2720;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.footer-right a:hover::after {
  transform: scaleX(1);
}
