:root {
    --black: #111111;
    --black-soft: #1c1c1c;
    --black-card: #242424;

    --scarlet: #cc0000;
    --scarlet-dark: #a00000;
    --scarlet-light: #e32636;

    --white: #ffffff;
    --off-white: #f7f7f7;
    --light-gray: #e5e5e5;

    --text-dark: #171717;
    --text-muted: #666666;

    --light-border: rgba(17, 17, 17, 0.14);
    --dark-border: rgba(255, 255, 255, 0.16);

    --shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
}

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

p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.1;
    margin-top: 0;
}

h1 {
    font-size: clamp(3.4rem, 7vw, 7rem);
    letter-spacing: -0.07em;
}

h2 {
    margin-bottom: 28px;
    font-size: clamp(2rem, 4vw, 3.8rem);
    letter-spacing: -0.055em;
}

h3 {
    font-size: 1.35rem;
    letter-spacing: -0.035em;
}

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

.narrow {
    max-width: 900px;
}

/* Header and navigation */

.site-header {
    background: var(--black);
    border-bottom: 1px solid var(--dark-border);
}

.navbar {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    line-height: 1.15;
}

.logo-image {
    height: 42px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 26px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--scarlet-light);
}

/* Hero */

.hero {
    display: flex;
    min-height: 790px;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96),
            rgba(0, 0, 0, 0.64)
        ),
        url("images/hero-bg.jpg");
    background-position: center;
    background-size: cover;
}

.hero-content {
    padding: 110px 0;
}

.hero h1 {
    max-width: 930px;
    margin-bottom: 24px;
}

.hero-text {
    max-width: 680px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.16rem;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--scarlet-light);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--scarlet-dark);
}

/* Buttons */

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.2s ease;
}

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

.button-red,
.button-gold {
    background: var(--scarlet);
    color: var(--white);
}

.button-red:hover,
.button-gold:hover {
    background: var(--scarlet-light);
}

.button-outline {
    border-color: rgba(255, 255, 255, 0.42);
    color: var(--white);
}

.button-outline:hover {
    border-color: var(--scarlet-light);
    color: var(--scarlet-light);
}

.button-dark {
    margin-top: 8px;
    background: var(--black);
    color: var(--white);
}

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

/* General sections */

.section {
    padding: 108px 0;
}

.section-light {
    background: var(--off-white);
    color: var(--text-dark);
}

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

.section-red,
.section-gold {
    background: var(--off-white);
    color: var(--text-dark);
}

.split-layout,
.image-text-layout,
.meeting-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
}

.large-copy {
    color: #3f3f3f;
    font-size: 1.22rem;
}

.dark-copy {
    color: var(--text-dark);
}

/* Cards */

.card-grid {
    display: grid;
    gap: 22px;
    margin-top: 42px;
}

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

.feature-card {
    min-height: 265px;
    padding: 30px;
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.72);
}

.card-number {
    color: var(--scarlet-light) !important;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.light-card {
    padding: 28px;
    border: 1px solid var(--light-border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.light-card .card-number {
    color: var(--scarlet-dark) !important;
}

.section-dark .light-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--dark-border);
    color: white;
}

.section-dark .light-card p {
    color: rgba(255,255,255,0.75);
}

.section-dark .light-card .card-number {
    color: var(--scarlet-light) !important;
}

.section-light .dark-list-card {
    border-bottom: 1px solid var(--light-border);
}

.section-light .dark-list-card h3 {
    color: var(--text-dark);
}

.section-light .content-meta {
    color: var(--scarlet-dark);
}

/* Image panels */

.image-panel {
    min-height: 440px;
    border-radius: 18px;
    background-color: var(--black-soft);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.commodity-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
        url("images/market-screens.jpg");
}

.team-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
        url("images/team.jpg");
}

/* Links */

.text-link {
    color: var(--scarlet-dark);
    font-weight: 800;
}

.text-link:hover {
    color: var(--scarlet-light);
}

.light-link {
    color: var(--scarlet-light);
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

/* News section */

.news-list {
    margin-top: 34px;
    border-top: 1px solid var(--dark-border);
}

.news-item {
    display: grid;
    grid-template-columns: 130px 1.6fr 1fr;
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid var(--dark-border);
}

.news-item span,
.content-meta,
.resource-card span {
    color: var(--scarlet-light);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-item h3,
.news-item p {
    margin-bottom: 0;
}

.news-item p {
    color: rgba(255, 255, 255, 0.63);
}

/* Upcoming meeting */

.meeting-details {
    padding: 32px;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-left: 4px solid var(--scarlet);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.meeting-details p:last-child {
    margin-bottom: 0;
}

.section-red .eyebrow,
.section-gold .eyebrow {
    color: var(--scarlet);
}

.section-red h2,
.section-gold h2 {
    color: var(--text-dark);
}

/* Join section */

.join-section {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.82),
            rgba(0, 0, 0, 0.93)
        ),
        url("images/competition.jpg");
    background-position: center;
    background-size: cover;
}

.join-content {
    max-width: 740px;
}

.join-content p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
}

