:root {
  --paper: #f5f0e6;
  --paper-2: #ece4d3;
  --ink: #17372f;
  --green: #1a584c;
  --gold: #907844;
  --gold-soft: #c9b48a;
  --muted: #5d6b63;
  --display: 'Italiana', 'Didot', 'Bodoni 72', serif;
  --body: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 300 17px/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; color: var(--green); margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.kicker {
  font: 500 .72rem/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: .9em; margin: 0 0 1.4em;
}
.kicker::before { content: ''; width: 2.2em; height: 1px; background: var(--gold); }

/* Masthead */
.masthead {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 28px var(--gutter) 22px; border-bottom: 1px solid var(--gold-soft);
  position: relative;
}
.masthead::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: -5px; height: 1px; background: var(--gold-soft); opacity: .5; }
.brand img { width: clamp(150px, 20vw, 230px); }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav-right { justify-content: flex-end; }
.nav a { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.nav a:hover { color: var(--green); border-color: var(--gold); }
.cart-count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-left: .3em; border-radius: 50%; background: var(--green); color: var(--paper); font-size: .7rem; letter-spacing: 0; }
.cart-count[hidden] { display: none; }

/* Buttons & links */
.btn {
  display: inline-block; font: 500 .78rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); background: transparent; border: 1px solid var(--gold); padding: 1.1em 2.2em;
  text-decoration: none; cursor: pointer; transition: background .3s, color .3s;
}
.btn:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn-solid { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn-solid:hover { background: var(--ink); }
.btn:disabled { opacity: .5; cursor: wait; }
.link { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

/* Hero */
.hero { text-align: center; padding: clamp(64px, 12vw, 150px) var(--gutter) clamp(56px, 9vw, 110px); max-width: 980px; margin: 0 auto; }
.hero .kicker { justify-content: center; }
.hero .kicker::after { content: ''; width: 2.2em; height: 1px; background: var(--gold); }
.hero-title { font-size: clamp(2.8rem, 8vw, 6rem); margin-bottom: .35em; }
.hero-title em { font-style: normal; color: var(--gold); }
.hero-lede { max-width: 34em; margin: 0 auto 2.4em; color: var(--muted); font-size: 1.08rem; }
.hero > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero > :nth-child(2) { animation-delay: .1s; }
.hero > :nth-child(3) { animation-delay: .2s; }
.hero > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Collection wall */
.collection { padding: 0 var(--gutter) clamp(64px, 9vw, 120px); max-width: 1320px; margin: 0 auto; }
.collection-page { padding-top: clamp(40px, 6vw, 80px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--gold-soft); padding-bottom: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h1, .section-head h2 { margin: 0; }
.section-head span { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px) clamp(20px, 3.5vw, 56px); }
/* salon hang: the middle column hangs a little lower */
.wall .work:nth-child(3n+2) { margin-top: clamp(0px, 5vw, 72px); }
.work { text-decoration: none; color: inherit; display: block; animation: rise .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 60ms); }
.frame { display: block; background: var(--paper-2); overflow: hidden; }
.frame img { transition: transform .7s cubic-bezier(.2,.7,.2,1); mix-blend-mode: multiply; } /* white-backed JPG mockups melt into the wall */
.work:hover .frame img { transform: scale(1.035); }
.label { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--gold-soft); }
.label-no { grid-row: span 2; font: 400 1.5rem/1 var(--display); color: var(--gold); padding-top: 2px; }
.label-title { font: 400 1.5rem/1.1 var(--display); color: var(--green); }
.label-meta { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Artist teaser + about */
.artist-teaser, .about {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 10vw, 140px);
}
.artist-teaser p { color: var(--muted); max-width: 30em; }
.about { padding-top: clamp(40px, 6vw, 80px); }
.about .prose { padding: 0; margin: 0; }

