/* ==========================================================================
   Lirio Holly — stylesheet
   Classic, editorial, heritage aesthetic.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Arapey:ital@0;1&family=Pinyon+Script&display=swap');

:root{
  --paper: #ece4d6;
  --ink: #2c2620;
  --ink-soft: #4a4238;
  --gold: #ad8a45;
  --gold-deep: #8a6c30;
  --line: rgba(44,38,32,0.35);
  --max: 1440px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: url("assets/paper-texture.jpg?v=4");
  background-repeat: repeat;
  background-size: 900px auto;
  color: var(--ink);
  font-family: 'Arapey', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

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

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

.script{
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  line-height: 1;
}

.eyebrow{
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
}

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  padding: 0.6em 1em;
  z-index: 999;
  border: 1px solid var(--ink);
}
.skip-link:focus{ left: 0.5em; top: 0.5em; }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

.site-header{
  position: relative;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(1.1rem, 2.4vw, 2rem) clamp(1.1rem, 3.5vw, 3.2rem) 0;
}

.brand-mark{
  display: inline-flex;
  align-items: center;
  padding: 6px;
}
.brand-mark img{
  width: clamp(28px, 3vw, 34px);
  height: auto;
}
.brand-mark:focus-visible img{ outline: 2px solid var(--gold); }

.menu-toggle{
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: clamp(34px, 3.6vw, 46px);
}
.menu-toggle .bar{
  height: 2px;
  background: var(--ink);
  width: 100%;
  position: relative;
}
.menu-toggle .bar::after{
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--ink);
  border-radius: 1px;
}
.menu-toggle:hover .bar,
.menu-toggle:focus-visible .bar{ background: var(--gold-deep); }
.menu-toggle:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------------- */
/* Main / layout helpers                                                   */
/* ---------------------------------------------------------------------- */

.site-main{ flex: 1 0 auto; }

.page-wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 3.5vw, 3.2rem);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer{
  border-top: 1px solid var(--line);
  padding: 0.9rem clamp(1.1rem, 3.5vw, 3.2rem);
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.social-link{
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.social-link svg{ width: 15px; height: 15px; fill: var(--ink); flex-shrink: 0; }
.social-link:hover, .social-link:focus-visible{ color: var(--gold-deep); }
.social-link:hover svg, .social-link:focus-visible svg{ fill: var(--gold-deep); }

/* ---------------------------------------------------------------------- */
/* HERO / Inicio                                                           */
/* ---------------------------------------------------------------------- */

.hero{
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3.5rem) clamp(2rem, 5vw, 3.5rem);
  max-width: 1400px;
  margin: 0 auto;
}

/* ---- collage rows: normal document flow, never behind the text ---- */
.collage-row{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1rem, 3.5vw, 2.4rem);
  margin: 0 auto clamp(1.6rem, 4vw, 2.6rem);
  max-width: 1200px;
}

.collage-row img{
  border: 3px solid #f4efe4;
  box-shadow: 0 6px 16px rgba(30,24,14,0.26);
  width: 100%;
  height: auto; /* always keep the original proportions of the artwork */
}

.collage-row figure{ margin: 0; }

.w-s  { width: clamp(84px, 17vw, 140px); }
.w-m  { width: clamp(110px, 22vw, 190px); }
.w-l  { width: clamp(150px, 30vw, 270px); }

.collage-row :nth-child(2n)  { transform: rotate(-1.1deg); }
.collage-row :nth-child(3n)  { transform: rotate(1.3deg); margin-bottom: clamp(0.4rem, 2vw, 1.4rem); }
.collage-row :nth-child(5n)  { transform: rotate(-0.6deg); }

/* the swans + window pairing keeps its original, intentional overlap —
   the two images overlap each other, never the text */
.feature-pair{
  position: relative;
  width: clamp(240px, 58vw, 480px);
  margin: 0 auto clamp(1.6rem, 4vw, 2.6rem);
}
.feature-pair img{ width: 100%; height: auto; }
.feature-pair .swans{ position: relative; z-index: 1; }
.feature-pair .plant{
  position: absolute;
  z-index: 2;
  width: 36%;
  right: 4%;
  bottom: -8%;
}

/* central text block */
.hero-text{
  text-align: center;
  margin: clamp(1.2rem, 4vw, 2.4rem) 0;
}
.hero-bird{
  width: 40px;
  height: auto;
  margin: 0 auto 0.6rem;
}
.hero-title{
  margin: 0;
  display: flex;
  justify-content: center;
}
.hero-title img{
  width: clamp(220px, 42vw, 460px);
  height: auto;
}
.hero-sub{
  margin: 1.6rem 0 0.4rem;
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: clamp(0.85rem, 2.6vw, 1.4rem);
  padding-left: 0.5em; /* optical centering for tracking */
}
.hero-date{
  font-size: clamp(3rem, 11vw, 5.4rem);
  margin: 0.6rem 0 0;
}

