/* ALGON Liverpool 2025 — shared stylesheet */

:root {
    --green-900: #0b2e24;
    --green-800: #0f3d30;
    --green-600: #1b6b52;
    --brass: #c9a341;
    --brass-pale: #ecdfb4;
    --paper: #f4f7f5;
    --white: #ffffff;
    --ink: #12211c;
    --muted: #52625c;
    --line: #d6dfda;

    --display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
    --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --wrap: 1180px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(3.5rem, 8vw, 6.5rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: var(--green-600);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--green-900);
}

:focus-visible {
    outline: 3px solid var(--brass);
    outline-offset: 3px;
    border-radius: 2px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--brass);
    color: var(--green-900);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--green-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.5rem;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
}

.brand span {
    font-weight: 400;
    color: var(--brass-pale);
}

.brand:hover {
    color: var(--white);
}

.site-nav ul {
    display: flex;
    gap: clamp(1rem, 2.2vw, 2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover {
    color: var(--white);
}

.site-nav a[aria-current="page"] {
    color: var(--white);
    border-bottom-color: var(--brass);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    font: 500 0.95rem var(--body);
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    cursor: pointer;
}

.nav-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
}

@media (max-width: 900px) {
    .js .nav-toggle {
        display: inline-flex;
    }

    .site-header .wrap {
        flex-wrap: wrap;
        padding-block: 0.9rem;
    }

    .site-nav {
        flex-basis: 100%;
    }

    .js .site-nav {
        display: none;
    }

    .js .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding-bottom: 0.5rem;
    }

    .site-nav li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-nav a {
        padding: 0.8rem 0;
        border-bottom: 0;
    }

    .site-nav a[aria-current="page"] {
        color: var(--brass-pale);
    }
}

/* ---------- Heroes ---------- */

.hero,
.page-hero {
    position: relative;
    color: var(--white);
    background-color: var(--green-900);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(11, 46, 36, 0.95) 0%, rgba(11, 46, 36, 0.82) 45%, rgba(11, 46, 36, 0.5) 100%);
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(46rem, calc(100vh - 4.5rem));
}

.hero-body {
    padding-block: clamp(4rem, 10vw, 7rem) clamp(2.5rem, 6vw, 4rem);
}

.hero h1 {
    max-width: 17ch;
    font-size: clamp(2.5rem, 6.4vw, 5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-sub {
    max-width: 44ch;
    margin-top: 1.5rem;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.25rem;
}

.facts {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(11, 46, 36, 0.72);
    backdrop-filter: blur(6px);
}

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

.facts div div {
    padding: 1.4rem 1.75rem 1.5rem 0;
}

.facts div div + div {
    padding-left: 1.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.facts dt {
    font-size: 0.875rem;
    color: var(--brass-pale);
}

.facts dd {
    margin: 0.2rem 0 0;
    font-family: var(--display);
    font-size: clamp(1.1rem, 1.7vw, 1.4rem);
    font-weight: 600;
    line-height: 1.25;
}

@media (max-width: 760px) {
    .facts .wrap {
        grid-template-columns: 1fr;
    }

    .facts div div,
    .facts div div + div {
        padding: 1rem 0;
        border-left: 0;
    }

    .facts div div + div {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }
}

.page-hero .wrap {
    padding-block: clamp(4rem, 9vw, 6.5rem) clamp(2.5rem, 5vw, 3.5rem);
}

.page-hero h1 {
    max-width: 20ch;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.page-hero p {
    max-width: 48ch;
    margin-top: 1rem;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
}

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--brass);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: 4px;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
    background: var(--brass);
    color: var(--green-900);
}

.btn-primary:hover {
    background: var(--brass-pale);
    color: var(--green-900);
}

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
    color: var(--white);
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
    color: var(--green-900);
    border-color: var(--green-900);
}

.btn-outline:hover {
    background: var(--green-900);
    color: var(--white);
}

/* ---------- Sections ---------- */

.section {
    padding-block: var(--section);
}

.section-tint {
    background: var(--paper);
}

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

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head .section-title {
    margin-bottom: 0;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.split .section-title {
    margin-bottom: 0;
}

.prose {
    max-width: 66ch;
}

.prose p {
    font-size: 1.125rem;
    color: var(--muted);
}

.prose p + p {
    margin-top: 1.2rem;
}

.prose .btn {
    margin-top: 2rem;
}

@media (max-width: 820px) {
    .split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ---------- Theme statement ---------- */

.theme blockquote {
    margin: 0;
    padding-left: clamp(1.25rem, 3vw, 2.25rem);
    border-left: 4px solid var(--brass);
}

.theme blockquote p {
    max-width: 24ch;
    font-family: var(--display);
    font-size: clamp(1.75rem, 4.2vw, 3.25rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.theme-note {
    max-width: 60ch;
    margin-top: 2rem;
    padding-left: calc(clamp(1.25rem, 3vw, 2.25rem) + 4px);
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- Speakers ---------- */

.speakers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.speaker img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
    background: var(--line);
    border-radius: 4px;
}

.speaker h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
    line-height: 1.2;
}

.speaker p {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--muted);
}

@media (min-width: 640px) {
    .speakers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.75rem 2rem;
    }
}

@media (min-width: 1040px) {
    .speakers-all {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 3rem 1.75rem;
    }

    .speakers-all .speaker h3 {
        font-size: 1.1rem;
    }

    .speakers-all .speaker p {
        font-size: 0.9rem;
    }
}

/* ---------- Objectives ---------- */

.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 4vw, 3.5rem);
}

