@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inconsolata/v37/QlddNThLqRwH-OJ1UHjlKENVzkWGVkL3GZQmAwLyxq15Mjs.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
    --bg-primary: #211620;
    --bg-section: #3A2A3A;
    --bg-secondary-button: #7D5F7D;
    --bg-note-highlight: #6B576A;

    --text-main: #E9D5E4;
    --text-muted: #9e8e9d;
    --text-note: #E8C6E1;
    --text-link: #D8A9D1;
    --text-footer: #CEABC8;

    --accent-primary: #B68F9E;
    --accent-vibrant: #EB767F;

    --button-primary-bg: #F2DEEF;
    --button-primary-border: #A87E91;
    --button-inner-border: #A88298;

    --status-dots: #F0D3E8;
    --shadow-dark: #291D28;

    --fs-h1: clamp(2rem, 3.6vw, 4.3rem);
    --fs-h2: clamp(1.3rem, 2.5vw, 2.5rem);
    --fs-desc: clamp(0.325rem, 1vw + 0.4rem, .8rem);
    --fs-watermark: clamp(1.2rem, 1.5vw + 0.8rem, 1.7rem);
    --fs-nav: clamp(0.75rem, 0.75vw + 0.6rem, 0.95rem);
    --fs-body: clamp(0.6rem, 0.5vw + 0.65rem, 1rem);
    --fs-button: clamp(0.6rem, 0.75vw + 0.5rem, 0.8rem);
    --fs-tag: clamp(0.2rem, 0.5vw + 0.45rem, 0.7rem);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inconsolata', monospace;
    background-color: var(--bg-primary);
    color: var(--text-main);
}

body.sidebar-open {
    overflow: hidden;
}

.uppercase {
    text-transform: uppercase;
}

.mark  {
    color: var(--accent-vibrant);
}

.dark-btn {
    color: white !important;
    background-color: var(--shadow-dark) !important;
}

.buttons {
    display: flex;
    column-gap: .8rem;
    row-gap: .5rem;
    flex-wrap: wrap;
}

.buttons a {
    display: inline-flex;
    text-decoration: none;
    text-align: center;
    gap: 1em;
    font-weight: 700;
    font-family: 'Inconsolata', monospace;
    font-size: var(--fs-button);
    padding: .8rem 1.8rem;
    border: 2px solid black;
    background-color: var(--accent-vibrant);
    color: black;
    box-shadow: 4px 4px 0px 0px black;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.buttons a:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px black;
}

/* Header Styles */

header {
    background-color: var(--bg-primary);
    width: 100%;
    position: fixed;
    z-index: 999;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.2rem 1rem;
}

.watermark {
    display: flex;
    align-items: center;
    font-size: var(--fs-watermark);
    font-weight: 700;
    color: var(--text-main);
}

.watermark img {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: .5rem;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);

}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: var(--fs-nav);
    padding: .6rem 1rem;
    transition: all .1s ease-in-out;
}

nav a:hover {
    color: var(--text-link);
    background-color: var(--shadow-dark);
}

.load-bar {
    width: 100%;
    height: 4px;
    background-color: var(--shadow-dark);
    position: absolute;
    bottom: 0;
}

.bar {
    height: 4px;
    background-color: var(--accent-vibrant);
    position: absolute;
    bottom: 0;
}

.mobile-nav {
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 101;

    padding: .4rem;
    border: 2px solid black;
    background-color: var(--accent-vibrant);
    color: black;
    box-shadow: 4px 4px 0px 0px black;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(78vw, 320px);
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.45);
    border-left: 2px solid rgba(0, 0, 0, 0.8);
    transform: translateX(105%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease;
    z-index: 1000;
    padding: 1rem 1rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-header {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
    padding: .9em 1rem;
    border: 2px solid transparent;
    color: var(--text-muted);
    font-weight: 700;
    text-decoration: none;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.02);
}

.sidebar .buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sidebar .buttons a {
    margin-top: .35rem;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}

/* Main Styles */

main {
  background-color: var(--bg-primary);

    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 2px, transparent 2px), 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 2px, transparent 2px);
    ;
    background-size: 56px 56px;
    background-attachment: fixed;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: clamp(50px, 14vw, 180px) 2rem clamp(30px, 3vw, 140px) 2rem;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: 4em;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: calc(1em + .75vw);
}

.hero-content p {
    font-size: var(--fs-body);
    line-height: 1.85;
    font-weight: 700;
    color: var(--text-note);
}

h1 {
    letter-spacing: -.07em;
    word-spacing: -.2em;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    color: var(--text-main);
    font-size: var(--fs-h1);
}

.tags {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.tags span {
    font-size: var(--fs-tag);
    color: var(--text-main);
    padding: .4rem .6rem;
    border: 2px solid black;
    background-color: var(--shadow-dark);
    font-weight: 700;
}

.demo img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0px 0px 20px 0px var(--shadow-dark);
}

section:not(:first-child) {
    border-bottom: 4px black solid;
    background-color: var(--bg-primary);
}

