/* Alma Doble Filo — gallery-wall editorial. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('/fonts/cormorant-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic; font-weight: 300; font-display: swap;
  src: url('/fonts/cormorant-300i.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/cormorant-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/baskerville-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/baskerville-400i.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/baskerville-700.woff2') format('woff2');
}

/* Palette measured off the live Wix site (headless Chrome), not guessed.
   The canvas is black; white sections are the exception -- see .section.light.
   Header is TRANSPARENT over the black page, not a black bar. */
:root {
  --ink: #ffffff;           /* default text: white on black */
  --paper: #000000;         /* canvas */
  --grey: #b8becb;          /* color_18 (184,190,203) -- nav hover/selected */
  --hairline: rgba(255,255,255,0.18);
  --band: rgba(62, 66, 70, 0.8);   /* color_12 -- the About band */
  /* Light sections (e.g. ART PIECES, Thank you.) invert back to paper/ink. */
  --ink-on-light: #0b0b0b;
  --paper-light: #ffffff;
  --hairline-on-light: #d9d9d9;
  --grey-on-light: #727272;
  /* Header: menu --txt = color_37 (white); --txth/--txts = color_18;
     --trans = color 0.4s ease. Nav is Libre Baskerville 16px, Title Case,
     no letter-spacing, and centred. */
  --header-txt: #ffffff;
  --header-txt-hover: rgb(184, 190, 203);
  --header-trans: color 0.4s ease 0s;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Libre Baskerville', Georgia, serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Wix: Cormorant Garamond Light, weight 400, with NEGATIVE tracking --
   H1 82px/-4.1px and H2 56-62px/-2.8px, i.e. about -0.05em. */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.125rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.kicker {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- header ----------
   Wix: #SITE_HEADER is 1440x89, background TRANSPARENT (rgba(0,0,0,0)) over
   the black canvas, position:sticky, no border/shadow/blur. The nav sits
   centred (x=426 w=588 on a 1440 viewport) with the logo+wordmark left and
   the cart right. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
}
.site-header .bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 89px;
  padding: 0 var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--header-txt);
  white-space: nowrap;
}
/* Wix nav: Libre Baskerville 16px, Title Case, no tracking, centred. */
nav.primary {
  display: flex; gap: 2.1rem;
  justify-content: center;
  grid-column: 2;
}
nav.primary a {
  font-family: var(--body);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  color: var(--header-txt);
  transition: var(--header-trans);
}
nav.primary a:hover, nav.primary a[aria-current="page"] {
  color: var(--header-txt-hover);
}
.cart {
  grid-column: 3;
  justify-self: end;
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--header-txt);
  text-decoration: none;
  transition: var(--header-trans);
}
.cart:hover { color: var(--header-txt-hover); }
.cart svg { width: 22px; height: 22px; display: block; }
.cart .count {
  font-family: var(--body); font-size: .7rem; line-height: 1;
}
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .site-header .bar {
    grid-template-columns: 1fr auto auto;
    min-height: 64px;
  }
  .nav-toggle {
    display: block; background: none; border: 0;
    font-family: var(--body); font-size: .78rem;
    letter-spacing: .22em; text-transform: uppercase; cursor: pointer;
    color: var(--header-txt);
    transition: var(--header-trans);
    grid-column: 2;
  }
  .nav-toggle:hover { color: var(--header-txt-hover); }
  .cart { grid-column: 3; }
  nav.primary {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #000;
    flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem;
  }
  nav.primary.open { display: flex; }
  nav.primary a {
    padding: .8rem 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
}

/* ---------- layout blocks ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.center { text-align: center; margin-inline: auto; }

.rule-title {
  display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem;
}
.rule-title::after {
  content: ""; flex: 1; height: 1px; background: var(--ink);
}

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 0; }
.hero-grid {
  display: grid; gap: var(--gutter);
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
}
.hero-grid img { width: 100%; height: 100%; object-fit: cover; }
.hero-title {
  padding: clamp(2rem, 5vw, 4rem) 0 1rem;
}
.hero-title h1 {
  font-size: clamp(3rem, 10vw, 7.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-title .edge {
  display: block; width: 6rem; height: 2px; background: var(--ink);
  margin-top: 1.4rem;
}
.hero-tag { margin-top: 1.6rem; font-style: italic; color: var(--grey); }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: var(--gutter); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card { text-decoration: none; display: block; }
.card .frame { overflow: hidden; background: #f4f4f4; }
.card img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1), filter .6s;
}
.card:hover img { transform: scale(1.04); }
.card .label {
  margin-top: .9rem;
  font-family: var(--display); font-size: 1.35rem; font-weight: 300;
}
.card .sub { font-size: .8rem; color: var(--grey); margin-top: .15rem; }

/* ---------- masonry gallery ---------- */
.masonry { columns: 3; column-gap: 1.2rem; }
.masonry figure { break-inside: avoid; margin: 0 0 1.2rem; }
.masonry img { width: 100%; cursor: zoom-in; }
.masonry figcaption {
  font-size: .74rem; color: var(--grey); padding-top: .4rem;
  font-style: italic;
}
@media (max-width: 980px) { .masonry { columns: 2; } }
@media (max-width: 620px) { .masonry { columns: 1; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,8,8,0.96);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; padding: 3rem 1.5rem 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 82vh; max-width: 92vw; width: auto;
  box-shadow: 0 20px 80px rgba(0,0,0,.7);
}
.lightbox .cap {
  color: #bbb; font-style: italic; font-size: .85rem; margin-top: 1rem;
  font-family: var(--body);
}
.lightbox button {
  position: absolute; background: none; border: 0; color: #eee;
  font-size: 2rem; cursor: pointer; padding: .5rem 1rem;
  font-family: var(--display);
}
.lightbox .close { top: .8rem; right: 1rem; }
.lightbox .prev { left: .4rem; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: .4rem; top: 50%; transform: translateY(-50%); }

