2022-10-19 20:22:49 +02:00
|
|
|
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600&display=swap");
|
|
|
|
|
2022-10-04 11:19:15 +02:00
|
|
|
/*
|
|
|
|
* Sizing
|
|
|
|
* Desktop: 1440x800
|
|
|
|
* Mobile: 375x800
|
|
|
|
*/
|
|
|
|
|
|
|
|
*,
|
|
|
|
::after,
|
|
|
|
::before {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
:root {
|
|
|
|
/* Colors */
|
|
|
|
|
|
|
|
--col-primary-desaturated-red: hsl(0, 36%, 70%);
|
|
|
|
--col-primary-soft-red: hsl(0, 93%, 68%);
|
|
|
|
--col-neutral-dark-grayish-red: hsl(0, 6%, 24%);
|
|
|
|
|
2022-10-19 20:22:49 +02:00
|
|
|
--gradient-white: linear-gradient(
|
|
|
|
135deg,
|
|
|
|
hsl(0, 0%, 100%) 0%,
|
|
|
|
hsl(0, 100%, 98%) 100%
|
|
|
|
);
|
2022-10-19 20:44:53 +02:00
|
|
|
--gradient-pink: linear-gradient(
|
2022-10-19 20:22:49 +02:00
|
|
|
135deg,
|
|
|
|
hsl(0, 80%, 86%) 0%,
|
|
|
|
hsl(0, 74%, 74%) 100%
|
|
|
|
);
|
|
|
|
|
2022-10-19 20:44:53 +02:00
|
|
|
--gradient-pink-hover: linear-gradient(
|
2022-10-19 20:22:49 +02:00
|
|
|
135deg,
|
|
|
|
hsl(0, 80%, 86%) 0%,
|
2022-10-20 00:05:01 +02:00
|
|
|
hsl(0, 76%, 90%) 100%
|
2022-10-19 20:22:49 +02:00
|
|
|
);
|
2022-10-04 11:19:15 +02:00
|
|
|
|
|
|
|
/* Typography */
|
|
|
|
|
2022-10-19 20:22:49 +02:00
|
|
|
--fw-300: 300;
|
|
|
|
--fw-400: 400;
|
|
|
|
--fw-600: 600;
|
|
|
|
|
|
|
|
--fs-header: 2.5rem;
|
|
|
|
--lh-header: 105%;
|
|
|
|
--ls-header: 0.6769rem;
|
|
|
|
|
|
|
|
--fs-body: 0.875rem;
|
|
|
|
--lh-body: 157%;
|
|
|
|
--fw-body: var(--fw-400);
|
|
|
|
--col-body: var(--col-primary-desaturated-red);
|
|
|
|
|
|
|
|
--fs-field: 0.875rem;
|
|
|
|
--lh-field: 200%;
|
|
|
|
--fw-field: var(--fw-400);
|
|
|
|
--col-field: var(--col-primary-desaturated-red);
|
|
|
|
|
|
|
|
--fs-error: 0.8125rem;
|
|
|
|
--lh-error: 100%;
|
|
|
|
--fw-error: var(--fw-400);
|
|
|
|
--col-error: var(--col-primary-soft-red);
|
2022-10-04 11:19:15 +02:00
|
|
|
/* Sizing */
|
2022-10-20 00:05:01 +02:00
|
|
|
|
|
|
|
--border-radius: 1.75rem;
|
|
|
|
|
|
|
|
--adjustment-left-field-and-error: 1.5rem;
|
2022-10-04 11:19:15 +02:00
|
|
|
}
|
2022-10-19 20:22:49 +02:00
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: "Josefin Sans", sans-serif;
|
|
|
|
height: 100vh;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
background: var(--gradient-white);
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
max-width: 31.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
2022-10-20 00:05:01 +02:00
|
|
|
margin: 1.875rem 2rem 2rem 2rem;
|
2022-10-19 20:22:49 +02:00
|
|
|
grid-area: "logo";
|
|
|
|
}
|
|
|
|
|
|
|
|
.body {
|
|
|
|
grid-area: "body";
|
|
|
|
|
|
|
|
margin: 4rem 2rem 5.75rem 2rem;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.body__header {
|
|
|
|
font-size: var(--fs-header);
|
|
|
|
font-weight: var(--fw-300);
|
|
|
|
line-height: var(--lh-header);
|
|
|
|
letter-spacing: var(--ls-header);
|
|
|
|
color: var(--col-primary-desaturated-red);
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
|
|
|
.body__header span {
|
|
|
|
color: var(--col-neutral-dark-grayish-red);
|
|
|
|
font-weight: var(--fw-600);
|
|
|
|
}
|
|
|
|
|
|
|
|
.body__text {
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
|
|
|
font-size: var(--fs-body);
|
|
|
|
line-height: var(--lh-body);
|
2022-10-20 00:05:01 +02:00
|
|
|
font-weight: var(--fw-body);
|
2022-10-19 20:22:49 +02:00
|
|
|
color: var(--col-body);
|
|
|
|
}
|
|
|
|
|
|
|
|
.hero-picture {
|
|
|
|
grid-area: "hero-image";
|
|
|
|
justify-self: end;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hero-picture img {
|
|
|
|
vertical-align: bottom;
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
width: 6.25rem;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
|
|
|
|
.email-form {
|
2022-10-20 01:01:07 +02:00
|
|
|
margin: 0 auto;
|
2022-10-19 20:22:49 +02:00
|
|
|
margin-top: 2rem;
|
2022-10-20 01:01:07 +02:00
|
|
|
/* position: relative; */
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
border: 1px solid var(--col-field);
|
|
|
|
text-align: center;
|
|
|
|
width: 31ch;
|
|
|
|
border-radius: var(--border-radius);
|
2022-10-19 20:22:49 +02:00
|
|
|
}
|
|
|
|
.email-form__input {
|
2022-10-20 01:01:07 +02:00
|
|
|
/* width: 30ch; */
|
2022-10-19 20:22:49 +02:00
|
|
|
font-size: var(--fs-field);
|
|
|
|
line-height: var(--lh-field);
|
2022-10-20 00:05:01 +02:00
|
|
|
font-weight: var(--fw-field);
|
|
|
|
padding: 0.625rem 0 0.625rem var(--adjustment-left-field-and-error);
|
2022-10-20 01:01:07 +02:00
|
|
|
border: none;
|
2022-10-19 20:22:49 +02:00
|
|
|
background: inherit;
|
2022-10-20 01:01:07 +02:00
|
|
|
width: 100%;
|
2022-10-19 20:22:49 +02:00
|
|
|
color: var(--col-neutral-dark-grayish-red);
|
2022-10-20 00:05:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.error-border {
|
|
|
|
border: 1px solid var(--col-error);
|
2022-10-19 20:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
::placeholder {
|
|
|
|
color: var(--col-field);
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.email-form__button-submit {
|
2022-10-20 01:01:07 +02:00
|
|
|
/* position: absolute; */
|
2022-10-20 00:05:01 +02:00
|
|
|
padding: 0.8125rem 1.6938rem 0.8125rem 1.75rem;
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
box-shadow: 0px 0.9375rem 1.25rem rgba(198, 110, 110, 0.247569);
|
2022-10-19 20:44:53 +02:00
|
|
|
background: var(--gradient-pink);
|
2022-10-20 01:01:07 +02:00
|
|
|
/* right: 0; */
|
2022-10-19 20:22:49 +02:00
|
|
|
border: none;
|
2022-10-20 01:01:07 +02:00
|
|
|
margin-left: 0.5rem;
|
2022-10-19 20:22:49 +02:00
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2022-10-20 00:05:01 +02:00
|
|
|
.email-form__button-submit:where(:hover, :focus) {
|
|
|
|
background: var(--gradient-pink-hover);
|
2022-10-19 20:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.email-form__error-message {
|
|
|
|
color: var(--col-error);
|
|
|
|
font-size: var(--fs-error);
|
2022-10-20 00:05:01 +02:00
|
|
|
font-weight: var(--fw-error);
|
2022-10-19 20:22:49 +02:00
|
|
|
text-align: left;
|
2022-10-20 00:05:01 +02:00
|
|
|
margin-left: var(--adjustment-left-field-and-error);
|
2022-10-19 20:22:49 +02:00
|
|
|
|
2022-10-20 00:05:01 +02:00
|
|
|
margin-top: 0.5rem;
|
2022-10-19 20:22:49 +02:00
|
|
|
}
|
|
|
|
|
2022-10-20 01:01:07 +02:00
|
|
|
.email-form__error-icon {
|
|
|
|
opacity: 0;
|
|
|
|
height: 100%;
|
|
|
|
align-self: center;
|
|
|
|
/* width: */
|
|
|
|
}
|
|
|
|
|
2022-10-19 20:22:49 +02:00
|
|
|
.error-hidden {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2022-10-20 00:05:01 +02:00
|
|
|
.error-visible {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2022-10-19 20:22:49 +02:00
|
|
|
/* Screen Reader only */
|
|
|
|
.visually-hidden {
|
|
|
|
border: 0;
|
|
|
|
clip: rect(0 0 0 0);
|
|
|
|
clip-path: inset(50%);
|
|
|
|
height: auto;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2022-10-20 00:05:01 +02:00
|
|
|
@media screen and (min-width: 62.5rem) {
|
2022-10-19 20:22:49 +02:00
|
|
|
:root {
|
|
|
|
--fs-header: 4rem;
|
|
|
|
--lh-header: 100%;
|
|
|
|
--ls-header: 1.0825rem;
|
|
|
|
|
|
|
|
--fs-body: 1rem;
|
|
|
|
--lh-body: 175%;
|
|
|
|
|
|
|
|
--fs-field: 1rem;
|
|
|
|
--lh-field: 175%;
|
|
|
|
|
|
|
|
--lh-error: 215%;
|
2022-10-20 00:05:01 +02:00
|
|
|
|
|
|
|
--adjustment-left-field-and-error: 2rem;
|
2022-10-19 20:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2022-10-20 00:05:01 +02:00
|
|
|
background: var(--gradient-white);
|
2022-10-19 20:22:49 +02:00
|
|
|
|
2022-10-20 00:05:01 +02:00
|
|
|
margin: auto;
|
2022-10-19 20:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
2022-10-20 00:05:01 +02:00
|
|
|
background-image: url(../images/bg-pattern-desktop.svg);
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
max-width: 90rem;
|
2022-10-19 20:22:49 +02:00
|
|
|
display: grid;
|
2022-10-20 00:05:01 +02:00
|
|
|
|
2022-10-19 20:22:49 +02:00
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
grid-template-rows: 20% 80%;
|
|
|
|
grid-template-areas:
|
|
|
|
"logo hero-image"
|
|
|
|
"body hero-image";
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
margin: unset;
|
|
|
|
align-self: center;
|
2022-10-20 00:05:01 +02:00
|
|
|
margin-left: 10.375rem;
|
2022-10-19 20:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
width: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hero-picture {
|
|
|
|
margin: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
.body {
|
|
|
|
margin: unset;
|
|
|
|
align-items: baseline;
|
2022-10-20 00:05:01 +02:00
|
|
|
margin-top: 4.5rem;
|
|
|
|
margin-left: 10.3125rem;
|
2022-10-19 20:22:49 +02:00
|
|
|
text-align: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.body__header span {
|
|
|
|
line-height: 111%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.body__text {
|
2022-10-20 00:05:01 +02:00
|
|
|
margin-top: 1.125rem;
|
2022-10-19 20:22:49 +02:00
|
|
|
width: 45ch;
|
|
|
|
}
|
|
|
|
|
|
|
|
.email-form {
|
2022-10-20 01:01:07 +02:00
|
|
|
margin: unset;
|
2022-10-19 20:22:49 +02:00
|
|
|
margin-top: 2.5rem;
|
2022-10-20 01:01:07 +02:00
|
|
|
width: 45ch;
|
2022-10-19 20:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.email-form__input {
|
2022-10-20 01:01:07 +02:00
|
|
|
/* width: 80ch; */
|
2022-10-20 00:05:01 +02:00
|
|
|
padding: 0.9375rem 0 0.9375rem var(--adjustment-left-field-and-error);
|
2022-10-19 20:22:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.email-form__button-submit {
|
2022-10-20 00:05:01 +02:00
|
|
|
padding: 1.125rem 2.8188rem 1.125rem 2.875rem;
|
2022-10-20 01:01:07 +02:00
|
|
|
margin-left: 1rem;
|
2022-10-20 00:05:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.email-form__error-message {
|
|
|
|
margin-left: var(--adjustment-left-field-and-error);
|
2022-10-19 20:22:49 +02:00
|
|
|
}
|
|
|
|
}
|