html {
    --side-margin: 60px;
    --section-margin: 150px;
    --badge-margin: 20px;
    --letter-spacing: -2px;
    --main-bg-color: #f8f7f4;
    --mustache-height: 480px;
}

body {
    display: grid;
    grid:   'header'
            'main'
            'features'
            'get-started' 640px
            'faq'
            'see-what-others-overlook' 940px
            'footer'
            ; 
    box-sizing: border-box;
    background-color: var(--main-bg-color);
    font-family: 'Instrument Sans', sans-serif;
    margin: 0;
}

a {
    text-decoration: none;
    color: #000;
}

#header {
    grid-area: header;
}

#header a {
    color: #1e1e1e;
}

#header #header_row {
    margin: 20px var(--side-margin) 0 var(--side-margin);
    background-color: #fff;
    border-radius: 999px;
    display: grid;
    grid:   'header1 header2 header3' / 1fr auto 1fr; 
    align-items: center;
}

#header #header_row > div:nth-child(1) {
    grid-area: header1;
    margin-left: 45px;
}

#header #header_row > div:nth-child(2) {
    grid-area: header2;
}

#header #header_row > div:nth-child(3) {
    grid-area: header3;
    display: flex;
    justify-content: flex-end;
}
#header #header_row > div:nth-child(3) nav {
    padding: 10px 10px 10px 0;
}
.create-account-button {
    border: 1px solid black;
    border-radius: 2em;
    padding: 12px;
    text-align: center;
}


nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
}

nav ul li {
  margin-right: 30px;
}

nav ul li:last-child {
  margin-right: 0;
}

/* main */
#main {
    grid-area: main;
    padding: 100px 0 0 0;
    text-align: center;
    box-sizing: border-box;
    /* margin-bottom: 100px; */
}
#main > div {
    margin-top: 20px;
}
#main > div:nth-child(2) {
    width: 50%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: #4b4b49;
}
#main > div:nth-child(3) {
    margin-top: 40px;
    box-sizing: content-box;
    position: relative;
}
#main > div:nth-child(3) .mustache {
    position: absolute;
    left: 0;
    top: calc((var(--mustache-height) - 20px) / -2);
    z-index: -1;
}
#main > div:nth-child(3) .mustache, #main > div:nth-child(3) .mustache svg {
    width: 100%;
    height: var(--mustache-height);
}

.cap1 {
    font-size: 50px;
    font-weight: 500;
    letter-spacing: var(--letter-spacing);
}
.cap1 em {
    font-weight: 100;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
}
.cap2 {
    font-size: 50px;
    /* font-weight: 200; */
    letter-spacing: var(--letter-spacing);
}
#signup-now-button {
    padding: 12px 22px;
    border-radius: 999px;
    color: #000;
    background-color: #ffc919;
    text-align: center;
}
#signup-now-button svg {
    width: 22px;
    height: 15px;
    vertical-align: -2px;
}

/* features */
#features {
    grid-area: features;
    padding: 0 var(--side-margin);
    display: grid;
    grid-template: repeat(7, 1fr) / repeat(2, 1fr);
    box-sizing: border-box;
    margin-top: var(--section-margin);
}
#features > div {
    padding: 20px 0;
    background-color: transparent;
}
#features > div:nth-child(odd) {
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    padding: 0 10px;
    letter-spacing: -2px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
#features > div:nth-child(even) {
    display: flex;
    align-items: center;
    padding: 30px 10px;
    font-size: 18px;
}
#features > div:nth-child(n+3) {
    border-top: 1px solid #c6c6c3;
}


/* get started */
#get-started {
    grid-area: get-started;
    background: url("/images/chart3.png"), linear-gradient(to right, #fa3f2c, #ffc919);
    background-blend-mode: soft-light;
    background-size: cover;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    margin-top: var(--section-margin);
}
#get-started > div:first-child {
    color: #fff;
    text-align: center;
    font-size: 50px;
    font-weight: 500;
    letter-spacing: var(--letter-spacing);
    width: 75%;
}
#get-started > div:nth-child(n+2) {
    margin-top: 50px;
}
#get-started-button {
    padding: 12px 22px;
    border-radius: 999px;
    color: #000;
    background-color: #fff;
    text-align: center;
    font-weight: 500;
}
#get-started-button svg {
    width: 22px;
    height: 15px;
    vertical-align: -2px;
}

