/* ============================================================
   Spark Mind Studio — one-page portfolio
   Palette: warm ivory, charcoal, deep terracotta accent.
   No gradients, no glassmorphism. Serif display + clean sans.
   ============================================================ */

:root {
  --ivory: #faf7f2;
  --ivory-deep: #f3eee5;
  --ink: #2b2620;          /* warm charcoal */
  --ink-soft: #5c554b;
  --accent: #7a2e2e;       /* deep terracotta / burgundy */
  --accent-dark: #5f2222;
  --line: #e2d9cb;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Keep the studio name on one line on small screens */
@media (max-width: 560px) {
  .brand { font-size: 1.1rem; }
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.8rem; }
}

.nav-links { display: flex; gap: 1.25rem; }

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Mural backdrop with a FLAT dark overlay (no gradient) for legibility */
  background: url("images/mural-birch-tree-with-lights.jpg") center 30% / cover no-repeat;
  position: relative;
  color: #fdfaf5;
  padding: 4rem 1.25rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 15, 10, 0.58);
}

.hero-inner { position: relative; max-width: 44rem; }

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: #e8dcc8;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: #efe6d4;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-solid { background: var(--accent); color: #fdfaf5; border: 1px solid var(--accent); }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline { background: transparent; color: #fdfaf5; border: 1px solid #d8c9b2; }
.btn-outline:hover { background: rgba(253, 250, 245, 0.14); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 1.25rem; }
.section-alt { background: var(--ivory-deep); }
.wrap { max-width: 72rem; margin: 0 auto; }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1.75rem;
  color: var(--ink);
}

.gallery-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 3rem 0 0.4rem;
  color: var(--accent);
}

.gallery-note { color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 46rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.portrait {
  aspect-ratio: 4 / 5;
  background: var(--ivory-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  margin: 0;
}

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

.about-text p { max-width: 38rem; }

@media (min-width: 720px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; }
}

/* ---------- Gallery grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
}

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

.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43, 38, 32, 0.12);
}

.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--ivory-deep);
}

.tile figcaption { padding: 0.7rem 0.85rem 0.85rem; }

.cap-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
}

.cap-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* ---------- Contact ---------- */
.contact-wrap { max-width: 44rem; }
.contact-lines { margin-top: 1.25rem; font-size: 1.15rem; line-height: 2; }
.contact-lines a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-lines a:hover { color: var(--accent-dark); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 1.25rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 14, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 3.5rem 1rem 1rem;
}

.lightbox[hidden] { display: none; }

.lb-img {
  max-width: min(92vw, 1100px);
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(250, 247, 242, 0.2);
}

.lb-caption {
  color: #efe6d4;
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-top: 0.9rem;
  text-align: center;
  max-width: 90vw;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: none;
  color: #fdfaf5;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  opacity: 0.85;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }

.lb-close { top: 0.4rem; right: 0.6rem; }
.lb-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.4rem; top: 50%; transform: translateY(-50%); }

@media (min-width: 720px) {
  .lb-prev { left: 1.5rem; }
  .lb-next { right: 1.5rem; }
}
