Files
fabiennefoehn/styles.css

918 lines
16 KiB
CSS

:root {
--bg-page: #d5de46;
--bg-light: #f8f7f2;
--bg-dark: #2f3a18;
--bg-lime: #cfdf45;
--text-dark: #364121;
--shadow-card: 0 14px 30px rgba(47, 58, 24, 0.12);
--shadow-panel: 0 24px 60px rgba(20, 22, 16, 0.22);
--font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
--font-weight-regular: 300;
--font-weight-bold: 500;
--font-weight-black: 600;
--radius-button: 999px;
--radius-panel: 28px;
--radius-small: 18px;
--max-width: 1440px;
--section-padding: clamp(2.5rem, 4vw, 5rem);
--section-padding-x: clamp(2rem, 3.3vw, 3.5rem);
--section-padding-y: clamp(3.5rem, 5vw, 5.75rem);
--section-stack-padding-y: clamp(2.5rem, 4vw, 4rem);
--section-head-box-gap: clamp(1.9rem, 2.6vw, 2.6rem);
--grid-gap: 1.6rem;
--content-width-wide: 1320px;
--content-width-narrow: 1040px;
--transition-fast: 180ms ease;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
background: linear-gradient(180deg, #dbe64a 0%, #d0e142 100%);
color: var(--text-dark);
font-family: var(--font-family);
}
body.is-scroll-locked {
overflow: hidden;
}
img {
display: block;
max-width: 100%;
}
button,
a {
font: inherit;
}
h1,
h2,
h3,
p,
a,
button {
font-family: inherit;
}
.page-shell {
min-height: 100vh;
}
.page {
width: min(100%, var(--max-width));
margin: 0 auto;
background: var(--bg-light);
box-shadow: 0 0 0 1px rgba(54, 65, 33, 0.06);
overflow: clip;
}
.section {
position: relative;
}
.section--light {
background: var(--bg-light);
color: var(--text-dark);
}
.section--dark {
background: var(--bg-dark);
color: var(--bg-lime);
}
.section--accent {
background: var(--bg-lime);
color: var(--text-dark);
}
.section__content {
padding: var(--section-padding-y) var(--section-padding-x);
}
.hero,
.about {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero {
grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.88fr);
}
.brand {
width: clamp(200px, 22vw, 320px);
}
.hero__content {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 2.5rem;
min-height: 100%;
padding-top: clamp(2.25rem, 4vw, 3.75rem);
padding-bottom: clamp(2rem, 3.4vw, 3rem);
}
.hero__headline-wrap {
position: relative;
max-width: 32rem;
min-height: 26rem;
padding-top: 6rem;
}
.section-title {
margin: 0;
font-weight: var(--font-weight-black);
letter-spacing: -0.04em;
line-height: 0.92;
text-transform: uppercase;
}
.section-title--hero {
position: relative;
z-index: 2;
max-width: none;
font-size: clamp(4rem, 5.15vw, 5.2rem);
text-align: center;
}
.hero__line {
display: block;
white-space: nowrap;
}
.hero__scribble {
position: absolute;
pointer-events: none;
z-index: 1;
}
.hero__scribble--composite {
width: clamp(420px, 35vw, 560px);
top: -6.2rem;
left: 11rem;
}
.hero__media {
min-height: 660px;
}
.hero__media img,
.about__media img {
width: 100%;
height: 100%;
object-fit: cover;
}
.hero__media img {
object-position: center top;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
width: fit-content;
min-width: 13rem;
padding: 1rem 1.7rem;
border: 0;
border-radius: var(--radius-button);
font-weight: var(--font-weight-bold);
cursor: pointer;
transition: transform var(--transition-fast), box-shadow var(--transition-fast),
background var(--transition-fast);
}
.button:hover,
.button:focus-visible,
.copy-button:hover,
.copy-button:focus-visible,
.contact-flyover__close:hover,
.contact-flyover__close:focus-visible {
transform: translateY(-1px);
}
.button:focus-visible,
.copy-button:focus-visible,
.contact-flyover__close:focus-visible {
outline: 3px solid #ef49ae;
outline-offset: 3px;
}
.button--dark {
background: var(--bg-dark);
color: var(--bg-lime);
box-shadow: var(--shadow-card);
}
.button--light {
margin: 0 auto;
background: var(--bg-light);
color: var(--text-dark);
}
.process,
.focus,
.work {
padding: var(--section-stack-padding-y) var(--section-padding-x);
}
.process {
text-align: center;
}
.section-head {
position: relative;
display: flex;
align-items: flex-start;
justify-content: center;
gap: 1rem;
width: min(100%, var(--content-width-wide));
margin: 0 auto 3rem;
}
.section-head--boxed {
width: fit-content;
margin-bottom: var(--section-head-box-gap);
}
.section-title-lockup {
position: relative;
display: inline-block;
width: fit-content;
}
.section-title {
font-size: clamp(2.6rem, 4.4vw, 4.3rem);
max-width: 10.5ch;
text-align: center;
}
.section-title__line {
display: block;
white-space: nowrap;
}
.section-title__mobile-break {
display: inline;
}
.section-title--process {
max-width: none;
}
.section-title--work {
max-width: none;
white-space: nowrap;
}
.section-title-lockup--work .section-title--work {
position: relative;
z-index: 1;
}
.section-head__accent {
position: absolute;
width: clamp(70px, 9vw, 120px);
margin: 0;
pointer-events: none;
}
.section-title-lockup--process .section-title--process {
position: relative;
z-index: 1;
}
.section-head__accent--process {
top: -5.2rem;
left: calc(100% - 70px);
width: 94px;
}
.section-head__accent--focus {
top: calc(100% - 30px - 0.15rem);
left: 580px;
transform: none;
}
.section-head__accent--work {
top: calc(-2.8rem - 40px);
left: calc(-4.2rem - 70px);
width: clamp(88px, 10vw, 128px);
transform: none;
}
.process__grid,
.focus__grid,
.work__grid {
display: grid;
gap: var(--grid-gap);
}
.process__grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
width: min(100%, var(--content-width-wide));
margin: 0 auto 2.2rem;
}
.card {
border-radius: var(--radius-small);
}
.card-title {
margin: 0;
font-weight: var(--font-weight-black);
text-transform: uppercase;
}
.card-copy {
margin: 0;
font-size: clamp(1rem, 1.08vw, 1.2rem);
line-height: 1.35;
}
.card--process {
background: var(--bg-lime);
color: var(--text-dark);
border: 2px solid rgba(47, 58, 24, 0.9);
padding: 1.5rem 1rem 1.25rem;
box-shadow: var(--shadow-card);
}
.process-card img {
width: 92px;
height: 92px;
margin: 0 auto 1.2rem;
object-fit: contain;
}
.contact-item__value,
.footer__contact a {
margin: 0;
font-weight: var(--font-weight-black);
}
.process-card .card-title {
font-size: clamp(1.05rem, 1.4vw, 1.5rem);
line-height: 1.08;
}
.focus__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
width: min(100%, 640px);
margin: 0 auto;
}
.card--focus {
border: 1.5px solid rgba(47, 58, 24, 0.85);
padding: 1.8rem 1.15rem 1.1rem;
text-align: center;
}
.focus-card__image {
display: grid;
place-items: center;
width: min(54%, 160px);
aspect-ratio: 1;
margin: 0 auto 1.55rem;
}
.focus-card .card-title {
font-size: clamp(1.1rem, 1.35vw, 1.5rem);
line-height: 1.06;
margin-bottom: 0.55rem;
}
.focus-card .card-copy,
.work-card .card-copy,
.about__text p,
.footer__claim p,
.contact-flyover__intro,
.contact-item__label {
margin: 0;
font-size: clamp(1rem, 1.08vw, 1.2rem);
line-height: 1.35;
}
.about__media {
min-height: 650px;
}
.about__content {
display: flex;
flex-direction: column;
justify-content: center;
padding-left: calc(var(--section-padding-x) + 2.5rem - 80px);
}
.about__content .section-head {
position: relative;
justify-content: flex-start;
margin-bottom: 2rem;
margin-left: 5.25rem;
}
.about__content .section-head .section-title-lockup--about {
position: relative;
display: inline-block;
}
.about__content .section-head .section-title {
position: relative;
z-index: 1;
text-align: left;
max-width: none;
}
.section-head__accent--about {
position: absolute;
top: calc(0.4rem + 30px);
left: calc(-7.5rem - 10px);
z-index: 0;
margin: 0;
}
.about__content .section-head img {
width: clamp(88px, 10vw, 120px);
}
.about__text {
display: grid;
gap: 1.6rem;
max-width: 31rem;
margin-left: calc(10.25rem - 80px);
}
.about__text strong {
font-weight: 900;
}
.work__grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
width: min(100%, var(--content-width-wide));
margin: 0 auto;
}
.work-card {
display: flex;
flex-direction: column;
gap: 0.95rem;
}
.work-card__art {
display: grid;
place-items: center;
min-height: 235px;
padding: 1.4rem;
background: var(--bg-dark);
border-radius: var(--radius-small);
}
.work-card__art img {
max-height: 165px;
width: auto;
}
.work-card .card-title {
font-size: clamp(1.35rem, 1.85vw, 2rem);
}
.footer {
border-top: 12px solid var(--bg-lime);
}
.footer__inner {
display: grid;
grid-template-columns: minmax(240px, 0.95fr) minmax(420px, 1.15fr);
align-items: end;
gap: clamp(2rem, 7vw, 6rem);
min-height: 325px;
padding: clamp(2.8rem, 5vw, 4.6rem) clamp(2.5rem, 6vw, 5rem)
clamp(2rem, 4vw, 3rem);
}
.footer__column {
display: flex;
}
.footer__column--left {
flex-direction: column;
justify-content: space-between;
min-height: 100%;
}
.footer__column--right {
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
min-height: 100%;
}
.footer__brand {
width: clamp(240px, 23vw, 305px);
}
.footer__contact {
display: flex;
flex-direction: column;
gap: 0.12rem;
}
.footer__contact a {
width: fit-content;
color: inherit;
text-decoration: none;
font-size: clamp(1.2rem, 1.95vw, 1.55rem);
font-weight: var(--font-weight-black);
line-height: 1.05;
letter-spacing: -0.04em;
text-transform: uppercase;
}
.footer__claim {
display: flex;
flex-direction: column;
align-items: flex-start;
width: min(100%, 620px);
gap: 0.45rem;
}
.section-title--claim {
font-size: clamp(2.6rem, 4.4vw, 4.3rem);
max-width: none;
line-height: 0.92;
}
.footer__claim p {
margin: 0;
font-size: clamp(1.05rem, 1.3vw, 1.55rem);
font-weight: var(--font-weight-bold);
}
.footer__claim-meta {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.85rem;
width: 100%;
margin-top: 1.6rem;
}
.footer__claim span {
font-size: clamp(1rem, 1.15vw, 1.1rem);
font-weight: var(--font-weight-bold);
}
.footer__wave {
width: clamp(240px, 24vw, 330px);
margin-left: auto;
}
.contact-flyover {
position: fixed;
inset: 0;
z-index: 20;
overflow-y: auto;
overscroll-behavior: contain;
}
.contact-flyover__backdrop {
position: absolute;
inset: 0;
background: rgba(24, 27, 18, 0.44);
backdrop-filter: blur(3px);
}
.contact-flyover__panel {
position: absolute;
top: var(--flyover-top, 2rem);
left: var(--flyover-left, auto);
width: min(420px, calc(100vw - 2rem));
max-height: calc(100vh - 2rem);
overflow-x: hidden;
overflow-y: auto;
padding: 2rem;
border-radius: var(--radius-panel);
background: var(--bg-light);
box-shadow: var(--shadow-panel);
}
.contact-flyover__close {
position: absolute;
top: 0.9rem;
right: 0.9rem;
width: 2.4rem;
height: 2.4rem;
border: 0;
border-radius: 999px;
background: rgba(47, 58, 24, 0.08);
color: var(--text-dark);
cursor: pointer;
}
.contact-flyover__eyebrow {
margin: 0 0 0.4rem;
font-size: 0.95rem;
font-weight: var(--font-weight-bold);
text-transform: uppercase;
letter-spacing: 0.08em;
color: rgba(54, 65, 33, 0.72);
}
.contact-flyover h2 {
margin: 0 0 0.5rem;
font-size: 2rem;
line-height: 0.96;
font-weight: var(--font-weight-black);
text-transform: uppercase;
}
.contact-flyover__list {
display: grid;
gap: 1rem;
margin-top: 1.4rem;
}
.contact-item {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.7rem 1rem;
padding: 1rem;
border-radius: var(--radius-small);
background: #edf1cc;
}
.contact-item__label {
color: rgba(54, 65, 33, 0.7);
}
.contact-item__value {
font-size: 1.15rem;
line-height: 1.1;
grid-column: 1;
min-width: 0;
overflow-wrap: anywhere;
}
.copy-button {
grid-column: 2;
grid-row: 1 / span 2;
display: inline-flex;
align-items: center;
gap: 0.55rem;
padding: 0.8rem 1rem;
border: 0;
border-radius: 999px;
background: var(--bg-dark);
color: var(--bg-light);
white-space: nowrap;
cursor: pointer;
transition: transform var(--transition-fast), background var(--transition-fast);
}
.copy-button svg {
width: 1.15rem;
height: 1.15rem;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
.copy-button.is-copied {
background: #ef49ae;
}
[hidden] {
display: none !important;
}
@media (max-width: 1024px) {
.process__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.work__grid {
grid-template-columns: 1fr;
}
.hero__headline-wrap {
min-height: 24rem;
}
}
@media (max-width: 768px) {
.page {
width: 100%;
}
.hero,
.about,
.footer,
.focus__grid,
.process__grid {
grid-template-columns: 1fr;
}
.section__content,
.process,
.focus,
.work {
padding: 2rem 1.5rem;
}
.brand {
width: 260px;
}
.hero__content {
gap: 1.4rem;
padding-top: 2rem;
padding-bottom: 1rem;
}
.hero__headline-wrap {
min-height: 18rem;
padding-top: 3.4rem;
max-width: none;
}
.section-title--hero {
font-size: clamp(2.35rem, 10.5vw, 3.4rem);
}
.hero__scribble--composite {
width: 320px;
top: -3rem;
left: 50%;
transform: translateX(-50%);
}
.hero__media {
min-height: 0;
padding: 0 1.5rem 1.5rem;
}
.section-head {
justify-content: space-between;
width: 100%;
margin-bottom: 2rem;
}
.section-title-lockup--work {
display: block;
width: fit-content;
}
.section-head__accent--process {
left: calc(100% + 10px);
top: -3.4rem;
width: 77px;
}
.section-head__accent--focus {
top: calc(100% - 18px);
left: calc(100% + 32px);
width: 72px;
}
.section-head__accent--work {
top: calc(-2.4rem - 20px);
left: calc(-0.35rem + 260px);
width: 84px;
transform: scaleX(-1);
}
.section-head__accent--about {
top: calc(100% - 12px);
left: 170px;
width: 72px;
transform: scaleX(-1);
}
.section-title,
.about__content .section-head .section-title {
text-align: left;
font-size: clamp(1.9rem, 8.4vw, 2.8rem);
}
.section-title__mobile-break {
display: block;
}
.section-head img {
width: 72px;
}
.process-card {
padding: 1.4rem 1rem 1.2rem;
}
.process-card img {
width: 96px;
height: 96px;
}
.focus__grid {
width: 100%;
}
.about__media {
min-height: 0;
order: -1;
}
.about__content {
padding-left: 1.5rem;
}
.about__content .section-head {
margin-left: 0;
}
.about__text {
margin-left: 0;
}
.about__media img {
aspect-ratio: 4 / 5;
}
.work-card__art {
min-height: 220px;
}
.footer__claim {
width: 100%;
}
.footer__claim h2 {
font-size: clamp(2.15rem, 9.4vw, 3rem);
}
.footer__inner {
grid-template-columns: 1fr;
gap: 2rem;
min-height: auto;
padding-top: 2.6rem;
padding-bottom: 2rem;
}
.footer__column--left,
.footer__column--right {
min-height: auto;
}
.footer__brand {
width: min(260px, 72vw);
}
.footer__contact {
gap: 0.5rem;
}
.footer__claim-meta {
align-items: flex-start;
margin-top: 1.15rem;
}
.footer__wave {
width: 180px;
margin-top: 0.5rem;
margin-left: 0;
}
.contact-flyover__panel {
top: var(--flyover-top, auto);
right: auto;
bottom: 1rem;
left: 1rem;
width: auto;
max-height: calc(100dvh - 2rem);
padding: 1.5rem;
}
.contact-item {
grid-template-columns: 1fr;
}
.copy-button {
grid-column: 1;
grid-row: auto;
justify-content: center;
}
}