:root {
  --bg: #f6f8f2;
  /* Top banner color. Change this one line to try a different banner color. */
  --banner: #b5c2a9;
  --banner-text: #2c3a2c;
  --banner-muted: #3f4d3c;
  --banner-accent: #2c3a2c;
  --wall: #edf1e8;
  --surface: #ffffff;
  --text: #2e2a28;
  --muted: #776c68;
  --line: #dde4d6;
  --accent: #9c5a64;
  --accent-dark: #7d4550;
  --tint: #e8eee2;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Karla", system-ui, -apple-system, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .75em; }

/* Header */
.site-header { background: var(--banner); color: var(--banner-text); position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 10px rgba(40, 55, 40, .15); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 104px; }
.logo { font-family: var(--serif); font-size: 2.9rem; line-height: 1.1; text-decoration: none; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--banner-muted); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--banner-text); border-color: var(--banner-accent); }
.menu-btn { display: none; background: none; border: 1px solid rgba(44, 58, 44, .35); border-radius: 6px; padding: 6px 12px; font: inherit; font-size: .9rem; color: var(--banner-text); cursor: pointer; }
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .site-header .wrap { height: 80px; }
  .logo { font-size: 1.95rem; }
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--banner); border-top: 1px solid rgba(44, 58, 44, .15); padding: 8px 24px 16px; box-shadow: 0 10px 18px rgba(40, 55, 40, .18); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border: 0; }
  .nav a[aria-current="page"] { font-weight: 600; }
}

@media (max-width: 360px) { .logo { font-size: 1.45rem; } }

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border-radius: 2px; text-decoration: none; font-size: .95rem; letter-spacing: .02em; border: 1px solid var(--text); background: var(--text); color: #fff; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: #000; }
.btn.secondary { background: transparent; color: var(--text); }
.btn.secondary:hover { background: var(--tint); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero-art { background: var(--tint); aspect-ratio: 4 / 5; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--serif); font-size: 1.4rem; font-style: italic; }
.hero-text p.lead { font-size: 1.1rem; color: var(--muted); max-width: 34ch; margin-bottom: 1.75em; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 24px; }
  .hero-art { aspect-ratio: 1 / 1; max-height: 65vh; width: 100%; }
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head a { font-size: .95rem; color: var(--accent); text-decoration: none; }
.section-head a:hover { text-decoration: underline; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* Gallery wall */
section.wall { background: var(--wall); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 56px; align-items: end; padding-top: 16px; }
@media (max-width: 900px) { .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; } }
@media (max-width: 520px) { .wall-grid { grid-template-columns: 1fr; gap: 56px; } }

/* Unframed painting hanging on the wall */
.art { position: relative; display: inline-block; max-width: 100%; overflow: hidden; box-shadow: 0 14px 22px -12px rgba(40, 28, 20, .45), 0 2px 4px rgba(40, 28, 20, .12); }
.art img { display: block; max-width: 100%; height: auto; max-height: 360px; width: auto; }

/* Red SOLD ribbon across the top-left corner */
.ribbon { position: absolute; top: 34px; left: -62px; width: 240px; transform: rotate(-45deg); background: #b3261e; color: #fff; text-align: center; font-size: 1rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); pointer-events: none; }

.card { text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.card .hang { display: block; text-align: center; transition: transform .35s ease; }
.card:hover .hang { transform: translateY(-4px); }
.card .label { display: block; margin-top: 22px; background: #fffdfb; border: 1px solid var(--line); padding: 9px 14px 10px; min-width: 62%; max-width: 100%; box-shadow: 0 1px 2px rgba(40, 28, 20, .08); }
.card .title { font-variant-numeric: lining-nums; display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.card .meta { display: block; font-size: .82rem; color: var(--muted); }
.card .price { color: var(--text); margin-top: 2px; }
.card .ref { font-size: .75rem; letter-spacing: .08em; margin-top: 3px; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); display: flex; align-items: flex-end; text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile span { position: relative; background: var(--bg); padding: 12px 20px; margin: 16px; font-family: var(--serif); font-size: 1.4rem; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filters button { font: inherit; font-size: .9rem; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.filters button:hover { border-color: var(--muted); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }

/* Empty state */
.empty-state { text-align: center; padding: 72px 24px; border: 1px dashed var(--line); background: var(--surface); }
.empty-state h3 { margin-bottom: .3em; }

/* Artwork page */
.piece { padding: 40px 0 72px; }
.piece .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .piece .wrap { grid-template-columns: 1fr; gap: 28px; } }
.piece-img { background: var(--wall); cursor: zoom-in; border: 0; padding: 48px 32px; width: 100%; display: flex; justify-content: center; }
.piece-img .art img { max-height: 70vh; }
.piece-img .ribbon { top: 44px; left: -72px; width: 300px; font-size: 1.15rem; padding: 11px 0; }
@media (max-width: 520px) { .piece-img { padding: 28px 16px; } }
.piece-info { position: sticky; top: 132px; }
.price { font-size: 1.5rem; margin: 18px 0; font-family: var(--serif); }
.details { border-top: 1px solid var(--line); margin: 24px 0; padding: 0; list-style: none; }
.details li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.details li span:first-child { color: var(--muted); }
.back { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--text); }
.note { font-size: .92rem; color: var(--muted); }

.lightbox { position: fixed; inset: 0; background: rgba(20, 16, 15, .92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 100%; object-fit: contain; }

/* Contact form */
form.contact { display: grid; gap: 18px; max-width: 560px; }
form.contact label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
form.contact input, form.contact textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 2px; }
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
form.contact textarea { min-height: 160px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.hidden { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Artwork page: reference number and how to buy */
.ref-tag { font-size: .9rem; letter-spacing: .06em; color: var(--muted); margin-top: -6px; }
.ref-tag strong { color: var(--text); font-weight: 500; }
.buy-box { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; margin: 22px 0; }
.buy-box p { font-size: .95rem; }
.buy-box strong { font-weight: 500; white-space: nowrap; }

/* Contact form: frame choice */
fieldset.frames { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
fieldset.frames legend { font-size: .9rem; color: var(--muted); margin-bottom: 6px; padding: 0; }
fieldset.frames label { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--text); cursor: pointer; }
fieldset.frames input { width: 18px; height: 18px; accent-color: var(--text); }

/* Shop: Originals | Prints tabs */
.shop-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.shop-tabs a { text-decoration: none; color: var(--muted); font-family: var(--serif); font-size: 1.35rem; padding: 6px 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.shop-tabs a:hover { color: var(--text); }
.shop-tabs a[aria-current="page"] { color: var(--text); border-color: var(--text); }
.shop-tabs .count { font-family: var(--sans); font-size: .78rem; color: var(--muted); background: var(--tint); border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: 4px; }

/* Print page: size list */
.sizes-head { font-size: 1.2rem; margin: 26px 0 8px; }
.details.sizes { margin-top: 0; }
.buy-box .also { margin: 12px 0 0; font-size: .92rem; }
.buy-box .also a { color: var(--accent); }

/* Contact form: what the number refers to, and the print size picker */
.ref-note { font-size: .9rem; color: var(--muted); margin: -8px 0 0; }
.ref-note.warn { color: #9a3b2f; }
form.contact select { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 2px; }
form.contact select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