/* FAQ */
#faq {
    grid-area: faq;
    margin: var(--section-margin) var(--side-margin) 0 var(--side-margin);
    text-align: center;
    position: relative;
}
#faq a {
    display: inline-flex;
    width: 60px;
    height: 60px;
    justify-content: center;
    align-items: center;
    background-color: #fef5f4;
    border-radius: 50%;
}
#faq::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translateY(-25%);
    background: radial-gradient(#fa3f2c, #fff);
    filter: blur(150px);
    opacity: 0.20;
    z-index: -1;
}
#faq::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translateY(25%);
    background: radial-gradient(#fa3f2c, #fff);
    filter: blur(150px);
    opacity: 0.25;
    z-index: -1;
}
#faq .red-badge {
    border: 1px solid #fa3f2c;
    border-radius: 999px;
    padding: 10px 18px 10px 18px;
    color: #fa3f2c;
    font-weight: 500;
    background-color: transparent;
    text-align: center;
}
#faq > div:nth-child(2) {
    margin-top: var(--badge-margin)
}
#faq > div:nth-child(3) {
    margin-top: 40px;
    background-color: #fff;
    text-align: left;
    border: 1px solid #cecece;
    border-radius: 25px;
}
#faq > div:nth-child(3) > div {
    display: flex;
    flex-flow: row;
    align-items: center;
    margin: 20px 0;
    padding: 0 20px 0 20px;
}
#faq > div:nth-child(3) > div > div:nth-child(2) {
    flex: 1;
    text-align: right;
}
#faq > div:nth-child(3) > div > div > h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 500;
}
#faq > div:nth-child(3) > hr {
    height: 1px; 
    border: none; 
    background-color: #cecece;
}
#faq > div:nth-child(3) > p {
    color: #4d4d4d;
    padding: 0 100px 20px 20px;
}


/* see what others overlook */
#see-what-others-overlook {
    grid-area: see-what-others-overlook;
    margin: var(--section-margin) 0 0 0;
    text-align: center;
    background-image: url("/images/chart2.png");
    background-repeat: no-repeat;
}
#see-what-others-overlook > div:nth-child(2) {
    margin-top: 20px;
    color: #4b4847;
}
#see-what-others-overlook > div:nth-child(3) {
    margin-top: 40px;
    display: flex;
    flex-flow: row;
    gap: 15px;  
    align-items: center;
    justify-content: center;
}
#see-what-others-overlook input {
    width: 400px; 
    height: 48px; 
    padding: 20px; 
    border-radius: 999px;
    border: 1px solid #d8d8d8;
    font-size: 16px;
    box-sizing: border-box; 
}
#see-what-others-overlook .signup-free-button {
    border-radius: 999px;
    padding: 12px;
    color: #fff;
    background-color: #fa3f2c;
    text-align: center;
}
#see-what-others-overlook .signup-free-button svg {
    width: 22px;
    height: 15px;
    vertical-align: -2px;
    fill: #fff;
}


/* footer */
#footer {
    grid-area: footer;
    background-color: #171717;
}

#footer > div {
    margin-left: var(--side-margin);
    margin-right: var(--side-margin);
}

/* logo */
#footer > div:nth-child(1) {
    margin-top: 40px;
    margin-bottom: 40px;
}

#footer > div:nth-child(2) {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 10px; 
}

#footer > div:nth-child(2) > div:nth-child(1) > p {
    font-size: 18px;
}

#footer > div:nth-child(2) > div:nth-child(1) > ul {
    margin-top: 60px;
    display: flex;
    list-style-type: none;
    padding: 0;
}
#footer > div:nth-child(2) > div:nth-child(1) > ul > li {
    padding-right: 60px;
}

#footer > div:nth-child(2) > div:nth-child(5) img {
    vertical-align: middle;
    margin-right: 5px;
}

#footer h2 {
    color: #fff;
    margin: 0 0 20px 0;
    padding: 0;
    font-weight: 500;
}

#footer p {
    color: #b5b4b2;
    padding: 5px 0 5px 0;
}

#footer hr {
    height: 1px; 
    border: none; 
    background-color: #3b3b3b;
}

#footer a {
    color: #b5b4b2;
}

#copyright {
    padding: 20px 0 20px 0;
}

p {
    margin: 0;
}

#categories .title, #featured-header, #popular-posts .title, #stay-informed .title {
    font-size: 20px;
    font-weight: 500;
}