.join-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.join-card {
    display: block;
    min-height: 230px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    transition: 0.2s ease;
}

.join-card:hover {
    transform: translateY(-4px);
    border-color: var(--scarlet-light);
    background: rgba(255,255,255,0.12);
}

.join-card h3 {
    margin-bottom: 12px;
}

.join-card p {
    color: rgba(255,255,255,0.72);
}

.join-card span {
    color: var(--scarlet-light);
    font-weight: 800;
}

/* Secondary page hero sections */

.page-hero {
    display: flex;
    min-height: 540px;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96),
            rgba(0, 0, 0, 0.72)
        ),
        url("images/hero-bg.jpg");
    background-position: center;
    background-size: cover;
}

.page-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(3.3rem, 6vw, 6.4rem);
}

.compact-hero {
    min-height: 480px;
}

.resource-hero {
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.95),
            rgba(0, 0, 0, 0.68)
        ),
        url("images/market-screens.jpg");
    background-position: center;
    background-size: cover;
}

/* About page */

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.tag-grid span {
    padding: 11px 16px;
    border: 1px solid var(--light-border);
    border-radius: 999px;
    background: var(--white);
    font-weight: 700;
}

.person-card {
    padding: 16px;
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.person-card h3 {
    margin: 18px 4px 4px;
}

.person-card p {
    margin: 0 4px 6px;
    color: rgba(255, 255, 255, 0.66);
}

.person-placeholder {
    display: grid;
    min-height: 230px;
    place-items: center;
    border-radius: 10px;
    background: var(--black-card);
    color: rgba(255, 255, 255, 0.38);
    font-weight: 700;
}

/* Notes page */

.content-list {
    display: grid;
    gap: 16px;
    margin-top: 34px;
}

.content-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px;
    border: 1px solid var(--light-border);
    border-radius: 14px;
    background: var(--white);
}

.content-card h3 {
    margin-bottom: 8px;
}

.content-card p:last-child {
    margin-bottom: 0;
    color: #555555;
}

.content-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.small-button {
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--scarlet);
    color: var(--white);
    font-size: 0.84rem;
    font-weight: 800;
}

.small-button:hover {
    background: var(--scarlet-light);
}

.small-button.secondary {
    border: 1px solid var(--light-border);
    background: transparent;
    color: var(--black);
}

.small-button.secondary:hover {
    border-color: var(--scarlet);
    color: var(--scarlet);
}

.image-banner {
    display: flex;
    min-height: 390px;
    align-items: center;
}

.competition-banner {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.78),
            rgba(0, 0, 0, 0.9)
        ),
        url("images/competition.jpg");
    background-position: center;
    background-size: cover;
}

/* Competitions page */

.competition-page-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
        url("images/competition.jpg");
}

/* Challenges page */

.dark-list-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--dark-border);
}

.dark-list-card h3 {
    margin-bottom: 0;
}

/* Resources page */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 34px;
}

.resource-card {
    min-height: 200px;
    padding: 24px;
    border: 1px solid var(--light-border);
    border-radius: 14px;
    background: var(--white);
    transition: 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(204, 0, 0, 0.38);
    box-shadow: var(--shadow);
}

.resource-card h3 {
    margin-top: 14px;
    margin-bottom: 8px;
}

.resource-card p {
    color: #5b5b5b;
}

.two-column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 72px;
    margin-top: 36px;
}

.simple-list {
    display: grid;
}

.simple-list a {
    display: grid;
    gap: 4px;
    padding: 20px 0;
    border-bottom: 1px solid var(--dark-border);
}

.simple-list a:hover strong {
    color: var(--scarlet-light);
}

.simple-list span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

/* Footer */

.site-footer {
    padding: 36px 0;
    border-top: 1px solid var(--dark-border);
    background: #080808;
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-title {
    margin-bottom: 4px;
    font-weight: 800;
}

.site-footer p:not(.footer-title) {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--scarlet-light);
}

/* Tablet layout */

@media (max-width: 900px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .nav-links {
        justify-content: flex-start;
        gap: 14px 20px;
    }

    .hero {
        min-height: 680px;
    }

    .split-layout,
    .image-text-layout,
    .meeting-layout,
    .two-column-list {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .three-column,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .join-actions {
        grid-template-columns: 1fr;
    }

    .content-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .meeting-details {
        padding: 0 0 0 18px;
    }
}

/* Mobile layout */

@media (max-width: 560px) {
    h1 {
        font-size: 3.4rem;
    }

    .section {
        padding: 76px 0;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding: 80px 0;
    }

    .image-panel {
        min-height: 290px;
    }

    .footer-layout {
        align-items: flex-start;
        flex-direction: column;
    }
}