@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mate:ital@0;1&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "slnt" 0;
    font-size: 14px;
    line-height: 20px;
    background: #000 url('/img/noise.webp') center center / 129px 129px repeat scroll;
}

#book {
    max-width: 700px;
    background-color: #000;
    border: 1px solid #1c1c1c;
    padding: 16px;
    margin: 0 auto;
    box-shadow: 0 0 200px rgb(255, 255, 255, 0.2);
}



#hero {
    text-align: center;
    margin: 0 auto;
    max-width: 1200px;
    padding: 32px 32px;
}

#book img {
    width: 100%;
    max-width: 150px;
}

#hero h1 {
    margin: 24px 0;
}

#book p {
    text-align: center;
    margin: 32px 0;
}

#hero u {
    text-decoration: none;
    color: #a855f7;
}

h1,
h2,
h3 {
    font-family: "Mate", serif;
    font-weight: 900;
    font-style: normal;
    line-height: 2.5rem;
    margin-top: 2rem;
}

h1 {
    font-size: 18px;
    line-height: 24px;
}

h2 {
    font-size: 16px;
    line-height: 22px;
}

h3 {
    font-size: 14px;
    line-height: 20px;
}

a {
    color: #a855f7;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 4px;
    border: 1px solid #a855f7;
}

a:hover {
    color: #c17fff
}

p {
    color: #dadada;
    margin-top: 32px;
}

ul,
ol {
    list-style: none;
    margin: 32px 0;
}

ol {
    padding: 1em 2em;
    border-radius: 4px;
    background: #111111 url('/img/noise-light.webp') center center / 129px 129px repeat scroll;
    border: 1px solid #1c1c1c;
}

li {
    color: #dadada;
    margin-bottom: 0.5em;
}

ul li {
    margin-left: 32px;
}

ul li::before {
    content: '';
    display: inline-block;
    height: 30px;
    width: 30px;
    vertical-align: middle;
    background-image: url(/img/checkmark.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: -32px;
}

form {
    margin-top: 32px;
}

input[type="email"] {
    padding: 8px 16px;
    border: 1px solid #fff;
    background-color: #a855f7;
    border-radius: 4px;
    color: #fff;
    width: 100%;
}

input[type="email"]:focus {
    outline: none;
}

input[type="submit"] {
    padding: 8px 16px;
    border: 1px solid #fff;
    background-color: #a855f7;
    border-radius: 4px;
    color: #fff;
    margin-left: 0;
    margin-top: 8px;
    cursor: pointer;
}

a.social {
    border: none;
    padding: 0;
    display: block;
}

a.social::before {
    content: '';
    display: inline-block;
    height: 24px;
    width: 24px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.5rem;
}

a.github::before {
    background-image: url('/img/github.svg');
}

a.huggingface::before {
    background-image: url('/img/huggingface.svg');
}

a.x::before {
    background-image: url('/img/x.svg');
}

ol li {
    padding: 1em 0;
    border-bottom: 1px solid #1c1c1c;
}

ol li span {
    display: none;
    font-size: 16px;
    color: #838383;
    float: right;
}

ol li p {
    font-size: 12px;
    margin-left: 12px;
    line-height: 24px;
    color: #838383;
}

ol li:last-child {
    border-bottom: none;
}

section {
    padding: 32px 32px;
}

.container {
    margin: 0 auto;
    max-width: 800px;
}

section header {
    color: #fff;
    font-size: 16px;
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #fff;
    padding: 4px 16px;
    font-weight: 500;
    margin-bottom: 32px;
}

section header span {
    color: #fff;
    font-family: "Mate", serif;
    font-weight: 900;
    border-right: 1px solid #fff;
    padding-right: 16px;
    margin-right: 16px;
}

#pre-order, #what-is-rag {
    background: url('/img/element.png') #a855f7;
    background-size: 100px;
    background-repeat: no-repeat;
    color: #fff;
    padding: 64px 32px;
}

blockquote p {
    font-size: 14px;
    line-height: 20px;
    font-style: italic;
    margin-bottom: 32px;
}

blockquote footer {
    text-align: right;
    font-weight: 500;
}

#author .author-img {
    width: 100%;
    display: block;
    border-radius: 4px;
    max-width: 300px;
}

#author svg {
    fill: #fff;
    width: 24px;
    height: 24px;
}

.container-grid {
    margin-top: 32px;
    display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.item {
    flex: 1 0 100%; margin: 5px;
    flex-grow: 1;
    position: relative;
    padding: 1em 2em 2.5em 2em;
    border-radius: 4px;
    text-align: center;
    background-color: #1c1c1c;
}

.example-running {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 0 16px;
    border-radius: 4px;
    display: inline-block;
    background-color: #ffffff11;
}

footer {
    padding: 32px 32px;
}

footer p {
    color: #302f2f;
    font-size: 14px;
    text-align: center;
}

.hide-mobile {
    display: none;
}

@media (min-width: 640px) {
    body {
        font-size: 18px;
        line-height: 32px;
    }

    #book {
        padding: 32px;
    }

    #book img {
        width: 100%;
        max-width: 400px;
        margin: 64px 0;
    }
    
    #hero h1 {
        margin: 32px 0;
    }

    #hero {
        padding: 128px 0;
    }

    section {
        padding: 128px 32px;
    }

    h1,
    h2,
    h3 {
        line-height: 2.5rem;
        margin-top: 2rem;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 4rem;
    }

    h2 {
        font-size: 2rem;
        line-height: 3rem;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 2.5rem;
    }

    blockquote p {
        font-size: 24px;
        line-height: 48px;
        margin-bottom: 32px;
    }

    ol li span {
        display: inline;
    }

    ol li p {
        font-size: 16px;
        margin-left: 16px;
    }

    .item {
        flex: 1 0 45%; margin: 5px;
    }

    #pre-order, #what-is-rag {
        background-size: 150px;
        padding: 128px 32px;
    }

    .hide-mobile {
        display: inline;
    }

    input[type="email"] {
        width: 300px;
    }

    input[type="submit"] {
        margin-top: 0;
        margin-left: 8px;
    }
}

@media (min-width: 768px) {}

@media (min-width: 1024px) {
    #pre-order, #what-is-rag {
        background-size: 200px;
    }
}

@media (min-width: 1280px) {
    #pre-order, #what-is-rag {
        background-size: 250px;
    }
}