/* Prose pages */
.prose { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 9vw, 120px); }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose p, .prose li { color: #33463f; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .8em .6em; border-bottom: 1px solid var(--gold-soft); }
.prose th { font-weight: 500; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* Product */
.product { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); max-width: 1320px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); align-items: start; }
.product-media { display: grid; gap: 24px; }
.product-info { position: sticky; top: 32px; }
.price { font: 400 2rem/1 var(--display); color: var(--ink); margin: 0 0 1.4em; }
.sizes { border: 0; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.sizes legend { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; padding: 0; }
.sizes label { cursor: pointer; position: relative; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: grid; gap: 2px; text-align: center; min-width: 120px; padding: 14px 18px; border: 1px solid var(--gold-soft); transition: border-color .2s, background .2s; font-size: 1rem; }
.sizes small { font-size: .78rem; color: var(--muted); }
.sizes input:checked + span { border-color: var(--green); background: var(--green); color: var(--paper); }
.sizes input:checked + span small { color: var(--gold-soft); }
.sizes input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.added { min-height: 1.6em; font-size: .9rem; margin: 14px 0 0; }
.details { list-style: none; padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid var(--gold-soft); }
.details li { padding: 6px 0 6px 22px; position: relative; color: #33463f; }
.details li::before { content: ''; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; border: 1px solid var(--gold); transform: translateY(-50%) rotate(45deg); }
.fine { font-size: .85rem; color: var(--muted); }
.more { padding-top: clamp(32px, 5vw, 64px); }

/* Cart */
.lines { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--gold-soft); }
.line { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--gold-soft); }
.line a { font: 400 1.4rem/1.1 var(--display); text-decoration: none; }
.line small { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.qty input { width: 4.2em; padding: .5em; font: inherit; border: 1px solid var(--gold-soft); background: transparent; color: var(--ink); }
.remove { background: none; border: 0; font: inherit; font-size: .8rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.totals { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.totals strong { font: 400 2rem/1 var(--display); color: var(--ink); }

/* Forms */
.form { display: grid; gap: 20px; margin-top: 32px; }
.form label { display: grid; gap: 8px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.form input, .form textarea { font: 300 1rem/1.5 var(--body); color: var(--ink); background: rgba(255,255,255,.45); border: 1px solid var(--gold-soft); padding: .8em .9em; letter-spacing: normal; text-transform: none; }
.form input:focus, .form textarea:focus { border-color: var(--green); outline: none; }
.form .btn { justify-self: start; }
.form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.6em; font-size: .95rem; }

/* Footer */
.foot { text-align: center; padding: 56px var(--gutter) 40px; background: var(--green); color: var(--paper-2); }
.foot-rule { width: 56px; height: 1px; background: var(--gold-soft); margin: 0 auto 28px; }
.foot-mark { font: 400 1.9rem/1 var(--display); color: var(--paper); margin: 0 0 22px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 26px; }
.foot-links a { color: var(--paper-2); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.foot-links a:hover { color: var(--gold-soft); }
.foot-small { font-size: .8rem; color: var(--gold-soft); margin: 0; }

@media (max-width: 900px) {
  .wall { grid-template-columns: repeat(2, 1fr); }
  .wall .work:nth-child(3n+2) { margin-top: 0; }
  .wall .work:nth-child(2n) { margin-top: clamp(0px, 6vw, 48px); }
  .product, .artist-teaser, .about { grid-template-columns: 1fr; }
  .product-info { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead { grid-template-columns: 1fr auto; grid-template-areas: 'brand cart' 'nav nav'; row-gap: 14px; padding-top: 20px; }
  .brand { grid-area: brand; }
  .nav { grid-area: nav; justify-content: center; }
  .nav-right { grid-area: cart; }
  .nav-right a:first-child { display: none; }
  .wall { grid-template-columns: 1fr; }
  .wall .work:nth-child(n) { margin-top: 0; }
  .line { grid-template-columns: 72px 1fr; }
  .line img { width: 72px; }
  .line .qty, .line .remove { grid-column: 2; justify-self: start; }
  .section-head { flex-direction: column; gap: 6px; }
  .hero .kicker::before, .hero .kicker::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
