/* Alejandro Noriega — public site. Design "C · Muro": a museum retrospective.
   The page is a plaster wall; works hang at real proportions with real shadows; red is the only accent. */

@font-face { font-family: 'Archivo'; src: url('fonts/archivo-wdth.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-wdth-ext.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-wdth-italic.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --wall: #e7e4dc;
  --wall-2: #dedad0;
  --paper: #fbfaf7;
  --ink: #141414;
  --red: #d21f26;
  --graphite: #6e6b64;
  --rule: rgba(20, 20, 20, .16);
  --shadow: 18px 26px 40px rgba(40, 30, 20, .24), 4px 7px 12px rgba(40, 30, 20, .12);
  --shadow-big: 28px 40px 60px rgba(40, 30, 20, .28), 6px 10px 16px rgba(40, 30, 20, .14);
  --gut: clamp(20px, 4vw, 56px);
  --max: 1440px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; font-size: 17px; line-height: 1.55;
  background-color: var(--wall);
  /* plaster: faint grain so the page reads as a wall, not a slide */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; }
p { margin: 0 0 1em; }
.mono { font-family: 'Plex Mono', ui-monospace, monospace; font-size: 12.5px; letter-spacing: .04em; line-height: 1.65; }
.up { text-transform: uppercase; letter-spacing: .08em; }
.small { font-size: 11.5px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.sq { display: inline-block; width: 8px; height: 8px; background: var(--red); flex: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: 820px; }
.prose { max-width: 64ch; }
.prose p { line-height: 1.7; }
.prose a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.lede { font-size: 20px; line-height: 1.45; max-width: 46ch; }

/* ---------- header: name as museum vinyl lettering ---------- */
header.site { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 40px var(--gut) 0; max-width: var(--max); margin: 0 auto; position: relative; z-index: 10; }
.vinyl { display: block; font-stretch: 112%; font-weight: 300; font-size: 30px; line-height: 1.15; letter-spacing: .005em; }
.vinyl b { display: block; font-weight: 800; }
.vinyl:hover { color: inherit; }
.nav { display: grid; grid-template-columns: repeat(5, auto); gap: 8px 30px; text-transform: uppercase; letter-spacing: .08em; }
.nav a { display: inline-flex; align-items: center; gap: 9px; }
.nav a::before { content: ''; width: 8px; height: 8px; background: transparent; flex: none; }
.nav a[aria-current="page"]::before { background: var(--red); }
.nav .langs { color: var(--graphite); }
.nav .langs a::before { display: none; }
.nav .langs a[aria-current="true"] { color: var(--ink); font-weight: 500; }
.nav [data-cart-count]:not(:empty) { color: var(--red); }
.menu-btn { display: none; background: none; border: 0; padding: 6px 0; cursor: pointer; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- works on the wall ---------- */
.piece { margin: 0; width: min(var(--w), 100%); }
.piece .frame { display: block; width: 100%; aspect-ratio: var(--ar); background: var(--paper); box-shadow: var(--shadow); padding: 0; border: 0; cursor: pointer; transition: transform .35s ease, box-shadow .35s ease; }
.piece .frame img { width: 100%; height: 100%; object-fit: cover; }
.piece .frame .blank { display: block; width: 100%; height: 100%; background: var(--wall-2); }
a.frame:hover { transform: translateY(-3px); box-shadow: 22px 34px 50px rgba(40, 30, 20, .27), 5px 9px 14px rgba(40, 30, 20, .13); }
.piece figcaption { margin-top: 18px; }

/* the wall label */
.cartela { display: flex; flex-direction: column; color: var(--ink); max-width: 30ch; }
.cartela .who { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0; }
.cartela .from { color: var(--graphite); margin-bottom: 14px; }
.cartela .t { font-family: 'Archivo', sans-serif; font-size: 15px; letter-spacing: 0; font-weight: 700; }
.cartela .t i { font-weight: 600; }
.cartela .t a:hover { color: var(--red); }
.cartela > span:not(.t):not(.who):not(.from):not(.state) { color: var(--graphite); }
.state { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--ink); width: max-content; max-width: 100%; text-transform: uppercase; letter-spacing: .07em; }
.state.sold, .state.nfs { color: var(--graphite); border-top-color: var(--rule); }

/* hero room: one work hung on the wall, label to its right */
.room { position: relative; max-width: var(--max); margin: 0 auto; padding: 90px var(--gut) 110px; display: flex; justify-content: center; align-items: flex-end; gap: 36px; min-height: 640px; border-bottom: 1px solid var(--rule); }
.room .piece.hero { margin-left: 10%; }
.room .piece.hero .frame { box-shadow: var(--shadow-big); }
.room .cartela { padding-bottom: 6px; }
.room.empty { align-items: center; }
.relief-demo { position: relative; width: min(520px, 80vw); aspect-ratio: 1; background: var(--paper); box-shadow: var(--shadow-big); }
.relief-demo i, .relief-demo b, .relief-demo u { position: absolute; background: var(--red); box-shadow: 9px 12px 14px rgba(60, 10, 10, .35); }
.relief-demo i { left: 36.5%; top: 36.5%; width: 27%; height: 27%; transform: rotate(45deg); }
.relief-demo b { left: 13%; top: 13%; width: 11%; height: 11%; background: #151515; box-shadow: 9px 12px 14px rgba(0, 0, 0, .35); }
.relief-demo u { left: 77%; top: 77%; width: 8%; height: 8%; }

/* track record */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.fact { padding: 54px 28px 46px 0; border-right: 1px solid var(--rule); }
.fact + .fact { padding-left: 28px; }
.fact:last-child { border-right: 0; }
.fact .n { font-stretch: 125%; font-weight: 850; font-size: clamp(54px, 6vw, 84px); line-height: 1; letter-spacing: -.02em; }
.fact .n sup { font-size: .45em; color: var(--red); vertical-align: top; margin-left: 4px; position: relative; top: .1em; }
.fact p { margin: 14px 0 0; max-width: 26ch; line-height: 1.55; color: var(--graphite); font-size: 15px; }
.countries { padding: 26px 0 0; color: var(--graphite); }

/* section headings */
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 16px; }
.sec-h h2 { font-stretch: 118%; font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); }
.sec-h h2 b { font-weight: 800; }
.sec-h a:hover { color: var(--red); }
.block { padding-top: 110px; }
.more { padding: 30px 0 0; text-align: right; }

/* salas: works hung at real proportions, centred on one line */
.sala { padding-top: 110px; }
.hang { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 70px 70px; padding: 80px 0 20px; }
.hang .piece { flex: none; }
.hang.full { padding-top: 60px; }

.page-h { padding: 80px 0 40px; }
.page-h h1 { font-stretch: 118%; font-weight: 800; font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -.01em; line-height: 1.02; }
.page-h p { margin: 14px 0 0; color: var(--graphite); }
.page-h .lede { color: var(--ink); }
.sala-h p:first-child { margin: 0 0 10px; }
.sala-text { margin-bottom: 10px; }
.archive { display: flex; gap: 10px; align-items: baseline; max-width: 70ch; color: var(--graphite); }

/* obra: the room index */
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: s; }
.index a { display: grid; grid-template-columns: 90px 1fr 240px 130px 50px 120px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.index .nm { font-stretch: 118%; font-weight: 700; font-size: 28px; text-transform: uppercase; letter-spacing: -.005em; }
.index .md, .index .yr, .index .ct { color: var(--graphite); }
.index .sw { width: 120px; height: 72px; background: var(--wall-2); overflow: hidden; box-shadow: 6px 8px 14px rgba(40, 30, 20, .15); }
.index .sw img { width: 100%; height: 100%; object-fit: cover; }
.index a:hover .nm { color: var(--red); }
.pager { display: flex; justify-content: space-between; border-top: 1px solid var(--rule); margin-top: 80px; padding-top: 22px; }

/* artwork page */
.work { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; padding: 70px 0 0; align-items: start; }
.stage { display: flex; flex-direction: column; align-items: center; padding: 30px 0; }
.piece.solo .frame { box-shadow: var(--shadow-big); cursor: zoom-in; }
.thumbs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 0; background: var(--paper); cursor: pointer; box-shadow: 4px 6px 10px rgba(40, 30, 20, .14); outline: 1px solid transparent; outline-offset: 3px; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"] { outline-color: var(--ink); }
.hint { color: var(--graphite); margin-top: 22px; text-align: center; }
.side { position: sticky; top: 30px; padding-top: 30px; }
.side .cartela { max-width: none; }
.actions { margin-top: 26px; }
.ship { color: var(--graphite); margin-top: 10px; }
.desc { margin-top: 30px; }
.inquiry { margin-top: 34px; border-top: 1px solid var(--rule); padding-top: 16px; }
.inquiry summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 9px; }
.inquiry summary::before { content: ''; width: 8px; height: 8px; background: var(--red); }
.inquiry summary::-webkit-details-marker { display: none; }
.wa { text-decoration: underline; text-underline-offset: .2em; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--wall); display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; box-shadow: var(--shadow-big); transition: transform .2s ease; }
.lightbox.zoomed { cursor: zoom-out; }
.lightbox.zoomed img { max-width: none; max-height: none; width: auto; transform-origin: 0 0; }
.lb-close { position: fixed; top: 20px; right: 24px; background: var(--ink); color: var(--paper); border: 0; padding: 10px 16px; cursor: pointer; }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; font-weight: 600; font-size: 15px; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; margin-top: 14px; }
.btn[disabled] { opacity: .5; cursor: default; background: var(--ink); border-color: var(--ink); }
.btn.done { background: transparent; color: var(--ink); }
.form { display: grid; gap: 16px; margin-top: 18px; max-width: 520px; }
.form label { display: grid; gap: 6px; }
.form label span { color: var(--graphite); }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper); border-radius: 0; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.6em; }
.form-msg.ok { color: var(--ink); }
.form-msg.err { color: var(--red); }
.form label.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.form label.chk input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; border: 0; accent-color: var(--ink); }
.form label.chk a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.legal h2 { font-stretch: 112%; font-size: 21px; margin: 34px 0 6px; }
footer.site .f-name a { text-decoration: underline; text-underline-offset: .2em; }

