:root {
    --color-primary: #314332;
    --btn-line-size: 200px;
    --line-color-faded: rgba(44, 61, 46, 0.03);
    --line-thickness: 1px; 
    --line-spacing: 10px;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
*, :after, :before {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #bebebe;
    box-sizing: border-box;
}
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #bebebe;
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
}
::-webkit-scrollbar-button, ::-webkit-scrollbar-track-piece {
    display: none;
}
::selection {
    background: var(--color-primary);
    color: #fff;
}

body {
    width: 100%;
    background-color: #DCEAED;
    background-image: repeating-linear-gradient(
        to bottom,
        var(--line-color-faded), 
        var(--line-color-faded) var(--line-thickness), 
        transparent var(--line-thickness), 
        transparent var(--line-spacing)
    );
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-primary);
    position: relative;
}

main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 100px;
}

article {
    max-width: 400px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    background-color: white;
    transform-origin: left center;
    transform: scaleY(0);
    animation: growAnimation 1s ease-out forwards;
    text-align: right;
}

.logo {
    display: block;
    opacity: 0;
    animation: logoMove 1.5s 1 0.55s forwards,
                fadeIn 2s ease-in-out 0.55s forwards;
}

.line {
    margin: 30px 0px;
    width: var(--btn-line-size);
    height: 1px;
    background-color: var(--color-primary);
    animation: growAnimation2 1s ease-in-out backwards;
}

h2 {
    font-size: 1.5rem;    
    animation: titleMove 1.5s 1 0.55s backwards,
                fadeIn 2s ease-in-out 0.55s backwards;
}

h3 {
    animation: fadeIn 1s ease-in-out 2s backwards;
}

address {
    font-size: .8em;
    font-style: italic;
    animation: fadeIn 1s ease-in-out 2.5s backwards;
}
address a {
    color: var(--color-primary);
}

@keyframes logoMove {
    0% {transform: translateY(60px);}
    100% {transform: translateY(0px);}
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes growAnimation {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}
@keyframes growAnimation2 {
    from { opacity: 0; transform: scaleX(0); }
    70% { opacity: 1; }
    to { transform: scaleX(1); }
}

@keyframes titleMove {
    0%   {transform: translateY(-50px);}
    100%   {transform: translateY(0px);}
}

@media (max-width: 980px) {
    main { padding-inline: 20px; }
    article { padding: 25px; }
}