/* ---------- shop ---------- */
.price { font-size: .95rem; margin-top: .3rem; }
.product-layout {
  display: grid; gap: var(--gutter); grid-template-columns: 1.15fr .85fr;
  align-items: start;
}
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } }
.product-layout .frame img { cursor: zoom-in; }
.buy-note { font-size: .82rem; color: var(--grey); margin-top: 1rem; }
.btn {
  display: inline-block; margin-top: 1.6rem;
  padding: .95rem 2.6rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--body); font-size: .78rem;
  letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink);
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.thumbs { display: flex; gap: .6rem; margin-top: .8rem; }
.thumbs img {
  width: 72px; aspect-ratio: 1; object-fit: cover; cursor: pointer;
  opacity: .65; transition: opacity .25s;
}
.thumbs img:hover, .thumbs img.active { opacity: 1; }

.cat-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; margin: 1rem 0 2.5rem; }
.cat-nav a {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--grey);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.cat-nav a:hover, .cat-nav a.active { color: var(--ink); border-color: var(--ink); }

/* ---------- blog ---------- */
.post-list { display: grid; gap: 0; max-width: 46rem; }
.post-item {
  padding: 2.2rem 0; border-bottom: 1px solid var(--hairline);
  text-decoration: none; display: block;
}
.post-item h3 { transition: opacity .25s; }
.post-item:hover h3 { opacity: .55; }
.post-item .meta { font-size: .74rem; color: var(--grey); margin-top: .5rem;
  letter-spacing: .1em; }
.post-item p { margin-top: .7rem; color: #3a3a3a; font-size: .92rem; }
.post-header { max-width: 46rem; }
.post-header .meta { color: var(--grey); font-size: .8rem; margin-top: 1rem; }
.post-body { max-width: 46rem; margin-top: 2.5rem; }
.post-body p + p { margin-top: 1.2em; }

/* ---------- poem ---------- */
.poem {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 1.35rem; line-height: 1.7;
  border-left: 2px solid var(--ink);
  padding: .4rem 0 .4rem 2rem; margin: 2.5rem 0;
  white-space: pre-line;
}

/* ---------- project pages ---------- */
.project-meta {
  display: flex; gap: 3rem; flex-wrap: wrap; margin: 1.8rem 0 0;
}
.project-meta div h4 {
  font-family: var(--body); font-size: .68rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--grey); font-weight: 400;
}
.project-meta div p { font-size: .9rem; margin-top: .3rem; }
.project-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 2.5rem 0 0; margin-top: 3rem; border-top: 1px solid var(--ink);
}
.project-nav a {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
}
.project-nav a:hover { opacity: .55; }

/* ---------- footer (the inverted edge) ---------- */
.site-footer {
  background: var(--ink); color: #e8e8e8; margin-top: clamp(3rem, 8vw, 6rem);
}
.site-footer .inner {
  max-width: 1280px; margin: 0 auto; padding: 3.5rem var(--gutter) 2.5rem;
  display: grid; gap: 2.5rem; grid-template-columns: 1.2fr 1fr 1fr;
}
@media (max-width: 860px) { .site-footer .inner { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--body); font-size: .68rem; letter-spacing: .28em;
  text-transform: uppercase; color: #8a8a8a; font-weight: 400;
  margin-bottom: 1.1rem;
}
.site-footer .fm {
  font-family: var(--display); font-size: 1.6rem; font-weight: 300;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.site-footer a { color: #cfcfcf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline;
  text-underline-offset: 3px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: .28rem 0; font-size: .85rem; }
.social { display: flex; gap: 1.1rem; margin-top: 1.2rem; }
.social a { display: inline-flex; opacity: .8; }
.social a:hover { opacity: 1; }
.social svg { width: 20px; height: 20px; fill: #e8e8e8; }
.colophon {
  border-top: 1px solid #2a2a2a;
  padding: 1.4rem var(--gutter);
  text-align: center; font-size: .72rem; color: #8a8a8a;
  letter-spacing: .08em;
}

/* ---------- reveal on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px);
    animation: rise .9s cubic-bezier(.2,.6,.2,1) forwards; }
  .reveal.d1 { animation-delay: .12s; }
  .reveal.d2 { animation-delay: .24s; }
  .reveal.d3 { animation-delay: .36s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- misc ---------- */
.notice {
  font-size: .8rem; color: var(--grey); font-style: italic;
  border: 1px solid var(--hairline); padding: 1rem 1.4rem; margin: 2rem 0;
  max-width: var(--measure);
}
.breadcrumb { font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--grey); margin-bottom: 2rem; }
.breadcrumb a { text-decoration: none; color: inherit; }
.breadcrumb a:hover { color: var(--ink); }
