:root {
    --ink: #12284b;
    --ink-soft: #55607a;
    --line: #dfe3ea;
    --bg: #f6f7f9;
    --card: #ffffff;
    --radius: 14px;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

a {
    color: inherit;
}

.page {
    max-width: 62rem;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4.5rem) 1.25rem 3rem;
}

/* ---- Masthead ---- */

.masthead {
    text-align: center;
    margin-bottom: 2.25rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.masthead h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.lede {
    max-width: 34rem;
    margin: 0 auto;
    color: var(--ink-soft);
}

/* ---- Redirect notice ---- */

.notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 2rem;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    text-align: center;
}

.notice-quiet {
    color: var(--ink-soft);
}

.notice-text {
    margin: 0;
}

.notice-cancel {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.notice.is-cancelled .notice-countdown,
.notice.is-cancelled .notice-cancel {
    display: none;
}

/* ---- Brand cards ---- */

.brands {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    margin: 0 0 3rem;
    padding: 0;
    list-style: none;
}

.brand-card {
    display: flex;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-card.is-target {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.brand-card:hover,
.brand-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgb(18 40 75 / 0.12);
}

.brand-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.brand-link:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: -3px;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6.5rem;
    padding: 1rem;
    background: var(--accent);
    color: var(--accent-text);
}

.brand-mark img {
    max-width: 100%;
    max-height: 4.5rem;
}

.brand-wordmark {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
}

.brand-body {
    flex: 1;
    padding: 1.15rem 1.25rem 0.5rem;
}

.brand-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.brand-description {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.94rem;
    color: var(--ink-soft);
}

.brand-go {
    padding: 0.75rem 1.25rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.brand-card:hover .brand-go,
.brand-card:focus-within .brand-go {
    color: var(--ink);
}

/* ---- Territory map ---- */

.map {
    margin: 0;
    text-align: center;
}

.map img {
    width: 100%;
    max-width: 46rem;
    height: auto;
}

.map figcaption {
    margin-top: 0.4rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

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

.footer {
    border-top: 1px solid var(--line);
    padding: 1.25rem;
    text-align: center;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.footer p {
    margin: 0;
}

.attribution {
    margin-top: 0.35rem;
    font-size: 0.76rem;
    opacity: 0.75;
}

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

    .brand-card:hover,
    .brand-card:focus-within {
        transform: none;
    }
}