/* shop */
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0 0 26px; border-bottom: 1px solid var(--ink); }
.filters button { background: none; border: 0; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--graphite); }
.filters button::before { content: ''; width: 8px; height: 8px; }
.filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::before { background: var(--red); }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 70px 56px; padding: 60px 0 0; }
.item[hidden] { display: none; }
.niche { display: grid; place-items: center; aspect-ratio: 1; background: var(--wall-2); padding: 12%; margin-bottom: 18px; }
.niche img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: var(--shadow); background: var(--paper); }
.niche:hover img { transform: translateY(-3px); transition: transform .3s ease; }
.note { color: var(--graphite); padding-top: 50px; }

/* exhibitions */
.ex { list-style: none; margin: 0; padding: 0; }
.ex li { display: grid; grid-template-columns: 260px 1fr 220px 260px; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ex .t { font-stretch: 105%; font-weight: 700; font-size: 22px; line-height: 1.25; }
.ex .t:hover { color: var(--red); }
.ex .m { color: var(--graphite); }
.ex li.next .d { color: var(--red); }
.event .piece.solo { margin: 10px 0 40px; }
.event .piece.solo .frame { cursor: default; }
.ev-body { max-width: 70ch; }
.role { color: var(--graphite); }
.artists { margin-top: 50px; border-top: 1px solid var(--ink); padding-top: 18px; }
.artists ul { list-style: none; padding: 0; margin: 18px 0 0; columns: 3 220px; column-gap: 40px; }
.artists li { padding: 4px 0; break-inside: avoid; }
.artists a { text-decoration: underline; text-underline-offset: .2em; }
.back { margin-top: 60px; }

/* press */
.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 40px 0 0; }
.press article { border-top: 1px solid var(--ink); padding-top: 18px; }
.press .k { color: var(--graphite); }
.press h3 { font-weight: 600; font-size: 22px; line-height: 1.25; margin: 10px 0 12px; }
.press .q { color: var(--graphite); font-size: 15px; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 70px; align-items: start; padding-bottom: 40px; }
.portrait .frame { cursor: default; }
.about .facts { grid-column: 1 / -1; }
.cv { list-style: none; margin: 0; padding: 0; }
.cv li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.cv .y { color: var(--red); }