section:not(:first-child) .chapter-desc {
    display: flex;
    justify-content: center;
}

section:not(:first-child) .chapter-desc p {
    text-align: center;
    max-width: max(270px, 50%);
    font-size: var(--fs-desc);
    margin: 0;
    color: var(--text-muted);
}

h2 {
    display: flex;
    flex-direction: column;
    text-align: center;
    letter-spacing: -.07em;
    word-spacing: -.2em;
    margin: 0 0 .8rem 0;
    line-height: 1.1;
    color: var(--text-main);
    font-size: var(--fs-h2);
}

.features-wrapper {
    display: grid;
    gap: 1.5rem;
    margin: calc(2em + 1vw) 0 calc(.5em + .65vw) 0;
}

.feature {
    border: 4px solid black;
    box-shadow: 6px 6px 0px 0px black;
    padding: 2rem;
    background-color: var(--accent-vibrant);
    display: flex;
    flex-direction: column;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.feature:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px 0px black;
}

.feature:hover svg {
    background-color: var(--accent-vibrant);
    stroke: var(--shadow-dark);
}

.feature svg {
    background-color: var(--shadow-dark);
    padding: 10px;
    border: 2px solid black;
    margin: 0 0 1.5em 0;
    transition: all 0.3s ease;
}

.top {
    display: flex;
    justify-content: space-between;
    color: var(--shadow-dark);
    font-size: 10px;
}

.feature p {
    font-size: var(--fs-desc);
    color: var(--bg-section);
    margin: 0;
}

h3 {
    margin: 0 0 .75em 0;
    word-spacing: -.4em;
    color: var(--shadow-dark);
}

.gyik {
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
    margin: 2rem 0 1rem 0;
}

.question {
    background-color: var(--accent-vibrant);
    padding: 20px 24px;
    border: 2px solid black;
    width: 60%;
    cursor: pointer;
    transition: all .2s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.question.open {
    box-shadow: 8px 8px 0px 0px black;
}

.question.open .q-body {
    max-height: 800px;
    opacity: 1;
}

.question.open svg {
    transform: rotate(45deg);
    background-color: var(--accent-vibrant);
    stroke: var(--shadow-dark);
}

.q-head {
    display: flex;
    justify-content: space-between;
    color: var(--shadow-dark);
    word-spacing: -.4em;
    font-weight: 600;
    gap: 8px;
    font-size: calc(.8em + .2vw);
    align-items: center;
}

.q-number {
    color: rgba(0, 0, 0, 0.52);
}

.q-title {
    flex-grow: 1;
}

.question svg {
    background-color: var(--shadow-dark);
    padding: .2rem;
    border: 2px solid black;
    transition: all .3s ease-in-out;
}

.q-body {
    max-height:  0;
    overflow: hidden;
    opacity: 0;
    transition: all .3s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    color: var(--shadow-dark);
    font-size: var(--fs-desc);
    border-left: 2px solid var(--shadow-dark);
    padding-left: 8px;
}

/* Footer */
footer .container {
    padding-top: 60px;
    word-spacing: -.2em;
    font-weight: 600;
}

.f-wrapper {
    display: flex;
    row-gap: 2em;
}

.f-head {
    display: flex;
    flex-basis: 40%;
    padding-right: 10%;
}

.f-head > div {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.f-head {
    font-size: var(--fs-desc);
    color: var(--text-muted);
}

.f-body {
    display: flex;
    gap: 1.3rem;
    flex-basis: 60%;
    margin-bottom: calc(3em + 3vw);
}

.f-title {
    font-size: 1.3em;
    font-weight: 700;
}

.f-body > div {
    width: 80%;
    max-width: 180px;
    font-size: var(--fs-desc);
}

.f-body div div {
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer a {
    color: var(--text-muted);
    text-decoration: underline;
}

hr {
    border: 1px solid var(--accent-vibrant);
}

.f-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
    font-size: var(--fs-desc);
    color: var(--text-muted);
    row-gap: 6px;
}


/* Media Queries */
@media (max-width: 768px) {
    .hero-wrapper {
        max-height: max-content;
        grid-template-columns: 1fr;
    }
    .tags {
        justify-content: center;
    }
    .container {
        padding: calc(20px + 12vw) 1rem;
    }
    #top .container{
        padding: calc(80px + 12vw) 1rem;
    }
    .hero-content .buttons a {
        width: 100%;
        justify-content: center;
    }

    #features p {
        max-width: 100%;
    }

    nav {
        display: none;
    }
    .header-container .buttons {
        display: none;
    }
    .sidebar .buttons {
        display: block;
    }
    .mobile-nav {
        display: flex;
    }

    .question {
        width: 80%;
    }

    .feature svg {
        width: 16px;
        height: 16px;
    }

    .f-wrapper {
        flex-direction: column;
    }
    .f-bottom {
        flex-direction: column;
    }
}

@media (min-width: 640px) {
    .features-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .features-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}