/* T91 storefront theme: "broadcast booth" world. Court blue fields, broadcast-black plates,
   ball yellow for live state and primary actions. Page-specific rules live in pages/<name>/css. */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --blue: #1638b8;
    --blue-deep: #0d2585;
    --blue-night: #081650;
    --blue-line: rgba(255, 255, 255, .16);
    --ink: #0a0c12;
    --ink-2: #161a24;
    --ink-3: #252b3a;
    --yellow: #e6f53a;
    --yellow-press: #d2e21f;
    --orange: #ff5a1f;
    --studio: #eef0f5;
    --studio-2: #e1e5ee;
    --white: #ffffff;
    --text: #0a0c12;
    --muted: #4a5266;
    --muted-on-blue: #b9c6f2;
    --muted-on-ink: #9aa3b8;

    --slant: 14px;
    --gutter: clamp(16px, 4vw, 48px);
    --max: 1440px;
    --hdr: 64px;
    --tick: 34px;

    --f: "Saira", system-ui, sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hdr) + 16px);
    scrollbar-color: var(--blue) var(--studio);
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--f);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--studio);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

sup {
    font-size: .6em;
    color: inherit;
}

::selection {
    background: var(--yellow);
    color: var(--ink);
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

.ico {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.d,
h1,
h2,
h3 {
    font-family: var(--f);
    font-stretch: 62.5%;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    line-height: .9;
    letter-spacing: -.01em;
    margin: 0;
    text-wrap: balance;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2.4rem, 5.6vw, 4.6rem);
}

h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

p {
    margin: 0 0 1em;
    max-width: 68ch;
}

.lead {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.5;
}

.label {
    font-stretch: 75%;
    font-weight: 700;
    font-size: .8125rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.num {
    font-stretch: 62.5%;
    font-weight: 800;
    font-style: italic;
    font-variant-numeric: tabular-nums;
}

/* ---------- Broadcast plates ---------- */

.plate {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    background: var(--ink);
    color: var(--white);
    padding: .35em calc(.9em + var(--slant)) .35em .9em;
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}

.plate--y {
    background: var(--yellow);
    color: var(--ink);
}

.plate--w {
    background: var(--white);
    color: var(--ink);
}

.plate--b {
    background: var(--blue);
    color: var(--white);
}

.live-dot {
    width: .55em;
    height: .55em;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.6s var(--ease) infinite;
}

@keyframes pulse {
    50% {
        opacity: .25;
    }
}

.tag {
    position: absolute;
    top: 12px;
    left: 0;
    z-index: 2;
    background: var(--ink);
    color: var(--white);
    font-stretch: 75%;
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3em 1.2em .3em .8em;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.tag--yellow {
    background: var(--yellow);
    color: var(--ink);
}

.tag--orange {
    background: var(--orange);
    color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
    --bg: var(--yellow);
    --fg: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    min-height: 52px;
    padding: 0 calc(1.6em + var(--slant)) 0 1.6em;
    background: var(--bg);
    color: var(--fg);
    border: 0;
    font-stretch: 75%;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
    transition: background .2s var(--ease), transform .2s var(--ease);
}

.btn .ico {
    transition: transform .25s var(--ease);
}

.btn:hover {
    --bg: var(--yellow-press);
}

.btn:hover .ico {
    transform: translateX(4px);
}

.btn:active {
    transform: translateY(1px);
}

.btn--ink {
    --bg: var(--ink);
    --fg: var(--white);
}

.btn--ink:hover {
    --bg: var(--ink-3);
}

.btn--white {
    --bg: var(--white);
    --fg: var(--ink);
}

.btn--white:hover {
    --bg: var(--studio);
}

.btn--block {
    width: 100%;
}

.btn[disabled] {
    --bg: var(--studio-2);
    --fg: var(--muted);
    cursor: not-allowed;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-stretch: 75%;
    font-weight: 700;
    font-size: .9375rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
}

.link:hover .ico {
    transform: translateX(3px);
}

.link .ico {
    transition: transform .25s var(--ease);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .75rem;
    color: var(--muted-on-blue);
}

.crumbs a {
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--white);
}

.demo-note {
    margin-top: 40px;
    font-size: .8125rem;
    color: var(--muted);
}

.sec--blue .demo-note,
.sec--ink .demo-note {
    color: var(--muted-on-blue);
}

/* Lower-third entrance: the plate wipes in from its left edge. */
@keyframes lt-in {
    from {
        clip-path: polygon(0 0, 0 0, -20px 100%, 0 100%);
    }
}

/* ---------- Ticker ---------- */

.tick {
    height: var(--tick);
    display: flex;
    align-items: stretch;
    background: var(--ink);
    color: var(--white);
    font-stretch: 75%;
    font-weight: 600;
    font-size: .8125rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    overflow: hidden;
}

.tick__live {
    display: flex;
    align-items: center;
    gap: .5em;
    padding: 0 1.6em 0 var(--gutter);
    background: var(--yellow);
    color: var(--ink);
    font-weight: 800;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    position: relative;
    z-index: 1;
    flex: none;
}

.tick__track {
    display: flex;
    align-items: center;
    flex: none;
    white-space: nowrap;
    animation: crawl 42s linear infinite;
}

.tick__track span {
    padding: 0 1.5em;
}

.tick__track span::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 3em;
    background: var(--yellow);
    transform: skewX(-12deg) translateY(-2px);
}

.tick:hover .tick__track {
    animation-play-state: paused;
}

@keyframes crawl {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Header ---------- */

.hdr {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--blue);
    color: var(--white);
    border-bottom: 1px solid var(--blue-line);
}

.hdr__bar {
    height: var(--hdr);
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 40px);
}

