*, *::after, *::before { box-sizing: border-box; } :root { font-size: 18px; --color-text: #99928a; --color-bg: #181817; --color-link: #aa7f2d; --color-link-hover: #fff; --page-padding: 1rem; } body { margin: 0; color: var(--color-text); background-color: var(--color-bg); font-family: area-normal,-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; background-image: url(../img/bg1.jpg); background-size: cover; background-attachment: fixed; background-repeat: no-repeat; background-position: 50% 50%; } .demo-2 { --color-text: #ecdfeb; --color-bg: #704f6d; --color-link: #fff; --color-link-hover: #ecdfeb; font-family: "norman-variable", sans-serif; font-variation-settings: "wght" 400; background-image: url(../img/bg2.jpg); } .demo-3 { --color-text: #3a3330; --color-bg: #a59d9a; --color-link: #0f0a09; --color-link-hover: #3a3330; font-family: "marlide-display-variable", sans-serif; font-variation-settings: "wght" 340; background-image: url(../img/bg3.jpg); } .demo-4 { --color-text: #fff; --color-bg: #000; --color-link: #c88768; --color-link-hover: #fff; font-family: "kudryashev-d-excontrast", sans-serif; font-weight: 300; background-image: url(../img/bg4.jpg); } /* Page Loader */ .js .loading::before, .js .loading::after { content: ''; position: fixed; z-index: 1000; } .js .loading::before { top: 0; left: 0; width: 100%; height: 100%; background: var(--color-bg); } .js .loading::after { top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; opacity: 0.4; background: var(--color-link); animation: loaderAnim 0.7s linear infinite alternate forwards; } @keyframes loaderAnim { to { opacity: 1; transform: scale3d(0.5,0.5,1); } } a { text-decoration: none; color: var(--color-link); outline: none; cursor: pointer; } a:hover { color: var(--color-link-hover); outline: none; } /* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */ a:focus { /* Provide a fallback style for browsers that don't support :focus-visible */ outline: none; background: lightgrey; } a:focus:not(:focus-visible) { /* Remove the focus indicator on mouse-focus for browsers that do support :focus-visible */ background: transparent; } a:focus-visible { /* Draw a very noticeable focus style for keyboard-focus on browsers that do support :focus-visible */ outline: 2px solid red; background: transparent; } .unbutton { background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; } .unbutton:focus { outline: none; } main { counter-reset: section; } .splitting .word { white-space: nowrap; } .frame { position: fixed; top: 0; left: 0; width: 100%; color: var(--color-title); padding: var(--page-padding); font-size: 13px; font-weight: 400; background: linear-gradient(to bottom, var(--color-bg), transparent); display: grid; grid-template-columns: 100%; grid-template-areas: 'title' 'demos' 'credits' 'sponsor'; justify-content: start; align-content: space-between; align-items: start; z-index: 100; pointer-events: none; grid-gap: 0.5rem; font-style: normal; font-family: area-normal,-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif; } .frame a { pointer-events: auto; } .frame a:not(.frame__demo) { white-space: nowrap; overflow: hidden; position: relative; } .frame a:not(.frame__demo)::before { content: ''; height: 1px; width: 100%; background: currentColor; position: absolute; top: 90%; transition: transform 0.3s; transform-origin: 0% 50%; } .frame a:not(.frame__demo):hover::before { transform: scaleX(0); transform-origin: 100% 50%; } .frame__title { grid-area: title; display: flex; align-items: flex-end; } .frame strong { font-weight: 800; } .frame__title-main { font-size: inherit; margin: 0; font-weight: inherit; } .frame__demos { grid-area: demos; display: grid; grid-auto-flow: column; justify-content: start; gap: 1rem; } .frame__demo { padding: 0.25rem 0.5rem 0.45rem; line-height: 1; text-align: center; min-width: 1.55rem; } .frame__demo--current { font-weight: bold; border: 1px solid; border-radius: 50%; color: var(--color-link-hover); } .frame__credits { grid-area: credits; display: flex; gap: 1rem; } .intro { height: 100vh; display: grid; grid-template-rows: 1fr auto; align-content: space-around; padding: var(--page-padding); } .intro__title { font-size: clamp(2rem,7vw,5rem); line-height: 1; margin: auto 0; position: relative; } .intro__title--medium { font-size: clamp(2rem,9vw,6rem); } .intro__title--big { font-size: clamp(2rem,11vw,8rem); } .text-gradient { background: linear-gradient(33deg, #4f361685 0%,rgb(231 217 185 / 68%) 100%); background-size: cover; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; } .text-centered { text-align: center; } .text-right { text-align: right; } .centered { margin-right: auto; margin-left: auto; } .intro__info { position: relative; max-width: 250px; opacity: 0.6; line-height: 1.2; margin-bottom: 1rem; padding: 1rem; align-self: end; } .intro__info::after { content: ''; position: absolute; left: 0%; width: 1px; height: 200vh; background: linear-gradient(to bottom,var(--color-text),transparent); top: 0; } .intro__info.centered::after { height: 4rem; left: 50%; top: 100%; } .broad.intro__info::after { width: 3px; left: calc(50% - 3px); } .larger { font-size: 1.5rem; } .content { width: 100vw; position: relative; padding: var(--page-padding); padding-top: 50vh; } .content--left { padding-left: 3rem; } .upper { text-transform: uppercase; } .content__title { font-size: clamp(1.5rem,3.5vw,4rem); line-height: 1.2; max-width: 1000px; } .narrow { max-width: 800px; } .w400 { font-weight: 400; } .w600 { font-weight: 600; } .content__title--smaller { font-size: clamp(1rem,2.75vw,3rem); } .content__text { max-width: 600px; margin: 0; } .content__text--small { font-weight: 600; font-size: 13px; } .heart::before { content: '❤'; position: absolute; width: 100%; left: 0; top: 130%; text-align: center; font-size: 65vh; -webkit-text-stroke: 1px var(--color-text); text-stroke: 1px var(--color-text); opacity: 0.5; -webkit-text-fill-color: transparent; text-fill-color: transparent; color: transparent; } @media screen and (min-width: 53em) { :root { --page-padding: 1.5rem 1.5rem; } .frame { background: none; height: 100vh; grid-gap: 2rem; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; grid-template-areas: 'title demos sponsor' '... ... credits'; } .frame__demos, .frame__credits { justify-self: end; } }