// Body scroll lock when nav is open body.no-scroll { overflow: hidden; } @media (max-width: 930px) { // ---- HEADER ---- body > header { position: fixed; height: 3.5rem; overflow: hidden; transition: height 0.4s ease; box-sizing: border-box; padding: 1rem var(--padding-body); nav { display: flex; flex-wrap: wrap; align-items: center; height: 100%; .nav-logo { display: block; font-size: 1rem; order: 1; } .burger { order: 2; margin-left: auto; width: 2rem; height: 2rem; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.4rem; span { display: block; width: 100%; height: 1.5px; background-color: #fff; transition: transform 0.3s ease, opacity 0.3s ease; } } ul { order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 3rem; opacity: 0; transition: opacity 0.3s ease 0.1s; li { width: 100%; a { display: block; padding: 0.5rem 0; } } li:first-child { width: 100%; font-size: 2.5rem; margin-bottom: 1rem; a { font-family: var(--font-narrow); text-transform: uppercase; font-weight: 700; } } li:not(:first-child) { font-family: var(--font-narrow); font-size: 2rem; text-transform: uppercase; font-weight: 700; } } } // ---- OPEN STATE ---- &.nav-open { height: 100vh; height: 100dvh; nav { .burger span:first-child { transform: rotate(45deg) translateY(0.2rem); } .burger span:last-child { transform: rotate(-45deg) translateY(-0.2rem); } ul { opacity: 1; } } } } // Compensate fixed header main { padding-top: 3.5rem; } // ---- HERO ---- section#hero { height: auto; min-height: 60vh; text-align: center; align-items: center; padding: 4rem var(--padding-body) 3rem; .title { font-size: 4rem; } .subtitle { margin-bottom: 2rem; } #preorder-button { position: static; } } // ---- QUOTES ---- section#quote-full, section#quote { padding: 4rem var(--padding-body); blockquote { font-size: 1.5rem; } } // ---- THE BOOK ---- section#the-book { padding: 4rem var(--padding-body); .summary-wrapper { grid-template-columns: 1fr; gap: 2rem; .title-wrapper .title { font-size: 2.5rem; } } .data-wrapper { flex-wrap: wrap; gap: 1.5rem; justify-content: center; .data { width: 40%; } } .claim-wrapper { grid-template-columns: 1fr; gap: 2rem; img { border-radius: var(--radius-section); } .text .big { font-size: 1.75rem; } } } // ---- EXCERPTS ---- section#excerpts { padding: 4rem var(--padding-body); header .title { font-size: 2.5rem; } .swiper-slide .item { width: 100%; max-width: 20rem; text-align: center; } } // ---- HANDLES ---- section#handles { margin: 3rem var(--padding-body); header { flex-direction: column; align-items: flex-start; gap: 1rem; .title-wrapper .title { font-size: 2.5rem; } .subtitle { margin-right: 0; } } .path { width: 100%; margin-top: 3rem; .step { width: 100%; } .step:nth-child(even) { margin-left: 0; } } } // ---- SYSTEM ---- section#system { flex-direction: column; margin: 3rem var(--padding-body); gap: 3rem; .text { max-width: 100%; height: auto; .title { font-size: 2.5rem; } .bottom { margin-top: 2rem; } } figure { width: 100%; height: auto; } } // ---- EXCERPT (single) ---- section#excerpt { padding: 4rem var(--padding-body); .wrapper { width: 100%; .chapter-title { font-size: 2rem; } } } // ---- AUTHOR ---- section#author { flex-direction: column; padding: 4rem var(--padding-body); align-items: center; img { width: 100%; height: auto; margin-right: 0; margin-bottom: 3rem; } .text { width: 100%; .author-name { font-size: 2.5rem; margin-bottom: 2rem; } } } // ---- BUY ---- section#buy { flex-direction: column; padding: 4rem var(--padding-body); align-items: center; gap: 3rem; .text { width: 100%; margin-left: 0; .title { font-size: 2.5rem; } .buy-links { margin-top: 2.5rem; } } img { width: 100%; height: auto; } } // ---- FOOTER ---- body > footer { padding: 3rem var(--padding-body); header .title { font-size: 2.5rem; } .contact { width: 100%; flex-direction: column; gap: 2rem; margin-top: 3rem; } .legal { width: 100%; margin-top: 3rem; } } }