:root {
  --yellow: #ffdd00;
  --red: #d0101f;
  --blue: #14217a;
  --mist: #eef0f6;
  --slate: #515a86;
  --poster-type: 'Bowlby One', 'Arial Black', sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
body { font: 400 1rem/1.5 'Hanken Grotesk', system-ui, sans-serif; color: var(--blue); background: #fff; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.demo { padding: .5rem var(--gutter); background: var(--blue); color: #fff; font-weight: 600; }

.top { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); background: var(--yellow); }
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.search { display: flex; flex: 1 1 18rem; max-width: 32rem; background: #fff; border: 2px solid var(--blue); }
.search input { flex: 1; min-width: 0; padding: .6rem .9rem; border: 0; background: none; }
.search button { padding: .6rem 1.1rem; border: 0; background: var(--blue); color: #fff; font-weight: 600; }

.price { display: inline-flex; align-items: flex-start; font-family: var(--poster-type); line-height: .95; color: var(--red); white-space: nowrap; }
.price small { font-size: .36em; line-height: 1.2; }
.price .currency { margin-right: .25em; }

.poster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1.25rem, 5vw, 4rem); align-items: center; padding: clamp(.5rem, 2vw, 1.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem); background: var(--yellow); }
.poster img { width: 100%; height: auto; max-height: 26rem; aspect-ratio: 1; object-fit: contain; background: #fff; transform: rotate(-2deg); }
.poster h2 { max-width: 28ch; font-size: clamp(1.1rem, 2.4vw, 1.75rem); line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.poster .price { margin: 1.25rem 0 .5rem; font-size: clamp(4rem, 13vw, 10.5rem); }
.poster .from { margin: 1rem 0 -.75rem; font-weight: 600; }
.poster .off { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 800; }
.buy { display: inline-block; margin-top: 1.25rem; padding: .85rem 1.6rem; background: var(--red); color: #fff; font-weight: 800; text-decoration: none; }
.buy:hover { background: var(--blue); }

.controls { display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.25rem var(--gutter) 0; }
.topics { display: flex; gap: .25rem 1.4rem; overflow-x: auto; padding: .25rem; }
.topics a { padding: .4rem 0; white-space: nowrap; font-weight: 600; text-decoration: none; border-bottom: 4px solid transparent; }
.topics a:hover { border-color: var(--mist); }
.topics a[aria-current] { border-color: var(--red); }
.sort { flex: none; color: var(--slate); }
.sort select { margin-left: .35rem; padding: .4rem; border: 2px solid var(--mist); background: #fff; color: var(--blue); font-weight: 600; }

h1 { padding: 1.5rem var(--gutter) 0; font-size: 1.6rem; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.status { padding: .25rem var(--gutter) 1.25rem; color: var(--slate); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 2.25rem 1.25rem; padding: 0 var(--gutter); list-style: none; }
.item { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.item .photo { position: relative; background: var(--mist); }
.item img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.item .off { position: absolute; left: 0; bottom: 0; padding: .15rem .6rem; background: var(--yellow); font-weight: 800; }
.item .price { margin: .8rem 0 .4rem; font-size: 2.3rem; }
.item .from { display: block; margin: .6rem 0 -.6rem; font-size: .875rem; color: var(--slate); }
.item .name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.35; overflow-wrap: anywhere; }
.item:hover .name { text-decoration: underline; }
.facts { margin-top: .35rem; font-size: .875rem; color: var(--slate); }

.more { display: block; margin: 3rem auto 0; padding: .8rem 1.6rem; border: 2px solid var(--blue); background: #fff; font-weight: 800; }
.more:hover { background: var(--blue); color: #fff; }
footer { margin-top: 4rem; padding: 2rem var(--gutter); background: var(--mist); font-size: .9rem; }
footer p { max-width: 75ch; }
footer p + p { margin-top: .5rem; }

@media (max-width: 640px) {
  .poster { grid-template-columns: 1fr; }
  .poster img { max-height: 15rem; }
  .poster .price { font-size: clamp(3.5rem, 21vw, 6rem); }
  .controls { flex-direction: column; align-items: stretch; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .9rem; }
  .item .price { font-size: 1.65rem; }
}
