/* fonts are loaded from the page head */


#discord-info {
    margin-bottom:40px;
    overflow:auto;
    text-align:center;
}

#discord-info img {
    width:48px;
    border-radius:50%;
    
    padding:3px;
    opacity: 0.8;
    background:#fff;
    margin:4px -10px;
    display:inline-block;
    
}


.coming-soon {
    background:#44b78b;
    height:140px;
    margin-bottom:40px;
    padding:20px 0 0 160px; 
}

.coming-soon .cover {
    width:120px;
    margin-left:20px;
    border-radius:4px;
    margin-top:20px;
    position:absolute;
    left:0;
    top:0;
    box-shadow: 0px 0px 5px #44b78b;

}

.coming-soon .button {
    color:#fff;
    border-color: #fff;
    padding:10px;
}

.coming-soon .button:hover, .coming-soon .button:focus {
    background:#2d916b;
    color:#000;
    border-color: #fff;
}

.block {
    background:#fff;
    color:#0c3c26;
    padding-bottom:40px;
}

p.feat {
    background:#265D48;
    border-radius:4px;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight:400;
    font-style: normal;
    padding:0 20px 0 10px;
    width:auto;
    color:#fff;
}

@media only screen and (max-width: 40.063em) {    
    p.feat {
        font-size:12px;
    }
}
p.feat span {
    float:right;
}

p.feat a, p.feat a:hover {
    color:#fff;
    font-weight:bold;
    font-weight:700;
}

p.feat.alt {
    background:#FA7040;
    border-radius:4px;
}

.block h2 {
    color:#0c3c26;
}

.block.alt {
    background:#0C4B33;
}
.block.alt h2 {
    color:#0C4B33;
}

.block.last {
    background:#265D48;
    padding-bottom:0;
}
.block.last h2 {
    color:#fff:
}

.block.last p {
    color:#fff;
}

.block.last a {
    color:#44B88B;
}
.block.last a:hover {
    color:#47ce9a;
}


body {
    color:#fff;
    font-family:"Roboto", "Helvetica", sans-serif;
    background:#44b78b;
    background-image:url("../img/mesh.5d1405e6ebe7.svg");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position:0 40px;
}

.bg-transition {
    background:#44b78b;
    background:url("../img/wave.39db44648db5.png");
    background-repeat: no-repeat;
    background-position: bottom;
}

@media only screen and (max-width: 40.063em) {
    body {
        background-size: 1000px auto;
        background-position:top right;
    }
}


h1, h2, h3, h4 {
    color:#fff;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight:700;
    font-style: normal;
    letter-spacing: -1px;
}

h1, h2, h3.alt, h4.alt {
    color:#0C4B33;
}

h3.feature {
    color:#44B78B;
    font-size:42px;
    line-height: 1.2;
    margin-bottom:30px;
}

h1 {
    font-size:68px;
    letter-spacing:-2px;
}

h2 {
    font-size:48px;
    margin:60px 0 30px 0;
}

@media only screen and (max-width: 40.063em) {
    h1 {
        font-size:44px;
    }
}


h2.alt {
    color:#0C4B33;
}

.pb20 {
    padding-bottom:20px;
}
.pb20 {
    padding-bottom:40px;
}
.pt20 {
    padding-top:20px;
}
.pt20 {
    padding-top:40px;
}

.stats {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
}

.stats .big {
    font-size:100px;
    font-weight: 700;
    margin:40px 0 0;
    line-height: 1;

}

.stats .big span {
    font-size:42px;
}

@media only screen and (max-width: 40.063em) {
    .stats .big {
        font-size:48px;
    }
}

a {
    color:#0C4B33;
}

a:hover {
    color:#265D48;
}



ul {
    margin:0;
    padding:0;
}

li {
    margin-bottom:10px;
    font-size:14px;
}

em {
    color:#44B78B;
    font-family:Georgia, serif;
}

.tagline {
    color:#fffbb3;
    text-align:justify;
}

.wide {
    width:100%;
}

.grey {
    background:#efefef;
    color:#666;
}

.shadow {
    text-shadow: 0px 0px 14px rgba(0, 0, 0, 0.4);
}

.green {
    color:#2a7c5d;
    padding:20px 0 0 0;
    margin:40px 0;
    overflow:auto;
}

@media only screen and (max-width: 40.063em) {
    .green {
        margin:20px 0;
    }
}

.section-tabs a.button {
    width:100%;
    height:120px;
}

.section-tabs a.button.selected {
    border:2px solid #fff;
    color:#fff;
}

.section-tabs i {
    font-size:30px;
}

@media only screen and (max-width: 40.063em) {
    .section-tabs i {
        font-size:20px;
    }
}


input[type="text"],
input[type="email"] {
    background:#9F3F04;
    color:#fff;
    box-shadow:none;
    border-radius:5px;
    font-size:16px;
    border:0;
    padding:22px;
    margin-top:3px;
}

.block.alt2 {
    background:#FA7040;
    color:#fff;
}
.block.alt2 h2 {
    color:#a34424;
}

#sample-chapter .button {
    height:100%;
    margin-top:2px;
    color:#834213;
    border:2px solid #834213;
}

#sample-chapter .button:hover {
    color:#fff;
    border:2px solid #fff;
}