.hero-caption{
  text-align: center;
  max-width: 42em;
  margin: clamp(1.5rem,4vw,3rem) auto 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------- */
/* Interior pages (Historia / Contacto)                                    */
/* ---------------------------------------------------------------------- */

.page-header{
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  margin: clamp(0.5rem,2vw,1.2rem) 0 clamp(1.6rem,4vw,2.6rem);
}
.page-title{
  font-size: clamp(3.8rem, 10vw, 6.6rem);
  margin: 0;
}
.page-header img.flourish-bird{
  width: clamp(46px, 6vw, 70px);
  height: auto;
  margin-top: clamp(0.6rem, 2vw, 1.6rem);
}

.content-grid{
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.copy p{ margin: 0 0 1.4em; max-width: 46em; }
.copy .label{
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
}

.side-figure{
  border: 5px solid #f4efe4;
  box-shadow: 0 8px 22px rgba(30,24,14,0.28);
  max-width: 340px;
}
.side-figure img{ width: 100%; }
.side-figure figcaption{
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem 0.4rem 0;
  color: var(--ink-soft);
}

.mark-flourish{
  margin-top: 1rem;
}
.mark-flourish img{
  width: 74px;
  height: auto;
}

/* Historia supporting gallery */
.support-gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 0 clamp(2.5rem,6vw,4.5rem);
}
.support-gallery figure{ margin: 0; }
.support-gallery img{
  width: 100%;
  height: auto; /* keep each artwork's original proportions, no cropping */
  border: 3px solid #f4efe4;
  box-shadow: 0 5px 14px rgba(30,24,14,0.22);
}

/* Contacto specifics */
.contact-email{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--gold-deep);
  padding-bottom: 0.15em;
  display: inline-block;
}
.contact-meta{ margin-top: 1.6rem; }

/* ---------------------------------------------------------------------- */
/* Window menu overlay                                                     */
/* ---------------------------------------------------------------------- */

.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}
.menu-overlay.is-open{ visibility: visible; pointer-events: auto; }

.menu-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(20,16,10,0.28);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.menu-overlay.is-open .menu-backdrop{ opacity: 1; }

.menu-panel{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(62vw, 560px);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  display: flex;
  background:
    linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 100%),
    url("assets/menu-bg.jpg?v=4") center/cover no-repeat;
}
.menu-overlay.is-open .menu-panel{ transform: translateX(0); }

.menu-frame{
  width: 16px;
  flex: 0 0 auto;
  background:
    repeating-linear-gradient(
      to bottom,
      #d9b969 0px, #efd696 3px, #a9803a 7px, #d9b969 12px
    );
  box-shadow: inset 0 0 0 1px rgba(60,40,10,0.5), 3px 0 10px rgba(0,0,0,0.35);
}

.menu-content{
  position: relative;
  flex: 1;
  padding: clamp(1.4rem,4vw,3rem);
  display: flex;
  flex-direction: column;
}

.menu-top{
  display: flex;
  justify-content: flex-end;
}
.menu-close{
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 38px;
}
.menu-close .bar{ height: 2px; background: #f4efe4; }
.menu-close .bar::after{
  content: "";
  position: absolute;
  right: 0;
}
.menu-close:hover .bar, .menu-close:focus-visible .bar{ background: #ecc879; }
.menu-close:focus-visible{ outline: 2px solid #ecc879; outline-offset: 3px; }

.menu-nav{
  margin-top: clamp(1.4rem, 4vw, 2.4rem);
  margin-bottom: 0;
  padding-left: clamp(0.5rem, 2vw, 1.5rem);
}
.menu-nav ul{ list-style: none; margin: 0; padding: 0; }
.menu-nav li{ margin-bottom: 1rem; }
.menu-nav a{
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.28em;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: #f4efe4;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  padding-bottom: 0.2em;
  border-bottom: 1px solid transparent;
}
.menu-nav a:hover, .menu-nav a:focus-visible{
  border-color: #ecc879;
}
.menu-nav a[aria-current="page"]{
  border-bottom: 1px solid #ecc879;
}

body.menu-locked{ overflow: hidden; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 900px){
  .content-grid{
    grid-template-columns: 1fr;
  }
  .side-figure{ max-width: 240px; }
  .support-gallery{ grid-template-columns: repeat(2, 1fr); }
  .menu-panel{ width: min(72vw, 420px); }
}

@media (max-width: 640px){
  body{ font-size: 16px; background-size: 700px auto; }

  .w-s{ width: clamp(78px, 30vw, 130px); }
  .w-m{ width: clamp(100px, 38vw, 160px); }
  .w-l{ width: clamp(130px, 48vw, 210px); }
  .collage-row{ gap: clamp(0.8rem, 4vw, 1.4rem); }
  .row-extra .w-s{ width: clamp(70px, 26vw, 110px); }

  .page-header{ flex-direction: column; gap: 0.3rem; }
  .page-header svg.flourish-bird{ align-self: flex-end; margin-top: -1.4rem; }

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

@media (min-width: 1600px){
  .page-wrap, .hero{ max-width: 1600px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .menu-panel, .menu-backdrop{ transition: none; }
  html{ scroll-behavior: auto; }
}
