/* styles.css — minimal, timeless, photo-first aesthetic */
:root {
  --bg: #fdfcf9; /* ✨ Elegant warm white */
  --text: #111111;
  --muted: #666666;
  --line: #eaeaea;
  --accent: #000000;
  --max: 1120px;
  --header-h: 64px; /* header height */

  /* Gallery tuning (Private) */
  --tile-ar: 4 / 3;          /* universal tile aspect ratio for harmony */
  --tile-min-h: 240px;
  --tile-max-h: 360px;
  --tile-pad: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

/* Typography: Inter for body, Playfair for headings */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.72;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.fade-in { opacity: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* Header — centered brand, soft glass effect */
header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  min-height: var(--header-h);
  position: relative;
}
.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  letter-spacing: .4px;
}
.brand a {
  font-size: clamp(20px, 2.5vw, 24px);
  transition: color .3s ease;
}
.brand a:hover { color: color-mix(in oklab, var(--accent) 80%, var(--muted)); }

/* Hamburger */
.hamburger {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all .3s ease;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all .3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Dropdown panel */
.menu-panel {
  position: absolute;
  right: 20px;
  top: calc(100% + 10px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 10px 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
  text-align: left;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 1000;
}
.menu-panel.show { display: flex; opacity: 1; transform: translateY(0); pointer-events: auto; }
.menu-panel a {
  padding: 6px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  position: relative;
  text-decoration: none;
}
.menu-panel a::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 4px;
  height: 1px;
  background: currentColor;
  opacity: .18;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.menu-panel a:hover::after { transform: scaleX(1); }

/* Sections */
section { padding: 64px 0; }
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 18px;
}
.lead { font-size: 18px; }
.muted { color: var(--muted); }

/* Hero (homepage) — sober & pure */
.hero {
  min-height: auto;
  padding: clamp(24px, 3.5vw, 40px) 0 40px;
  display: grid;
  align-items: start;
  justify-items: center;
  text-align: center;
}
.hero-content {
  max-width: 640px;
  margin: 0 auto 14px;
  padding: 0 16px;
}
.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.1px;
  line-height: 1.1;
  font-size: clamp(22px, 3.2vw, 34px);
  margin: 2px 0 6px;
}
.hero .muted { font-size: 0.98rem; color: #7a7a7a; }
.hero-image {
  width: min(100%, 900px);
  margin: 8px auto 0;
  padding: 0 16px;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: none;
  transition: none;
  max-height: 56vh;
  object-fit: cover;
}
.hero-image figcaption {
  font-size: 12px;
  color: #8a8a8a;
  opacity: 0.85;
  margin-top: 8px;
  font-style: italic;
}

/* ===== PORTFOLIO CATEGORIES — Classic 3-up grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid img {
  width: 100%;
  height: 360px;             /* “normal” category tile size */
  object-fit: cover;         /* fills tile nicely */
  border: 1px solid var(--line);
  border-radius: 6px;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid img { height: 280px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .grid img { height: 240px; }
}

/* ===== PRIVATE COLLECTION — Gallery layout (unchanged) ===== */

/* Wider wrap to host 3 columns comfortably */
.private-wrap { max-width: 1160px; margin: 0 auto; }

/* TRUE gallery grid: 3 / 2 / 1 columns */
.private-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

/* Each card fills its grid cell */
.print-card {
  text-align: center;
  width: 100%;
  margin: 0;
  display: grid;
  gap: 10px;
}

/* Elegant frame with fixed visual geometry */
.frame {
  width: 100%;
  background: #fff;
  padding: var(--tile-pad);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.03);
  position: relative;

  aspect-ratio: var(--tile-ar);
  min-height: var(--tile-min-h);
  max-height: var(--tile-max-h);

  display: grid;
  place-items: center;
  transition: box-shadow .25s ease, transform .2s ease, border-color .25s ease;
}
.frame:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--line) 65%, #000 35%);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

/* Show entire photo; centered within the frame */
.frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* no cropping for Private works */
  border-radius: 6px;
  background: #fff;
}

/* Caption under each tile */
.display-note {
  margin-top: 2px;
  font-size: 12px;
  color: #7a7a7a;
}

/* Metadata — compact & centered */
.art-meta {
  display: grid;
  gap: 6px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
.art-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.1px;
}
.art-sub { font-size: 13px; color: #777; }
.badge {
  display: inline-block;
  font-size: 10.5px;
  opacity: 0.6;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
}

/* Button — calm */
.buy {
  display: inline-block;
  background: #222;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.25s ease;
  text-transform: uppercase;
  margin-top: 4px;
}
.buy:hover { background: #333; }
.muted-note { font-size: 11.5px; color: #888; }

/* Hide overlays if any */
.overlay-quote { display: none !important; }
.has-overlay { position: static; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  letter-spacing: .1em;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.0s ease-out, transform 1.0s ease-out;
  transition-delay: var(--d, 0s);
}
.reveal.show { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1180px) {
  .private-wrap { max-width: 100%; }
}
@media (max-width: 1024px) {
  .private-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .private-grid { grid-template-columns: 1fr; }
  :root {
    --tile-ar: 4 / 3;
    --tile-min-h: 220px;
    --tile-max-h: 320px;
    --tile-pad: 10px;
  }
}
@media (max-width: 768px) {
  .hero { padding: 28px 0 36px; }
  .hero-title { font-size: clamp(20px, 5vw, 28px); }
  .hero-image { width: min(100%, 720px); }
}