::-webkit-input-placeholder { color:#ED6E21; }
::-moz-placeholder { color:#ED6E21; } /* firefox 19+ */
:-ms-input-placeholder { color:#ED6E21; } /* ie */
input:-moz-placeholder { color:#ED6E21; }

.button, .button:focus {
    background:#262626;
    font-family:"Roboto", sans-serif;
    text-transform: uppercase;
    border-radius:5px;
}

.button.packt {
    background:#FA7040;
}

.button.small {
    font-size:14px;
}

.button.small img {
    margin-top:6px;
}

.button:hover {
    background:#265D48;
}


@media only screen and (max-width: 40.063em) {
    .flower {
        background:none;
    }
}

.pt40{
    padding-top:40px;
}


.cover img {
    margin-top:40px;
    width:80%;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.3);
    border-radius:4px;
}

img.quote-img {
    border-radius:50%;
    width:72px;
    height:72px;
    margin:20px 0 16px;
}


img.author {
    width:100%;
    margin-top:86px;
    vertical-align: bottom;
}



@media only screen and (max-width: 40.063em) {
    .cover {
        text-align:center;
    }

    img.author {
        margin-bottom:20px;
        vertical-align: top;
    }

}


blockquote {
  quotes: "\201C""\201D""\2018""\2019";
  border:0;
  margin:0;
  padding:0;
  color:#fff;
  background:#272727;
  border-radius:6px;
  padding:40px 20px;
  min-height:190px;
}

blockquote::before {
    color: #F26F1F;
    content: "“";
    font-family:Georgia, serif;
    text-align:left;
    font-size: 4em;
    line-height: 0.1em;
    margin-right: 0.25em;
    vertical-align: -0.4em;
}

.quote-down {
	width:0px;
	height:0px;
	border-left:20px solid transparent;
	border-right:20px solid transparent;
	border-top:20px solid #272727;
    margin-bottom:40px;
    margin:0 auto;
}

blockquote p {
  display: inline;
}

.name {
    color:#666;
    margin-bottom:40px;
}

.chapters {
    margin-top:-20px;
    margin-bottom:40px;
}

.chapter {
    background:#222;
    padding:20px;
    margin-bottom:20px;
    font-size:14px;
    min-height:260px;
    border-radius:4px;
    z-index:1000;
}

.ch-num {
    color: #202020;
    font-family: 'Montserrat', sans-serif;
    font-weight:800;
    font-size:80px;
}


.chapter .title {
    color:#0C4B33;
    font-weight:bold;
    margin-bottom:20px;
    font-size:16px;
    z-index:1000;
}

.chapter p {
    z-index:1000;
}

.slide {
    padding:40px;
}

.book-cover {
    font-size:12px;
}

.book-cover img {
    border-radius:4px;
    width:90%;
}

/* pulse */
.blob {
    display:inline-block;
	background: rgb(51, 207, 75);
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(68, 183, 139, 1);
	margin: 10px;
	height: 18px;
	width: 18px;
	transform: scale(3);
	animation: pulse-green 3s infinite;
}

@keyframes pulse-green {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(57, 225, 82, 0.7);
	}
	
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(57, 225, 82, 0);
	}
	
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(57, 225, 82, 0);
	}
}
.book-cover h4 {
    margin-top:20px;
    font-size:16px;
    color:#44b78b;
}

/* sixth edition */
.new-grid {
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
    margin:20px 0 60px;
}

@media only screen and (max-width: 64em) {
    .new-grid {
        grid-template-columns:repeat(2, 1fr);
    }
}

@media only screen and (max-width: 40.063em) {
    .new-grid {
        grid-template-columns:1fr;
    }
}

.new-item {
    background:#eef8f3;
    border-radius:8px;
    padding:24px;
}

.new-item i {
    color:#FA7040;
    font-size:28px;
    margin-bottom:14px;
}

.new-item h4 {
    color:#0C4B33;
    font-size:22px;
    line-height:1.2;
    letter-spacing:-0.5px;
    margin-bottom:10px;
}

.new-item p {
    font-size:15px;
    margin:0;
}

.new-item .tag {
    display:inline-block;
    background:#0C4B33;
    color:#fff;
    border-radius:4px;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:1px;
    padding:2px 8px;
    margin-bottom:10px;
}

.authors {
    display:flex;
    align-items:flex-end;
}

.authors h3 {
    margin-top:30px;
    font-size:28px;
}

.authors .bios {
    padding-bottom:40px;
}

.authors img.author {
    margin-top:0;
}

@media only screen and (max-width: 40.063em) {
    .authors {
        display:block;
    }
}


/* sixth edition: layout refresh */
body {
    line-height:1.6;
}

.hero {
    padding:40px 0 30px;
    margin:0;
}

.hero .badge-edition {
    display:inline-block;
    background:#262626;
    color:#fff;
    font-family:"Outfit", sans-serif;
    font-weight:600;
    font-size:13px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    border-radius:999px;
    padding:6px 16px;
}

.hero .badge-edition b {
    color:#6fd3a6;
    padding:0 4px;
}

.hero h1 {
    font-size:84px;
    line-height:0.98;
    letter-spacing:-3px;
    margin:18px 0 22px;
}

.hero .hero-lead {
    font-family:"Outfit", sans-serif;
    font-size:26px;
    font-weight:500;
    line-height:1.3;
    letter-spacing:-0.5px;
    color:#0C4B33;
    margin-bottom:18px;
}

.hero .byline {
    color:#0C4B33;
    font-size:16px;
    line-height:1.7;
    margin-bottom:28px;
}

.hero .byline a {
    font-weight:700;
    text-decoration:underline;
    text-decoration-color:rgba(12, 75, 51, 0.35);
    text-underline-offset:3px;
}

.hero .button.small {
    padding:14px 10px 16px;
    margin-bottom:22px;
    box-shadow:0 10px 24px -10px rgba(0, 0, 0, 0.5);
    transition:transform 0.15s ease, background 0.15s ease;
}

