:root {
  --ink: #20201e;
  --muted: #77736c;
  --paper: #f6f4ef;
  --surface: #fffefa;
  --line: #e4e0d7;
  --accent: #8a5a3b;
  --accent-dark: #68432c;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
a:hover { color: var(--accent); }

.site-header {
  background: rgba(246, 244, 239, .94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 1.15rem 1.5rem;
}

.brand { font-family: Georgia, serif; font-size: 1.55rem; font-weight: bold; letter-spacing: .08em; text-decoration: none; }
.brand span { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-nav a { color: var(--muted); font-size: .82rem; letter-spacing: .05em; text-decoration: none; }
.site-nav a:first-child { color: var(--ink); font-weight: bold; }

.site-main { margin: 0 auto; max-width: var(--max-width); min-height: 75vh; padding: 4.5rem 1.5rem 6rem; }
.site-main h1, .site-main h2, .site-main h3 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; line-height: 1.15; }
.site-main h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.035em; margin: .25rem 0 1.25rem; }
.site-main h2 { font-size: 2rem; margin: 0 0 1.5rem; }
.site-main h3 { font-size: 1.35rem; margin: .45rem 0 .5rem; }
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: bold; letter-spacing: .16em; margin: 0; text-transform: uppercase; }
.artist-intro, .lead { color: var(--muted); font-size: 1.08rem; max-width: 38rem; }
.gallery-section { margin-top: 5.5rem; }

.art-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.art-card { background: var(--surface); border: 1px solid var(--line); transition: box-shadow .2s ease, transform .2s ease; }
.art-card:hover { box-shadow: 0 18px 45px rgba(41, 31, 22, .1); transform: translateY(-4px); }
.art-card__image { background: #e7e1d7; display: block; height: 360px; overflow: hidden; text-decoration: none; }
.art-card__image img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.art-card:hover .art-card__image img { transform: scale(1.035); }
.art-card__image span, .artwork-placeholder { align-items: center; color: var(--muted); display: flex; height: 100%; justify-content: center; }
.art-card__body { padding: 1.35rem 1.4rem 1.5rem; }
.art-card__body p:not(.eyebrow) { color: var(--muted); font-size: .92rem; margin: .5rem 0 1.2rem; }
.art-card__body h3 a { text-decoration: none; }
.art-card__footer { align-items: center; border-top: 1px solid var(--line); display: flex; font-size: .85rem; justify-content: space-between; padding-top: 1rem; }
.text-link { color: var(--accent-dark); font-size: .78rem; font-weight: bold; text-decoration: none; }

.artwork-detail { align-items: start; display: grid; gap: clamp(2.5rem, 7vw, 6rem); grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); margin-top: 2rem; }
.artwork-detail__media { background: #e7e1d7; min-height: 560px; }
.artwork-image { display: block; height: 100%; max-height: 760px; min-height: 560px; object-fit: cover; width: 100%; }
.artwork-detail__content { padding-top: 2rem; }
.rich-text { color: var(--muted); margin: 2rem 0; }
.artwork-facts { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); margin: 2rem 0; }
.artwork-facts div { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: .8rem 0; }
.artwork-facts div:last-child { border-bottom: 0; }
.artwork-facts dt { color: var(--muted); }
.artwork-facts dd { margin: 0; text-align: right; }

.button { background: var(--accent); border: 1px solid var(--accent); color: white; display: inline-block; font-size: .8rem; font-weight: bold; letter-spacing: .04em; padding: .85rem 1.2rem; text-decoration: none; transition: background .2s ease; }
.button:hover { background: var(--accent-dark); color: white; }
.form-shell { background: var(--surface); border: 1px solid var(--line); margin: 2rem auto; max-width: 660px; padding: clamp(1.5rem, 5vw, 3.5rem); }
.contact-form p { display: flex; flex-direction: column; gap: .35rem; margin: 1rem 0; }
.contact-form label { font-size: .83rem; font-weight: bold; }
.contact-form input, .contact-form select, .contact-form textarea { background: var(--paper); border: 1px solid var(--line); font: inherit; padding: .75rem; width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 2px solid rgba(138, 90, 59, .15); }
.confirmation { text-align: center; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; margin: 0 auto; max-width: var(--max-width); padding: 1.5rem; }

@media (max-width: 800px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .site-main { padding-top: 3rem; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-card__image { height: 300px; }
  .artwork-detail { grid-template-columns: 1fr; }
  .artwork-detail__media, .artwork-image { min-height: 420px; }
  .artwork-detail__content { padding-top: 0; }
}

@media (max-width: 520px) {
  .site-nav { gap: .65rem 1rem; }
  .site-nav a { font-size: .74rem; }
  .site-main h1 { font-size: 3rem; }
  .art-grid { grid-template-columns: 1fr; }
  .art-card__image { height: 360px; }
}