/* video */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px 50px; padding-top: 20px; }
.v-frame { aspect-ratio: 16 / 9; background: var(--ink); box-shadow: var(--shadow); position: relative; }
.v-frame iframe, .yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt { padding: 0; cursor: pointer; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--red); clip-path: polygon(30% 22%, 30% 78%, 78% 50%); }
.vid h3 { margin-top: 18px; font-size: 20px; font-weight: 600; }
.vid p { color: var(--graphite); margin-top: 6px; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 48px; }
.post-row h2 { font-size: 24px; font-weight: 700; margin: 8px 0 10px; }
.post-row p { color: var(--graphite); }
.post-row .mono { color: var(--graphite); }
.post .piece.solo { margin: 0 0 40px; }
.post .prose { font-size: 18px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact .links a { text-decoration: underline; text-underline-offset: .2em; }

/* cart */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; align-items: start; }
.cart [data-cart-empty] { grid-column: 1 / -1; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.line img { width: 96px; height: 96px; object-fit: contain; background: var(--wall-2); padding: 8px; }
.line .t { font-weight: 700; }
.line .meta { color: var(--graphite); }
.line .err { color: var(--red); }
.line .rm { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--graphite); }
.line input { width: 64px; padding: 6px 8px; font: inherit; border: 1px solid var(--rule); background: var(--paper); }
.totals { background: var(--paper); padding: 28px; box-shadow: var(--shadow); }
.totals dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 22px; }
.totals dt { color: var(--graphite); }
.totals dd { margin: 0; text-align: right; }
.totals .grand { font-weight: 700; color: var(--ink); border-top: 1px solid var(--ink); padding-top: 10px; }
#paypal-buttons { min-height: 50px; margin-bottom: 14px; }
[data-cart-msg] { color: var(--red); }

