@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
    --ink: #17202b;
    --muted: #64707d;
    --canvas: #f7f4ee;
    --surface: #fffdfa;
    --line: #e6dfd3;
    --flame: #d76532;
    --gold: #c89742;
    --night: #18232e;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font: 16px/1.7 "DM Sans", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 253, 250, .91);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav {
    max-width: var(--max);
    min-height: 78px;
    padding: 0 24px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 600 22px/1 "Playfair Display", serif;
    letter-spacing: .02em;
}

.brand img {
    width: 38px;
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.nav-links a {
    padding: 8px 11px;
    color: #42505d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--flame);
}

.page {
    overflow: hidden;
}

.hero {
    min-height: 650px;
    color: #fff;
    display: grid;
    align-items: center;
    background: linear-gradient(90deg, rgba(15, 24, 34, .84) 5%, rgba(15, 24, 34, .35) 66%), url('./extra-images/slide-1.png') center/cover;
}

.home-carousel {
    position: relative;
    min-height: 650px;
    color: #fff;
    background: var(--night);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity .8s ease;
}

.carousel-slide:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 24, 34, .86) 5%, rgba(15, 24, 34, .32) 68%);
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide .wrap {
    position: relative;
}

.carousel-controls {
    position: absolute;
    z-index: 2;
    right: clamp(20px, 5vw, 70px);
    bottom: 34px;
    display: flex;
    gap: 9px;
}

.carousel-dot {
    width: 34px;
    height: 3px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
}

.carousel-dot.is-active {
    background: #f3c475;
}

.wrap {
    width: min(var(--max), calc(100% - 48px));
    margin: auto;
}

.eyebrow {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.eyebrow:before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
    line-height: 1.08;
}

h1 {
    max-width: 680px;
    margin: 15px 0 20px;
    font-size: clamp(54px, 7vw, 90px);
    letter-spacing: -.055em;
}

h2 {
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -.04em;
}

h3 {
    font-size: 27px;
}

.hero p {
    max-width: 515px;
    color: #e8e9e9;
    font-size: 19px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 18px;
    color: #fff;
    background: var(--flame);
    border-radius: 2px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, .18);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: .2s ease;
}

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

.button.light {
    color: var(--ink);
    background: #fff;
    box-shadow: none;
}

.section {
    padding: 110px 0;
}

.section.tint {
    background: #f0ebe1;
}

.section.dark {
    color: #fff;
    background: var(--night);
}

.section-head {
    max-width: 620px;
    margin-bottom: 48px;
}

.section-head p,
.copy {
    color: var(--muted);
}

.section.dark .copy,
.section.dark .section-head p {
    color: #c5cbd0;
}

.section-head h2 {
    margin: 11px 0 13px;
}

.grid {
    display: grid;
    gap: 22px;
}

.grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    height: 100%;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 3px;
    box-shadow: 0 14px 34px rgba(20, 29, 39, .045);
}

.card .number {
    display: block;
    margin-bottom: 22px;
    color: var(--flame);
    font: 500 16px "Playfair Display", serif;
}

.card p {
    margin-bottom: 0;
    color: var(--muted);
}

.image-card {
    overflow: hidden;
    padding: 0;
}

