/* Full-width marketplace: bold display type, readable controls, deliberate motion. */
:root {
  --container: none;
  --gutter: clamp(24px, 2.5vw, 56px);
  --header-h: 104px;
  --category-h: 56px;
  --display-font: 'Barlow Condensed', Impact, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

body { font-size: 16px; }
h1, h2 { font-family: var(--display-font); font-weight: 800; }
.container, .site-header__bar, .category-bar,
.site-footer__grid, .site-footer__bottom { max-width: none; }
.container { width: 100%; padding-inline: var(--gutter); }
h2 { font-size: clamp(32px, 3.3vw, 58px); line-height: 1.08; }
.btn { min-height: 50px; padding: 13px 22px; font-size: 16px; font-weight: 700; border-radius: 8px; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.btn .icon { transition: transform .3s var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(4px); }
.form-control { min-height: 52px; font-size: 16px; }
.form-group label, .form-links, .password-wrap button { font-size: 14px; }
.form-card { max-width: 560px; padding: 40px; }
.form-card h1 { font-size: 40px; }
.form-card > .muted { font-size: 16px; }
.auth-footnote { font-size: 13px; }

/* Outer shells use the available screen; forms and prose retain reading widths. */
.site-header__bar { padding-inline: var(--gutter); gap: 28px; }
.brand-mark { width: 60px; height: 58px; border-radius: 10px; }
.brand-mark svg { width: 49px; height: 49px; }
.brand-type { font-size: 27px; letter-spacing: -1.2px; }
.site-search { min-width: 150px; }
.site-search input { height: 54px; font-size: 16px; padding-left: 48px; }
.site-search button { top: 0; bottom: 0; left: 12px; }
.header-actions { gap: 10px; }
.icon-link, .theme-toggle { width: 44px; height: 48px; }
.header-actions__sell { background: var(--accent); color: #151910; border-color: var(--accent); }
.header-actions__sell:hover { background: #e0ff80; }
.category-bar { padding-inline: var(--gutter); gap: clamp(24px, 3vw, 54px); font-size: 15px; font-weight: 550; }
.category-bar a { display: flex; align-items: center; height: 100%; }
.account-menu__dropdown { min-width: 250px; }
.account-menu__dropdown a { min-height: 44px; font-size: 15px; }

/* One big image, one big headline, one clear action. */
.home-wrap { padding-top: 0; }
.market-hero {
  margin-inline: calc(-1 * var(--gutter));
  height: auto;
  min-height: clamp(550px, 41vw, 780px);
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
}
.hero-scene { object-position: center; animation: scene-arrive 1.8s var(--ease-out) both; }
.hero-copy { padding: 58px var(--gutter) 66px; width: 70%; animation: none; }
.hero-copy h1 {
  font-family: var(--display-font);
  font-size: clamp(100px, 11vw, 220px);
  line-height: .86;
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.hero-line { display: block; width: fit-content; animation: headline-arrive .9s var(--ease-out) both; }
.hero-copy h1 .hero-line:first-child { color: #fff; }
.hero-copy h1 .hero-line + .hero-line { margin-top: .06em; animation-delay: .12s; }
.hero-copy p { font-size: clamp(18px, 1.45vw, 25px); line-height: 1.5; margin: 30px 0 28px; max-width: 620px; animation: headline-arrive .9s .22s var(--ease-out) both; }
.hero-copy .btn { min-height: 58px; font-size: 17px; padding: 15px 24px; animation: headline-arrive .9s .3s var(--ease-out) both; }
.hero-next { right: var(--gutter); bottom: 32px; width: 52px; height: 52px; }

.category-section, .fresh-section { padding-top: clamp(40px, 4vw, 76px); }
.section__head { margin-bottom: 28px; }
.home-wrap .section__head h2 { font-family: var(--display-font); font-size: clamp(42px, 4vw, 72px); font-weight: 700; letter-spacing: -.02em; }
.section__head p { font-size: 18px; line-height: 1.6; margin-top: 10px; }
.category-rail { gap: 18px; }
.product-art { background-image: url('../img/product-atlas-v2.webp'); background-color: #151617; }
.category-product { padding: 0; border-radius: 10px; }
.category-product > .product-art, .category-product > img { border-radius: 0; aspect-ratio: 1.15; transition: transform .5s var(--ease-out); }
.category-product > span:last-child:not(.product-art) { padding: 17px 10px; font-size: 17px; font-weight: 700; }
.feed-head { flex-wrap: wrap; gap: 24px; }
.feed-tabs { margin-left: auto; font-size: 15px; padding: 4px; }
.feed-tabs a, .section__head .feed-tabs a { padding: 12px 20px; font-size: 15px; font-weight: 600; min-height: 46px; }
.text-link, .section__head a { font-size: 16px; font-weight: 600; min-height: 44px; }
.feed-head > .text-link { margin-left: 0; }
.listing-grid { gap: 24px; }
.home-listings { row-gap: 34px; }
.listing-card { padding: 0; border-radius: 12px; }
.listing-card__media { overflow: hidden; border-radius: 0; }
.listing-card__media .product-art { transition: transform .6s var(--ease-out); }
.listing-card__body { padding: 20px; gap: 9px; }
.listing-card__meta { font-size: 14px; line-height: 1.5; }
.listing-card__title { font-size: clamp(18px, 1.25vw, 23px); font-weight: 650; line-height: 1.35; min-height: 2.7em; letter-spacing: -.03em; }
.listing-card__price { font-size: 28px; letter-spacing: -.04em; gap: 8px; }
.listing-card__price s { font-size: 15px; }
.card-location { font-size: 13px; gap: 5px; flex-wrap: wrap; }
.card-location .icon { width: 15px; height: 15px; }
.tag--drop { font-size: 11px; padding: 4px 7px; }
.watch-btn { width: 44px; height: 44px; top: 12px; right: 12px; }
.watch-btn .icon { width: 23px; height: 23px; }

.sell-banner { margin: 64px calc(-1 * var(--gutter)) 0; padding: 64px var(--gutter); min-height: 330px; border-radius: 0; }
.sell-banner > div:first-child { max-width: 76%; }
.sell-banner h2 { font-size: clamp(56px, 6.2vw, 116px); max-width: 950px; line-height: .94; text-transform: uppercase; letter-spacing: -.03em; }
.sell-banner p { font-size: 19px; margin: 22px 0 26px; }
.sell-banner .btn { min-height: 54px; }
.sell-banner-art { width: 360px; right: 2%; top: auto; bottom: -48px; }
.site-footer { padding: 48px var(--gutter) 0; margin-top: 0; }
.site-footer__grid { gap: 50px; }
.site-footer__grid a, .site-footer__grid p, .site-footer__grid h4 { font-size: 15px; }
.site-footer__grid a { padding-block: 8px; }
.site-footer__grid h4 { font-weight: 750; margin-bottom: 18px; }
.site-footer .brand-type { font-size: 24px; }
.site-footer .brand-mark { width: 52px; height: 50px; }
.site-footer .brand-mark svg { width: 43px; height: 43px; }
.site-footer__bottom, .demo-note { font-size: 13px; }

/* Carry the readable scale through shopping, product pages and support. */
.browse-toolbar { padding-block: 40px 30px; }
.browse-toolbar h1 { font-size: clamp(44px, 4.2vw, 72px) !important; line-height: 1.1; }
.browse-results { min-width: 0; }
.filters-panel { padding: 24px; }
.filter-group h4, .filter-group label { font-size: 14px; }
.filters-panel select, .browse-toolbar select { min-height: 48px; font-size: 15px; }
.listing-detail { padding-block: 40px 56px; gap: 48px; }
.listing-info h1 { font-size: clamp(44px, 3.5vw, 64px); line-height: 1.1; }
.listing-price { font-size: 46px; }
.listing-description, .rich-text { font-size: 17px; line-height: 1.8; }
.buy-box__row { font-size: 16px; }
.notice-box { font-size: 15px; }
.contact-layout { max-width: 1300px; gap: 80px; }
.contact-layout h1 { font-size: clamp(44px, 5vw, 76px); }
.contact-layout p { font-size: 18px; }
.content-page { font-size: 17px; }

.browse-toolbar h1, .listing-info h1, .form-card h1, .contact-layout h1,
.utility-hero h1, .seller-header__info h1, #main > .container > h1, .cms-page h1 {
  font-family: var(--display-font);
  font-weight: 800;
  letter-spacing: -.02em;
}
#main > .container > h1, .utility-hero h1, .seller-header__info h1, .cms-page h1 {
  font-size: clamp(44px, 4.2vw, 72px) !important;
  line-height: 1.04;
}
#main > .container > h1 { padding-top: 32px; }
.utility-hero { padding-block: 52px 36px; gap: 32px; }
.utility-hero p { font-size: 18px; line-height: 1.7; max-width: 800px; }
.detail-panel { padding: 26px; }
.detail-panel h3 { font-family: var(--display-font); font-size: 32px; font-weight: 700; }
.detail-panel p, .seller-policy-panel p { font-size: 16px; line-height: 1.7; }
.spec-list dt, .spec-list dd, .mini-list li, .small-copy, .inline-link { font-size: 15px; }
.market-grid strong { font-size: 20px; }
.market-grid span { font-size: 13px; }
.trust-note { font-size: 14px; }
.cart-item { padding: 20px; gap: 20px; }
.cart-item__info { min-width: 0; }
.cart-item__remove { font-size: 14px; min-height: 44px; }
.cart-summary { padding: 26px; }
.cart-summary__row { font-size: 16px; gap: 20px; padding-block: 10px; }
.cart-summary__row--total { font-size: 26px; }
.thread-item__name { font-size: 18px; }
.thread-item__preview { font-size: 15px; }
.message-bubble { font-size: 16px; line-height: 1.65; padding: 14px 18px; }
.message-bubble__time { font-size: 12px; }
.contact-layout .notice-box p { font-size: 15px !important; }
.admin-body .admin-heading > .btn { font-size: 16px; }

/* Drawer remains a large, simple navigation surface. */
.mobile-drawer { width: min(440px, 100%); padding-inline: 24px; }
.drawer-welcome h2 { font-size: 36px; }
.drawer-welcome p, .drawer-appearance > span { font-size: 16px; }
.drawer-kicker, .drawer-section-label { font-size: 12px; }
.drawer-nav > a { font-size: 16px; min-height: 52px; }
.drawer-categories { gap: 8px; padding-inline: 0; }
.drawer-categories a { font-size: 14px; min-height: 54px; padding: 12px; }
.mobile-drawer .drawer-sell { min-height: 54px; font-size: 16px; }

/* Animations are finite, transform-based and disabled by the OS preference. */
@keyframes headline-arrive { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes scene-arrive { from { transform: scale(1.045); } to { transform: scale(1); } }
.motion-enter { animation: headline-arrive .7s var(--ease-out) both; animation-delay: var(--reveal-delay, 0ms); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .listing-card:hover { transform: translateY(-7px); border-color: var(--link); box-shadow: 0 16px 30px #0002; }
  .listing-card:hover .product-art { transform: scale(1.045); }
  .category-product:hover { transform: translateY(-6px); border-color: var(--link); }
  .category-product:hover > .product-art { transform: scale(1.045); }
}

@media (min-width: 761px) and (max-width: 1180px) {
  :root { --header-h: 164px; }
  .site-header__bar { flex-wrap: wrap; padding-block: 20px; row-gap: 16px; }
  .site-search { order: 3; flex: 0 0 100%; }
  .brand-type { font-size: 25px; }
  .brand-mark { width: 54px; height: 52px; }
  .header-actions { gap: 10px; }
  .market-hero { min-height: 540px; }
  .hero-copy { width: 84%; }
  .hero-copy h1 { font-size: clamp(90px, 11vw, 125px); }
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .browse-results .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-product > .product-art, .category-product > img { aspect-ratio: 1.6; }
  .feed-tabs { margin-left: 0; }
  .feed-head > .text-link { margin-left: auto; }
  html { scroll-padding-top: 240px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --header-h: 132px; --category-h: 48px; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 196px; }
  .site-header__bar { height: var(--header-h); padding: 14px var(--gutter); gap: 0; }
  .site-header .logo { gap: 7px; }
  .site-header .brand-mark { width: 37px; height: 36px; }
  .site-header .brand-mark svg { width: 31px; height: 31px; }
  .site-header .brand-type { font-size: 18px; letter-spacing: -.85px; }
  .header-actions { gap: 0; }
  .header-actions .icon-link, .header-actions .mobile-menu-button { width: 42px; height: 44px; }
  .header-actions .icon { width: 23px; height: 23px; }
  .site-search { min-width: 0; }
  .site-search input { height: 48px; font-size: 16px; }
  .category-bar { font-size: 14px; gap: 28px; }
  .home-wrap { padding-top: 0; }
  .market-hero { min-height: 480px; align-items: flex-start; }
  .hero-scene { object-position: 80% center; }
  .market-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0c0e0ef0, #0c0e0e65 62%, transparent); pointer-events: none; }
  .hero-copy { width: 100%; padding: 45px var(--gutter) 60px; z-index: 1; }
  .hero-copy h1 { font-size: clamp(64px, 17.5vw, 116px); line-height: .92; letter-spacing: -.025em; }
  .hero-copy p { font-size: 17px; line-height: 1.6; max-width: 290px; margin: 26px 0; }
  .hero-copy .btn { min-height: 54px; font-size: 15px; padding: 14px 18px; gap: 12px; }
  .hero-copy .btn .icon { width: 20px; }
  .hero-next { width: 44px; height: 44px; bottom: 24px; z-index: 1; }
  .hero-next .icon { width: 22px; }
  .category-section, .fresh-section { padding-top: 38px; }
  h2 { font-size: 30px; }
  .home-wrap .section__head h2 { font-size: 42px; line-height: 1; }
  .section__head { margin-bottom: 22px; }
  .section__head p { font-size: 16px; max-width: 500px; line-height: 1.6; margin-top: 12px; }
  .category-rail { gap: 12px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .category-product { min-width: 156px; width: 156px; padding: 0; }
  .category-product > .product-art, .category-product > img { aspect-ratio: 1; }
  .category-product > span:last-child:not(.product-art) { font-size: 14px; padding: 14px 5px; }
  .feed-head { gap: 16px; }
  .feed-head h2 { flex: 1 1 65%; }
  .feed-head > .text-link { font-size: 14px; margin-left: auto; }
  .feed-tabs { margin: 0; width: 100%; }
  .feed-tabs a, .section__head .feed-tabs a { font-size: 14px; flex: 1; text-align: center; padding: 11px 6px; }
  .listing-grid, .browse-results .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .listing-card { border-radius: 9px; }
  .listing-card__body { padding: 14px 10px; gap: 8px; }
  .listing-card__title { font-size: 16px; line-height: 1.35; min-height: 2.7em; }
  .listing-card__meta { font-size: 12px; }
  .listing-card__price { font-size: 23px; gap: 6px; }
  .listing-card__price s { font-size: 13px; }
  .tag--drop { font-size: 10px; }
  .card-location { font-size: 12px; line-height: 1.5; gap: 3px; }
  .watch-btn { width: 44px; height: 44px; top: 7px; right: 7px; }
  .watch-btn .icon { width: 21px; height: 21px; }
  .sell-banner { margin-top: 44px; min-height: 370px; padding: 36px var(--gutter); }
  .sell-banner > div:first-child { max-width: 100%; }
  .sell-banner h2 { font-size: 56px; max-width: 370px; }
  .sell-banner p { font-size: 16px; max-width: 260px; margin: 22px 0; }
  .sell-banner .btn { font-size: 16px; padding: 14px 20px; min-height: 50px; }
  .sell-banner-art { width: 210px; right: -45px; bottom: -40px; opacity: .4; }
  .site-footer { padding-top: 38px; }
  .site-footer__grid { gap: 32px 20px; }
  .site-footer__grid a, .site-footer__grid p, .site-footer__grid h4 { font-size: 14px; }
  .site-footer__bottom { font-size: 12px; line-height: 1.7; }
  .mobile-tabbar { padding-top: 9px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .mobile-tabbar a { min-width: 56px; min-height: 48px; }
  .mobile-tabbar small { font-size: 11px; font-weight: 600; }
  .mobile-tabbar a > span { height: 32px; width: 44px; }
  .form-card { padding: 28px 22px; }
  .form-card h1 { font-size: 34px; }
  .browse-toolbar { padding-block: 28px 24px; }
  .browse-toolbar h1 { font-size: 36px !important; }
  .browse-toolbar > div:last-child { flex-wrap: wrap; }
  .browse-toolbar select { font-size: 14px; max-width: 100%; }
  .browse-layout { flex-direction: column; align-items: stretch; }
  .filters-toggle-mobile { display: inline-flex; }
  .filters-panel { display: none; width: 100%; position: static; }
  .filters-panel.is-open { display: flex; }
  .listing-detail { flex-direction: column; gap: 28px; }
  .listing-detail__gallery { position: static; width: 100%; }
  .listing-info h1 { font-size: 36px; }
  .listing-price { font-size: 40px; }
  .contact-layout { gap: 28px; }
  .contact-layout h1 { font-size: 48px; }
  .contact-layout p { font-size: 16px; }
  .contact-layout form { padding: 22px; }
  .utility-hero { padding-block: 32px 24px; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .utility-hero p { font-size: 16px; }
  .utility-search { max-width: 100%; flex-wrap: wrap; }
  .utility-search .form-control { flex: 1 1 190px; }
  .detail-panel { padding: 22px; }
  .cart-item { padding: 14px; gap: 12px; }
  .cart-summary { padding: 22px; }
}

@media (max-width: 374px) {
  :root { --gutter: 16px; }
  .header-actions > a[aria-label='Saved items'] { display: none; }
  .site-header .brand-type { font-size: 17px; }
  .hero-copy h1 { font-size: 60px; }
  .market-hero { min-height: 465px; }
  .listing-card__body { padding: 12px 8px; }
  .listing-card__title { font-size: 15px; }
  .listing-card__price { font-size: 21px; }
  .mobile-drawer { padding-inline: 18px; }
  .drawer-categories a { padding: 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-enter, .hero-scene, .hero-line, .hero-copy p, .hero-copy .btn { animation: none; }
  .btn:hover .icon:last-child { transform: none; }
}
