/*
 * What Tailwind cannot say for us: the palette, the two typefaces, and the few
 * shapes the mockups rely on (the level diamond, the pink achievement band).
 *
 * Fonts. The mockups are set in Sentinel and Gotham, which are licensed and
 * cannot ship here. Zilla Slab and Jost are the closest free stand-ins: Zilla
 * Slab is a bracketed slab with the same sturdy headline colour as Sentinel,
 * Jost is a geometric sans cut from the same Futura lineage as Gotham. If you
 * licence the real pair, see the @font-face block at the bottom of this file.
 */

:root {
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --line: #e3e3e3;
    --surface: #f5f5f5;

    --green: #1e5945;
    --green-ink: #16432f;
    --red: #c8102e;
    --amber: #e8a33d;
    --purple: #6b2d91;
    --brown: #7a4b22;

    --pink: #fdf0f5;
    --pink-deep: #f7dde8;
}

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

body {
    color: var(--ink);
    font-family: 'Gotham', 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    background: #fff;
}

h1,
h2,
h3,
.font-display {
    font-family: 'Sentinel', 'Zilla Slab', ui-serif, Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* --- the coloured pills on event rows and status tags -------------------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.625rem;
    border: 1.5px solid currentColor;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.7;
    text-transform: uppercase;
    white-space: nowrap;
}

/* --- the level mark beside a member's name ------------------------------- */

/*
 * Cadette is a diamond, Junior a circle, Brownie a triangle — the shapes the
 * mockups use to tell the levels apart at a glance, drawn in CSS so there is no
 * icon set to ship.
 */
.level-mark {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 0.35rem;
    vertical-align: baseline;
}

.level-mark--diamond {
    background: var(--red);
    transform: rotate(45deg);
}

.level-mark--circle {
    background: var(--purple);
    border-radius: 9999px;
}

.level-mark--triangle {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 9px solid var(--brown);
    background: none;
}

/* --- the achievements band ----------------------------------------------- */

/*
 * The pale pink field with the outsized diamond watermarks behind the badge
 * grid. Two squares turned 45° and clipped by the band, not an image: they
 * scale to any width and cost no request.
 */
.achievement-band {
    position: relative;
    background: var(--pink);
    overflow: hidden;
}

.achievement-band::before,
.achievement-band::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: var(--pink-deep);
    transform: rotate(45deg);
    pointer-events: none;
}

.achievement-band::before {
    top: -120px;
    left: -160px;
}

.achievement-band::after {
    bottom: -180px;
    right: -150px;
}

/* --- avatars -------------------------------------------------------------- */

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-radius: 9999px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 700;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* The ring the mockups put around a scout's photo, in her level's colour. */
.avatar--ringed {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring, var(--red));
}

/* --- checklist step dots -------------------------------------------------- */

.step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    border: 1.5px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.step-dot--done {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.step-dot--current {
    border-color: var(--red);
    color: var(--red);
}

/* --- loading ------------------------------------------------------------- */

.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, #ececec 37%, var(--surface) 63%);
    background-size: 400% 100%;
    animation: skeleton 1.4s ease infinite;
    border-radius: 10px;
}

@keyframes skeleton {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton {
        animation: none;
    }
}

/* --- focus --------------------------------------------------------------- */

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/*
 * Licensed fonts go here. Drop the .woff2 files next to this stylesheet and
 * uncomment — the families below are listed first everywhere, so the Google
 * pair stays as the fallback until the real ones are present.
 *
 * @font-face { font-family: 'Sentinel'; src: url('./Sentinel-Bold.woff2') format('woff2'); font-weight: 700; }
 * @font-face { font-family: 'Gotham';   src: url('./Gotham-Book.woff2')   format('woff2'); font-weight: 400; }
 */