.hdr__logo {
    flex: none;
    display: block;
    width: 64px;
}

.hdr__logo img {
    width: 100%;
}

.hdr__nav {
    display: flex;
    gap: clamp(14px, 1.8vw, 28px);
    flex: 1;
}

.hdr__nav a {
    position: relative;
    font-stretch: 75%;
    font-weight: 700;
    font-size: .9375rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .3em 0;
}

.hdr__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.hdr__nav a:hover::after,
.hdr__nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.hdr__nav .is-hot {
    color: var(--yellow);
}

.hdr__tools {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.hdr__tools a,
.hdr__tools button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35em;
    min-width: 44px;
    height: 44px;
    background: none;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    font-stretch: 75%;
    font-weight: 700;
    font-size: .875rem;
}

.hdr__tools a:hover,
.hdr__tools button:hover {
    color: var(--yellow);
}

.hdr__cart b {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background: var(--yellow);
    color: var(--ink);
    font-size: .75rem;
}

.hdr__lang {
    letter-spacing: .06em;
}

.hdr__menu {
    display: none !important;
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: var(--ink);
    color: var(--white);
    padding: 0 var(--gutter) 32px;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .5s var(--ease), visibility 0s .5s;
}

.drawer.is-open {
    clip-path: inset(0);
    visibility: visible;
    transition: clip-path .5s var(--ease);
}

.drawer__top {
    height: var(--hdr);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer__top button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    cursor: pointer;
}

.drawer nav {
    display: flex;
    flex-direction: column;
    padding-top: 12px;
}

.drawer nav a {
    font-stretch: 62.5%;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(2.4rem, 11vw, 3.6rem);
    line-height: 1.05;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--ink-3);
    padding: .1em 0;
}

.drawer nav a:hover {
    color: var(--yellow);
}

.drawer__foot {
    color: var(--muted-on-ink);
    font-size: .9375rem;
}

/* ---------- Section frame ---------- */

.sec {
    padding: clamp(72px, 10vw, 140px) 0;
}

.sec--blue {
    background: var(--blue);
    color: var(--white);
}

.sec--ink {
    background: var(--ink);
    color: var(--white);
}

.sec--white {
    background: var(--white);
}

.sec__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px 40px;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.sec__head p {
    margin: 0;
    max-width: 46ch;
    color: var(--muted);
}

.sec--blue .sec__head p {
    color: var(--muted-on-blue);
}

.sec--ink .sec__head p {
    color: var(--muted-on-ink);
}

/* Replay wipe: content is visible by default; JS arms it only for elements below the fold. */
.js .wipe.is-armed {
    clip-path: polygon(0 0, 0 0, -12% 100%, 0 100%);
}

.js .wipe.is-in {
    clip-path: polygon(0 0, 112% 0, 100% 100%, 0 100%);
    transition: clip-path .9s var(--ease);
}

/* ---------- Product card ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: clamp(12px, 1.6vw, 24px);
}

.pc {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.pc:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -20px rgba(8, 22, 80, .45);
}

.pc__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--white);
}

.pc__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6%;
    transition: transform .5s var(--ease), opacity .4s var(--ease);
}

.pc[data-line] .pc__media img {
    filter: drop-shadow(0 18px 18px rgba(8, 22, 80, .25));
}

.pc:hover .pc__media img {
    transform: scale(1.05) rotate(-3deg);
}

/* Apparel shots are full-frame photos: fill the plate instead of floating them. */
.pc[data-line=""] .pc__media img {
    object-fit: cover;
    padding: 0;
}

