/* =========================================================
   THE ICTHUS — MAIN STYLESHEET
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.5;
}

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

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

a:hover {
    opacity: 0.7;
}


/* =========================================================
   COLOURS
   ========================================================= */

:root {
    --dark: #111;
    --dark-soft: #192022;
    --cream: #f3f2eb;
    --white: #faf9f4;
    --text: #151515;
    --muted: #696963;
    --border: #d8d6ce;
}


/* =========================================================
   GENERAL LAYOUT
   ========================================================= */

.page {
    width: min(1180px, 92%);
    margin: 0 auto;
}

section {
    width: 100%;
}


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;

    background: #111;
    color: #fff;

    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.nav {
    width: min(1180px, 92%);
    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-right: auto;

    color: #fff;

    font-size: 16px;
    font-weight: 800;
    letter-spacing: .04em;

    white-space: nowrap;
}

.logo-mark {
    width: 28px;
    height: 22px;

    flex-shrink: 0;
}

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

.nav-links a {
    position: relative;

    padding: 8px 0;

    color: #fff;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;

    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background: #fff;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform .2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.search-button {
    border: 1px solid rgba(255, 255, 255, .6);

    background: transparent;
    color: #fff;

    min-width: 76px;
    height: 40px;

    padding: 0 14px;

    cursor: pointer;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;

    text-transform: uppercase;
}

.search-button:hover {
    background: #fff;
    color: #111;

    opacity: 1;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    background: var(--cream);
    min-height: 650px;

    display: flex;
    align-items: center;
}

.hero .page {
    padding-top: 90px;
    padding-bottom: 100px;
}

.hero-content {
    max-width: 1000px;
}

