/* ========================================
   Florencia Cid — Main Stylesheet
   ======================================== */

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

:root {
  --color-bg: #f5f4f0;
  --color-text: #1a1a1a;
  --color-muted: #888;
  --color-link: #1a1a1a;
  --color-hover: #555;
  --font-main: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --gutter: 2rem;
  --nav-height: 64px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: var(--nav-height);
  background-color: var(--color-bg);
}

.nav__logo {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
}

/* ========================================
   PAGE WRAPPER
   ======================================== */

.page {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ========================================
   HOME — HERO
   ======================================== */

.hero {
  padding: 5rem var(--gutter) 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 600px;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.hero__about-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-muted);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__about-link:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* ========================================
   HOME — PROJECT GRID
   ======================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: #ddd;
  border-top: 1px solid #ddd;
}

.project-card {
  background-color: var(--color-bg);
  display: block;
  overflow: hidden;
  position: relative;
}

.project-card__image-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: #e8e6e0;
}

.project-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image-wrap img {
  transform: scale(1.03);
}

.project-card__info {
  padding: 1rem 1.25rem 1.25rem;
}

.project-card__title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.project-card__tags {
  font-size: 0.78rem;
  color: var(--color-muted);
}

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

.project-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--gutter) 5rem;
}

.project-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2rem;
}

.project-header__back {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: inline-block;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

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

.project-header__title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.project-header__meta {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.project-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-images img {
  width: 100%;
  height: auto;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem var(--gutter) 6rem;
}

.about-page__title {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

.about-page__bio {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 3rem;
}

.about-page__bio a {
  border-bottom: 1px solid var(--color-text);
  transition: opacity 0.2s ease;
}

.about-page__bio a:hover {
  opacity: 0.6;
}

.about-page__contact {
  font-size: 0.875rem;
  line-height: 2;
}

.about-page__contact strong {
  font-weight: 500;
  display: inline-block;
  min-width: 80px;
  color: var(--color-muted);
}

.about-page__contact a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.about-page__contact a:hover {
  border-color: var(--color-text);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  text-align: center;
  padding: 2rem var(--gutter);
  font-size: 0.78rem;
  color: var(--color-muted);
  border-top: 1px solid #ddd;
}

/* ========================================
   RESPONSIVE — MOBILE (iPhone)
   ======================================== */

@media (max-width: 768px) {
  :root {
    --gutter: 1.25rem;
  }

  .nav {
    padding: 0 var(--gutter);
  }

  .hero {
    padding: 3rem var(--gutter) 2rem;
  }

  .hero__title {
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card__image-wrap {
    aspect-ratio: 3/2;
  }

  .project-page {
    padding: 2.5rem var(--gutter) 4rem;
  }

  .project-header__title {
    font-size: 1.8rem;
  }

  .about-page {
    padding: 3rem var(--gutter) 4rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 0.95rem;
  }

  .nav__logo {
    font-size: 0.82rem;
  }

  .nav__right {
    gap: 1.25rem;
  }
}