.pillar {
    padding-top: 1.5rem;
    border-top: 3px solid var(--green-900);
}

.pillar h3 {
    font-size: 1.5rem;
}

.pillar p {
    margin-top: 0.9rem;
    color: var(--muted);
}

@media (max-width: 820px) {
    .pillars {
        grid-template-columns: 1fr;
    }
}

/* ---------- Why attend ---------- */

.audiences {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4.5rem);
}

.audience h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    padding-bottom: 1.1rem;
    border-bottom: 3px solid var(--brass);
}

.checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding: 1rem 0 1rem 2rem;
    border-bottom: 1px solid var(--line);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 1.45rem;
    width: 0.85rem;
    height: 0.45rem;
    border-left: 2.5px solid var(--green-600);
    border-bottom: 2.5px solid var(--green-600);
    transform: rotate(-45deg);
}

@media (max-width: 820px) {
    .audiences {
        grid-template-columns: 1fr;
    }
}

/* ---------- Delegates ---------- */

.roster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 4.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.roster li {
    padding: 1.15rem 0;
    font-family: var(--display);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 500;
    line-height: 1.3;
    border-bottom: 1px solid var(--line);
}

.roster-small li {
    font-family: var(--body);
    font-size: 1.0625rem;
    font-weight: 500;
}

@media (max-width: 700px) {
    .roster {
        grid-template-columns: 1fr;
    }
}

/* ---------- Venue ---------- */

.venue {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.venue img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--line);
    border-radius: 4px;
}

.venue h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

.venue-meta {
    margin-top: 1.25rem;
    padding: 1.1rem 0;
    border-block: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--green-600);
}

.venue-text {
    margin-top: 1.25rem;
    font-size: 1.125rem;
    color: var(--muted);
}

@media (max-width: 820px) {
    .venue {
        grid-template-columns: 1fr;
    }
}

/* ---------- Contact ---------- */

.contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4.5rem);
}

.contact {
    padding-top: 1.5rem;
    border-top: 3px solid var(--green-900);
}

.contact h2 {
    font-size: 1rem;
    font-family: var(--body);
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
}

.contact h3 {
    margin-top: 0.5rem;
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.contact address {
    margin-top: 1rem;
    font-style: normal;
    color: var(--muted);
}

.contact dl {
    margin: 1.5rem 0 0;
}

.contact dl div {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
}

.contact dt {
    color: var(--muted);
}

.contact dd {
    margin: 0;
    font-weight: 500;
    overflow-wrap: anywhere;
}

@media (max-width: 820px) {
    .contacts {
        grid-template-columns: 1fr;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
    gap: 2.5rem;
    padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-main .brand {
    font-size: 1.4rem;
}

.footer-about p {
    max-width: 38ch;
    margin-top: 0.9rem;
}

.site-footer h2 {
    font-family: var(--body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--brass-pale);
    margin-bottom: 0.8rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 1.5rem;
}

.site-footer li {
    padding: 0.2rem 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-contact p + p {
    margin-top: 0.35rem;
}

.footer-contact a {
    overflow-wrap: anywhere;
}

.footer-legal {
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 820px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
