:root {
  --ink: #23201d;
  --muted: #6f675e;
  --line: #e6e0d8;
  --bg: #fbf9f6;
  --paper: #ffffff;
  --accent: #8a6d3b;
  --accent-dark: #6b5330;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

/* ---------- Hanging QR frame ---------- */
.qr-hang {
  position: absolute;              /* pinned to the top of the page — scrolls away */
  top: 0;
  right: 30px;
  z-index: 200;
  width: 140px;
  text-align: center;
  pointer-events: none;            /* only the frame itself is clickable */
}
.qr-wire { display: block; margin: 0 auto; width: 100%; height: auto; overflow: visible; }
.qr-wire line { stroke: #6a6055; stroke-width: 1.4; }
.qr-wire circle { fill: #3a342d; }
.qr-frame {
  position: relative;
  margin: -8px auto 0;
  width: 100%;                     /* same width as the hanging unit */
  padding: 13px;                   /* even border all around */
  box-sizing: border-box;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 3px, rgba(0,0,0,0.05) 3px 6px),
    linear-gradient(135deg, #e6cf8b 0%, #c2a259 30%, #8a6c39 65%, #6f5730 100%);
  border-radius: 3px;
  box-shadow:
    0 12px 22px rgba(0,0,0,0.30),
    inset 0 0 0 1px rgba(255,255,255,0.45),
    inset 0 0 0 3px rgba(110,88,46,0.65),
    inset 0 0 0 5px rgba(232,205,131,0.95),
    inset 0 0 0 8px rgba(110,88,46,0.55),
    inset 0 0 0 10px rgba(232,205,131,0.85);
  transform: rotate(-2deg);
  pointer-events: auto;            /* clickable (tap-to-enlarge on mobile) */
  cursor: pointer;
}
/* small gilt corner ornaments */
.qr-frame::before,
.qr-frame::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(90,70,36,0.7);
  background: linear-gradient(135deg, #f2e4b4, #b8974f);
  border-radius: 1px;
}
.qr-frame::before { top: 5px; left: 5px; }
.qr-frame::after  { bottom: 5px; right: 5px; }
.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  background: #fff;
  padding: 8px;
  border: 1px solid #6f5730;
  position: relative;
  z-index: 1;
}

/* Full-screen QR when tapped on a phone */
.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,17,13,0.9);
}
.qr-lightbox[hidden] { display: none; }
.qr-lightbox img {
  width: min(88vw, 88vh);          /* mobile: fills the screen */
  height: auto;
  background: #fff;
  padding: 18px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px #b8974f, 0 20px 50px rgba(0,0,0,0.5);
}
/* desktop: about 3x the hanging frame, not full screen */
@media (min-width: 821px) {
  .qr-lightbox img { width: 420px; }
}
/* Keep it visible on phones too, tucked into the corner and tap-to-enlarge */
@media (max-width: 820px) {
  .qr-hang { width: 68px; right: 8px; }
  .qr-frame { padding: 6px; }
  .qr-frame img { padding: 5px; }
  .qr-frame::before, .qr-frame::after { width: 6px; height: 6px; }
}

/* ---------- Header ---------- */
header {
  text-align: center;
  padding: 2.4rem 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
header h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.06em; }
header h1 a { color: var(--ink); }
header h1 a:hover { text-decoration: none; }
.tagline {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
}

/* ---------- Nav ---------- */
nav {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.8rem;
}
nav a {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
nav a:hover { text-decoration: none; border-bottom-color: var(--accent); }
nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent-dark); }

/* ---------- Layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 3rem 1.2rem; }
section { margin-bottom: 3.5rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.page-head .lead { margin-inline: 0; }
.page-head.center .lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 3rem 1rem 3.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.hero .lead { margin: 0 auto 2rem; }

/* ---------- Buttons ---------- */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.cta.ghost { background: transparent; color: var(--accent-dark); }
.cta.ghost:hover { background: var(--accent); color: #fff; }

/* ---------- Gallery grid ---------- */
.featured h3 { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem 2rem;
}
.art-card { margin: 0; }
.art-image {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.8rem;
  overflow: hidden;
}
.art-image img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.art-card:hover .art-image img { transform: scale(1.03); }
.sold-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: rgba(35,32,29,0.85);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
}
figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.9rem;
  text-align: center;
}
.art-title { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; color: var(--ink); }
.art-meta { font-size: 0.82rem; color: var(--muted); }
.art-price { margin-top: 0.35rem; letter-spacing: 0.08em; font-size: 0.95rem; }
.is-sold .art-price { color: var(--muted); }
.enquire {
  margin-top: 0.5rem;
  align-self: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.enquire:hover { text-decoration: none; color: var(--accent-dark); }

/* ---------- About ---------- */
.about { max-width: 46rem; margin: 0 auto; }
.about-text .statement { font-style: italic; color: var(--muted); }
.cv { margin-top: 2.5rem; }
.cv h3 { font-size: 1.5rem; margin-top: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; }
.cv-list { list-style: none; padding: 0; margin: 0; }
.cv-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }

/* ---------- Contact form ---------- */
.contact { max-width: 34rem; }
.contact label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.contact input, .contact textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.hidden { display: none; }

.form-notice {
  background: #f3efe8;
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1rem;
}
.form-notice h3 { margin: 0 0 0.3rem; color: var(--accent-dark); font-size: 1.5rem; }
.form-notice p { margin: 0; color: var(--muted); }
.form-error {
  background: #fbecea;
  border: 1px solid #c0392b;
  color: #922b21;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 2.6rem 1.2rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.9rem;
}
footer p { margin: 0.3rem 0; }
.fineprint { font-size: 0.78rem; letter-spacing: 0.04em; }

@media (max-width: 600px) {
  main { padding: 2rem 1rem; }
  .art-image img { height: 280px; }
}
