/* Vera Art — shared styles */

:root {
  --olive: #2F2E1C;
  --sage: #8E9A7C;
  --taupe: #B99568;
  --cream: #F3EEE3;
  --cream-2: #EAE2D2;
  --gold: #B4802E;
  --charcoal: #1C1A16;
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  color: var(--olive);
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--olive); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

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

.label {
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--taupe);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  padding: 22px 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(47,46,28,0.12);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 46px; width: auto; }

.brand-text {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--olive);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--charcoal);
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle { display: none; }

@media (max-width: 560px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .brand-text { font-size: 19px; white-space: nowrap; }
  .brand img { height: 36px; }
  nav.main-nav { width: 100%; }
  nav.main-nav ul {
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }
  nav.main-nav a { font-size: 13px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,26,22,0.05) 0%, rgba(28,26,22,0.55) 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 28px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  color: var(--cream);
}

.hero-content .label { color: var(--cream-2); opacity: 0.85; }

.hero-content h1 {
  color: var(--cream);
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.02;
  margin: 10px 0 18px;
  max-width: 14ch;
}

.hero-tagline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--cream-2);
  max-width: 46ch;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid var(--cream);
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover { background: var(--cream); color: var(--charcoal); }

.btn.solid {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
}

.btn.solid:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.rule {
  border: none;
  border-top: 1px solid rgba(180,128,46,0.4);
  width: 70px;
  margin: 0 0 28px;
}

.rule.center { margin: 0 auto 28px; }

.story {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.story .sprig { width: 64px; margin-bottom: 18px; opacity: 0.85; }

.story p { font-size: 21px; color: var(--olive); }
.story p.closing { font-style: italic; color: var(--charcoal); }

.values {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.values span {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--taupe);
}

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Featured / Gallery grid ---------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.piece-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(47,46,28,0.12);
}

.piece-grid.two-up { grid-template-columns: repeat(2, 1fr); }

.piece {
  background: var(--cream);
  position: relative;
}

.piece .frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.piece.tall .frame { aspect-ratio: 3 / 4.6; }
.piece.wide .frame { aspect-ratio: 5 / 3.4; }

.piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.piece:hover img { transform: scale(1.04); }

.piece-caption {
  padding: 18px 20px 26px;
}

.piece-caption .label { color: var(--gold); }

.piece-caption h3 {
  font-size: 23px;
  margin: 6px 0 6px;
}

.piece-caption p {
  margin: 0;
  font-size: 17px;
  color: var(--charcoal);
}

@media (max-width: 900px) {
  .piece-grid, .piece-grid.two-up { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .piece-grid, .piece-grid.two-up { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--olive);
  color: var(--cream);
  text-align: center;
}

.cta-band h2 { color: var(--cream); }
.cta-band p { max-width: 50ch; margin: 0 auto 30px; font-size: 20px; color: var(--cream-2); }

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

form.contact-form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
}

.field input,
.field textarea {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  padding: 12px 4px;
  border: none;
  border-bottom: 1px solid rgba(47,46,28,0.35);
  background: transparent;
  color: var(--charcoal);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 15px; color: var(--taupe); margin-top: -6px; }

.contact-info h3 { margin-top: 28px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { margin: 4px 0; }

.social-row { display: flex; gap: 18px; margin-top: 10px; }
.social-row a { font-size: 17px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid rgba(47,46,28,0.15);
  padding: 36px 0;
  text-align: center;
}

footer .label { display: block; margin-bottom: 8px; }
footer p { margin: 0; font-size: 15px; color: var(--taupe); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.status-msg { font-size: 17px; margin-top: 6px; }
.status-msg.ok { color: var(--sage); }
.status-msg.err { color: #a04d3b; }
