/* ================================================================
   Peggy's Art — a small, quiet gallery
   Palette drawn from the paintings themselves:
   ivory canvas, warm ink, vermilion (the umbrellas & red coats),
   lake blue (the Mediterranean scenes).
   ================================================================ */

:root {
  --paper:      #f6f1e8;
  --paper-deep: #efe7d8;
  --ink:        #2a241d;
  --ink-soft:   #6f6355;
  --vermilion:  #ad3d24;
  --lake:       #2e5d78;
  --hairline:   #d9cebc;
  --mat:        #fdfbf6;
  --shadow:     0 10px 30px rgba(42, 36, 29, .14), 0 2px 8px rgba(42, 36, 29, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Avenir Next", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* faint canvas-weave texture */
  background-image:
    linear-gradient(rgba(42,36,29,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,36,29,.018) 1px, transparent 1px);
  background-size: 3px 3px;
}

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

h1, h2, h3 { font-weight: 500; line-height: 1.08; }
h1 em, h2 em, .wordmark em, .foot-mark em { font-style: italic; color: var(--vermilion); }

/* ---------------- header ---------------- */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  padding: 1.6rem clamp(1.2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: clamp(1rem, 3vw, 2.4rem);
  padding-bottom: .3rem;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.site-nav a:hover { color: var(--vermilion); border-color: var(--vermilion); }

/* ---------------- shared ---------------- */

.kicker {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-bottom: 1.1rem;
}

.num {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section-lede {
  color: var(--ink-soft);
  max-width: 34em;
  margin: 1.2rem auto 0;
}

.btn {
  display: inline-block;
  margin-top: 2.2rem;
  padding: .85rem 2.2rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--vermilion); border-color: var(--vermilion); color: #fff; }

/* gentle entrance (only when JS is available to reveal again) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- hero ---------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.2rem, 5vw, 4rem);
  max-width: 1280px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.hero .lede {
  margin-top: 1.6rem;
  max-width: 30em;
  color: var(--ink-soft);
}

.hero-art { position: relative; }
.hero-art img {
  width: 100%;
  border: 14px solid var(--mat);
  outline: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}
.hero-art figcaption,
.about-art figcaption {
  margin-top: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  font-size: .92rem;
}
.hero-art figcaption .num,
.about-art figcaption .num { font-style: normal; margin-right: .8em; }

/* ---------------- gallery ---------------- */

.gallery-intro {
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem 0;
  border-top: 1px solid var(--hairline);
}
.gallery-intro h2, .hello h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

.gallery {
  columns: 3 320px;
  column-gap: clamp(1.5rem, 3vw, 2.6rem);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  max-width: 1280px;
  margin: 0 auto;
}

.work {
  break-inside: avoid;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
  cursor: zoom-in;
}

.work .mat {
  background: var(--mat);
  padding: clamp(.8rem, 1.6vw, 1.1rem);
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 16px rgba(42, 36, 29, .10);
  transition: transform .45s ease, box-shadow .45s ease;
}
.work:hover .mat { transform: translateY(-6px); box-shadow: var(--shadow); }
.work .mat img { width: 100%; }

.work figcaption { padding: 1.1rem .2rem 0; }
.work h3 { font-size: 1.45rem; margin-top: .35rem; }
.work .medium {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-top: .3rem;
}
.work .note {
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: .55rem;
  max-width: 30em;
}

/* ---------------- quote ---------------- */

.quote {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  text-align: center;
}
.quote blockquote { max-width: 44em; margin: 0 auto; position: relative; }
.quote blockquote::before {
  content: "\201C";
  display: block;
  font-size: 5.5rem;
  line-height: .6;
  color: var(--vermilion);
  margin-bottom: 1.4rem;
}
.quote p {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.45;
}
.quote cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #c9baa4;
}

/* ---------------- about ---------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.2rem, 5vw, 4rem);
  max-width: 1280px;
  margin: 0 auto;
}

.about-art img {
  width: 100%;
  border: 14px solid var(--mat);
  outline: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.about h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 1.4rem; }
.about-text p + p { margin-top: 1.1rem; }
.about-text p { color: var(--ink-soft); max-width: 34em; }
.about-text .kicker { margin-bottom: 1.1rem; }
.about-text .signoff {
  margin-top: 2rem;
  font-style: italic;
  color: var(--vermilion);
  font-size: 1.15rem;
}

/* ---------------- hello / footer ---------------- */

.hello {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--hairline);
  background: var(--paper-deep);
}

.site-footer {
  border-top: 1px solid var(--hairline);
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  color: var(--ink-soft);
}
.foot-mark { font-size: 1.5rem; color: var(--ink); margin-bottom: .6rem; }
.site-footer .fine {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .12em;
  margin-top: 1.2rem;
  color: #a2937f;
}

/* ---------------- lightbox ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(24, 20, 15, .94);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: flex; }

.lightbox figure {
  max-width: min(92vw, 1000px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img {
  max-height: 78vh;
  max-width: 100%;
  width: auto;
  border: 12px solid var(--mat);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox figcaption {
  margin-top: 1.2rem;
  color: #e8ddc9;
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
}
.lightbox figcaption .num, .lightbox figcaption #lb-medium {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #a89877;
  margin: .3rem 0;
}
.lightbox figcaption #lb-title { display: block; font-size: 1.4rem; }

.lightbox button {
  position: fixed;
  background: none;
  border: none;
  color: #e8ddc9;
  font-size: 2.2rem;
  font-family: var(--serif);
  cursor: pointer;
  padding: .6rem 1rem;
  transition: color .25s, transform .25s;
  z-index: 51;
}
.lightbox button:hover { color: var(--vermilion); transform: scale(1.12); }
.lb-close { top: 1rem; right: 1.4rem; font-size: 2.6rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.12); }

/* ---------------- contact page ---------------- */

.contact-intro {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem 0;
}
.contact-intro h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }

