/* ============================================================
   Norma Mulligan — Artist Website
   Theme: "Gallery Classic"  (ivory catalogue + serif)
   ------------------------------------------------------------
   To change the whole look, edit the colour + font variables
   in the :root block below. Nothing else needs to change.
   ============================================================ */

:root {
  /* --- Colour palette --- */
  --paper:        #f6f1e7;   /* page background (warm ivory) */
  --paper-2:      #fbf8f1;   /* cards / lighter panels */
  --ink:          #35302a;   /* main text */
  --ink-soft:     #6f6656;   /* secondary text */
  --gold:         #b08d3a;   /* accent lines & links */
  --gold-dark:    #8a6d29;   /* hover accent */
  --rule:         #d8cfba;   /* thin divider lines */
  --frame:        #ffffff;   /* mount around paintings */
  --shadow:       rgba(50, 40, 20, 0.18);

  /* --- Type --- */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  "Segoe UI", Helvetica, Arial, sans-serif;

  /* --- Sizing (generous, for easy reading) --- */
  --maxw: 1140px;
  --base: 19px;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }

/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / navigation ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  padding: 26px 0 14px;
}
.brand {
  font-size: 2.15rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
}
.brand a { color: var(--ink); }
.brand a:hover { text-decoration: none; color: var(--ink); }
.tagline {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 6px 0 0;
}
.tagline::before, .tagline::after { content: "\00a0\00a0"; }

.main-nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 30px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.main-nav a {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--gold); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- Section headings ---------- */
.page-head { text-align: center; margin: 54px 0 10px; }
.page-head h1 {
  font-size: 2.3rem;
  font-weight: 500;
  margin: 0 0 8px;
}
.ornament {
  width: 120px; height: 1px; background: var(--gold);
  margin: 14px auto 0; position: relative;
}
.ornament::after {
  content: "\2766"; /* floral heart bullet */
  color: var(--gold);
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--paper); padding: 0 10px; font-size: 1rem;
}
.lead {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 680px;
  margin: 8px auto 0;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.hero-img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  filter: saturate(1.02);
}
.hero-caption {
  text-align: center;
  padding: 30px 24px 6px;
}
.hero-caption h1 {
  font-size: 2.5rem; font-weight: 500; margin: 0 0 6px;
}
.hero-caption p { color: var(--ink-soft); font-style: italic; margin: 0; font-size: 1.2rem; }

.btn {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 30px;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  background: transparent;
  transition: all .18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--gold); color: #fff; text-decoration: none; }

/* ---------- Prose blocks ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-weight: 500; font-size: 1.5rem; margin: 1.6em 0 .4em; }

/* ---------- Gallery grid ---------- */
.filters {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px 14px; margin: 26px 0 8px;
}
.filter-btn {
  font-family: var(--serif);
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: 8px 22px;
  letter-spacing: 2px; text-transform: uppercase; font-size: 0.78rem;
  cursor: pointer;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.gallery {
  columns: 3 300px;
  column-gap: 22px;
  margin: 30px 0 10px;
}
.piece {
  break-inside: avoid;
  margin: 0 0 22px;
  background: var(--frame);
  padding: 12px 12px 0;
  box-shadow: 0 2px 10px var(--shadow);
  border: 1px solid #efe9dc;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.piece:hover { transform: translateY(-3px); box-shadow: 0 8px 22px var(--shadow); }
.piece img { width: 100%; }
.piece figcaption {
  text-align: center;
  padding: 12px 6px 14px;
}
.piece .title { font-style: italic; font-size: 1.08rem; }
.piece .meta { color: var(--ink-soft); font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }

/* Empty / coming-soon note inside gallery */
.coming-soon {
  text-align: center; color: var(--ink-soft); font-style: italic;
  border: 1px dashed var(--rule); padding: 40px 20px; margin: 20px auto;
  max-width: 620px; background: var(--paper-2);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28, 24, 18, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; max-width: 92vw; max-height: 92vh; }
.lightbox img {
  max-width: 92vw; max-height: 80vh;
  border: 10px solid #fff; box-shadow: 0 10px 40px rgba(0,0,0,.6);
  margin: 0 auto;
}
.lightbox figcaption { color: #f3ecdd; margin-top: 16px; font-style: italic; font-size: 1.2rem; }
.lightbox figcaption .meta { display:block; font-style: normal; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: #cdbf9f; margin-top: 4px; }
.lb-close, .lb-nav {
  position: absolute; background: none; border: none; color: #f3ecdd;
  font-size: 2.4rem; cursor: pointer; line-height: 1; padding: 10px 16px;
  font-family: var(--serif);
}
.lb-close { top: 10px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
.lb-close:hover, .lb-nav:hover { color: var(--gold); }

/* ---------- Featured strip (home) ---------- */
.featured { margin: 40px 0 10px; }
.featured .gallery { columns: 3 260px; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 560px; margin: 30px auto; text-align: center;
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 40px 30px; box-shadow: 0 2px 10px var(--shadow);
}
.contact-card .email { font-size: 1.4rem; margin: 14px 0; }

/* ---------- Instagram note ---------- */
.ig-note { text-align: center; margin: 40px auto; color: var(--ink-soft); }
.ig-note a { font-weight: bold; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 70px;
  padding: 30px 0 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.site-footer .ig a { color: var(--gold-dark); letter-spacing: 1px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  :root { --base: 18px; }
  .brand { font-size: 1.6rem; letter-spacing: 2px; }
  .hero-caption h1 { font-size: 1.9rem; }
  .page-head h1 { font-size: 1.8rem; }
  .gallery, .featured .gallery { columns: 1; }
  .main-nav { gap: 4px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