.hero .button.small:hover, .cta .button.small:hover {
    transform:translateY(-2px);
}

.hero .stores-label {
    color:#0C4B33;
    font-family:"Outfit", sans-serif;
    font-weight:600;
    font-size:13px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    margin-bottom:8px;
}

.hero p.links {
    font-size:14px;
    line-height:1.9;
}

.hero p.links i {
    opacity:0.7;
    width:18px;
}

.hero .cover {
    text-align:center;
    padding:10px 0 30px;
}

.hero .cover img {
    width:100%;
    max-width:460px;
    margin-top:0;
    border-radius:6px;
    box-shadow:0 40px 70px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.08);
    transform:rotate(-2deg);
    transition:transform 0.3s ease;
}

.hero .cover a:hover img {
    transform:rotate(0deg) scale(1.01);
}

@media only screen and (min-width: 40.063em) {
    .hero > .row {
        display:flex;
        align-items:center;
    }
}

@media only screen and (max-width: 64em) {
    .hero h1 {
        font-size:60px;
        letter-spacing:-2px;
    }
    .hero .hero-lead {
        font-size:22px;
    }
}

@media only screen and (max-width: 40.063em) {
    .hero {
        padding-top:24px;
    }
    .hero h1 {
        font-size:54px;
        margin-bottom:10px;
    }
    .hero .cover img {
        max-width:300px;
    }
    .hero .hero-lead, .hero .byline {
        text-align:center;
    }
}

.bg-transition p {
    font-size:18px;
    line-height:1.7;
}

.stats {
    text-align:center;
    text-transform:uppercase;
    letter-spacing:1.5px;
    font-size:13px;
    font-weight:600;
}

.stats .big {
    letter-spacing:-3px;
    margin-bottom:6px;
}

.stats .big span {
    letter-spacing:0;
    text-transform:none;
}

.new-item {
    border:1px solid #dcefe6;
    transition:transform 0.15s ease, box-shadow 0.15s ease;
}

.new-item:hover {
    transform:translateY(-3px);
    box-shadow:0 14px 30px -18px rgba(12, 75, 51, 0.5);
}

.feature-row {
    display:flex;
    align-items:center;
    gap:70px;
    max-width:1040px;
    margin:0 auto;
    padding:50px 20px;
}

.feature-row.reverse {
    flex-direction:row-reverse;
}

.feature-row > div {
    flex:1 1 0;
    min-width:0;
}

.feature-row .feature-img {
    text-align:center;
}

.feature-row .feature-img img {
    max-height:340px;
}

.feature-row p {
    font-size:17px;
    line-height:1.7;
    margin:0;
}

h3.feature {
    color:#1f8a63;
    font-size:40px;
    line-height:1.1;
    letter-spacing:-1.5px;
    margin-bottom:20px;
}

@media only screen and (max-width: 40.063em) {
    .feature-row, .feature-row.reverse {
        flex-direction:column;
        align-items:stretch;
        gap:24px;
        padding:30px 16px;
    }
    h3.feature {
        font-size:32px;
    }
}

.community {
    padding:20px 0 30px;
}

.cta {
    padding:30px 0 70px;
}

.cta h2 {
    margin-top:50px;
    margin-bottom:10px;
}

.cta p {
    color:#0C4B33;
    font-size:18px;
    margin-bottom:26px;
}

.cta .button.small {
    padding:14px 10px 16px;
    box-shadow:0 10px 24px -10px rgba(0, 0, 0, 0.5);
    transition:transform 0.15s ease, background 0.15s ease;
}

.block.last {
    padding-bottom:80px;
}

.author-grid {
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:24px;
    max-width:1160px;
    margin:10px auto 0;
    padding:0 20px;
}