.contact-body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
  max-width: 1180px;
  margin: 0 auto;
}

.contact-art img {
  width: 100%;
  border: 12px solid var(--mat);
  outline: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}
.contact-art figcaption {
  margin-top: .9rem;
  font-style: italic;
  color: var(--ink-soft);
  font-size: .92rem;
}
.contact-art figcaption .num { font-style: normal; margin-right: .8em; }

.info-list { margin-top: 2.2rem; }
.info-list div { padding: 1.1rem 0; border-top: 1px solid var(--hairline); }
.info-list dt {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-bottom: .3rem;
}
.info-list dd { font-size: 1.05rem; }
.info-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); transition: color .25s, border-color .25s; }
.info-list a:hover { color: var(--vermilion); border-color: var(--vermilion); }
.info-list .soon { font-style: italic; color: #a2937f; font-size: .85em; }

.contact-form {
  background: var(--mat);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 3rem);
}

.contact-form label { display: block; margin-bottom: 1.5rem; }
.contact-form label span {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}
.contact-form label .opt { text-transform: none; letter-spacing: .05em; font-style: italic; color: #a2937f; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: .8rem 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.contact-form textarea { resize: vertical; line-height: 1.55; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--vermilion);
  box-shadow: 0 0 0 3px rgba(173, 61, 36, .12);
}
.contact-form ::placeholder { color: #b3a691; font-style: italic; }

.contact-form .btn { margin-top: .4rem; width: 100%; cursor: pointer; }
.form-fine {
  margin-top: 1.1rem;
  text-align: center;
  font-style: italic;
  font-size: .88rem;
  color: #a2937f;
}

.thanks { text-align: center; padding: 2rem 0; }
.thanks p { font-size: 1.2rem; }
.thanks .kicker { margin-bottom: 1rem; }
.thanks .btn { width: auto; margin-top: 2rem; }

@media (max-width: 860px) {
  .contact-body { grid-template-columns: 1fr; }
  .contact-art { max-width: 380px; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 860px) {
  .hero, .about { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 480px; }
  .about-art { max-width: 480px; margin: 0 auto; }
  body { font-size: 18px; }
}
