/* Self-hosted Google Fonts (SIL Open Font License), latin subset */
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Tenor Sans"; src: url("/fonts/tenor-sans.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --cream: #E0D6C1;
  --cream-light: #EAE3D3;
  --tan: #B0976D;
  --ink: #231E20;
  --ink-soft: #4A4245;
  --display: "Tenor Sans", "Gill Sans", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Buttons */
.btn {
  display: inline-block; padding: .8em 1.8em; min-width: 180px; text-align: center;
  background: var(--ink); color: var(--cream); border: 1.5px solid var(--ink);
  font: 700 .875rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: transparent; color: var(--cream); }
.btn-small { min-width: 0; padding: .7em 1.2em; font-size: .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); background: rgba(35, 30, 32, .94); color: var(--cream); backdrop-filter: blur(6px);
}
.brand { font-family: var(--display); font-size: 1.15rem; text-decoration: none; letter-spacing: .02em; }
.topbar nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.topbar nav a { text-decoration: none; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.topbar nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 680px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero-text { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 48px var(--gutter); background: var(--cream); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
.location { margin: -1.2em 0 1.8em; font-size: .95rem; color: var(--ink-soft); }
.tagline { margin: .6em 0 1.8em; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.hero .actions { justify-content: center; }

/* About */
.about { background: var(--tan); padding: clamp(56px, 9vw, 104px) 0; }
.about h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.about hr { border: 0; border-top: 1px solid var(--ink); margin: 20px 0 24px; max-width: 540px; }
.about p { margin: 0 0 32px; font-size: 1.1rem; max-width: 60ch; }

/* Artist sections */
.artist { padding: clamp(64px, 10vw, 112px) 0; }
.artist-name { text-align: center; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.artist-intro { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin: 40px 0 48px; }
.photo-placeholder { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 24px; border: 1.5px dashed rgba(35,30,32,.35); background: var(--cream-light); color: var(--ink-soft); font-family: var(--display); font-size: 1.1rem; line-height: 1.5; }
.artist-intro img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bio { margin: 0; font-weight: 500; }
.prints-note { text-align: center; margin: 0 auto 40px; padding: 14px 20px; max-width: 640px; border-top: 1px solid rgba(35,30,32,.25); border-bottom: 1px solid rgba(35,30,32,.25); font-size: .98rem; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit;
}
.gallery .frame { display: block; aspect-ratio: 1 / 1; background: var(--cream-light); padding: 18px; box-shadow: 0 1px 2px rgba(35,30,32,.08); transition: box-shadow .25s, transform .25s; }
/* contain + drop-shadow keeps every tile square while the shadow hugs the painting itself */
.gallery .frame img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(35,30,32,.22)); }
.gallery button:hover .frame, .gallery button:focus-visible .frame { box-shadow: 0 10px 30px rgba(35,30,32,.18); transform: translateY(-2px); }
.gallery .title { display: block; margin-top: 10px; font-family: var(--display); font-size: 1.05rem; }

.insta { text-align: center; margin: 0; font-size: .95rem; letter-spacing: .04em; }
.insta a { font-weight: 500; text-underline-offset: 4px; }
.insta span { color: var(--ink-soft); }

.grace { background: var(--cream-light); }
.soon { text-align: center; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--ink); color: var(--cream); padding: clamp(64px, 10vw, 112px) 0; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.contact-intro { margin: 14px 0 32px; opacity: .85; }
form { display: grid; gap: 20px; }
form label { display: grid; gap: 8px; font-size: 1rem; }
.optional { opacity: .6; font-size: .9em; }
input, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(224,214,193,.5); border-radius: 8px;
  background: transparent; color: var(--cream); font: inherit;
}
input::placeholder { color: rgba(224,214,193,.4); }
input:focus, textarea:focus { outline: 2px solid var(--cream); outline-offset: 1px; border-color: var(--cream); }
textarea { resize: vertical; min-height: 120px; }
form .btn { justify-self: start; margin-top: 8px; border-radius: 999px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-status { margin: 0; min-height: 1.5em; }
.form-status.error { color: #F2B8A2; }
.privacy { margin: 0; font-size: .85rem; opacity: .65; }
.direct { margin-top: 32px; font-size: .95rem; opacity: .8; }

.footer { background: var(--ink); color: var(--cream); text-align: center; padding: 24px var(--gutter) 32px; font-size: .85rem; border-top: 1px solid rgba(224,214,193,.15); }
.footer p { margin: 0; opacity: .75; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,17,18,.96); color: var(--cream); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(20,17,18,.96); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 16px; padding: 56px 0 24px; max-height: 100vh; }
.lightbox img { max-height: calc(100vh - 190px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { display: grid; justify-items: center; gap: 6px; text-align: center; }
.lb-title { font-family: var(--display); font-size: 1.4rem; }
.lb-meta { font-size: .9rem; opacity: .75; margin-bottom: 8px; }
.lb-ask { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.lb-ask:hover { color: var(--cream); }
.lightbox button.lb-prev, .lightbox button.lb-next, .lightbox button.lb-close {
  background: none; border: 0; color: var(--cream); font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .7; padding: 12px;
}
.lightbox button:hover { opacity: 1; }
.lb-close { position: absolute; top: 8px; right: 12px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .hero-text { padding: 40px var(--gutter) 48px; }
  .topbar .brand { font-size: 1rem; }
  .topbar nav a { font-size: .72rem; }
  .artist-intro { grid-template-columns: 1fr; margin: 28px 0 36px; }
  .photo-placeholder { aspect-ratio: 4 / 3; }
  .artist-intro img { max-width: 420px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery .frame { padding: 10px; }
  .gallery .title { font-size: .92rem; }
  .btn { min-width: 0; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .lightbox button.lb-prev, .lightbox button.lb-next { font-size: 2rem; padding: 4px; }
}

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

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound .back { margin-top: 32px; }