.eyebrow {
    margin-bottom: 22px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.hero h1 {
    max-width: 950px;

    font-size: clamp(64px, 8vw, 118px);
    line-height: 0.91;
    letter-spacing: -0.065em;
    font-weight: 900;

    margin-bottom: 42px;
}

.hero-text {
    max-width: 720px;

    font-size: 20px;
    line-height: 1.5;

    margin-bottom: 25px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 20px;

    border: 1px solid var(--dark);

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.button-dark {
    background: var(--dark);
    color: var(--white);
}

.button-dark:hover {
    background: var(--dark-soft);
    opacity: 1;
}

.button-outline {
    background: transparent;
    color: var(--dark);
}

.button-outline:hover {
    background: var(--dark);
    color: var(--white);
    opacity: 1;
}


/* =========================================================
   FEATURED CONTENT
   ========================================================= */

.featured {
    background: var(--cream);
    padding: 110px 0 120px;
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading .eyebrow {
    margin-bottom: 18px;
}

.section-heading h2 {
    max-width: 600px;

    font-size: clamp(38px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 900;
}


/* =========================================================
   FEATURE GRID
   ========================================================= */

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.content-card {
    position: relative;

    background: var(--dark);
    color: var(--white);

    min-height: 340px;
    width: 100%;

    padding: 38px 42px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.featured-card {
    min-height: 340px;
}

.content-card:hover {
    transform: translateY(-3px);
    background: #171d1f;
}

.card-number {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;

    opacity: 0.85;
}

.card-category {
    margin-bottom: 18px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;

    text-transform: uppercase;

    opacity: 0.75;
}

.content-card h3 {
    max-width: 700px;

    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 800;

    margin-bottom: 20px;
}

.content-card p {
    max-width: 720px;

    font-size: 17px;
    line-height: 1.55;
}

.content-card a {
    display: inline-block;

    margin-top: 25px;

    font-size: 15px;
    font-weight: 700;

    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================================
   BELIEF SECTION
   ========================================================= */

.belief {
    background: var(--dark);
    color: var(--white);

    padding: 115px 0;
}

.belief .page {
    max-width: 1180px;
}

.belief .eyebrow {
    opacity: 0.75;
    margin-bottom: 22px;
}

.belief h2 {
    max-width: 700px;

    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 900;

    margin-bottom: 35px;
}

.belief p {
    max-width: 780px;

    font-size: 19px;
    line-height: 1.55;

    margin-bottom: 28px;
}

.belief a {
    font-size: 15px;
    font-weight: 700;

    text-decoration: underline;
    text-underline-offset: 5px;
}


/* =========================================================
   ABOUT SECTION
   ========================================================= */

.about {
    background: var(--cream);

    padding: 100px 0 110px;
}

.about .page {
    max-width: 1180px;
}

.about .eyebrow {
    margin-bottom: 20px;
}

.about h2 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 900;

    margin-bottom: 30px;
}

.about p {
    max-width: 820px;

    font-size: 19px;
    line-height: 1.55;

    margin-bottom: 28px;
}

.about a {
    font-size: 15px;
    font-weight: 700;

    text-decoration: underline;
    text-underline-offset: 5px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #111;
    color: #fff;

    padding: 65px 0 45px;
}

.footer-inner {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;
}

.footer-logo {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .06em;
}

.footer-copy {
    max-width: 430px;

    margin-top: 15px;

    color: #c8c8c3;

    font-size: 14px;
    line-height: 1.5;
}

.footer-heading {
    margin-bottom: 15px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;

    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    color: #d8d8d3;

    font-size: 14px;
}

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

.footer-bottom {
    margin-top: 60px;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, .18);

    color: #aaa;

    font-size: 11px;
    letter-spacing: .08em;

    text-transform: uppercase;
}


/* =========================================================
   GENERAL INNER PAGES
   ========================================================= */

.page-hero {
    background: var(--dark);
    color: var(--white);

    padding: 120px 0 130px;
}

.page-hero .eyebrow {
    opacity: 0.7;
    margin-bottom: 22px;
}

.page-hero h1 {
    max-width: 1000px;

    font-size: clamp(58px, 8vw, 110px);
    line-height: 0.92;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.page-intro {
    background: var(--cream);

    padding: 90px 0;
}

.page-intro p {
    max-width: 820px;

    font-size: 21px;
    line-height: 1.55;
}


/* =========================================================
   ARTICLE / STUDY CONTENT
   ========================================================= */

.article-layout {
    background: var(--cream);

    padding: 90px 0 120px;
}

.article-content {
    max-width: 820px;
}

.article-content h2 {
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.04em;

    margin: 60px 0 25px;
}

.article-content h3 {
    font-size: 30px;
    line-height: 1.1;

    margin: 45px 0 18px;
}

.article-content p {
    font-size: 19px;
    line-height: 1.7;

    margin-bottom: 24px;
}

.article-content ul,
.article-content ol {
    margin: 25px 0 30px 25px;
}

.article-content li {
    margin-bottom: 10px;

    font-size: 18px;
    line-height: 1.6;
}

.scripture {
    background: var(--dark);
    color: var(--white);

    padding: 35px 40px;

    margin: 40px 0;

    font-size: 20px;
    line-height: 1.6;
    font-weight: 600;
}


/* =========================================================
   STUDY / RESOURCE LISTS
   ========================================================= */

.resource-list {
    background: var(--cream);

    padding: 80px 0 120px;
}

.resource-item {
    border-top: 1px solid var(--border);

    padding: 35px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 40px;
}

.resource-item:last-child {
    border-bottom: 1px solid var(--border);
}

.resource-item h3 {
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.resource-item p {
    margin-top: 8px;

    color: var(--muted);

    font-size: 16px;
}

.resource-item a {
    flex-shrink: 0;

    font-weight: 700;

    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================================
   MOBILE NAV / MOBILE LAYOUT
   ========================================================= */

@media (max-width: 1000px) {

    .nav {
        gap: 18px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 11px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .nav {
        min-height: 75px;
    }

    .nav-links {
        display: none;
    }

    .page {
        width: calc(100% - 40px);
    }

    .hero {
        min-height: auto;
    }

    .hero .page {
        padding-top: 70px;
        padding-bottom: 75px;
    }

    .hero h1 {
        font-size: clamp(52px, 12vw, 90px);
    }

    .featured {
        padding: 80px 0;
    }

    .content-card {
        min-height: 300px;
        padding: 32px;
    }

    .belief {
        padding: 80px 0;
    }

    .about {
        padding: 75px 0 85px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .nav {
        width: calc(100% - 30px);
        min-height: 68px;
    }

    .logo {
        font-size: 14px;
    }

    .logo-mark {
        width: 26px;
        height: 20px;
    }

    .search-button {
        min-width: 70px;
        height: 38px;
    }

    .page {
        width: calc(100% - 30px);
    }

    .hero .page {
        padding-top: 55px;
        padding-bottom: 65px;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 76px);
        letter-spacing: -0.055em;

        margin-bottom: 30px;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .section-heading h2 {
        font-size: 42px;
    }

    .content-card,
    .featured-card {
        min-height: 320px;
        padding: 28px;
    }

    .content-card h3 {
        font-size: 32px;
    }

    .content-card p {
        font-size: 16px;
    }

    .belief h2 {
        font-size: 46px;
    }

    .belief p,
    .about p {
        font-size: 17px;
    }

    .resource-item {
        display: block;
    }

    .resource-item a {
        display: inline-block;

        margin-top: 20px;
    }

    .footer-inner {
        width: calc(100% - 30px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

}