
:root {
  color-scheme: light;
  --paper: #f5f5f2;
  --ink: #141416;
  --muted: #515153;
  --line: #cececa;
  --blue: #242dc5;
  --accent: #d2fa54;
  --image: #dededa;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
html:has(dialog[open]) { overflow: hidden; }
section[id] { scroll-margin-top: 1.5rem; }

.shell { width: min(100% - clamp(2rem, 5.5vw, 8rem), 1440px); margin-inline: auto; }
.skip { position: fixed; z-index: 3; inset: 0 auto auto 1rem; padding: .75rem 1rem; transform: translateY(-120%); background: var(--paper); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .4rem max(1rem, calc((100% - 1440px) / 2), 2.75vw); min-height: 36px; background: var(--ink); color: white; font-size: .75rem; }
.demo-bar a { display: inline-flex; align-items: center; min-height: 26px; flex: 0 0 auto; }
.demo-bar a:hover { text-decoration: underline; }
.demo-bar :focus-visible, .hero :focus-visible, .store-footer :focus-visible { outline-color: var(--accent); }

.store-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 77px; gap: 1.25rem; }
.wordmark { width: max-content; font-size: clamp(1.15rem, 3vw, 1.75rem); font-weight: 900; letter-spacing: -.065em; }
.wordmark span, h2 > span { color: var(--blue); }
.store-header nav { display: flex; align-items: center; gap: 2rem; font-size: .9rem; }
.store-header nav a { display: grid; min-height: 44px; align-items: center; }
.store-header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.cart-open { justify-self: end; border: 1px solid var(--line); background: transparent; padding: .375rem .55rem .375rem .85rem; display: flex; align-items: center; gap: .65rem; min-height: 44px; border-radius: 3px; font-size: .84rem; }
.cart-open:hover { border-color: var(--ink); }
.cart-count { min-width: 24px; height: 24px; padding-inline: 4px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: .73rem; }

