:root {
  color-scheme: light;
  --paper: #f8f0f4;
  --ink: #171318;
  --muted: #625662;
  --line: #dfd1da;
  --rose: #edb2cc;
  --rose-hover: #e6a1be;
  --panel: #fffafc;
  --radius: 22px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.15rem, 3.25vw, 3.6rem); line-height: 1.03; letter-spacing: -.042em; }
h2 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -.016em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
img { display: block; width: 100%; }
:focus-visible { outline: 2px solid #892850; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: 0; }
.skip { position: fixed; z-index: 3; left: 1rem; top: 1rem; padding: 1rem; transform: translateY(-180%); background: white; }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.loading { padding: clamp(1.5rem, 8vw, 6rem); }
.loading h1 + p, .loading p + a { display: block; margin-top: 1rem; }
.muted { color: var(--muted); line-height: 1.5; }
.text-link { text-underline-offset: .24em; overflow-wrap: anywhere; }
.text-link:hover, .back-link:hover { color: #892850; }
.store-contact-note {
  max-width: 52ch;
  margin-bottom: 1.5rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.store-contact-list { margin: 0; display: grid; gap: 1.15rem; }
.store-contact-list dt { margin-bottom: .28rem; color: var(--muted); font-size: .9rem; }
.store-contact-list dd { margin: 0; font-size: clamp(1.05rem, 2vw, 1.4rem); }
.social-link { display: inline-flex; gap: .65rem; align-items: center; min-height: 44px; max-width: 100%; }
.social-link > span:last-child { min-width: 0; }
.social-icon { position: relative; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; }
.social-icon::before, .social-icon::after { position: absolute; content: ""; }
.social-icon--instagram { background: radial-gradient(circle at 22% 96%, #f6a63f, #d33270 57%, #7539a7 100%); }
.social-icon--instagram::before { inset: 8px; border: 2px solid white; border-radius: 5px; }
.social-icon--instagram::after {
  inset: 13px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 4px -4px 0 -3px white;
}
.social-icon--telegram { background: #1887b9; }
.social-icon--telegram::before {
  inset: 8px 7px 8px 6px;
  background: white;
  clip-path: polygon(0 42%, 100% 0, 79% 100%, 55% 69%, 37% 89%, 40% 62%, 81% 19%, 28% 56%);
}
.social-icon--whatsapp { background: #19864e; }
.social-icon--whatsapp::before { inset: 8px; border: 2px solid white; border-radius: 50% 50% 50% 3px; }
.social-icon--whatsapp::after {
  top: 13px;
  left: 13px;
  width: 9px;
  height: 7px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  border-radius: 0 0 0 7px;
  transform: rotate(-20deg);
}

.scene {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
}
.scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: max(650px, min(100svh, 64vw), 56.28vw);
  background: url("/assets/decor.webp") center top / 100% 100% no-repeat;
  pointer-events: none;
  mask-image: linear-gradient(black 98%, transparent);
}
.public-layout {
  position: relative;
  max-width: 1900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 20.3% minmax(0, 1fr) 19.5%;
}
.rail { grid-column: 1; padding: max(170px, 13.8vw) 0 0 clamp(24px, 3.65vw, 58px); }
.wordmark { font-weight: 800; font-size: clamp(.9rem, 1.43vw, 1.45rem); letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.navigation { display: grid; justify-items: start; gap: .75rem; margin-top: 1.8rem; }
.navigation a { position: relative; padding: .5rem 0; text-decoration: none; font-size: clamp(1rem, 1.6vw, 1.55rem); }
.navigation a.current::after, .navigation a:hover::after { content: ""; height: 1.5px; background: currentColor; position: absolute; inset: auto 0 0; }
.bag-button {
  position: absolute;
  top: clamp(12px, 1.42vw, 24px);
  right: clamp(12px, 2.45vw, 42px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 44px;
  min-width: 50px;
  border: 0;
  background: transparent;
  padding: .55rem;
  font-size: 1.1rem;
}
.bag { position: relative; display: inline-block; width: 1.07rem; height: 1.06rem; border: 1.65px solid; border-radius: 2px 2px 4px 4px; margin-top: .2rem; }
.bag::before { content: ""; display: block; position: absolute; width: .44rem; height: .55rem; left: 50%; top: -.46rem; transform: translateX(-50%); border: 1.5px solid; border-bottom: 0; border-radius: 6px 6px 0 0; }
.public-main { grid-column: 2; min-width: 0; padding: max(92px, 7.3vw) 0 4.5rem; }
.public-main > h1 { margin-bottom: clamp(20px, 2.2vw, 38px); }

.art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 1.9vw, 38px); row-gap: 2.2rem; }
.art-card { min-width: 0; }
.art-link { display: block; border-radius: var(--radius); text-decoration: none; }
.art-image { display: block; position: relative; overflow: hidden; isolation: isolate; background: #e4d7de; border-radius: var(--radius); }
.art-image img { width: 100%; height: 100%; object-fit: cover; }
.art-image--tile, .art-image--preview, .art-image--sample { aspect-ratio: .88; }
.art-image--soon {
  --teaser-dense: color-mix(in srgb, var(--teaser-color, #211321) var(--teaser-depth, 96%), transparent);
  --teaser-mid: color-mix(in srgb, var(--teaser-dense) 68%, transparent);
  --teaser-light: color-mix(in srgb, var(--teaser-dense) 17%, transparent);
  background: #211321;
}
.art-image--soon img { filter: brightness(.85) saturate(.84); }
.art-image--soon::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(ellipse 58% 58% at center,
    var(--teaser-dense) 43%, var(--teaser-mid) 69%, var(--teaser-light) 100%);
  pointer-events: none;
}
.art-image--soon[data-teaser-preset="corner"]::before {
  background: radial-gradient(ellipse 56% 48% at 76% 30%,
    var(--teaser-light) 12%, var(--teaser-mid) 51%, var(--teaser-dense) 94%);
}
.art-image--soon[data-teaser-preset="diagonal"]::before {
  background: linear-gradient(137deg,
    var(--teaser-dense) 36%, var(--teaser-mid) 62%, var(--teaser-light) 91%);
}
.art-image--soon[data-teaser-preset="stripe"]::before {
  background: linear-gradient(180deg,
    var(--teaser-dense) 25%, var(--teaser-light) 46%, var(--teaser-light) 55%, var(--teaser-dense) 77%);
}
.soon-stamp { display: none; place-items: center; position: absolute; z-index: 2; inset: 0; color: #fff7f9; font-size: clamp(.82rem, 1.55vw, 1.55rem); font-weight: 500; text-align: center; letter-spacing: .31em; padding: .5em; text-shadow: 0 1px 6px #211321, 0 1px 3px #211321; }
.art-image--soon .soon-stamp { display: grid; }
.card-caption { padding: .9rem .22rem 0; }
.card-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .85rem; }
.card-caption h2, .card-line strong { font-size: clamp(1.13rem, 1.64vw, 1.85rem); }
.card-caption h2 { overflow-wrap: anywhere; }
.card-line strong { white-space: nowrap; line-height: 1.15; flex: none; }
.card-caption p { color: var(--muted); margin-top: .42rem; line-height: 1.35; font-size: clamp(.88rem, 1.24vw, 1.27rem); overflow-wrap: anywhere; }
.art-link img { transition: transform .24s ease; }
.art-link:hover img { transform: scale(1.025); }
.art-link:hover h2 { text-decoration: underline; text-underline-offset: .2em; }

.public-main--product { grid-column: 2 / 4; padding-right: 17%; padding-top: max(66px, 4.8vw); }
.back-link { display: inline-block; margin-bottom: 1.55rem; padding: .48rem .05rem; text-decoration: underline; text-underline-offset: .24em; }
.product { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 56px); }
.art-image--detail { display: grid; place-items: center; background: transparent; }
.art-image--detail img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(76svh, 740px);
  border-radius: var(--radius);
}
.product-info { min-width: 0; overflow-wrap: anywhere; }
.product-info h1 { margin-bottom: .8rem; }
.product-details { font-size: clamp(1rem, 1.6vw, 1.55rem); line-height: 1.4; }
.description { color: var(--muted); line-height: 1.6; margin-top: 1rem; white-space: pre-wrap; }
.product-price { font-size: clamp(1.8rem, 2.9vw, 3.2rem); font-weight: 750; margin: 1.55rem 0; letter-spacing: -.036em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .68rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.button--primary { background: var(--rose); }
.button--primary:hover { background: var(--rose-hover); }
.button--outline { border-color: #3c3039; background: #fffaff6b; }
.button--outline:hover { background: #f5e1eb; }
.buy { min-width: min(100%, 208px); min-height: 50px; font-size: 1.08rem; }

.cart-dialog {
  width: min(100% - 28px, 490px);
  max-height: calc(100dvh - 28px);
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 72px #31152b38;
}
.cart-dialog::backdrop { background: #2c172888; }
.cart-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cart-header h2 { font-size: 1.7rem; }
.close { display: grid; place-items: center; border: 0; background: transparent; padding: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.close:hover { background: #f4e3ec; }
.cart-list, .work-list { margin: 0; padding: 0; list-style: none; }
.cart-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .6rem 0; }
.art-image--thumb { aspect-ratio: 1; border-radius: 10px; }
.cart-list a { display: block; overflow-wrap: anywhere; text-underline-offset: .16em; }
.cart-list strong { display: block; margin-top: .3rem; }
.quiet { min-height: 44px; padding: .4rem; border: 0; background: transparent; color: #70264c; text-decoration: underline; text-underline-offset: .2em; }
.quiet:hover { color: #a12564; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: .9rem; margin: .55rem 0 1rem; }
.order-fields, .contact-fields {
  display: grid;
  min-width: 0;
  gap: .75rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.order-fields legend { margin-bottom: .8rem; padding: 0; font-size: 1.15rem; font-weight: 750; }
.stacked-field { display: grid; gap: .35rem; min-width: 0; }
.stacked-field > span:first-child { font-weight: 650; }
.stacked-field .muted { font-weight: 400; }
.order-fields button { margin-top: .15rem; }

.admin-page {
  isolation: isolate;
  position: relative;
  background: linear-gradient(135deg, #f8edf3, #f5e4ef);
  min-height: 100svh;
}
.admin-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: min(240px, 33vw);
  height: 175px;
  background: url("/assets/decor.webp") left top / 1120px auto no-repeat;
  transform: scaleX(-1);
  mask-image: linear-gradient(black 65%, transparent);
  pointer-events: none;
}
.admin-top {
  position: relative;
  max-width: 1440px;
  margin: auto;
  padding: 1.2rem clamp(16px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.admin-navigation { display: flex; flex-wrap: wrap; gap: .4rem; }
.admin-navigation .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: var(--panel);
  font-size: .95rem;
}
.admin-logout { border: 0; text-decoration: underline; }
.admin-login { display: grid; place-items: center; padding: 1.25rem; }
.admin-login-card { width: min(100%, 410px); }
.admin-login-card h1 { margin: 1rem 0 1.25rem; font-size: clamp(1.75rem, 5vw, 2.4rem); }
.admin-login-card form { display: grid; gap: .85rem; }
.admin-main { margin: auto; max-width: 1440px; padding: .8rem clamp(16px, 4vw, 52px) 2.5rem; }
.admin-main > h1 { text-align: center; margin: .4rem auto 1.5rem; }
.admin-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem; align-items: start; }
.panel { background: #fffbfdd9; border: 1px solid #e8dae3; border-radius: var(--radius); padding: clamp(16px, 2.4vw, 30px); min-width: 0; }
.works-header { min-height: 44px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.works-header h2, .editor > h2 { font-size: clamp(1.25rem, 2.1vw, 2rem); }
.editor > h2 { margin-bottom: 1rem; }
.work-list { display: grid; gap: .6rem; }
.work-row {
  display: grid;
  grid-template-columns: clamp(48px, 6.5vw, 104px) minmax(0, 1fr);
  gap: clamp(.6rem, 1.4vw, 1.2rem);
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(.4rem, 1vw, .75rem);
  width: 100%;
  background: transparent;
}
.work-row:hover, .work-row[aria-pressed="true"] { border-color: #e9b5cf; background: #fae3ee; }
.work-row-copy { display: grid; justify-items: start; gap: .43rem; overflow-wrap: anywhere; }
.work-row-copy strong { font-size: clamp(1rem, 1.55vw, 1.36rem); }
.status { display: inline-block; padding: .26rem .65rem; border-radius: 999px; font-size: .875rem; line-height: 1.2; }
.status--available { color: #295e24; background: #e3f0de; }
.status--soon { color: #653582; background: #eee0f6; }
.editor-fields { display: grid; gap: .85rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.upload-row { display: flex; gap: 1rem; align-items: center; }
.art-image--preview { flex: 0 0 clamp(114px, 15vw, 188px); align-self: flex-start; border-radius: 14px; }
.art-image--preview .soon-stamp { font-size: .64rem; letter-spacing: .15em; }
.upload-controls { display: flex; flex-direction: column; align-items: flex-start; gap: .42rem; min-width: 0; }
.upload-controls small { color: var(--muted); line-height: 1.35; }
.upload-label { cursor: pointer; }
.upload-controls:focus-within .upload-label { outline: 2px solid #892850; outline-offset: 4px; }
.teaser-options {
  padding: clamp(.65rem, 1.65vw, 1rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf0f5;
}
.teaser-options h3 { margin: 0 0 .75rem; font-size: 1.05rem; }
.teaser-presets { min-width: 0; border: 0; padding: 0; margin: 0; }
.teaser-presets legend { padding: 0; margin-bottom: .45rem; color: var(--muted); font-size: .9rem; }
.teaser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.teaser-option { position: relative; }
.teaser-option input { inset: 0 auto auto 0; }
.teaser-option label {
  display: grid;
  gap: .35rem;
  height: 100%;
  padding: 4px;
  background: #fffafd;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.teaser-option label:hover { background: #f5e1eb; }
.teaser-option input:checked + label { border-color: #892850; box-shadow: inset 0 0 0 1px #892850; background: #f6e2ec; }
.teaser-option input:focus-visible + label { outline: 2px solid #892850; outline-offset: 2px; }
.art-image--sample { border-radius: 6px; }
.teaser-label { align-self: center; padding-bottom: .18rem; font-size: .84rem; text-align: center; line-height: 1.15; }
.teaser-controls { display: flex; flex-wrap: wrap; align-items: start; gap: .7rem 1rem; margin-top: .9rem; }
.teaser-color, .teaser-strength { display: grid; align-items: center; gap: .25rem .5rem; font-size: .9rem; font-weight: 650; }
.teaser-strength { flex: 1 1 148px; grid-template-columns: minmax(0, 1fr) auto; }
.teaser-strength output { color: var(--muted); font-variant-numeric: tabular-nums; }
.teaser-controls input[type="color"] { width: 50px; padding: .2rem; cursor: pointer; }
.teaser-controls input[type="range"] {
  grid-column: 1 / -1;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #892850;
  cursor: pointer;
}
.field { display: grid; grid-template-columns: minmax(100px, 29%) minmax(0, 1fr); align-items: center; gap: .45rem .7rem; }
.field > span:first-child, .contact-panel label { font-weight: 650; }
input:not([type="file"]), select, textarea {
  min-height: 44px;
  width: 100%;
  min-width: 0;
  border: 1px solid #bcadba;
  padding: .65rem .78rem;
  border-radius: 10px;
  background: #fffaff;
  color: var(--ink);
}
textarea { resize: vertical; }
select { appearance: none; padding-right: 2.15rem; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 1rem; top: calc(50% - 6px); width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); pointer-events: none; }
summary { cursor: pointer; width: fit-content; font-weight: 650; padding: .35rem 0; }
.work-details .field { margin-top: .75rem; }
.save-button { border-radius: 12px; }
.delete-button { justify-self: start; }
.form-message { color: #2c6728; line-height: 1.4; }
.form-message:not(:empty) { margin-top: .6rem; }
#admin-notice:not(:empty) { margin: 0 0 .75rem; }
.form-message.error { color: #941f40; }
.contact-panel, .orders-panel { margin-top: 1rem; scroll-margin-block: .8rem; }
.contact-panel form { margin-top: .65rem; }
.contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 710px; }
.contact-note-field { grid-column: 1 / -1; }
.contact-fields button { justify-self: start; }
.orders-panel button { margin-top: .65rem; }
.orders-list { display: grid; gap: .65rem; padding: 0; margin: .65rem 0 0; list-style: none; }
.order-record {
  display: grid;
  gap: .45rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.order-record-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .85rem; }
.order-record time { color: var(--muted); font-size: .9rem; }
.order-record ul { margin: 0; padding-inline-start: 1.2rem; }

@media (max-width: 1030px) {
  .scene::before {
    left: auto;
    width: 170px;
    height: 180px;
    background-size: 920px auto;
    background-position: right -20px top -28px;
    mask-image: linear-gradient(90deg, transparent, black 28%), linear-gradient(black 75%, transparent);
    mask-composite: intersect;
  }
  .public-layout { grid-template-columns: minmax(0, 1fr); padding: 0 clamp(18px, 5vw, 62px); }
  .rail { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 2rem; grid-column: 1; min-height: 75px; padding: .6rem 62px .6rem 0; }
  .navigation { display: flex; margin-top: 0; gap: 1.2rem; }
  .navigation a { font-size: 1rem; padding: .65rem 0; }
  .bag-button { top: 15px; right: clamp(14px, 4vw, 52px); }
  .public-main, .public-main--product { grid-column: 1; padding: 2.1rem 0 3rem; }
  .art-grid { column-gap: 1rem; }
  .card-caption h2, .card-line strong { font-size: clamp(1.14rem, 2.7vw, 1.5rem); }
  .soon-stamp { font-size: clamp(.9rem, 2.45vw, 1.3rem); }
  .public-main--product { padding-top: 1.3rem; }
}

@media (max-width: 760px) {
  .admin-main > h1 { text-align: left; }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-page::before { opacity: .6; height: 100px; background-size: 760px auto; }
  .editor { scroll-margin-block: .6rem; }
}

@media (max-width: 620px) {
  .scene::before { width: 108px; height: 118px; opacity: .88; background-size: 680px auto; background-position: right -17px top -30px; }
  .rail { min-height: 0; display: grid; justify-content: start; gap: .45rem; padding-top: 1.18rem; padding-bottom: .22rem; }
  .wordmark { font-size: 1rem; }
  .navigation { gap: 1.2rem; }
  .bag-button { top: 8px; }
  .public-main { padding-top: 1.6rem; }
  .public-main > h1 { margin-bottom: 1.1rem; }
  .art-grid, .product { grid-template-columns: minmax(0, 1fr); }
  .art-grid { row-gap: 1.7rem; }
  .art-image { border-radius: 18px; }
  .art-image--thumb { border-radius: 8px; }
  .art-image--tile, .art-image--preview, .art-image--sample { aspect-ratio: .94; }
  .card-caption { padding-top: .68rem; }
  .product { gap: 1.25rem; }
  .product-info h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .back-link { margin-bottom: .65rem; }
  .product-price { margin: 1rem 0; }
  .buy { width: 100%; }
}

@media (max-width: 460px) {
  .field { grid-template-columns: minmax(0, 1fr); }
  .upload-row { gap: .7rem; }
  .upload-label { padding-inline: .7rem; }
  .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main { padding-top: .45rem; }
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
