Webdev-Bench / tasks /c29 /repo /src /styles.css
Roy-DOU's picture
Add files using upload-large-folder tool
dd5428d verified
Raw History Blame Contribute Delete
14.2 kB
/* ---------- fonts & reset ---------- */
@import './assets/fonts/fonts.css';
:root {
--serif: 'Cormorant Garamond', 'Times New Roman', serif;
--sans: 'Jost', 'Century Gothic', sans-serif;
--black: #010101;
--white: #ffffff;
--light: #f1f1f1;
--ink: #17171d;
--box: #2a2a2b;
/* left edge of the centered 1440px design grid */
--grid: calc(50% - 720px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
background: var(--black);
color: var(--white);
font-family: var(--sans);
font-weight: 300;
-webkit-font-smoothing: antialiased;
}
img { display: block; }
button {
font: inherit;
color: inherit;
background: none;
border: 0;
padding: 0;
cursor: pointer;
}
a { color: inherit; text-decoration: none; }
/* ---------- shared bits ---------- */
.eyebrow {
margin: 0;
font-family: var(--sans);
font-size: 12px;
font-weight: 300;
letter-spacing: 0.32em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.82);
}
.eyebrow--dark { color: #8a8a8a; font-weight: 400; }
.text-link {
display: inline-block;
font-family: var(--serif);
font-size: 19.5px;
font-weight: 500;
color: var(--white);
text-decoration: underline;
text-underline-offset: 6px;
text-decoration-thickness: 1px;
}
.text-link--dark { color: #141414; }
.icon-btn {
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--white);
}
/* ---------- hero ---------- */
.hero {
position: relative;
height: 100vh;
min-height: 720px;
overflow: hidden;
}
.hero__bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.hero__vignette {
position: absolute;
inset: 0;
background:
radial-gradient(ellipse 46% 38% at 50% 51%, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 72%),
linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 14%);
}
.hero__header {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 96px;
display: flex;
align-items: center;
justify-content: center;
}
.hero__logo {
font-family: var(--sans);
font-weight: 400;
font-size: 27px;
letter-spacing: 0.52em;
text-indent: 0.52em; /* visually re-centre the tracked wordmark */
color: var(--white);
line-height: 1;
}
.hero__header-icons {
position: absolute;
right: 45px;
top: 32px;
display: flex;
gap: 27px;
}
.hero__center {
position: absolute;
left: 0;
right: 0;
top: 0;
height: 100%;
text-align: center;
}
.hero__eyebrow {
position: absolute;
top: 285px;
left: 0;
right: 0;
letter-spacing: 0.28em;
}
.hero__title {
position: absolute;
top: 320px;
left: 0;
right: 0;
margin: 0;
font-family: var(--serif);
font-size: 92px;
font-weight: 300;
line-height: 0.95;
letter-spacing: 0.012em;
text-transform: uppercase;
color: var(--white);
}
.hero__subtitle {
position: absolute;
top: 533px;
left: 0;
right: 0;
margin: 0;
font-family: var(--serif);
font-style: italic;
font-weight: 400;
font-size: 30px;
color: rgba(255, 255, 255, 0.94);
}
.hero__enter {
position: absolute;
top: 600px;
left: 50%;
transform: translateX(-50%);
width: 104px;
height: 42px;
border-radius: 21px;
background: var(--white);
color: #111;
font-family: var(--serif);
font-size: 20px;
font-weight: 500;
}
.hero__sound {
position: absolute;
top: 651px;
left: 50%;
transform: translateX(-50%);
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 12px;
font-weight: 300;
letter-spacing: 0.3em;
text-transform: uppercase;
color: var(--white);
white-space: nowrap;
}
.menu-badge {
position: absolute;
left: 50%;
top: 784px;
transform: translateX(-50%);
width: 82px;
height: 82px;
}
.menu-badge__label {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-weight: 300;
letter-spacing: 0.28em;
text-indent: 0.28em;
text-transform: uppercase;
color: var(--white);
}
/* ---------- menu overlay ---------- */
.menu-overlay {
position: fixed;
inset: 0;
z-index: 60;
background: rgba(6, 6, 7, 0.98);
display: flex;
flex-direction: column;
}
.menu-overlay__bar {
height: 96px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.menu-overlay__close {
position: absolute;
right: 45px;
display: inline-flex;
align-items: center;
gap: 10px;
font-size: 12px;
letter-spacing: 0.3em;
text-transform: uppercase;
}
.menu-overlay__nav {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 26px;
text-align: center;
}
.menu-overlay__link {
font-family: var(--serif);
font-size: 52px;
font-weight: 400;
line-height: 1;
color: var(--white);
}
.menu-overlay__link:hover { text-decoration: underline; text-underline-offset: 8px; }
/* ---------- dome (Boogie / Space) ---------- */
.dome {
position: relative;
height: 900px;
background: var(--black);
overflow: hidden;
}
.dome__bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.dome__content {
position: absolute;
inset: 0;
text-align: center;
}
.dome__content .eyebrow {
position: absolute;
top: 292px;
left: 0;
right: 0;
}
.dome__title {
position: absolute;
top: 322px;
left: 0;
right: 0;
margin: 0;
font-family: var(--serif);
font-size: 84px;
font-weight: 500;
line-height: 88px;
color: var(--white);
}
.dome__content .text-link {
position: absolute;
top: 572px;
left: 50%;
transform: translateX(-50%);
}
/* ---------- scent + newsletter (shared black canvas) ---------- */
.scent {
position: relative;
height: 1630px;
background: var(--black);
overflow: hidden;
}
.scent__flower {
position: absolute;
left: var(--grid);
top: 10px;
width: 730px;
height: 990px;
}
.scent__sphere--left {
position: absolute;
left: var(--grid);
top: 1000px;
width: 370px;
height: 380px;
}
.scent__sphere--right {
position: absolute;
left: calc(var(--grid) + 980px);
top: 1260px;
width: 460px;
height: 368px;
}
.scent__content {
position: absolute;
left: calc(var(--grid) + 800px);
top: 248px;
width: 560px;
}
.scent__title {
margin: 34px 0 0;
font-family: var(--serif);
font-size: 78px;
font-weight: 600;
line-height: 83px;
color: var(--white);
}
.scent__content .text-link { margin-top: 76px; }
/* newsletter */
.newsletter {
position: absolute;
top: 1080px;
left: 0;
right: 0;
text-align: center;
}
.newsletter__title {
margin: 0;
font-family: var(--serif);
font-size: 74px;
font-weight: 400;
line-height: 84px;
color: var(--white);
}
.newsletter__radios {
margin-top: 62px;
display: flex;
justify-content: center;
align-items: center;
gap: 18px;
height: 60px;
}
.radio {
display: inline-flex;
align-items: center;
gap: 13px;
padding: 0 21px;
height: 60px;
border-radius: 8px;
cursor: pointer;
}
.radio--active { background: var(--box); }
.radio input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.radio__circle {
width: 21px;
height: 21px;
border-radius: 50%;
border: 2px solid #7d7d7d;
display: inline-flex;
align-items: center;
justify-content: center;
}
.radio--active .radio__circle { border-color: var(--white); }
.radio--active .radio__circle::after {
content: '';
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--white);
}
.radio__label {
font-family: var(--sans);
font-size: 16px;
font-weight: 300;
color: var(--white);
}
.newsletter__input {
margin-top: 21px;
width: 360px;
height: 58px;
border: 0;
border-radius: 8px;
background: var(--box);
color: var(--white);
font-family: var(--sans);
font-size: 17px;
font-weight: 300;
padding: 0 24px;
outline: none;
}
.newsletter__input::placeholder { color: #8f8f8f; }
.newsletter__submit {
display: block;
margin: 40px auto 0;
font-size: 20px;
}
/* ---------- film ---------- */
.film {
position: relative;
height: 900px;
overflow: hidden;
}
.film__bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.film__content {
position: absolute;
inset: 0;
text-align: center;
}
.film__content .eyebrow {
position: absolute;
top: 336px;
left: 0;
right: 0;
color: #cfc9c2;
}
.film__title {
position: absolute;
top: 378px;
left: 0;
right: 0;
margin: 0;
font-family: var(--serif);
font-size: 84px;
font-weight: 400;
line-height: 1.1;
font-feature-settings: 'lnum' 1;
color: var(--white);
}
.film__content .text-link {
position: absolute;
top: 540px;
left: 50%;
transform: translateX(-50%);
}
/* ---------- button story (light) ---------- */
.button-story {
position: relative;
height: 898px;
background: var(--light);
}
.button-story__disc { position: absolute; }
.button-story__disc--a { left: calc(var(--grid) + 95px); top: -22px; width: 195px; }
.button-story__disc--b { left: calc(var(--grid) + 1100px); top: -30px; width: 158px; }
.button-story__disc--c { left: calc(var(--grid) + 1248px); top: 52px; width: 156px; }
.button-story__disc--d { left: calc(var(--grid) + 72px); top: 518px; width: 184px; }
.button-story__disc--e { left: calc(var(--grid) + 376px); top: 572px; width: 152px; }
.button-story__disc--f { left: calc(var(--grid) + 1220px); top: 518px; width: 174px; }
.button-story__content {
position: absolute;
inset: 0;
text-align: center;
}
.button-story__content .eyebrow {
position: absolute;
top: 299px;
left: 0;
right: 0;
}
.button-story__title {
position: absolute;
top: 342px;
left: 0;
right: 0;
margin: 0;
font-family: var(--serif);
font-size: 76px;
font-weight: 600;
line-height: 84px;
color: var(--ink);
}
.button-story__content .text-link {
position: absolute;
top: 583px;
left: 50%;
transform: translateX(-50%);
}
/* ---------- footer ---------- */
.footer {
position: relative;
height: 581px;
background: var(--black);
overflow: hidden;
}
.footer__nav {
position: absolute;
top: 56px;
left: 40px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.footer__link {
font-family: var(--serif);
font-size: 41px;
font-weight: 400;
line-height: 50px;
color: var(--white);
display: inline-flex;
align-items: center;
gap: 12px;
text-align: left;
}
.footer__link:hover { text-decoration: underline; text-underline-offset: 7px; }
.footer__country { position: relative; }
.footer__chevron { margin-top: 10px; width: 16px; height: 16px; color: var(--white); }
.footer__country-list {
position: absolute;
z-index: 10;
top: 54px;
left: 0;
margin: 0;
padding: 12px 0;
list-style: none;
background: #121212;
border: 1px solid #2c2c2c;
min-width: 280px;
}
.footer__country-list button {
width: 100%;
text-align: left;
padding: 8px 22px;
font-family: var(--serif);
font-size: 22px;
}
.footer__country-list button:hover { background: #1f1f1f; }
.footer__top {
position: absolute;
top: 60px;
right: 40px;
}
.footer__bottom {
position: absolute;
left: 40px;
right: 40px;
bottom: 28px;
display: flex;
align-items: center;
justify-content: space-between;
}
.footer__social {
display: flex;
gap: 48px;
}
.footer__legal {
display: flex;
align-items: center;
gap: 26px;
font-size: 12px;
font-weight: 300;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--white);
}
/* ---------- responsive ---------- */
@media (max-width: 1000px) {
:root { --grid: 0px; }
.hero__title { font-size: clamp(44px, 12vw, 90px); }
.hero__subtitle { font-size: clamp(20px, 3.4vw, 28px); }
.dome { height: auto; padding: 90px 24px 110px; }
.dome__bg {
position: static;
width: 100%;
height: auto;
margin: 0 auto 40px;
}
.dome__content { position: static; }
.dome__content .eyebrow,
.dome__title { position: static; }
.dome__title { font-size: clamp(38px, 7.4vw, 58px); line-height: 1.2; margin: 18px 0 30px; }
.dome__content .text-link { position: static; transform: none; }
.scent { height: auto; padding-bottom: 90px; }
.scent__flower {
position: static;
width: min(560px, 92vw);
height: auto;
}
.scent__sphere { display: none; }
.scent__content { position: static; width: auto; padding: 60px 24px 0; }
.scent__title { font-size: clamp(38px, 7.4vw, 58px); line-height: 1.25; }
.scent__content .text-link { margin-top: 36px; }
.newsletter { position: static; margin-top: 110px; padding: 0 24px; }
.newsletter__title { font-size: clamp(38px, 7.4vw, 58px); line-height: 1.2; }
.newsletter__radios { margin-top: 34px; flex-wrap: wrap; gap: 10px; height: auto; }
.newsletter__input { width: min(360px, 100%); }
.film { height: 640px; }
.film__content .eyebrow { top: 200px; }
.film__title { top: 238px; font-size: clamp(34px, 7vw, 60px); }
.film__content .text-link { top: 380px; }
.button-story { height: auto; padding: 150px 24px 170px; }
.button-story__disc { width: 90px; }
.button-story__disc--a { left: 4vw; top: -18px; }
.button-story__disc--b { left: 70vw; top: -24px; }
.button-story__disc--c { left: 84vw; top: 60px; }
.button-story__disc--d { left: 6vw; top: auto; bottom: 30px; }
.button-story__disc--e { display: none; }
.button-story__disc--f { left: 78vw; top: auto; bottom: 40px; }
.button-story__content { position: static; }
.button-story__content .eyebrow,
.button-story__title { position: static; }
.button-story__title { font-size: clamp(36px, 7.4vw, 58px); line-height: 1.2; margin: 20px 0 36px; }
.button-story__content .text-link { position: static; transform: none; }
.footer { height: auto; padding: 70px 0 40px; }
.footer__nav { position: static; padding: 0 24px; }
.footer__link { font-size: clamp(26px, 5vw, 34px); line-height: 1.35; }
.footer__top { top: 24px; right: 24px; }
.footer__bottom {
position: static;
margin: 70px 24px 0;
flex-direction: column;
align-items: flex-start;
gap: 30px;
}
.footer__social { gap: 34px; }
.footer__legal { flex-wrap: wrap; gap: 14px; }
}