@font-face {
    font-family: Jost;
    src: url(/assets/jost.woff2) format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url(/assets/cormorant-garamond.woff2) format("woff2");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url(/assets/cormorant-garamond-italic.woff2) format("woff2");
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
}
:root {
    --paper: #f5f0e8;
    --ink: #2b2723;
    --muted: #5e564d;
    --line: #ddd3c5;
    --wine: #6b1e2e;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: Jost, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body.artist-page, .artist-header, .artist-footer {
    font: 300 16px/1.7 var(--sans);
}
.artist-page a, .artist-header a { color: var(--ink); text-decoration: none; }
.artist-header nav a:hover, .artist-page a:hover { color: var(--wine); }
.artist-header .logo-corto { display: none !important; }
.artist-header nav { position: static; inset: auto; height: auto; background: transparent; }
.artist-footer a { color: #ede5d9; text-decoration: none; }
.artist-footer a:hover { text-decoration: underline; }
.artist-page .skip {
    position: absolute; top: .5rem; left: .5rem; z-index: 20; padding: .5rem 1rem;
    color: white; background: var(--ink); transform: translateY(-160%);
}
.artist-page .skip:focus { transform: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--wine); outline-offset: 3px;
}
.artist-page h1, .artist-page h2, .artist-page h3 { font-family: var(--serif); }
.artist-interior .button-dark { background: var(--ink); }
.artist-interior .selected-grid, .artist-interior .works-grid { color: var(--ink); }
.artist-offer { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.artist-offer :is(p,h2,ul) { margin: 0; }
.artist-offer h2 { font: 400 48px/1.1 var(--serif); }
.artist-kicker, .artist-label { font: 400 12px/1.7 var(--sans); text-transform: uppercase; }
.artist-kicker { color: var(--wine); letter-spacing: 3px; }
.artist-label { letter-spacing: 2px; padding-bottom: 10px; }
.artist-price { font: 400 32px/1.25 var(--serif); }
.artist-quote { font-style: italic; color: var(--muted); }
.artist-offer ul { padding-left: 18px; color: var(--muted); }
.artist-sizes, .artist-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.artist-sizes .talla {
    display: inline-flex; align-items: center; justify-content: center; min-width: 120px;
    min-height: 44px; padding: 5px 18px; border: 1px solid var(--ink);
    font: 400 14px/1.4 var(--sans); letter-spacing: 1px;
}
.artist-sizes .activa, .artist-action {
    background: var(--ink); color: var(--paper) !important;
}
.artist-action {
    display: inline-block; padding: 15px 32px; border: 0; cursor: pointer;
    font: 400 13px/1.55 var(--sans); letter-spacing: 2px; text-transform: uppercase; text-align: center;
}
.artist-action:hover { background: var(--wine); }
.artist-detail { border-bottom: 1px solid; }
.artist-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.miniatura { padding: 0; appearance: none; border: 1px solid transparent; background: none; aspect-ratio: 1; cursor: pointer; opacity: .7; }
.miniatura.activa { border-color: var(--wine); outline: 1px solid var(--wine); opacity: 1; }
.miniatura img { width: 100%; height: 100%; display: block; object-fit: cover; }
.artist-buy[hidden], .artist-price[hidden] { display: none; }
.artist-new-work { display: block; break-inside: avoid; margin: 0 0 24px; }
.artist-new-work img { display: block; width: 100%; }
.artist-new-work span { display: block; padding-block: 6px; }
.campo-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-encargo label { min-width: 0; }
.form-encargo :is(input:not([type=checkbox]),textarea) { width: 100%; }
.aviso { padding: 14px 18px; border: 1px solid var(--line); background: #fffdf9; }
.aviso-error { border-color: var(--wine); color: var(--wine); }
.aviso-ok { border-color: #687251; }
@media (max-width: 700px) {
    .artist-page main section { padding-block: 64px !important; }
    .artist-page main h1 { font-size: 42px !important; }
    .artist-page main h2 { font-size: 36px !important; }
    .artist-header nav { gap: 16px 20px !important; }
    .form-encargo { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 600px) {
    .artist-header .logo-largo { display: none !important; }
    .artist-header .logo-corto { display: inline-flex !important; }
}
@media (max-width: 370px) {
    .artist-page main section, .artist-header, .artist-footer { padding-inline: 18px !important; }
    .artist-page .producto [style*="minmax(280px"] { grid-template-columns: minmax(0,1fr) !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 900px) {
    #inicio > img { flex: 0 1 100% !important; height: auto; }
}
