:root {
  color-scheme: light;
  --paper: #faf8f2;
  --white: #fffefb;
  --ink: #28251f;
  --muted: #645d54;
  --line: #e1dacf;
  --accent: #8b365a;
  --accent-dark: #6d2445;
  --wash: #f2e5eb;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.theme-blue { --accent: #3f4b8e; --accent-dark: #303a73; --wash: #e9eaf6; }
.theme-green { --accent: #4a5c3a; --accent-dark: #354728; --wash: #e9eddf; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; z-index: 4; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; overflow-wrap: anywhere; }
h1 { font-size: clamp(3rem, 6vw, 5.25rem); letter-spacing: -.064em; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.55rem); letter-spacing: -.055em; }
h3 { font-size: clamp(1.28rem, 2vw, 1.63rem); letter-spacing: -.03em; }
p { overflow-wrap: anywhere; }
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: 750; letter-spacing: .14em; line-height: 1.35; text-transform: uppercase; }
.tiny-star { margin-right: .35em; font-size: 1.05rem; vertical-align: -.08em; }
.site-header, .site-footer { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.25rem; min-height: 4.8rem; }
.brand { display: inline-flex; gap: .6rem; align-items: center; flex: none; text-decoration: none; font-size: .98rem; white-space: nowrap; }
.brand img, .about img { border: 1px solid var(--line); border-radius: 50%; background: white; }
.header-inner nav, .footer-social { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2.1rem); }
.header-inner nav a, .footer-social a, .footer-inner > a:not(.brand) { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; text-decoration: none; font-size: .89rem; font-weight: 650; }
.header-inner nav a:hover, .footer-inner a:hover, .plain:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(0, .83fr); gap: clamp(2.25rem, 7vw, 6rem); align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.hero h1 { margin: .72rem 0 1.25rem; }
.hero h1 em { color: var(--accent); font-weight: 500; }
.intro { max-width: 29rem; color: var(--muted); font-size: clamp(1.04rem, 2.1vw, 1.24rem); line-height: 1.55; }
.hero-actions, .admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.15rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 47px; padding: .62rem 1.14rem; border: 1px solid transparent; border-radius: .55rem; font-size: .91rem; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-dark); }
.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.secondary:hover { background: var(--wash); border-color: var(--accent); }
.text-link, .back { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--accent); text-decoration: none; font-size: .92rem; font-weight: 700; }
.text-link:hover, .back:hover { text-decoration: underline; text-underline-offset: .21em; }
.hero-art { position: relative; padding: .65rem; border: 1px solid var(--line); border-radius: 1.3rem; background: var(--white); box-shadow: 0 16px 44px rgb(44 31 23 / .08); }
.hero-frame { overflow: hidden; display: grid; place-items: center; aspect-ratio: 1; border-radius: .78rem; background: var(--wash); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-empty img { border-radius: 50%; }
.hero-star { position: absolute; display: grid; place-items: center; bottom: -1rem; left: -1rem; width: 3rem; height: 3rem; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--accent); font-size: 1.5rem; line-height: 1; }
.collection { padding-block: clamp(2.5rem, 6vw, 4.2rem) clamp(3.25rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.section-head h2, .about h2, .contact h2 { margin-top: .5rem; }
.section-head > p { max-width: 18rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.45rem 0 1.3rem; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: .32rem .92rem; background: var(--white); border: 1px solid var(--line); border-radius: 2rem; text-decoration: none; font-size: .87rem; font-weight: 650; }
.chip[aria-current], .chip:hover { background: var(--wash); border-color: var(--accent); color: var(--accent-dark); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.section-head + .products { margin-top: 1.45rem; }
.product { display: flex; flex-direction: column; overflow: hidden; border-radius: .8rem; border: 1px solid var(--line); background: var(--white); }
.product-image { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; background: var(--wash); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image:focus-visible { outline-offset: -5px; }
.placeholder { color: var(--accent); font-size: 2rem; }
.product-info { display: flex; flex: 1; flex-direction: column; gap: .43rem; padding: 1rem 1rem .55rem; }
.product-info .eyebrow { font-size: .65rem; }
.product-description { color: var(--muted); font-size: .87rem; line-height: 1.52; }
.product-description:empty { display: none; }
.product-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 .55rem; margin-top: auto; }
.price { font-size: .9rem; font-weight: 700; }
.about { background: var(--wash); }
.about-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: clamp(2.65rem, 6vw, 4.5rem); }
.about p:last-child, .contact p:last-child { max-width: 37rem; margin-top: .9rem; color: var(--muted); white-space: pre-line; }
.about img { flex: none; }
.contact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.35rem 3rem; padding-block: clamp(2.65rem, 7vw, 5rem); }
.contact-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.email-address { flex-basis: 100%; color: var(--muted); font-size: .89rem; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); border-bottom: 0; }
.footer-inner { flex-wrap: wrap; padding-block: .7rem; }
.footer-inner small { color: var(--muted); }
.detail { min-height: 65vh; padding-block: 1.7rem 4rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 6vw, 4.5rem); margin-top: .9rem; }
.detail-grid .product-image { border-radius: 1rem; border: 1px solid var(--line); }
.detail-grid .product-image img { object-fit: contain; }
.detail-copy h1 { margin: .6rem 0 1rem; font-size: clamp(2.6rem, 5.4vw, 4.65rem); }
.detail-price { font-size: 1.28rem; font-weight: 700; margin-top: .75rem; }
.detail-copy .hint { margin-top: .9rem; max-width: 25rem; }
.owner-main { width: min(100% - 3rem, 50rem); padding-block: 2.7rem 4rem; }
.owner-main h1 { margin-block: .28rem .85rem; font-size: clamp(2.45rem, 5.6vw, 3.8rem); }
.owner-main h2 { font-size: 1.65rem; }
.owner-main > p:not(.eyebrow, .notice), .sign-in > p:not(.eyebrow, .notice) { color: var(--muted); }
.owner-main > .admin-actions { margin-bottom: 1.35rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: .95rem; padding: clamp(1rem, 4vw, 2rem); }
.sign-in { max-width: 29rem; margin: 1.6rem auto; }
.sign-in form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.sign-in .button { justify-self: start; }
.plain { padding: 0; min-height: 44px; background: none; border: 0; font-weight: 650; font-size: .89rem; }
.notice { margin-block: 1rem; padding: .65rem .85rem; border-radius: .4rem; background: #e8efe1; color: #314427; }
.notice.error { background: #f9e6e6; color: #732b36; }
.admin-list { margin: .8rem 0 0; padding: 0; list-style: none; }
.admin-list li + li { border-top: 1px solid var(--line); }
.admin-product { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto auto; gap: .7rem; align-items: center; padding: .6rem .1rem; text-decoration: none; }
.admin-product:hover, .admin-product:focus-visible { background: var(--paper); }
.admin-product strong { display: block; overflow-wrap: anywhere; line-height: 1.3; }
.admin-product small, .hint { color: var(--muted); font-size: .86rem; }
.admin-thumb, .admin-preview { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: .38rem; background: var(--wash); }
.admin-thumb img, .admin-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-thumb .placeholder { font-size: 1.1rem; }
.state { border-radius: 1rem; background: #eee9e2; color: #55473a; padding: .1rem .5rem; font-size: .76rem; }
.state.shown { background: #e8efe1; color: #314427; }
.edit-label { color: var(--accent); font-weight: 650; font-size: .88rem; }
.editor { display: grid; gap: 1rem; margin-top: 1.15rem; }
.editor .admin-actions { margin-top: .3rem; }
label { display: grid; gap: .28rem; font-size: .92rem; font-weight: 700; }
input:not([type=checkbox], [type=hidden]), textarea, select {
  display: block; width: 100%; min-width: 0; min-height: 46px; padding: .56rem .65rem;
  background: white; border: 1px solid #a89e92; border-radius: .45rem; font-size: 1rem; font-weight: 400;
}
textarea { resize: vertical; }
.editor > .hint { margin-top: -.75rem; }
.check { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.check input { width: 1.12rem; height: 1.12rem; accent-color: var(--accent); }
.photo-editor { display: grid; grid-template-columns: 7.3rem minmax(0, 1fr); gap: .9rem; align-items: start; }
.photo-editor .hint, #photo-status { margin-top: .25rem; }
#photo-status { color: var(--accent-dark); font-size: .85rem; }
@media (max-width: 880px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.15rem; }
  .hero, .detail-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 2.65rem 2.85rem; gap: 1.55rem; }
  .hero-art { max-width: 28rem; width: 100%; justify-self: center; padding: .5rem; }
  .hero-star { left: -.35rem; width: 2.4rem; height: 2.4rem; font-size: 1.2rem; }
  .hero-frame { aspect-ratio: 5 / 4; }
  .section-head { display: block; }
  .section-head > p { margin-top: .55rem; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .product-info { padding: .74rem .7rem .4rem; }
  .about-inner { gap: .8rem; }
  .about img { width: 78px; height: 78px; }
  .owner-main { padding-top: 1.65rem; }
  .photo-editor { grid-template-columns: 1fr; }
  .admin-preview { width: 7.3rem; }
}
@media (max-width: 380px) {
  .brand { gap: .35rem; font-size: .85rem; }
  .brand img { width: 35px; height: 35px; }
  .header-inner nav { gap: .7rem; }
  .header-inner nav a, .plain { font-size: .78rem; }
  .edit-label { display: none; }
  .admin-product { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
}
.owner .header-inner nav { gap: clamp(.5rem, 2vw, 1.5rem); white-space: nowrap; }
