/* Rational Selection Ltd: colours are taken from the logo's own inks. */
:root {
    color-scheme: light dark;
    --ink: #0a1521;
    --ink-soft: #46525f;
    --bg: #fafaf7;
    --surface: #ffffff;
    --line: #e3e6e1;
    --orange: #d15631;
    --mint: #7dbea8;
    --link: #23705a;
    --button-bg: #0a1521;
    --button-ink: #ffffff;
    --radius: 18px;
    --shadow: 0 1px 2px rgb(10 21 33 / 0.04), 0 8px 24px rgb(10 21 33 / 0.06);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink: #ecf1f6;
        --ink-soft: #a7b2bf;
        --bg: #0e1722;
        --surface: #152131;
        --line: #243347;
        --link: #92c9b4;
        --button-bg: #ecf1f6;
        --button-ink: #0a1521;
        --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    }
}

:root[data-theme="dark"] {
    --ink: #ecf1f6;
    --ink-soft: #a7b2bf;
    --bg: #0e1722;
    --surface: #152131;
    --line: #243347;
    --link: #92c9b4;
    --button-bg: #ecf1f6;
    --button-ink: #0a1521;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Two-tone stripe: the tangled orange half and the tidy mint half of the brain. */
body::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--orange) 0 50%, var(--mint) 50% 100%);
}

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

a {
    color: var(--link);
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

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

.page {
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero */
.hero {
    padding: clamp(40px, 9vw, 88px) 0 clamp(32px, 6vw, 56px);
    text-align: center;
}

.hero picture img {
    width: min(200px, 52vw);
    margin: 0 auto;
}

.hero h1 {
    margin: 0;
}

.hero .tagline {
    margin-top: 36px;
    max-width: none;
    font-style: italic;
    text-wrap: balance;
}

.tagline strong {
    color: var(--ink);
    font-weight: 650;
}

.lead {
    max-width: 34rem;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: clamp(1.0625rem, 2.4vw, 1.2rem);
}

/* Content */
main section {
    margin-bottom: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(22px, 4.5vw, 36px);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--ink-soft);
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 3.2vw, 1.6rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 14px;
}

.card > :last-child {
    margin-bottom: 0;
}

/* Contact details sit straight on the page, centred under the tagline (no box). */
.contact {
    text-align: center;
}

.contact .actions {
    justify-content: center;
    margin-top: 18px;
}

.contact .button {
    min-height: 38px;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 600;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--button-bg);
    color: var(--button-ink);
    font-weight: 650;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.muted {
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.after-actions {
    margin-top: 18px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Footer: the company details UK law requires on a company website. */
.site-footer {
    margin-top: 44px;
    padding: 28px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.875rem;
    line-height: 1.6;
}

.site-footer p {
    margin: 0 0 6px;
}

.site-footer strong {
    color: var(--ink);
}

/* 404 page */
.not-found {
    min-height: 70vh;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 48px 0;
}

.not-found img {
    width: 96px;
    margin: 0 auto 24px;
}

.not-found .actions {
    justify-content: center;
}

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

    .button:hover {
        transform: none;
    }
}
