Files
website/app/home.module.css
T

816 lines
12 KiB
CSS

.page {
background: var(--color-white);
}
.section {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 var(--page-pad);
scroll-margin-top: 80px;
}
.container {
max-width: 1080px;
}
.container + .container,
.section + .container {
margin-top: 96px;
}
.carousel {
margin-top: 96px;
padding-left: 0;
padding-right: 0;
}
.hero {
display: grid;
grid-template-columns: minmax(0, 1.95fr) minmax(220px, 300px) minmax(220px, 300px);
gap: 7px;
align-items: stretch;
}
.heroCard {
position: relative;
background: var(--color-card);
border-radius: 5px;
min-height: 526px;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 28px 24px 28px;
}
.heroMain {
padding: 0 72px 48px 102px;
}
.heroCopy {
position: relative;
z-index: 2;
max-width: 430px;
}
.heroTitle {
font-size: 40px;
font-weight: 300;
letter-spacing: 8px;
text-transform: uppercase;
line-height: 45px;
margin-bottom: 28px;
}
.heroTitleSmall {
font-size: 25px;
letter-spacing: 5px;
line-height: 30px;
margin-bottom: 16px;
}
.heroBtn {
height: 37px;
padding: 0 20px;
font-size: 16px;
letter-spacing: 3.2px;
}
.heroBtnSmall {
height: 29px;
padding: 0 16px;
font-size: 12px;
letter-spacing: 2.4px;
}
.heroImage {
position: absolute;
pointer-events: none;
}
.heroFurniture {
width: min(513px, 52%);
height: auto;
right: 4%;
top: 0;
mix-blend-mode: multiply;
}
.heroCard:hover .heroFurniture,
.heroCard:focus-within .heroFurniture {
mix-blend-mode: normal;
}
.heroCard:hover .heroNav img,
.heroCard:focus-within .heroNav img {
filter: invert(1);
}
.heroIceCream {
width: 84%;
height: auto;
left: 8%;
top: 14%;
}
.heroRug {
width: 81%;
height: auto;
left: 10%;
top: 16%;
}
/* Beat globals `.tile-hover > *:not(img) { position: relative }` so arrows stay overlaid */
.heroCard .heroNav {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 29px;
height: 29px;
z-index: 3;
display: flex;
align-items: center;
justify-content: center;
}
.heroCard .heroNav img {
width: 11px;
height: 22px;
object-fit: contain;
}
.heroCard .heroPrev {
left: 16px;
transform: translateY(-50%) rotate(180deg);
}
.heroCard .heroNext {
right: 16px;
}
.join {
margin-top: 7px;
background: var(--color-card);
border-radius: 5px;
min-height: 136px;
display: flex;
align-items: center;
justify-content: center;
gap: 23px;
padding: 24px;
}
.joinIcon {
position: relative;
z-index: 2;
width: 62px;
height: 62px;
object-fit: contain;
}
.join:hover .joinIcon,
.join:focus-within .joinIcon {
filter: invert(1);
}
.joinCopy {
display: flex;
flex-direction: column;
align-items: flex-start;
position: relative;
z-index: 1;
}
.joinTitle {
display: block;
font-size: 30px;
font-weight: 300;
letter-spacing: 6px;
text-transform: uppercase;
line-height: 30px;
}
.joinText {
display: block;
margin-top: 5px;
font-size: 14px;
font-weight: 300;
letter-spacing: 1.4px;
text-transform: uppercase;
color: var(--color-muted);
line-height: 18px;
}
.sectionHead {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 16px;
max-width: var(--container-width);
width: 100%;
margin: 0 auto 28px;
padding: 0 var(--page-pad);
}
.sectionHeadCentered {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
margin: 0 0 36px;
}
.arrows {
display: flex;
gap: 6px;
}
.arrowBtn {
width: 38px;
height: 36px;
background: var(--color-card);
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.arrowBtn img {
width: 8px;
height: 14px;
object-fit: contain;
position: relative;
z-index: 2;
transition: filter 0.3s ease;
}
.arrowBtn:global(.tile-hover):hover img,
.arrowBtn:global(.tile-hover):focus-visible img {
filter: brightness(0) invert(1);
}
.arrowPrev {
transform: rotate(180deg);
}
.sectionTitles {
text-align: center;
}
.sectionTitle {
font-size: 20px;
font-weight: 400;
letter-spacing: 6px;
text-transform: uppercase;
white-space: nowrap;
}
.sectionSubtitle {
margin-top: 6px;
font-size: 11px;
font-weight: 300;
letter-spacing: 3.2px;
text-transform: uppercase;
}
.explore {
height: 36px;
min-width: 180px;
background: var(--color-explore);
border-radius: 5px;
display: inline-flex;
align-items: center;
justify-content: space-between;
padding: 0 14px;
font-size: 13px;
font-weight: 300;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--color-soft);
overflow: hidden;
}
.explore img {
width: 16px;
height: 16px;
position: relative;
z-index: 2;
transition: filter 0.3s ease;
}
.explore:global(.tile-hover):hover img,
.explore:global(.tile-hover):focus-visible img {
filter: brightness(0) invert(1);
}
.categoryGrid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 28px 20px;
}
.categoryCard {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding-top: 38%;
overflow: visible;
}
.categoryStage {
width: 100%;
aspect-ratio: 430 / 187;
background: var(--color-card);
border-radius: 5px;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
padding: 0 8px 10px;
overflow: visible;
}
.categoryImage {
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 58%;
height: 120%;
bottom: 36%;
object-fit: contain;
pointer-events: none;
}
.industry {
width: 59%;
height: 135%;
bottom: 33%;
}
.food {
width: 50%;
height: 114%;
bottom: 45%;
}
.fruits {
width: 63%;
height: 144%;
bottom: 33%;
}
.clothes {
width: 58%;
height: 148%;
bottom: 32%;
}
.chair {
width: 43%;
height: 137%;
bottom: 45%;
}
.shoes {
width: 79%;
height: 96%;
bottom: 44%;
}
.washer {
width: 58%;
height: 133%;
bottom: 44%;
}
.services {
width: 69%;
height: 159%;
bottom: 26%;
}
.categoryTitle {
position: relative;
z-index: 1;
font-size: 12px;
font-weight: 400;
letter-spacing: 3px;
text-transform: uppercase;
line-height: 1.2;
}
.categoryCopy {
position: relative;
z-index: 1;
margin-top: 4px;
font-size: 10px;
font-weight: 300;
color: var(--color-muted);
}
.producerGrid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 36px;
align-items: start;
max-width: var(--max-width);
margin: 0 auto;
padding: 0 var(--page-pad);
}
.about {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 32px;
align-items: center;
padding: 48px 0 8px;
overflow: visible;
}
.aboutKicker {
font-size: 36px;
font-weight: 400;
text-transform: uppercase;
line-height: 1.1;
}
.aboutKicker span {
font-size: 24px;
text-transform: none;
}
.aboutLead {
margin-top: 6px;
font-size: 22px;
font-weight: 400;
color: var(--color-soft);
}
.aboutBody {
margin-top: 16px;
font-size: 15px;
font-weight: 400;
color: var(--color-body);
line-height: 1.4;
}
.aboutList {
list-style: none;
margin-top: 18px;
display: flex;
flex-direction: column;
gap: 10px;
}
.aboutList li {
display: flex;
gap: 10px;
align-items: flex-start;
font-size: 15px;
color: var(--color-body);
}
.aboutList img {
width: 9px;
height: 11px;
margin-top: 6px;
flex-shrink: 0;
}
.aboutBtn {
margin-top: 22px;
height: 34px;
padding: 0 16px;
font-size: 13px;
letter-spacing: 2.4px;
}
.aboutVisual {
position: relative;
width: 100%;
aspect-ratio: 837 / 639;
overflow: visible;
}
.aboutFrame {
position: absolute;
left: 0;
bottom: 0;
width: 58.8%;
height: 86%;
background: var(--color-card);
border-radius: 10px;
}
.aboutShip {
position: absolute;
top: 0;
right: 0;
width: 94.5%;
height: 100%;
object-fit: cover;
object-position: 55% 35%;
}
.bannerBlock {
margin-top: 96px;
overflow: visible;
padding-bottom: clamp(40px, 7vw, 110px);
}
.bannerRow {
display: grid;
grid-template-columns: minmax(0, 2.92fr) repeat(3, minmax(0, 1fr));
gap: 7px;
align-items: end;
padding-top: 96px;
}
.bannerCard {
position: relative;
background: var(--color-card);
border-radius: 5px;
min-height: 360px;
padding: 24px 18px 24px;
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 14px;
overflow: visible;
}
.bannerWide {
min-height: 360px;
padding-left: 48px;
}
.bannerImage {
position: absolute;
left: 50%;
transform: translateX(-50%);
width: min(280px, 56%);
bottom: 118px;
object-fit: contain;
pointer-events: none;
}
.tv {
width: min(320px, 48%);
bottom: 130px;
left: 42%;
}
.pistachio {
width: 130%;
max-width: 260px;
bottom: 108px;
transform: translateX(-50%) rotate(18deg);
}
.shampoo {
width: 58%;
height: auto;
bottom: 115px;
}
.saffron {
width: 54%;
bottom: 115px;
}
.bannerTitle {
position: relative;
z-index: 1;
font-size: 18px;
font-weight: 300;
letter-spacing: 3.5px;
text-transform: uppercase;
line-height: 1.2;
margin: 0;
}
.bannerWide .bannerTitle {
font-size: 32px;
letter-spacing: 6px;
line-height: 1.15;
}
.bannerBtn {
position: relative;
z-index: 1;
align-self: flex-start;
height: 29px;
padding: 0 14px;
font-size: 12px;
letter-spacing: 2.2px;
}
.bannerBtnWide {
height: 34px;
padding: 0 18px;
font-size: 14px;
letter-spacing: 2.4px;
}
.exportCta {
position: relative;
width: 100%;
margin-top: 7px;
background: var(--color-card);
border-radius: 5px;
height: min(201px, calc((min(100vw, var(--max-width)) - 2 * var(--page-pad)) * 201 / 1800));
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 0 40px 0 22%;
overflow: visible;
}
.plane {
position: absolute;
left: 0;
top: 50%;
width: min(220px, 13.5%);
height: auto;
max-width: none;
object-fit: contain;
transform: translate(-6%, -58%) rotate(42deg);
transform-origin: center;
pointer-events: none;
}
.exportTitle {
position: relative;
z-index: 2;
font-size: 32px;
font-weight: 300;
letter-spacing: 6px;
text-transform: uppercase;
line-height: 1.15;
}
.beginBtn {
position: relative;
z-index: 2;
height: 34px;
min-width: 320px;
padding: 0 16px;
font-size: 14px;
letter-spacing: 2.8px;
justify-content: space-between;
}
.beginBtn img {
width: 9px;
height: 16px;
object-fit: contain;
}
.exportCta:hover .beginBtn img,
.exportCta:focus-within .beginBtn img {
filter: invert(1);
}
@media (max-width: 1400px) {
.sectionTitle {
letter-spacing: 4px;
font-size: 18px;
}
.heroTitle {
font-size: 28px;
letter-spacing: 5px;
line-height: 1.15;
}
.aboutKicker {
font-size: 30px;
}
}
@media (max-width: 1100px) {
.hero,
.bannerRow {
grid-template-columns: 1fr;
}
.heroCard {
min-height: 420px;
}
.heroMain {
padding: 48px 24px 32px;
}
.heroFurniture,
.heroIceCream,
.heroRug {
width: min(280px, 46%);
}
.categoryGrid,
.producerGrid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.about {
grid-template-columns: 1fr;
margin-top: 0;
}
.aboutVisual {
min-height: unset;
max-width: 420px;
margin: 0 auto;
order: -1;
}
.sectionHead {
grid-template-columns: 1fr;
justify-items: center;
text-align: center;
}
.exportCta {
flex-direction: column;
justify-content: center;
text-align: center;
padding: 24px 20px 24px;
height: auto;
min-height: 140px;
}
.plane {
left: 50%;
top: -8%;
width: min(180px, 42%);
transform: translate(-50%, -40%) rotate(42deg);
}
.beginBtn {
width: 100%;
min-width: 0;
}
}
@media (max-width: 720px) {
.heroCard {
min-height: 360px;
padding: 20px;
}
.heroMain {
padding: 32px 20px 24px;
}
.heroTitle,
.joinTitle,
.aboutKicker {
font-size: 24px;
letter-spacing: 3px;
line-height: 1.2;
}
.sectionTitle {
font-size: 15px;
letter-spacing: 2.5px;
white-space: normal;
}
.heroFurniture,
.heroIceCream,
.heroRug {
width: 42%;
opacity: 0.95;
}
.join {
flex-direction: column;
text-align: center;
}
.joinCopy {
align-items: center;
}
.categoryGrid,
.producerGrid {
grid-template-columns: 1fr;
}
.explore {
width: 100%;
min-width: 0;
}
.categoryCard {
padding-top: 28%;
max-width: 280px;
margin: 0 auto;
}
}