:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #111210;
  color: #f5f6f0;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2rem, 44rem); margin: clamp(2.5rem, 8vw, 6rem) auto; }
.brand-logo { display: block; width: min(14rem, 60vw); height: auto; }
h1 { font-size: clamp(3.5rem, 13vw, 7rem); line-height: .95; margin: .22em 0 .25em; letter-spacing: -.08em; }
p { color: #c6c8bc; line-height: 1.55; }
header p { max-width: 34rem; }
.upload, article { margin-top: 1.5rem; padding: clamp(1rem, 4vw, 2rem); border: 1px solid #3a4133; border-radius: 1rem; background: #1c2018; }
.upload { border-style: dashed; }
.upload p { margin: .8rem 0 0; font-size: .9rem; }
.picker { position: relative; display: inline-flex; justify-content: center; width: min(100%, 16rem); background: #e1fa78; color: #161b0b; border-radius: .55rem; padding: .9rem 1.4rem; font-weight: 800; }
.picker:focus-within { outline: 3px solid white; outline-offset: 4px; }
.picker:has(input:disabled) { opacity: .55; }
.picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
article h3 { margin-top: 0; overflow-wrap: anywhere; font-size: 1rem; }
article h2 { margin-top: 1.75rem; font-size: 1.35rem; }
.portrait-image { display: block; width: 100%; height: auto; border-radius: .65rem; }
article a { color: #e1fa78; display: inline-block; margin-top: 1rem; }
.product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: .75rem; padding: 0; list-style: none; }
.product-list li { min-width: 0; padding: .7rem; border: 1px solid #3a4133; border-radius: .75rem; background: #252a21; }
.product-image { display: block; width: 100%; aspect-ratio: 223 / 324; object-fit: cover; border-radius: .45rem; }
.product-list p { margin: .6rem 0 0; font-size: .9rem; }
.product-list .product-use { color: #aeb5a4; font-size: .8rem; }
.loading { display: grid; grid-template-columns: 2rem 1fr; align-items: center; gap: .8rem 1rem; margin-top: 1rem; padding: 1rem 1.2rem; border: 1px solid #667b3b; border-radius: .8rem; background: #252e1c; }
.loading[hidden] { display: none; }
.loading-copy { display: grid; gap: .15rem; }
.loading-copy span { color: #c6c8bc; font-size: .88rem; }
.spinner { width: 2rem; height: 2rem; border: 3px solid #67754a; border-top-color: #e1fa78; border-radius: 50%; animation: spin 1s linear infinite; }
.progress-track { grid-column: 1 / -1; height: .45rem; overflow: hidden; border-radius: 1rem; background: #47513d; }
.progress-track span { display: block; width: 36%; height: 100%; border-radius: inherit; background: #e1fa78; animation: slide 1.7s ease-in-out infinite alternate; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(278%); } }
@media (prefers-reduced-motion: reduce) { .spinner, .progress-track span { animation: none; } }