.author-card {
    background:rgba(255, 255, 255, 0.07);
    border:1px solid rgba(255, 255, 255, 0.1);
    border-radius:14px;
    padding:32px 28px 22px;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.author-card img {
    width:128px;
    height:128px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #44B78B;
    margin-bottom:18px;
}

.author-card h3 {
    font-size:26px;
    margin-bottom:10px;
}

.block.last .author-card h3 a {
    color:#fff;
}

.block.last .author-card h3 a:hover {
    color:#6fd3a6;
}

.author-card p {
    font-size:15px;
    line-height:1.65;
    flex:1;
}

.author-card p.info {
    flex:0;
    font-size:22px;
    margin:0;
}

@media only screen and (max-width: 64em) {
    .author-grid {
        grid-template-columns:1fr;
        max-width:560px;
    }
}


/* sixth edition: hexagons, buy buttons, roles, scroll reveal */
body {
    background-image:none;
}

.hero {
    position:relative;
    overflow:hidden;
}

.hero > .row {
    position:relative;
    z-index:1;
}

.hero-bg {
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    z-index:0;
    pointer-events:none;
}

.hero-bg svg {
    display:block;
    width:100%;
    height:100%;
}

/* hexagons slowly fade in and out, in eight out-of-step groups */
@keyframes hex-twinkle {
    0%, 100% { opacity:1; }
    50% { opacity:0.08; }
}

.hero-bg path {
    animation:hex-twinkle 4s ease-in-out infinite;
}

.hero-bg .g0 { animation-duration:2.6s; animation-delay:0s; }
.hero-bg .g1 { animation-duration:3.1s; animation-delay:-1.2s; }
.hero-bg .g2 { animation-duration:3.6s; animation-delay:-2.4s; }
.hero-bg .g3 { animation-duration:4.1s; animation-delay:-0.7s; }
.hero-bg .g4 { animation-duration:4.6s; animation-delay:-3.3s; }
.hero-bg .g5 { animation-duration:5.1s; animation-delay:-1.9s; }
.hero-bg .g6 { animation-duration:5.6s; animation-delay:-4.4s; }
.hero-bg .g7 { animation-duration:6.1s; animation-delay:-2.8s; }

@media (prefers-reduced-motion: reduce) {
    .hero-bg path {
        animation:none;
    }
}

.button.buy,
.hero .button.buy,
.cta .button.buy {
    padding:16px 26px 18px;
    font-size:12px;
    letter-spacing:1px;
    line-height:1.2;
}

.button.buy img.buy-logo {
    display:block;
    width:auto;
    max-width:100%;
    margin:8px auto 0;
}

.button.buy img.buy-logo.amazon {
    height:30px;
}

.button.buy img.buy-logo.packt {
    height:24px;
    margin-top:11px;
    margin-bottom:3px;
}

.author-card .role {
    display:inline-block;
    font-family:"Outfit", sans-serif;
    font-size:11px;
    font-weight:600;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:#6fd3a6;
    margin:-4px 0 12px;
}

.scroll-fade {
    opacity:0;
    transform:translateY(18px);
    transition:opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.is-visible {
    opacity:1;
    transform:none;
}

.new-item.scroll-fade.is-visible:hover {
    transform:translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-fade {
        opacity:1;
        transform:none;
        transition:none;
    }
    .hero .cover img, .button {
        transition:none;
    }
}

#discord-info {
    overflow:hidden;
    padding:4px 14px;
}


/* sixth edition: page structure */
.hero details.stores {
    margin-top:4px;
}

.hero details.stores summary {
    display:inline-flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    list-style:none;
    color:#0C4B33;
    font-family:"Outfit", sans-serif;
    font-weight:600;
    font-size:13px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    padding:6px 0;
}

.hero details.stores summary::-webkit-details-marker {
    display:none;
}

.hero details.stores summary::after {
    content:"";
    width:8px;
    height:8px;
    border-right:2px solid #0C4B33;
    border-bottom:2px solid #0C4B33;
    transform:rotate(45deg) translateY(-3px);
    transition:transform 0.2s ease;
}

.hero details.stores[open] summary::after {
    transform:rotate(-135deg) translateY(-3px);
}

.hero .store-list {
    columns:2;
    column-gap:30px;
    margin-top:10px;
    font-size:14px;
    line-height:1.9;
}

.hero .store-list a {
    display:block;
}

.hero .store-list i {
    opacity:0.7;
    width:18px;
}

.block.tint {
    background:#eef8f3;
    padding-bottom:70px;
}

.block.alt .reviews-note {
    color:#0C4B33;
    margin-bottom:40px;
}

.project-grid {
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:20px;
    max-width:1040px;
    margin:30px auto 0;
    padding:0 20px;
}

.project-card {
    grid-column:span 2;
    background:#fff;
    border:1px solid #dcefe6;
    border-radius:10px;
    padding:26px 24px 20px;
}

.project-card:nth-child(n+4) {
    grid-column:span 3;
}

.project-card > i {
    color:#FA7040;
    font-size:28px;
    margin-bottom:14px;
}

.project-card h3 {
    color:#0C4B33;
    font-size:24px;
    line-height:1.15;
    letter-spacing:-0.5px;
    margin-bottom:4px;
}

.project-card .project-chapters {
    display:block;
    font-family:"Outfit", sans-serif;
    font-size:12px;
    font-weight:600;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:#1f8a63;
    margin-bottom:12px;
}

.project-card p {
    font-size:15px;
    margin-bottom:14px;
}

.project-card p.chips {
    margin:0;
}

.chips span {
    display:inline-block;
    background:#eef8f3;
    border-radius:999px;
    font-size:12px;
    padding:2px 10px;
    margin:0 4px 6px 0;
}

.toc-grid {
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:0 40px;
    max-width:1040px;
    margin:20px auto 0;
    padding:0 20px 30px;
}

.toc-grid details {
    border-bottom:1px solid #dcefe6;
}

.toc-grid summary {
    cursor:pointer;
    list-style:none;
    font-family:"Outfit", sans-serif;
    font-size:18px;
    font-weight:500;
    color:#0C4B33;
    padding:13px 26px 13px 0;
    position:relative;
}

.toc-grid summary::-webkit-details-marker {
    display:none;
}

.toc-grid summary::after {
    content:"+";
    position:absolute;
    right:4px;
    top:11px;
    font-size:22px;
    line-height:1;
    color:#1f8a63;
}

.toc-grid details[open] summary::after {
    content:"\2212";
}

.toc-grid summary:hover {
    color:#1f8a63;
}

.toc-grid .num {
    display:inline-block;
    width:34px;
    color:#FA7040;
    font-weight:700;
}

.toc-grid .pdf-only {
    display:inline-block;
    background:#0C4B33;
    color:#fff;
    border-radius:4px;
    font-family:"Roboto", sans-serif;
    font-size:10px;
    font-weight:400;
    letter-spacing:1px;
    text-transform:uppercase;
    padding:2px 7px;
    margin-left:6px;
    vertical-align:middle;
}

.toc-grid details p {
    font-size:15px;
    padding:0 26px 6px 38px;
    margin-bottom:10px;
}

.block.last.authors-block {
    padding-bottom:80px;
}

.site-footer {
    background:#262626;
    color:#fff;
    padding:40px 0 30px;
}

.site-footer .footer-title {
    font-family:"Outfit", sans-serif;
    font-weight:700;
    font-size:22px;
    letter-spacing:-0.5px;
    margin-bottom:10px;
}

.site-footer .footer-title span {
    color:#FA7040;
    font-weight:500;
    margin-left:6px;
}

.site-footer .footer-links a {
    color:#9fdcc2;
    display:inline-block;
    margin:0 12px 8px;
    font-size:15px;
}

.site-footer .footer-links a:hover {
    color:#fff;
}

@media only screen and (max-width: 64em) {
    .project-card, .project-card:nth-child(n+4) {
        grid-column:span 3;
    }
    .project-card:last-child {
        grid-column:span 6;
    }
}

@media only screen and (max-width: 40.063em) {
    .project-card, .project-card:nth-child(n+4), .project-card:last-child {
        grid-column:span 6;
    }
    .toc-grid {
        grid-template-columns:1fr;
    }
    .hero details.stores {
        text-align:center;
    }
    .hero .store-list {
        text-align:left;
    }
}

.hero {
    padding-top:64px;
    padding-bottom:50px;
}

.hero .cover img {
    max-width:420px;
}

@media only screen and (max-width: 40.063em) {
    .hero {
        padding-top:24px;
    }
    .hero .cover img {
        max-width:300px;
    }
}


/* how the book teaches: two cards, same language as the other sections */
.teach-grid {
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
    max-width:1040px;
    margin:10px auto 0;
    padding:0 20px 40px;
}

.teach-card {
    background:#eef8f3;
    border:1px solid #dcefe6;
    border-radius:10px;
    padding:20px 24px 24px;
}

.teach-card .teach-img {
    background:#fff;
    border-radius:8px;
    height:250px;
    padding:22px;
    margin:0 -4px 22px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.teach-card .teach-img img {
    max-width:100%;
    max-height:100%;
}

.teach-card .tag {
    display:inline-block;
    background:#0C4B33;
    color:#fff;
    border-radius:4px;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:1px;
    padding:2px 8px;
    margin-bottom:10px;
}

.teach-card h3 {
    color:#0C4B33;
    font-size:24px;
    line-height:1.2;
    letter-spacing:-0.5px;
    margin-bottom:10px;
}

.teach-card p {
    font-size:15px;
    margin:0;
}

@media only screen and (max-width: 40.063em) {
    .teach-grid {
        grid-template-columns:1fr;
    }
    .teach-card .teach-img {
        height:200px;
    }
}


/* sixth edition: icons, new sections, accessibility */
.icon {
    display:inline-block;
    width:1em;
    height:1em;
    fill:currentColor;
    vertical-align:-0.125em;
}

.icon.icon-lg {
    font-size:30px;
    vertical-align:middle;
    margin-top:-2px;
}

.new-item > .icon, .project-card > .icon {
    display:block;
    color:#FA7040;
    font-size:28px;
    margin-bottom:14px;
}

.hero .store-list .icon {
    opacity:0.75;
    margin-right:6px;
}

.new-item h3 {
    color:#0C4B33;
    font-size:22px;
    line-height:1.2;
    letter-spacing:-0.5px;
    margin-bottom:10px;
}

.book-cover h3 {
    margin-top:20px;
    font-size:16px;
    letter-spacing:-0.3px;
    line-height:1.3;
    color:#17754f;
}

.skip-link {
    position:absolute;
    left:-9999px;
    top:16px;
    z-index:100;
    background:#262626;
    color:#fff;
    padding:10px 16px;
    border-radius:6px;
}

.skip-link:focus {
    left:16px;
    color:#fff;
}

a:focus-visible, summary:focus-visible, .button:focus-visible {
    outline:3px solid #062a1c;
    outline-offset:3px;
    border-radius:4px;
}

.block.last a:focus-visible, .site-footer a:focus-visible, .quote-band a:focus-visible {
    outline-color:#fff;
}

/* text contrast (WCAG AA) */
.hero .hero-lead, .hero .byline, .hero .byline a, .hero details.stores summary, .hero .store-list a,
.community p, .cta p, .block.alt .reviews-note {
    color:#062a1c;
}

.button.packt.buy {
    color:#2b1408;
}

.button.packt.buy:hover {
    color:#fff;
}

.project-card .project-chapters, .toc-grid summary::after, .toc-grid summary:hover {
    color:#17754f;
}

.toc-grid .num {
    color:#c2410c;
}

.block.last a, .author-card .role {
    color:#9fe8c8;
}

.block.last a:hover {
    color:#fff;
}

/* hero stats */
.hero-stats {
    position:relative;
    z-index:1;
    display:flex;
    justify-content:center;
    gap:70px;
    margin:50px auto 0;
    padding:0 20px;
    font-family:"Outfit", sans-serif;
    color:#062a1c;
}

.hero-stats div {
    text-align:center;
}

.hero-stats strong {
    display:block;
    font-size:64px;
    font-weight:700;
    line-height:1;
    letter-spacing:-2px;
    color:#0C4B33;
}

.hero-stats sup {
    font-size:26px;
    letter-spacing:0;
    top:-0.9em;
}

.hero-stats span {
    display:block;
    font-size:13px;
    font-weight:600;
    letter-spacing:1.5px;
    text-transform:uppercase;
    margin-top:6px;
}

/* foreword quote */
.quote-band {
    background:#0C4B33;
    color:#fff;
    margin:0;
    padding:64px 24px 58px;
    text-align:center;
}

.quote-band > .icon {
    color:#FA7040;
    font-size:30px;
    margin-bottom:20px;
}

.quote-band blockquote {
    background:none;
    border:0;
    border-radius:0;
    min-height:0;
    padding:0;
    margin:0 auto 22px;
    max-width:880px;
    color:#fff;
}

.quote-band blockquote::before {
    content:none;
}

.quote-band blockquote p {
    display:block;
    font-family:"Outfit", sans-serif;
    font-size:30px;
    font-weight:500;
    line-height:1.35;
    letter-spacing:-0.5px;
    color:#fff;
    margin:0;
}

.quote-band figcaption {
    font-size:15px;
    color:#cfe9dd;
}

.quote-band figcaption a {
    color:#fff;
    font-weight:700;
}

/* who this book is for */
.who-grid {
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:40px;
    max-width:1040px;
    margin:10px auto 0;
    padding:0 20px;
}

.who-item .icon {
    color:#FA7040;
    font-size:30px;
    margin-bottom:14px;
}

.who-item h3 {
    color:#0C4B33;
    font-size:22px;
    line-height:1.2;
    letter-spacing:-0.5px;
    margin-bottom:10px;
}

.who-item p {
    font-size:15px;
    margin:0;
}

.who-needs {
    max-width:1000px;
    margin:40px auto 20px;
    padding:14px 20px;
    background:#eef8f3;
    border-radius:8px;
    text-align:center;
    font-size:15px;
}

.code-link {
    margin:30px 0 0;
}

.code-link a {
    font-weight:700;
}

@media only screen and (max-width: 40.063em) {
    .hero-stats {
        gap:34px;
        margin-top:30px;
    }
    .hero-stats strong {
        font-size:44px;
    }
    .quote-band blockquote p {
        font-size:22px;
    }
    .who-grid {
        grid-template-columns:1fr;
        gap:28px;
    }
    .who-needs {
        margin-left:16px;
        margin-right:16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blob {
        animation:none;
    }
}


/* editions in other languages: centred, wraps evenly with any number of covers */
.editions {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
}

.editions::before, .editions::after {
    display:none;
}

.editions > .columns:first-child {
    flex:0 0 100%;
}

.editions .book-cover {
    float:none !important;
    flex:0 0 14.28%;
    max-width:14.28%;
    width:auto;
    margin-bottom:24px;
}

@media only screen and (max-width: 64em) {
    .editions .book-cover {
        flex-basis:25%;
        max-width:25%;
    }
}

@media only screen and (max-width: 40.063em) {
    .editions .book-cover {
        flex-basis:50%;
        max-width:50%;
    }
}

@media only screen and (max-width: 40.063em) {
    .hero-stats {
        gap:22px;
    }
    .hero-stats strong {
        font-size:38px;
    }
    .hero-stats span {
        font-size:11px;
        letter-spacing:1px;
    }
}

.editions .book-cover img {
    box-shadow:0 6px 16px -8px rgba(12, 60, 38, 0.35), 0 0 0 1px rgba(12, 60, 38, 0.06);
}


/* Phosphor icons sit in a roomier box than the previous set, so they run a little larger */
.new-item > .icon, .project-card > .icon {
    font-size:38px;
    margin-bottom:10px;
    margin-left:-3px;
}

.who-item .icon {
    font-size:42px;
    margin-bottom:10px;
    margin-left:-3px;
}

.quote-band > .icon {
    font-size:44px;
    margin-bottom:14px;
}

.icon.icon-lg {
    font-size:32px;
}

.author-card p.info {
    font-size:26px;
}

.hero .store-list .icon, .site-footer .icon, .code-link .icon {
    font-size:1.25em;
    vertical-align:-0.22em;
}

.editions .book-cover img {
    transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.editions .book-cover a:hover img, .editions .book-cover a:focus-visible img {
    transform:translateY(-4px);
    box-shadow:0 12px 22px -10px rgba(12, 60, 38, 0.45), 0 0 0 1px rgba(12, 60, 38, 0.06);
}

@media (prefers-reduced-motion: reduce) {
    .editions .book-cover img {
        transition:none;
    }
    .editions .book-cover a:hover img, .editions .book-cover a:focus-visible img {
        transform:none;
    }
}


/* every edition cover gets the same box, whatever the proportions of its image */
.editions .book-cover img {
    width:90%;
    aspect-ratio:73 / 100;
    object-fit:cover;
}


/* button hover: each button keeps its own colour and just shifts a step */
.button:hover,
.hero .button.buy:hover, .cta .button.buy:hover {
    background:#3d3d3d;
    color:#fff;
}

.button.packt:hover,
.hero .button.packt.buy:hover, .cta .button.packt.buy:hover {
    background:#ff8559;
    color:#2b1408;
}

.button:active {
    background:#1a1a1a;
}

.button.packt:active {
    background:#f0602f;
}

.button.packt:focus {
    background:#FA7040;
    color:#2b1408;
}


/* "What you will build" on the dark Django green */
.block.tint {
    background:#0C4B33;
    color:#cfe9dd;
    padding-top:10px;
}

.block.tint h2 {
    color:#fff;
}

.block.tint > .row p {
    color:#cfe9dd;
}

.block.tint .project-card {
    border-color:transparent;
    color:#0c3c26;
    box-shadow:0 18px 34px -22px rgba(0, 0, 0, 0.6);
}

.block.tint .code-link a {
    color:#9fe8c8;
}

.block.tint .code-link a:hover {
    color:#fff;
}

.block.tint a:focus-visible {
    outline-color:#fff;
}

.author-card {
    border-radius:8px;
}

.site-footer .footer-copy {
    color:#bdbdbd;
    font-size:13px;
    margin:14px 0 0;
}

.site-footer .footer-copy a {
    color:#fff;
}

/* the foreword quote reads as a quotation: serif italic with quotation marks */
.quote-band blockquote p {
    font-family:Georgia, "Times New Roman", serif;
    font-style:italic;
    font-weight:400;
    font-size:29px;
    line-height:1.45;
    letter-spacing:0;
}

.quote-band blockquote p::before {
    content:"\201C";
}

.quote-band blockquote p::after {
    content:"\201D";
}

@media only screen and (max-width: 40.063em) {
    .quote-band blockquote p {
        font-size:22px;
    }
}

.quote-band blockquote p {
    text-wrap:balance;
}


/* online dot: a fixed small size whether or not its pulse animation is running */
.blob {
    transform:none;
    width:14px;
    height:14px;
    margin:0 0 0 12px;
    vertical-align:0.05em;
}

/* author cards: social icons line up along the bottom edge */
.author-card p {
    flex:0 0 auto;
}

.author-card p.info {
    margin-top:auto;
    padding-top:6px;
}


/* hero entrance on page load: the cover settles in, the text rises in sequence */
@keyframes hero-rise {
    from { opacity:0; transform:translateY(14px); }
    to   { opacity:1; transform:none; }
}

@keyframes hero-cover-in {
    from { opacity:0; transform:rotate(-6deg) translateY(26px) scale(0.97); }
    to   { opacity:1; transform:rotate(-2deg); }
}

@keyframes hero-fade {
    from { opacity:0; }
    to   { opacity:1; }
}

.hero .cover img {
    animation:hero-cover-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero-bg {
    animation:hero-fade 1.4s ease backwards;
}

.hero .badge-edition, .hero h1, .hero .hero-lead, .hero .byline,
.hero .columns > .row, .hero details.stores, .hero-stats > div {
    animation:hero-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero .badge-edition  { animation-delay:0.10s; }
.hero h1              { animation-delay:0.18s; }
.hero .hero-lead      { animation-delay:0.28s; }
.hero .byline         { animation-delay:0.36s; }
.hero .columns > .row { animation-delay:0.44s; }
.hero details.stores  { animation-delay:0.52s; }
.hero-stats > div:nth-child(1) { animation-delay:0.60s; }
.hero-stats > div:nth-child(2) { animation-delay:0.68s; }
.hero-stats > div:nth-child(3) { animation-delay:0.76s; }
.hero-stats > div:nth-child(4) { animation-delay:0.84s; }

@media (prefers-reduced-motion: reduce) {
    .hero .cover img, .hero-bg, .hero .badge-edition, .hero h1, .hero .hero-lead, .hero .byline,
    .hero .columns > .row, .hero details.stores, .hero-stats > div {
        animation:none;
    }
}

/* stats arrive after the rest of the hero has settled */
.hero-stats > div:nth-child(1) { animation-delay:1.10s; }
.hero-stats > div:nth-child(2) { animation-delay:1.18s; }
.hero-stats > div:nth-child(3) { animation-delay:1.26s; }
.hero-stats > div:nth-child(4) { animation-delay:1.34s; }


/* stats sit under the text column, lined up with the title and buttons */
.hero-stats {
    justify-content:flex-start;
    gap:44px;
    margin:26px 0 0;
    padding:0;
}

.hero-stats div {
    text-align:left;
}

.hero-stats strong {
    font-size:52px;
}

.hero-stats sup {
    font-size:22px;
}

@media only screen and (max-width: 64em) {
    .hero-stats {
        gap:26px;
    }
    .hero-stats strong {
        font-size:40px;
    }
}

@media only screen and (max-width: 40.063em) {
    .hero-stats {
        justify-content:center;
        gap:22px;
        margin-top:20px;
    }
    .hero-stats div {
        text-align:center;
    }
    .hero-stats strong {
        font-size:38px;
    }
}

/* one dark green across the page: the authors block matches the quote and projects sections */
.block.last, .block.last.authors-block {
    background:#0C4B33;
}

/* edition titles: smaller and capped at two lines so the row stays level */
.editions .book-cover h3 {
    font-size:14px;
    line-height:1.3;
    margin-top:16px;
    margin-bottom:4px;
    min-height:2.6em;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}

/* the page ends on a distinct call to action */
.cta {
    background:#0C4B33;
    padding-top:20px;
}

.cta h2 {
    color:#fff;
}

.cta p {
    color:#cfe9dd;
}

.cta .button.buy:not(.packt) {
    box-shadow:0 10px 24px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.cta a:focus-visible, .cta .button:focus-visible {
    outline-color:#fff;
}


/* quote: the mark pops in, the text and attribution follow */
.quote-band > .icon.scroll-fade {
    transform:scale(0.5) rotate(-10deg);
    transition:opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.quote-band > .icon.scroll-fade.is-visible {
    transform:none;
}

.quote-band blockquote.scroll-fade, .quote-band figcaption.scroll-fade {
    transition-duration:0.8s;
}

/* author photos ease up to full size as their card arrives */
.author-card.scroll-fade img {
    transform:scale(0.86);
    transition:transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay:inherit;
}

.author-card.scroll-fade.is-visible img {
    transform:none;
}

@media (prefers-reduced-motion: reduce) {
    .author-card.scroll-fade img, .quote-band > .icon.scroll-fade {
        transform:none;
        transition:none;
    }
}


/* every button lifts slightly on hover, top and bottom of the page alike */
.button {
    transition:transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    transform:translateY(-2px);
}

.button:active {
    transform:none;
}

@media (prefers-reduced-motion: reduce) {
    .button, .button:hover {
        transition:none;
        transform:none;
    }
}


/* hexagons: four stacked layers fade in and out, each as a single composited element */
.hero-bg svg.hex-layer {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    will-change:opacity;
    animation:hex-twinkle 4s ease-in-out infinite;
}

.hero-bg svg.hex-layer path {
    animation:none;
}

.hero-bg svg.g0 { animation-duration:3.2s; animation-delay:0s; }
.hero-bg svg.g1 { animation-duration:4.1s; animation-delay:-1.3s; }
.hero-bg svg.g2 { animation-duration:5.0s; animation-delay:-2.9s; }
.hero-bg svg.g3 { animation-duration:5.9s; animation-delay:-0.8s; }

@media (prefers-reduced-motion: reduce) {
    .hero-bg svg.hex-layer {
        animation:none;
    }
}

/* stats: digits keep a fixed width while counting */
.hero-stats strong {
    font-variant-numeric:tabular-nums;
}


/* technical reviewers, under the author cards */
.reviewers {
    max-width:1120px;
    margin:44px auto 0;
    padding:28px 20px 0;
    border-top:1px solid rgba(255, 255, 255, 0.14);
    text-align:center;
    color:#cfe9dd;
}

.reviewers h3 {
    font-family:"Outfit", sans-serif;
    font-size:12px;
    font-weight:600;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:#9fe8c8;
    margin-bottom:14px;
}

.reviewers ul {
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px 48px;
}

.reviewers li {
    margin:0;
    font-size:15px;
}

.reviewers li a, .reviewers li strong {
    font-family:"Outfit", sans-serif;
    font-size:20px;
    font-weight:700;
    letter-spacing:-0.3px;
    color:#fff;
    margin-right:10px;
}

.block.last .reviewers li a:hover {
    color:#9fe8c8;
}

.block.last .reviewers li a {
    color:#fff;
}

/* reviewers with photos: small avatar, name over role */
.reviewers ul {
    gap:18px 56px;
}

.reviewers li {
    display:flex;
    align-items:center;
    gap:14px;
    text-align:left;
}

.reviewers li img {
    width:56px;
    height:56px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #44B78B;
    flex:none;
}

.reviewers li a {
    display:block;
    margin-right:0;
    line-height:1.2;
}

.reviewers li span {
    display:block;
    font-size:14px;
}

@media only screen and (max-width: 40.063em) {
    .reviewers ul {
        flex-direction:column;
        align-items:center;
    }
    .reviewers li {
        width:250px;
    }
}

/* reviewers with a one-line description: two compact entries side by side */
.reviewers ul {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 400px));
    justify-content:center;
    gap:24px 56px;
}

.reviewers li {
    align-items:flex-start;
}

.reviewers li img {
    margin-top:2px;
}

.reviewers li span {
    color:#9fe8c8;
    font-size:12px;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
    font-family:"Outfit", sans-serif;
    margin:3px 0 8px;
}

.reviewers li p {
    font-size:14px;
    line-height:1.55;
    color:#cfe9dd;
    margin:0;
}

@media only screen and (max-width: 40.063em) {
    .reviewers ul {
        grid-template-columns:minmax(0, 400px);
    }
    .reviewers li {
        width:auto;
    }
}

/* links inside a reviewer's sentence are ordinary inline links, not styled like the name */
.block.last .reviewers li p a {
    display:inline;
    font:inherit;
    letter-spacing:0;
    margin:0;
    color:#9fe8c8;
}

.block.last .reviewers li p a:hover {
    color:#fff;
}

.reviewers li img {
    width:72px;
    height:72px;
}

.reviewers li {
    gap:16px;
}


/* foreword quote: the writer's photo beside the attribution */
.quote-band figcaption {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    text-align:left;
}

.quote-band figcaption img {
    width:64px;
    height:64px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #44B78B;
    flex:none;
}

/* Edition badge: keep it on one line on phones */
@media screen and (max-width: 39.9375em) {
    .hero .badge-edition {
        font-size:11px;
        letter-spacing:1px;
        padding:6px 13px;
        white-space:nowrap;
    }
    .hero .badge-edition b { padding:0 2px; }
}
@media screen and (max-width: 359px) {
    .hero .badge-edition {
        font-size:10px;
        letter-spacing:0.6px;
        padding:5px 10px;
    }
}

/* Phones: the cover sits straight */
@keyframes hero-cover-in-flat {
    from { opacity:0; transform:translateY(26px) scale(0.97); }
    to   { opacity:1; transform:none; }
}
@media screen and (max-width: 39.9375em) {
    .hero .cover img,
    .hero .cover a:hover img { transform:none; }
    .hero .cover img { animation-name:hero-cover-in-flat; }
}

/* Reviews widget: no fade at the sides */
[class*="elfsight-app"] .es-main-content {
    -webkit-mask-image:none !important;
    mask-image:none !important;
}

/* Reviews widget: breathing room at the sides */
[class*="elfsight-app"] {
    padding:0 32px;
    box-sizing:border-box;
}
@media screen and (max-width: 39.9375em) {
    [class*="elfsight-app"] { padding:0 16px; }
}

/* Reviews widget: light green cards, same tint as the teaching cards */
[class*="elfsight-app"] .es-review-background-container {
    background-color:#eef8f3 !important;
}

/* Reviews widget: amber rating stars */
[class*="elfsight-app"] .es-rating-item-filled path {
    fill:#FFA41C !important;
}

/* Project cards: pale green tint, like the review and teaching cards */
.block.tint .project-card { background:#eef8f3; }
.block.tint .project-card .chips span { background:#fff; }

/* hero buy buttons: stacked, each one the full width of the text column */
.hero .buy-stack .columns:first-child .button.buy {
    margin-bottom:12px;
}