.image-card img {
    aspect-ratio: 1.12;
    width: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.image-card:hover img {
    transform: scale(1.04);
}

.image-card .card-copy {
    padding: 24px 27px 28px;
}

.quote {
    max-width: 850px;
    margin: auto;
    text-align: center;
    font: 500 clamp(29px, 4vw, 48px)/1.22 "Playfair Display", serif;
    letter-spacing: -.035em;
}

.quote em {
    color: #efbf72;
}

.quote cite {
    display: block;
    margin-top: 26px;
    color: #d8dde1;
    font: 700 11px "DM Sans", sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.books {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
}

.book {
    min-height: 260px;
    padding: 30px;
    border-right: 1px solid var(--line);
    background: var(--surface);
    transition: .2s ease;
}

.book:last-child {
    border: 0;
}

.book:hover {
    background: #fff7e9;
}

.book span {
    color: var(--flame);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.book h3 {
    margin: 18px 0 12px;
}

.book p {
    color: var(--muted);
    font-size: 14px;
}

.book-link {
    margin-top: 20px;
}

.book-cover {
    display: block;
    width: calc(100% + 60px);
    max-width: none;
    height: auto;
    margin: -30px -30px 24px;
    object-fit: contain;
}

.split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 80px;
}

.split-image {
    position: relative;
}

.split-image img {
    width: 100%;
    aspect-ratio: .88;
    object-fit: cover;
}

.badge {
    position: absolute;
    right: -24px;
    bottom: 25px;
    max-width: 220px;
    padding: 24px;
    color: #fff;
    background: var(--flame);
    font: 500 22px/1.25 "Playfair Display", serif;
}

.page-hero {
    padding: 100px 0 90px;
    color: #fff;
    background: linear-gradient(120deg, rgba(17, 28, 40, .93), rgba(26, 39, 53, .75)), url('./extra-images/sub-banner.jpg') center/cover;
}

.page-hero h1 {
    max-width: 720px;
    font-size: clamp(48px, 6vw, 76px);
}

.content-list {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 75px;
}

.side-note {
    position: sticky;
    top: 115px;
    align-self: start;
    padding: 26px;
    background: #efe7d8;
    font: 500 21px/1.35 "Playfair Display", serif;
}

.teaching-toc {
    margin: 17px 0 0;
    padding-left: 20px;
    font: 600 13px/1.7 "DM Sans", Arial, sans-serif;
}

.teaching-toc li {
    padding: 4px 0;
}

.teaching-toc a:hover {
    color: var(--flame);
}

.article {
    max-width: 720px;
}

.article+.article {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--line);
}

.article h2 {
    margin-bottom: 18px;
    font-size: 42px;
}

.article h3 {
    margin: 31px 0 11px;
    font-size: 27px;
}

.article p {
    color: #53606c;
}

.article ul,
.article ol {
    padding-left: 24px;
    color: #53606c;
}

.article li {
    margin: 9px 0;
    padding-left: 4px;
}

.article-media {
    width: min(100%, 255px);
    margin: 4px 0 18px 28px;
    background: #eee6d9;
}

.article-media.left {
    float: left;
    margin: 4px 28px 18px 0;
}

.article-media.right {
    float: right;
    margin-left: 25px;
    margin-right: 0;
}

.article:after {
    content: "";
    display: block;
    clear: both;
}

details {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

summary {
    cursor: pointer;
    color: var(--ink);
    font: 600 20px/1.35 "Playfair Display", serif;
}

details p {
    margin: 12px 0 0;
}

.pillars {
    list-style: none;
    margin: 23px 0 0;
    padding: 0;
}

.pillars li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: "Playfair Display", serif;
    font-size: 20px;
}

.gallery {
    columns: 3;
    column-gap: 18px;
}

.gallery figure {
    break-inside: avoid;
    margin: 0 0 18px;
    overflow: hidden;
    background: #ddd;
}

.gallery img {
    width: 100%;
    transition: transform .35s;
}

.gallery figure:hover img {
    transform: scale(1.035);
}

.hymn {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.hymn-no {
    color: var(--flame);
    font: 500 26px "Playfair Display", serif;
}

.hymn h3 {
    font-size: 25px;
}

.hymn p {
    margin: 3px 0 0;
    color: var(--muted);
}

.listen {
    padding: 9px 13px;
    border: 1px solid var(--line);
    color: var(--flame);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.listen:hover {
    color: #fff;
    background: var(--flame);
    border-color: var(--flame);
}

.now-playing {
    display: grid;
    grid-template-columns: 118px 1fr minmax(230px, 300px);
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding: 22px 25px;
    background: var(--night);
    color: #fff;
    border-left: 3px solid var(--flame);
}

.now-playing-label {
    color: #f3c475;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.now-playing strong,
.now-playing span {
    display: block;
}

.now-playing strong {
    font: 500 22px/1.25 "Playfair Display", serif;
}

.now-playing #track-status {
    margin-top: 4px;
    color: #b8c1c9;
    font-size: 13px;
}

.now-playing audio {
    width: 100%;
    height: 36px;
}

.hymn-library {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hymn-library .hymn {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(20, 29, 39, .035);
    transition: transform .2s ease, border-color .2s ease;
}

.hymn-library .hymn:hover {
    border-color: #d6a06f;
    transform: translateY(-3px);
}

.hymn-library .hymn-no {
    margin: 0;
    font-size: 18px;
}

.hymn-library .hymn h3 {
    font-size: 20px;
    line-height: 1.2;
}

.hymn-library .hymn p {
    margin: 5px 0 0;
    font-size: 12px;
}

.hymn-library .listen {
    margin-top: auto;
}

@media (max-width:1000px) {
    .hymn-library {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width:760px) {
    .hymn-library {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-details {
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.contact-details p {
    padding: 17px 0;
    margin: 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.contact-details strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

form {
    display: grid;
    gap: 14px;
}

input,
textarea {
    width: 100%;
    padding: 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--surface);
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

button {
    border: 0;
    cursor: pointer;
}

.site-footer {
    padding: 65px 0 28px;
    color: #bdc4cb;
    background: #121b25;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 52px;
}

.footer-top p {
    max-width: 420px;
    margin: 15px 0 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
}

.footer-nav a {
    color: #bdc4cb;
}

.footer-nav a:hover {
    color: #f3c475;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 13px;
    font-size: 12px;
}

.footer-social a {
    color: #f3c475;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: #7f8a95;
    font-size: 12px;
}

@media (max-width:900px) {

    .grid.three,
    .grid.four,
    .books {
        grid-template-columns: repeat(2, 1fr);
    }

    .book:nth-child(2) {
        border-right: 0;
    }

    .book:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .split,
    .contact,
    .content-list {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .side-note {
        position: static;
    }
}

@media (max-width:640px) {
    .nav {
        min-height: 70px;
        padding: 0 18px;
    }

    .nav-links {
        display: none;
    }

    .hero,
    .home-carousel {
        min-height: 600px;
    }

    .wrap {
        width: min(100% - 36px, var(--max));
    }

    .section {
        padding: 72px 0;
    }

    .grid.three,
    .grid.four,
    .books {
        grid-template-columns: 1fr;
    }

    .book,
    .book:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .book:last-child {
        border-bottom: 0;
    }

    .gallery {
        columns: 2;
    }

    .badge {
        right: 0;
    }

    .hymn {
        grid-template-columns: 46px 1fr;
    }

    .listen {
        grid-column: 2;
        justify-self: start;
    }

    .hymn-library {
        grid-template-columns: 1fr;
    }

    .hymn-library .hymn {
        min-height: 0;
    }

    .hymn-library .listen {
        grid-column: auto;
    }

    .now-playing {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-top {
        display: block;
    }

    .footer-top>div+div {
        margin-top: 28px;
    }

    .footer-nav {
        justify-content: start;
        margin-top: 12px;
    }
}