.pc__alt {
    opacity: 0;
    object-fit: cover !important;
    padding: 0 !important;
}

.pc:hover /* Apparel shots are full-frame photos: fill the plate instead of floating them. */
.pc[data-line=""] .pc__media img {
    object-fit: cover;
    padding: 0;
}

.pc__alt {
    opacity: 1;
    transform: none !important;
}

.pc__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
    border-top: 4px solid var(--ink);
}

.pc__name {
    font-size: 1.375rem;
    line-height: .95;
}

.pc__name a {
    text-decoration: none;
}

.pc__name a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pc__meta {
    margin: 0;
    font-size: .875rem;
    color: var(--muted);
}

.pc__price {
    margin: auto 0 0;
    padding-top: 4px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pc__price b {
    font-stretch: 62.5%;
    font-weight: 800;
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1;
}

.pc__price s {
    color: var(--muted);
    font-size: .9375rem;
}

.pc__cmp {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-stretch: 75%;
    font-weight: 700;
    font-size: .8125rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    width: fit-content;
}

.pc__cmp input {
    width: 20px;
    height: 20px;
    accent-color: var(--blue);
    margin: 0;
}

/* Horizontal rail */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 22%);
    gap: clamp(12px, 1.6vw, 24px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    scrollbar-width: thin;
}

.rail > * {
    scroll-snap-align: start;
}

/* ---------- Placeholder page ---------- */

.ph {
    min-height: 70vh;
    display: grid;
    align-content: center;
    background: var(--blue);
    color: var(--white);
    padding: clamp(64px, 10vw, 140px) 0;
}

.ph h1 {
    margin: 18px 0 24px;
}

.ph p {
    color: var(--muted-on-blue);
}

.ph .plate {
    color: var(--ink);
}

.ph ul {
    margin: 24px 0 36px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    max-width: 60ch;
}

.ph li {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.ph li::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    background: var(--yellow);
    transform: skewX(-12deg);
}

/* ---------- Footer ---------- */

.ftr {
    background: var(--ink);
    color: var(--white);
    padding: clamp(64px, 8vw, 110px) 0 36px;
}

.ftr__claim {
    font-size: clamp(3rem, 10vw, 8.5rem);
    line-height: .85;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.ftr__claim span {
    color: var(--yellow);
}

.ftr__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--ink-3);
}

.ftr h4 {
    margin: 0 0 14px;
    font-stretch: 75%;
    font-weight: 700;
    font-size: .8125rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-on-ink);
}

.ftr ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ftr li a {
    text-decoration: none;
}

.ftr li a:hover {
    color: var(--yellow);
}

.ftr__news p {
    color: var(--muted-on-ink);
}

.ftr__form {
    display: flex;
    max-width: 420px;
}

.ftr__form input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    background: var(--ink-2);
    border: 1px solid var(--ink-3);
    border-right: 0;
    color: var(--white);
}

.ftr__form input::placeholder {
    color: var(--muted-on-ink);
}

.ftr__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 24px;
    font-size: .8125rem;
    color: var(--muted-on-ink);
}

.ftr__legal p {
    margin: 0;
}

.ftr__legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.ftr__legal a {
    text-decoration: none;
}

.ftr__legal a:hover {
    color: var(--white);
}

.ftr__pay {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ftr__pay span {
    border: 1px solid var(--ink-3);
    padding: 2px 8px;
    font-stretch: 75%;
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .04em;
    color: var(--white);
}

.site-footer__credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    margin-top: 2.4rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--ink-3);
    font-size: .8rem;
    color: var(--white);
    text-decoration: none;
    opacity: .85;
    transition: opacity .2s;
}

.site-footer__credit:hover {
    opacity: 1;
}

.site-footer__credit img {
    height: 16px;
    width: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .hdr__nav,
    .hdr__lang,
    .hdr__account span {
        display: none;
    }

    .hdr__menu {
        display: inline-flex !important;
    }

    .ftr__grid {
        grid-template-columns: 1fr 1fr;
    }

    .ftr__news {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    :root {
        --hdr: 58px;
        --slant: 10px;
    }

    body {
        font-size: 1rem;
    }

    .hdr__logo {
        width: 54px;
    }

    .hdr__search {
        display: none !important;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pc__body {
        padding: 12px 12px 14px;
    }

    .pc__name {
        font-size: 1.125rem;
    }

    .pc__meta {
        font-size: .8125rem;
    }

    .pc__price b {
        font-size: 1.35rem;
    }

    .rail {
        grid-auto-columns: 72%;
    }

    .ftr__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

    .js .wipe.is-armed {
        clip-path: none;
    }
}
