/* =========================================================
   Paulina Luisa — portfolio
   Palette: white / black / grey only. The work brings color.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --subtext: #6b6b6b;
  --line: #e6e6e6;
  --line-strong: #cccccc;

  --display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --maxw: 1500px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}

.nav a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--subtext); }

.nav a[aria-current="page"] {
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

@media (max-width: 640px) {
  .site-header-inner {
    padding: 0.9rem var(--gutter);
    gap: 1rem;
    flex-wrap: nowrap;
  }
  .wordmark { font-size: 1.2rem; }
  .nav { gap: 0.9rem; }
  .nav a {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 420px) {
  .wordmark { font-size: 1.05rem; }
  .nav { gap: 0.7rem; }
  .nav a { font-size: 0.58rem; letter-spacing: 0.08em; }
}

/* ─── Layout primitives ──────────────────────────────────── */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-intro {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  max-width: 760px;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--subtext);
  margin-bottom: 1.5rem;
}

.page-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.page-title em { font-style: italic; }

.page-desc {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  max-width: 56ch;
}

.section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: clamp(3rem, 7vw, 6rem) 0;
}

/* ─── Home ───────────────────────────────────────────────── */

.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}

@media (min-width: 900px) {
  .home-hero {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
  }
}

.home-name {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.home-descriptor {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtext);
  font-weight: 500;
}

.home-hero-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fafafa;
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.selected-work-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.selected-work-label span {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--subtext);
  font-weight: 500;
  white-space: nowrap;
}

.selected-work-label::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

@media (min-width: 700px) {
  .entry-grid { grid-template-columns: 1fr 1fr; }
}

.entry-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
  aspect-ratio: 4 / 5;
  color: var(--text);
}

.entry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.entry-card:hover img,
.entry-card:focus-visible img { transform: scale(1.04); }

.entry-card-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.entry-card-label h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.entry-card-label .arrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ─── Category landing (Fashion / Photography lists) ─────── */

.collection-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

@media (min-width: 800px) {
  .collection-list { grid-template-columns: 1fr 1fr; }
}

.collection-card {
  display: block;
  color: var(--text);
}

.collection-card-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f4f4f4;
  margin-bottom: 1rem;
}

.collection-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.collection-card:hover .collection-card-img img,
.collection-card:focus-visible .collection-card-img img { transform: scale(1.03); }

.collection-card h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 0.35rem;
}

.collection-card-meta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtext);
  font-weight: 500;
}

/* ─── Collection pages: section anatomy ──────────────────── */

.collection-section {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.005em;
}

.section-head h2 em { font-style: italic; }

.section-head .section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--subtext);
  font-weight: 500;
}

.section-blurb {
  max-width: 56ch;
  color: var(--text);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: 1rem;
  line-height: 1.65;
}

/* Hero image inside a section (cover, gown anchor, etc) */
.section-hero {
  position: relative;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  max-width: 900px;
}

.section-hero.square { max-width: 820px; }

.section-hero img { width: 100%; height: auto; }

/* Gallery grids */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  position: relative;
  z-index: 1;
}

@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f4f4f4;
}

.gallery.gallery-wide img { aspect-ratio: 3 / 4; }

/* Special asymmetric layout for "design plus sketches" */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

@media (min-width: 800px) {
  .showcase-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }
  .showcase-grid > :nth-child(1) { grid-row: span 2; }
}

.showcase-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f4f4f4;
  aspect-ratio: 3 / 4;
}

/* Sketches grid — taller items, more breathing room */
.sketch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
}

@media (min-width: 700px) {
  .sketch-grid { grid-template-columns: 1fr 1fr; }
}

.sketch {
  background: #fafafa;
  padding: clamp(1rem, 3vw, 2rem);
}

.sketch img {
  width: 100%;
  height: auto;
}

.sketch-caption {
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtext);
  font-weight: 500;
}

/* ─── Decorative motifs (Cover to Cover) ─────────────────── */

.decor-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.decor-layer svg { position: absolute; }

@media (prefers-reduced-motion: no-preference) {
  .decor-balloon { animation: drift 14s ease-in-out infinite; }
  .decor-balloon:nth-child(2) { animation-duration: 18s; animation-delay: -3s; }
  .decor-balloon:nth-child(3) { animation-duration: 16s; animation-delay: -7s; }
  .decor-balloon:nth-child(4) { animation-duration: 20s; animation-delay: -1s; }
  .decor-balloon:nth-child(5) { animation-duration: 15s; animation-delay: -9s; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -16px); }
}

/* ─── About the Designer ─────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 6vw, 5rem) 0;
  align-items: start;
}

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1fr 1.2fr; }
}

.about-headshot {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f4f4f4;
  overflow: hidden;
}

.about-headshot img { width: 100%; height: 100%; object-fit: cover; }

.about-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-tag {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--subtext);
  font-weight: 500;
  margin-bottom: 2rem;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 56ch;
}

.contact-list {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact-list dt,
.contact-list .label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--subtext);
  font-weight: 500;
}

.contact-list a { font-size: 1rem; }

.contact-list a:hover { color: var(--subtext); }

/* ─── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.site-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 700px) {
  .site-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-wordmark {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
}

.footer-meta {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtext);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-meta a:hover { color: var(--text); }

/* ─── Scroll reveal (subtle) ─────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Utility ────────────────────────────────────────────── */

.full-bleed-spacer { height: clamp(2rem, 5vw, 4rem); }