.hero { min-height: min(580px, 60vw); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
.hero-copy { min-height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(1.5rem, 3.6vw, 3.5rem); background: var(--blue); color: white; }
.collection-label { display: flex; align-items: center; gap: .65rem; font-family: "Courier New", monospace; font-size: .8rem; letter-spacing: .055em; text-transform: uppercase; }
.collection-label span { width: .65rem; height: .65rem; background: var(--accent); }
.hero h1 { font-size: clamp(2.45rem, 6.35vw, 6.75rem); font-weight: 900; line-height: .84; letter-spacing: -.085em; }
.hero h1 span { color: var(--accent); }
.hero p { max-width: 19rem; margin-top: 1.5rem; line-height: 1.5; font-size: clamp(.96rem, 1.6vw, 1.2rem); }
.hero-button, .primary-button { display: inline-flex; min-height: 51px; align-items: center; justify-content: space-between; gap: 1.6rem; border: 0; padding: .75rem 1rem; background: var(--accent); color: var(--ink); font-size: .88rem; font-weight: 700; }
.hero-button:hover, .primary-button:not(:disabled):hover { background: #bde842; }
.hero-button span { font-size: 1.05rem; }
.hero-image { position: relative; min-height: 100%; background: var(--image); overflow: hidden; }
.hero-image picture, .hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image img { object-fit: cover; object-position: 50% 45%; }

.catalog { padding-block: clamp(4rem, 9vw, 8.4rem) clamp(3.5rem, 8vw, 7.5rem); }
.catalog h2, .collection h2 { font-weight: 800; font-size: clamp(2.5rem, 6.1vw, 5.8rem); line-height: .93; letter-spacing: -.075em; }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; margin-block: 1.55rem 1.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { min-height: 44px; padding: .52rem .9rem; border: 1px solid var(--line); border-radius: 99px; background: none; font-size: .83rem; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.result-count { font-size: .8rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3.25vw, 3rem) clamp(.75rem, 1.6vw, 1.5rem); }
.product-open { display: block; width: 100%; text-align: start; padding: 0; border: 0; position: relative; background: transparent; }
.product-open img { width: 100%; aspect-ratio: 7 / 8; height: auto; object-fit: cover; background: var(--image); }
.product-open:hover .product-arrow { background: var(--accent); }
.product-arrow { position: absolute; top: .7rem; right: .7rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font-size: 1.2rem; transition: background-color .18s ease; }
.product-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .35rem 1rem; margin-block: .9rem .35rem; font-size: clamp(.96rem, 1.5vw, 1.16rem); }
.product-name { font-weight: 700; }
.product-price { white-space: nowrap; }
.product-color { display: block; color: var(--muted); font-size: .87rem; }

.collection { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.35rem, 4vw, 3.6rem); padding-bottom: clamp(4rem, 9vw, 8rem); }
.collection-rule { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.collection-text { max-width: 28rem; font-size: clamp(1.12rem, 2.3vw, 1.6rem); line-height: 1.45; }
.text-link { display: inline-flex; align-items: center; gap: .65rem; width: max-content; min-height: 44px; font-size: .95rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.collection .text-link { margin-top: .85rem; }
.store-footer { background: var(--ink); color: white; }
.footer-content { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 1.75rem; align-items: center; min-height: 115px; padding-block: 1.25rem; }
.store-footer .wordmark span { color: var(--accent); }
.store-footer p { color: #d2d2d0; max-width: 28rem; font-size: .86rem; line-height: 1.4; }

dialog { padding: 0; background: var(--paper); color: var(--ink); border: 0; max-height: calc(100% - 2rem); }
dialog::backdrop { background: rgb(10 10 19 / .62); }
.dialog-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.product-dialog { width: min(810px, 100% - 2rem); max-width: none; }
.dialog-image { width: 100%; height: 100%; object-fit: cover; background: var(--image); }
.dialog-copy { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1rem, 3vw, 2rem); line-height: 1.45; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-kicker { font-family: "Courier New", monospace; font-size: .76rem; text-transform: uppercase; }
.dialog-copy h2, .cart-dialog h2 { font-size: clamp(1.65rem, 4vw, 2.8rem); letter-spacing: -.06em; line-height: 1; }
.close-button { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.5rem; line-height: 1; }
.close-button:hover { background: #e5e5de; }
.dialog-price { font-weight: 700; font-size: 1.1rem; }
.dialog-color, .dialog-note { color: var(--muted); font-size: .87rem; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: .5rem; font-weight: 700; font-size: .9rem; }
.size-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.size-options label { display: grid; min-width: 44px; min-height: 44px; place-items: center; cursor: pointer; border: 1px solid var(--line); }
.size-options label:hover { border-color: var(--ink); }
.size-options label:has(input:checked) { color: white; border-color: var(--ink); background: var(--ink); }
.size-options label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.size-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.primary-button:disabled { background: #e6e6df; color: var(--muted); }
.cart-dialog { width: min(480px, 100%); max-width: 100%; margin: 0 0 0 auto; height: 100%; max-height: 100%; }
.cart-layout { display: flex; flex-direction: column; min-height: 100%; gap: 1rem; padding: clamp(1rem, 5vw, 2rem); }
.cart-empty { padding-block: 1.6rem; font-size: 1.15rem; }
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: .8rem; align-items: start; padding-block: 1rem; border-top: 1px solid var(--line); }
.cart-item img { width: 70px; height: 86px; object-fit: cover; background: var(--image); }
.cart-item h3 { font-size: .96rem; }
.cart-item p { margin-top: .3rem; font-size: .82rem; color: var(--muted); }
.cart-item strong { font-size: .84rem; white-space: nowrap; }
.quantity { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.quantity button, .cart-remove { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; }
.quantity button:hover, .cart-remove:hover { background: #e5e5de; }
.cart-item-actions { display: grid; justify-items: end; gap: .45rem; }
.cart-remove { font-size: 1.25rem; }
.cart-total { display: flex; align-items: center; justify-content: space-between; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.cart-footer { display: grid; gap: 1rem; margin-top: auto; }
.cart-footer .primary-button { justify-content: center; }

@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-image { aspect-ratio: 1.13; }
}
@media (max-width: 640px) {
  .store-header { min-height: 62px; grid-template-columns: 1fr 1fr; gap: 0; }
  .store-header nav { grid-column: 1 / -1; grid-row: 2; gap: 1.35rem; margin: -.2rem 0 .35rem; }
  .store-header .cart-open { margin-top: .6rem; }
  .store-header .wordmark { font-size: 1.5rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 0; gap: 1.65rem; }
  .hero h1 { font-size: clamp(3.4rem, 12.5vw, 5.3rem); }
  .hero p { margin-top: .95rem; }
  .hero-image { min-height: 0; aspect-ratio: 1.12; }
  .hero-image img { object-position: 50% 43%; }
  .catalog { padding-top: 3.65rem; }
  .catalog-tools { margin-block: 1.05rem 1rem; }
  .filters button { padding-inline: .66rem; font-size: .76rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-meta { gap: .24rem; display: grid; margin-top: .62rem; }
  .product-arrow { width: 34px; height: 34px; top: .42rem; right: .42rem; }
  .product-color { font-size: .82rem; }
  .collection, .footer-content { grid-template-columns: 1fr; }
  .footer-content { gap: .65rem; padding-block: 1.5rem; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-image { max-height: min(29dvh, 245px); aspect-ratio: 7 / 4; object-position: 50% 45%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > div { animation: enter .48s ease-out both; }
  .hero-copy > div:nth-child(2) { animation-delay: .08s; }
  .cart-dialog[open] { animation: drawer-enter .24s ease-out both; }
}
@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
}
@keyframes drawer-enter {
  from { opacity: 0; transform: translateX(18px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
