:root {
  --ink: #23261f;
  --muted: #6b7066;
  --paper: #fbfaf6;
  --white: #ffffff;
  --accent: #4f6148;
  --accent-dark: #34452f;
  --line: #e4e2d9;
  --mat: #f0eee8;
  --sold: #9a3b2c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
:root { --header-h: 74px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.container { width: min(1220px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251, 250, 246, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { text-decoration: none; font-size: 17px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.brand em { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: .02em; font-weight: 400; font-size: 20px; }
.links { display: flex; gap: 30px; }
.links a { text-decoration: none; font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.links a:hover { color: var(--ink); }

.eyebrow { margin: 0; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
h1, .section-title, .modal h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(42px, 6vw, 82px); margin: 18px 0 20px; }
.section-title { font-size: clamp(34px, 4vw, 52px); margin: 10px 0 0; }

.btn { display: inline-block; background: var(--accent); color: var(--white); border: 0; padding: 14px 26px; text-decoration: none; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; border-radius: 2px; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: .6; cursor: wait; }

.hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7%; align-items: center; padding: 72px 0 88px; }
.hero-intro { font-size: 19px; color: var(--muted); max-width: 440px; margin: 0 0 18px; }
.hero-artist { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; max-width: 440px; margin: 0 0 30px; padding-left: 16px; border-left: 2px solid var(--accent); }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-artist.hidden + .hero-actions { margin-top: 12px; }
.text-link { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--accent-dark); }
.hero-art { margin: 0; display: flex; justify-content: center; }
/* The whole painting is shown, never cropped, whatever its shape. */
.hero-art img { width: auto; max-width: 100%; max-height: 620px; object-fit: contain; box-shadow: 18px 18px 0 var(--mat); }

.section { padding: 88px 0; }
/* Menu links land with the section heading a comfortable distance below the sticky header. */
.section { scroll-margin-top: -56px; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { background: transparent; border: 1px solid var(--line); padding: 8px 16px; font-size: 13px; border-radius: 999px; }
.filters button.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 20px; }
.art-card { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; }
.frame { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--mat); padding: 16px; overflow: hidden; }
.frame img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 6px 20px rgba(0, 0, 0, .14); transition: transform .35s ease; }
.art-card:hover .frame img { transform: scale(1.025); }
.tag { position: absolute; top: 14px; right: 14px; background: var(--white); color: var(--sold); padding: 4px 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.card-meta { display: block; padding-top: 16px; }
.card-title { display: block; font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.card-sub { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.card-status { display: block; font-size: 13px; margin-top: 6px; letter-spacing: .03em; }
.card-status.available, .status-line.available { color: var(--accent); }
.card-status.sold, .status-line.sold { color: var(--sold); }

.bio { display: grid; grid-template-columns: .8fr 1.2fr; grid-template-rows: auto 1fr; grid-template-areas: "portrait head" "portrait text"; column-gap: 8%; align-items: start; }
.bio-head { grid-area: head; }
.portrait { grid-area: portrait; margin: 0; }
.bio-text { grid-area: text; }
.portrait img { width: 100%; max-height: 620px; object-fit: cover; }
.bio-text { margin-top: 24px; max-width: 640px; }
.bio-text p { font-size: 17px; color: #474c44; margin: 0 0 18px; }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; align-items: start; }
.contact-intro p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.inquiry { background: var(--white); border: 1px solid var(--line); padding: 32px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: 18px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #cfd0c8; border-radius: 2px; background: var(--white); font-weight: 400; }
.field textarea { resize: vertical; min-height: 130px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-foot p { margin: 0; font-size: 14px; }
.success { color: var(--accent); }
.error { color: var(--sold); }

/* Contact band: deep green with a white form card */
.contact-section { background: var(--accent); color: var(--white); }
.contact-section .eyebrow { color: rgba(255, 255, 255, .78); }
.contact-section .section-title { color: var(--white); }
.contact-section .contact-intro p:not(.eyebrow) { color: rgba(255, 255, 255, .86); }
.contact-section .contact-intro a { color: var(--white); }
.contact-section .inquiry { color: var(--ink); border-color: transparent; box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
.contact-section :focus-visible { outline-color: var(--white); }
.contact-section .inquiry :focus-visible { outline-color: var(--accent); }

.site-footer { background: var(--accent); border-top: 1px solid rgba(255, 255, 255, .28); padding: 28px 0; color: var(--white); font-size: 13px; }
.site-footer a { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }

dialog { border: 0; padding: 0; width: min(1080px, 100% - 32px); max-height: calc(100% - 32px); background: var(--paper); box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(21, 26, 20, .72); }
.close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 34px; line-height: 1; padding: 4px 8px; z-index: 1; }
.modal { display: grid; grid-template-columns: 1.4fr 1fr; }
.modal-img { background: var(--mat); display: flex; align-items: center; justify-content: center; padding: 32px; }
.modal-img img { max-height: 72vh; width: auto; object-fit: contain; }
.modal-copy { padding: 48px 36px 36px; }
.modal h2 { font-size: 34px; margin: 0 0 8px; }
.modal-copy p { margin: 0 0 16px; }
.status-line { font-weight: 600; }

@media (max-width: 860px) {
  .hero, .bio, .contact, .modal { grid-template-columns: 1fr; }
  /* Heading first, so the About link lands on "Meet the artist", then the portrait and biography. */
  .bio { grid-template-rows: auto; grid-template-areas: "head" "portrait" "text"; row-gap: 28px; }
  .bio-text { margin-top: 0; }
  .hero { padding: 40px 0 64px; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .section { padding: 64px 0; scroll-margin-top: -36px; }
  .hero-art img { max-height: 70vh; }
  .section-top { flex-direction: column; align-items: start; }
  .modal-img img { max-height: 50vh; }
  .modal-copy { padding: 24px; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .links { gap: 13px; }
  .links a { font-size: 11.5px; letter-spacing: .08em; }
  .brand { font-size: 12.5px; letter-spacing: .14em; }
  .brand em { font-size: 15px; }
  .gallery { grid-template-columns: 1fr; }
  .frame { padding: 14px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .inquiry { padding: 20px; }
  .hero-art img { box-shadow: 10px 10px 0 var(--mat); }
}
@media (max-width: 380px) {
  .links { gap: 11px; }
  .links a { font-size: 11.5px; letter-spacing: .06em; }
  .brand { font-size: 12.5px; letter-spacing: .12em; }
  .brand em { font-size: 15px; }
}
@media (max-width: 340px) {
  .links { gap: 9px; }
  .links a { font-size: 10.5px; letter-spacing: .03em; }
  .brand { font-size: 11.5px; letter-spacing: .08em; }
  .brand em { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame img { transition: none; }
  .art-card:hover .frame img { transform: none; }
}