/* footer */
footer.site { display: grid; grid-template-columns: 1fr auto auto; gap: 18px 40px; align-items: center; max-width: var(--max); margin: 120px auto 0; padding: 30px var(--gut) 40px; border-top: 1px solid var(--rule); color: var(--graphite); }
footer.site .f-social { display: flex; gap: 22px; }
footer.site .credit { display: inline-flex; align-items: center; gap: 9px; }
footer.site .credit i { width: 8px; height: 8px; background: var(--graphite); }
footer.site .credit:hover i { background: var(--red); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .index a { grid-template-columns: 70px 1fr 120px 90px; }
  .index .md, .index .ct { display: none; }
  .ex li { grid-template-columns: 200px 1fr; }
  .ex li .m { grid-column: 2; }
  .work { grid-template-columns: 1fr; gap: 20px; }
  .side { position: static; padding-top: 0; }
}
@media (max-width: 900px) {
  header.site { align-items: center; padding-top: 22px; }
  .vinyl { font-size: 22px; }
  .menu-btn { display: block; }
  .nav { display: none; position: fixed; inset: 0; z-index: 50; background: var(--wall); padding: 90px var(--gut) 40px; grid-template-columns: 1fr; gap: 18px; font-size: 15px; align-content: start; }
  .nav.open { display: grid; }
  .menu-btn[aria-expanded="true"] { position: fixed; right: var(--gut); top: 26px; z-index: 60; }
  .room { flex-direction: column; align-items: flex-start; padding-top: 50px; padding-bottom: 60px; min-height: 0; gap: 26px; }
  .room .piece.hero { margin-left: 0; align-self: center; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 34px 18px 30px 0; }
  .fact + .fact { padding-left: 0; }
  .fact:nth-child(2n) { padding-left: 18px; border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .hang { gap: 56px; padding-top: 50px; }
  .press, .posts { grid-template-columns: 1fr; }
  .about, .contact, .cart { grid-template-columns: 1fr; gap: 40px; }
  .videos { grid-template-columns: 1fr; }
  footer.site { grid-template-columns: 1fr; }
  .sala, .block { padding-top: 80px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .index a { grid-template-columns: 1fr 80px; }
  .index .no { grid-column: 1 / -1; }
  .index .yr { display: none; }
  .index .sw { width: 80px; height: 56px; grid-row: 2; grid-column: 2; }
  .index .nm { font-size: 22px; }
  .ex li { grid-template-columns: 1fr; gap: 6px; }
  .ex li .m { grid-column: auto; }
  .cv li { grid-template-columns: 70px 1fr; }
  .shop { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { header.site nav, .menu-btn, footer.site .credit { display: none; } body { background: #fff; } }
