/* =========================================================
   JULIAGARC.A
   styles.css
   ========================================================= */


/* ---------------------------------------------------------
   01. FONTS
   Baskerville = fuente principal de identidad.
   Cormorant Garamond = fallback cuando Baskerville
   no está disponible.
   --------------------------------------------------------- */

@font-face {
  font-family: "Cormorant Fallback";
  src: url("fonts/cormorant-garamond-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Fallback";
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* ---------------------------------------------------------
   02. VARIABLES
   --------------------------------------------------------- */

:root {
  --font-serif:
    Baskerville,
    "Baskerville Old Face",
    "Cormorant Fallback",
    serif;

  --font-sans:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;

  --black: #1d1d1b;
  --white: #ffffff;

  --page-padding: 32px;
  --section-gap: 160px;

  --transition: 300ms ease;
}


/* ---------------------------------------------------------
   03. RESET
   --------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}


/* ---------------------------------------------------------
   04. PAGE
   --------------------------------------------------------- */

.site {
  width: 100%;
  min-height: 100vh;
}

.section {
  width: 100%;
  padding: var(--section-gap) var(--page-padding);
}


/* ---------------------------------------------------------
   05. HEADER
   --------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  padding: 24px var(--page-padding);
}

.header-logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 12px;
  line-height: 1;
  transition: opacity var(--transition);
}

.header-nav a:hover {
  opacity: 0.5;
}


/* ---------------------------------------------------------
   06. HERO
   --------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 100svh;
  padding:
    110px
    var(--page-padding)
    var(--page-padding);
}

.hero-logo {
  font-family: var(--font-serif);
  font-size: clamp(72px, 13vw, 210px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.hero-description {
  max-width: 700px;

  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.3;
}

/* ---------------------------------------------------------
   HOME
   --------------------------------------------------------- */

.home {
  position: relative;
  display: grid;
  grid-template-columns: 50% 50%;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.home-nav {
  position: absolute;
  top: 48px;
  right: 48px;
  z-index: 10;

  display: flex;
  gap: 28px;

  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1;
}

.home-nav a {
  transition: opacity var(--transition);
}

.home-nav a:hover {
  opacity: 0.5;
}

.home-content {
  height: 100vh;
  padding: 42px 48px 52px;

  position: relative;
}

.home-identity h1 {
  margin: 0;

  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.home-identity p {
  margin: 0;
  position: absolute;
  top: 30%;
  left: 48px;

  max-width: 320px;

  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
}

.home-edition {
  position: absolute;
  left: 48px;
  bottom: 48px;

  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1;
}

.home-image {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

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

/* ---------------------------------------------------------
   INDEX
   --------------------------------------------------------- */

.index {
  width: 100%;
}

.index-item {
  display: grid;
  grid-template-columns: 50% 50%;
  width: 100%;
  height: 300px;
}

.index-info {
  padding: 48px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.index-info h2 {
  margin: 0;

  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.index-info span {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1;
}

.index-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

/* ---------------------------------------------------------
   INFO
   --------------------------------------------------------- */

.info {
  display: grid;
  grid-template-columns: 50% 50%;
  width: 100%;
  min-height: 70vh;
}

.info-content {
  padding: 48px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-label {
  margin-bottom: 32px;

  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1;
}

.info-text {
  max-width: 360px;

  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
}

.info-meta {
  margin-top: 32px;

  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.45;
}

.info-link {
  margin-top: 48px;

  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1;
}

.info-link span {
  margin: 0 8px;
}

.info-link a {
  border-bottom: 1px solid currentColor;
  transition: opacity var(--transition);
}

.info-link a:hover {
  opacity: 0.5;
}

.info-image {
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
}

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


/* ---------------------------------------------------------
   07. INTRO
   --------------------------------------------------------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.intro-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.intro-text {
  max-width: 850px;

  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.05;
}


/* ---------------------------------------------------------
   08. WORK / SELECTED PROJECTS
   --------------------------------------------------------- */

.work {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.project {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.project-meta {
  font-size: 11px;
  line-height: 1.4;
}

.project-image {
  overflow: hidden;
}

.project-image img {
  transition: transform 700ms ease;
}

.project-image:hover img {
  transform: scale(1.015);
}


/* ---------------------------------------------------------
   09. TEXT / STATEMENT
   --------------------------------------------------------- */

.statement {
  max-width: 1100px;
}

.statement p {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.02em;
}


/* ---------------------------------------------------------
   10. ABOUT
   --------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.about-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-content {
  max-width: 720px;
}

.about-content p {
  margin-bottom: 24px;

  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
}


/* ---------------------------------------------------------
   11. CONTACT
   --------------------------------------------------------- */

.contact {
  min-height: 70vh;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-title {
  margin-bottom: 40px;

  font-family: var(--font-serif);
  font-size: clamp(64px, 11vw, 180px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.contact-links a {
  font-size: 14px;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--transition);
}

.contact-links a:hover {
  opacity: 0.5;
}


/* ---------------------------------------------------------
   12. FOOTER
   --------------------------------------------------------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  padding:
    80px
    var(--page-padding)
    24px;

  font-size: 10px;
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 20px;
}


/* ---------------------------------------------------------
   13. SIMPLE REVEAL ANIMATION
   --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);

  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---------------------------------------------------------
   14. TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

  :root {
    --page-padding: 24px;
    --section-gap: 120px;
  }

  .intro,
  .project,
  .about {
    grid-template-columns: 1fr;
  }

  .intro,
  .project,
  .about {
    gap: 32px;
  }

  .work {
    gap: 96px;
  }
}


/* ---------------------------------------------------------
   15. MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

  :root {
    --page-padding: 18px;
    --section-gap: 96px;
  }

  body {
    font-size: 15px;
  }

  .header {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .header-logo {
    font-size: 22px;
  }

  .header-nav {
    gap: 14px;
  }

  .header-nav a {
    font-size: 10px;
  }

  .hero {
    min-height: 100svh;

    padding-top: 100px;
    padding-bottom: 24px;
  }

  .hero-logo {
    font-size: clamp(64px, 22vw, 110px);
    line-height: 0.88;
  }

  .hero-description {
    max-width: 90%;
    font-size: 18px;
  }

  .intro-text {
    font-size: clamp(32px, 10vw, 48px);
  }

  .work {
    gap: 80px;
  }

  .project {
    gap: 24px;
  }

  .statement p {
    font-size: clamp(38px, 12vw, 58px);
  }

  .contact {
    min-height: 60vh;
  }

  .contact-title {
    font-size: clamp(60px, 20vw, 100px);
  }

  .footer {
    padding-top: 60px;
  }

  /* HOME MOBILE */

.home {
  grid-template-columns: 42% 58%;
  height: 100svh;
}

.home-content {
  height: 100svh;
  padding: 28px 20px 32px 28px;
}

.home-identity h1 {
  font-size: 24px;
}

.home-identity p {
  top: 18%;
  left: 28px;
  right: 8px;
  max-width: none;

  font-size: 9px;
  line-height: 1.35;
}

.home-edition {
  left: 28px;
  bottom: 32px;
  font-size: 9px;
}

.home-image {
  height: 100svh;
}

.home-nav {
  top: 30px;
  right: 20px;
  gap: 18px;
  font-size: 9px;
}

/* INDEX MOBILE */

.index-item {
  grid-template-columns: 42% 58%;
  height: 220px;
}

.index-info {
  padding: 28px;

  justify-content: center;
  gap: 10px;
}

.index-info h2 {
  max-width: 110px;

  font-size: 11px;
  line-height: 1.25;
}

.index-info span {
  font-size: 9px;
}

.index-image {
  height: 220px;
}

/* INFO MOBILE */

.info {
  grid-template-columns: 42% 58%;
  min-height: 420px;
}

.info-content {
  padding: 28px;

  justify-content: flex-start;
}

.info-label {
  margin-bottom: 28px;
  font-size: 9px;
}

.info-text {
  max-width: none;

  font-size: 10px;
  line-height: 1.35;
}

.info-meta {
  margin-top: 24px;

  font-size: 9px;
  line-height: 1.4;
}

.info-link {
  margin-top: 28px;

  font-size: 9px;
  line-height: 1.2;
}

.info-link span {
  margin: 0 4px;
}

.info-image {
  min-height: 420px;
}


/* ---------------------------------------------------------
   16. REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}