All checks were successful
Deploy / Deploy to Production (push) Successful in 13s
- featured-text: add .with-image variant (20rem image + peach gradient via inline CSS vars) - poster-slider: add .colored variant (blue bg + pink color via inline CSS vars), center titles always, switch buttons to mask-image for CSS color theming, refactor JS to support multiple independent sliders with initialSlide derived from actual slide count Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
422 lines
No EOL
9 KiB
CSS
422 lines
No EOL
9 KiB
CSS
@font-face {
|
|
font-family: "Special Gothic";
|
|
src: url("../fonts/SpecialGothic-VariableFont_wdth,wght.ttf") format("truetype");
|
|
font-weight: 100 900;
|
|
font-stretch: 75% 125%;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: "Times NR MT Std";
|
|
src: url("../fonts/TimesNRMTStd-Medium.otf") format("opentype");
|
|
font-weight: 500;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
button {
|
|
border: none;
|
|
background-color: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
p,
|
|
a,
|
|
figcaption,
|
|
ul,
|
|
blockquote,
|
|
figure {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
li {
|
|
list-style-type: none;
|
|
}
|
|
|
|
img {
|
|
width: 100%;
|
|
height: auto;
|
|
-o-object-fit: contain;
|
|
object-fit: contain;
|
|
}
|
|
|
|
:root {
|
|
--space-body: 2rem;
|
|
--color-yellow: rgba(250, 255, 101, 1);
|
|
--color-green: #33ffb0;
|
|
--color-blue: #1a4ad6;
|
|
--color-purple: #7029ff;
|
|
--color-pink: rgba(255, 194, 249, 1);
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
body {
|
|
font-family: "Special Gothic", sans-serif;
|
|
}
|
|
|
|
figure {
|
|
display: block;
|
|
}
|
|
|
|
img,
|
|
video {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 2.25rem;
|
|
font-weight: 500;
|
|
font-stretch: 75%;
|
|
}
|
|
|
|
p {
|
|
font-stretch: 110%;
|
|
font-weight: 470;
|
|
}
|
|
|
|
body > header {
|
|
position: relative;
|
|
z-index: 4;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 var(--space-body);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
}
|
|
body > header .logo path {
|
|
fill: #000 !important;
|
|
}
|
|
body > header button.burger {
|
|
display: block;
|
|
position: relative;
|
|
width: 5rem;
|
|
height: 4rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
body > header button.burger .burger__line,
|
|
body > header button.burger .burger__line::before,
|
|
body > header button.burger .burger__line::after {
|
|
display: block;
|
|
width: 100%;
|
|
height: 1px;
|
|
background-color: #000;
|
|
}
|
|
body > header button.burger .burger__line::before, body > header button.burger .burger__line::after {
|
|
left: 0;
|
|
position: absolute;
|
|
content: "";
|
|
}
|
|
body > header button.burger .burger__line::before {
|
|
top: 1.2rem;
|
|
}
|
|
body > header button.burger .burger__line::after {
|
|
top: 2.8rem;
|
|
}
|
|
|
|
main > section.hero {
|
|
height: 100vh;
|
|
background-image: url("/assets/images/hero.svg");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
main > section.hero .text {
|
|
color: #7029ff;
|
|
padding: 0 var(--space-body);
|
|
}
|
|
main > section.hero .text .intro {
|
|
font-size: 2.1875rem;
|
|
font-stretch: 110%;
|
|
}
|
|
main > section.hero .text .title {
|
|
font-size: 8.75rem;
|
|
font-stretch: 75%;
|
|
font-weight: 470;
|
|
}
|
|
|
|
main > section.featured-text {
|
|
height: 50vh;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
main > section.featured-text h3 {
|
|
font-size: 1rem;
|
|
font-stretch: 110%;
|
|
font-weight: 470;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
main > section.featured-text .main {
|
|
font-family: "Times NR MT Std", "Times New Roman", serif;
|
|
font-size: 2.1875rem;
|
|
text-align: center;
|
|
width: min(60rem, 90vw);
|
|
margin: 1.5rem 0;
|
|
}
|
|
main > section.featured-text.colored {
|
|
background: var(--background);
|
|
color: var(--color);
|
|
}
|
|
main > section.featured-text figcaption {
|
|
font-family: "Special Gothic", sans-serif;
|
|
text-align: center;
|
|
font-weight: 470;
|
|
font-stretch: 110%;
|
|
}
|
|
main > section.featured-text.with-image {
|
|
height: auto;
|
|
padding: 4rem 0;
|
|
}
|
|
main > section.featured-text.with-image figure {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
main > section.featured-text.with-image figure img {
|
|
height: 40rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
main > section.two-columns {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
-moz-column-gap: 2rem;
|
|
column-gap: 2rem;
|
|
margin: 5rem 0;
|
|
}
|
|
main > section.two-columns .column {
|
|
max-height: 90vh;
|
|
}
|
|
main > section.two-columns .column figure {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
main > section.two-columns .column.text-column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
padding-right: var(--space-body);
|
|
}
|
|
main > section.two-columns .column.text-column .text {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: end;
|
|
}
|
|
main > section.two-columns .column.text-column .text h4 {
|
|
width: 100%;
|
|
font-stretch: 110%;
|
|
font-weight: 470;
|
|
margin-bottom: 2rem;
|
|
}
|
|
main > section.two-columns .column.text-column .text p:not(:last-child) {
|
|
margin-bottom: 1rem;
|
|
}
|
|
main > section.two-columns .column.text-column .text > *:not(h4, button.read-more) {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
padding-left: 20%;
|
|
}
|
|
main > section.two-columns .column.text-column .text button.read-more {
|
|
box-sizing: border-box;
|
|
align-self: flex-start;
|
|
margin-left: 20%;
|
|
margin-top: 2rem;
|
|
padding: 0.75rem 7.5vw;
|
|
border: 1px solid #000;
|
|
border-radius: 3rem;
|
|
font-stretch: 110%;
|
|
font-weight: 470;
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
main > section.two-columns .column.text-column .text button.read-more:hover {
|
|
background-color: var(--color-purple);
|
|
color: var(--color-pink);
|
|
}
|
|
main > section.two-columns .column.text-column .text blockquote p {
|
|
border-left: 1px solid #000;
|
|
padding-left: 0.8rem;
|
|
}
|
|
main > section.two-columns .column.text-column.left-column {
|
|
margin-left: var(--space-body);
|
|
}
|
|
main > section.two-columns .column.text-column.right-column {
|
|
margin-right: var(--space-body);
|
|
}
|
|
main > section.two-columns .column.extra:not(.two-columns.open .extra) {
|
|
display: none;
|
|
}
|
|
|
|
section.video {
|
|
padding: 20vh var(--space-body);
|
|
display: grid;
|
|
grid-template-columns: 1fr 4fr;
|
|
-moz-column-gap: 1rem;
|
|
column-gap: 1rem;
|
|
}
|
|
section.video .text-column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
section.timeline {
|
|
background: linear-gradient(180deg, #b5ffda 80%, #33ffb0 100%);
|
|
padding: calc(var(--space-body) * 2) var(--space-body);
|
|
overflow-x: scroll;
|
|
}
|
|
section.timeline .time {
|
|
display: flex;
|
|
}
|
|
section.timeline .time .year {
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
position: relative;
|
|
min-width: 21rem;
|
|
}
|
|
section.timeline .time .year::before {
|
|
content: "";
|
|
width: 1rem;
|
|
height: 1rem;
|
|
border-radius: 100%;
|
|
background-color: var(--color-yellow);
|
|
position: absolute;
|
|
bottom: 3.45rem;
|
|
left: -0.5rem;
|
|
}
|
|
section.timeline .time .year h4 {
|
|
font-family: "Special Gothic", sans-serif;
|
|
font-size: 2.1875rem;
|
|
font-stretch: 75%;
|
|
font-weight: 700;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid #000;
|
|
}
|
|
section.timeline .time .year .events {
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
gap: 2rem;
|
|
border-left: 1px solid #000;
|
|
padding-left: 0.8rem;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
section.timeline .time .year .events .event {
|
|
width: 17rem;
|
|
}
|
|
section.timeline .time .year .events .event h5 {
|
|
text-transform: uppercase;
|
|
font-weight: 700;
|
|
font-size: 1.5rem;
|
|
font-stretch: 75%;
|
|
}
|
|
section.timeline .controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 20vw;
|
|
margin: auto;
|
|
margin-top: 3rem;
|
|
width: -moz-fit-content;
|
|
width: fit-content;
|
|
}
|
|
section.timeline .controls button:last-child {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
section.poster-slider {
|
|
padding: calc(var(--space-body) * 2) 0;
|
|
}
|
|
section.poster-slider.colored {
|
|
background: var(--background);
|
|
color: var(--color);
|
|
}
|
|
section.poster-slider .poster-slider__title {
|
|
font-family: "Special Gothic", sans-serif;
|
|
font-size: 2.1875rem;
|
|
font-stretch: 75%;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
padding: 0 var(--space-body);
|
|
margin-bottom: 3rem;
|
|
}
|
|
section.poster-slider .poster-swiper {
|
|
height: 60vh;
|
|
padding: 0 9vw;
|
|
}
|
|
section.poster-slider .poster-swiper .swiper-wrapper {
|
|
align-items: flex-end;
|
|
}
|
|
section.poster-slider .poster-swiper .swiper-wrapper .swiper-slide {
|
|
transform: scale(0.9);
|
|
transition: transform 0.3s ease;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
section.poster-slider .poster-swiper .swiper-wrapper .swiper-slide figure {
|
|
aspect-ratio: 3/4;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
section.poster-slider .poster-swiper .swiper-wrapper .swiper-slide.swiper-slide-active {
|
|
transform: scale(1);
|
|
}
|
|
section.poster-slider .controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 20vw;
|
|
margin: 3rem auto 0;
|
|
padding: 0 var(--space-body);
|
|
width: -moz-fit-content;
|
|
width: fit-content;
|
|
}
|
|
section.poster-slider .controls .slide-info {
|
|
text-align: center;
|
|
}
|
|
section.poster-slider .controls .slide-info .title {
|
|
font-family: "Special Gothic", sans-serif;
|
|
font-size: 2.1875rem;
|
|
font-stretch: 75%;
|
|
font-weight: 700;
|
|
}
|
|
section.poster-slider .controls .slide-info .caption {
|
|
font-size: 1rem;
|
|
font-stretch: 110%;
|
|
font-weight: 470;
|
|
}
|
|
section.poster-slider .controls button .btn-icon {
|
|
display: block;
|
|
width: 46px;
|
|
height: 43px;
|
|
-webkit-mask-image: url("../../images/slider-button.svg");
|
|
mask-image: url("../../images/slider-button.svg");
|
|
-webkit-mask-size: contain;
|
|
mask-size: contain;
|
|
-webkit-mask-repeat: no-repeat;
|
|
mask-repeat: no-repeat;
|
|
background-color: var(--color, #000);
|
|
}
|
|
section.poster-slider .controls button.poster-next {
|
|
transform: rotate(180deg);
|
|
}/*# sourceMappingURL=style.css.map */ |