/* ============================================================
   DrawGestures — Instagram Challenge
   challenge.css

   Campaign landing / rules / winner pages. Mobile-first and
   built entirely on the Sketchbook tokens (var(--paper),
   var(--ink), var(--sanguine), the type + spacing scales) so
   it stays visually identical to /guides and the home page.

   Namespace: .ch-*  ·  reuses global .btn .eyebrow .it .page
   ============================================================ */

/* ── Shared page rhythm ─────────────────────────────────── */
.challenge-page section {
    position: relative;
}

.ch-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.ch-eyebrow {
    justify-content: center;
}

/* A faint hand-drawn gesture line used as a section divider. */
.ch-stroke {
    display: block;
    width: 120px;
    height: 18px;
    margin: 0 auto;
    color: var(--sanguine);
    opacity: 0.55;
}
.ch-stroke svg { width: 100%; height: 100%; display: block; }

/* ── Hero ───────────────────────────────────────────────── */
.ch-hero {
    text-align: center;
    padding: 56px 0 40px;
}
.ch-hero .eyebrow { margin-bottom: 22px; }

.ch-hero h1 {
    font-family: var(--font-display);
    font-weight: var(--w-display);
    font-size: clamp(52px, 16vw, 132px);
    line-height: 0.94;
    letter-spacing: var(--tr-hero);
    margin: 0;
}
.ch-hero h1 .it { font-style: italic; color: var(--sanguine); }

.ch-hero .ch-subhead {
    font-family: var(--font-display);
    font-size: clamp(19px, 4.4vw, 24px);
    line-height: 1.45;
    color: var(--ink-soft);
    max-width: 30ch;
    margin: 20px auto 0;
}

/* ── Countdown ──────────────────────────────────────────── */
.ch-countdown {
    margin: 34px auto 0;
}
.ch-countdown__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    text-align: center;
    margin-bottom: 14px;
}
.ch-countdown__units {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.ch-unit {
    min-width: 64px;
    padding: 12px 8px;
    border: 1px solid var(--rule);
    border-radius: var(--r-chip);
    background: var(--paper-2);
    text-align: center;
}
.ch-unit b {
    display: block;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: clamp(26px, 8vw, 38px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.ch-unit span {
    display: block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.ch-countdown__closed {
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(20px, 5vw, 26px);
    color: var(--sanguine);
    padding: 10px 0;
}

/* ── CTAs ───────────────────────────────────────────────── */
.ch-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}
.ch-cta .btn { width: 100%; max-width: 340px; justify-content: center; }
.ch-cta .ch-cta-note {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.ch-cta .ch-cta-note strong { color: var(--sanguine); font-weight: 500; }

@media (min-width: 600px) {
    .ch-cta { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .ch-cta .btn { width: auto; }
    .ch-cta .ch-cta-note { flex-basis: 100%; text-align: center; }
}

/* ── Generic section header inside the campaign ─────────── */
.ch-section { padding: 40px 0; }
.ch-section__head {
    text-align: center;
    margin-bottom: 34px;
}
.ch-section__head .num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sanguine);
    display: block;
    margin-bottom: 12px;
}
.ch-section__head h2 {
    font-family: var(--font-display);
    font-weight: var(--w-display);
    font-size: clamp(30px, 7vw, 48px);
    line-height: 1;
    letter-spacing: var(--tr-display);
    margin: 0;
}
.ch-section__head h2 .it { font-style: italic; color: var(--sanguine); }

/* ── How to enter — numbered steps ──────────────────────── */
.ch-steps {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 620px;
    display: grid;
    gap: 14px;
}
.ch-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--rule);
    border-radius: 18px;
    background: var(--paper-2);
}
.ch-step__n {
    grid-row: span 2;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
}
.ch-step__icon {
    width: 22px; height: 22px;
    color: var(--sanguine);
    margin-bottom: 6px;
}
.ch-step__icon svg { width: 100%; height: 100%; }
.ch-step h3 {
    font-family: var(--font-display);
    font-weight: var(--w-h3);
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 4px;
}
.ch-step p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0;
}
.ch-step .req {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sanguine);
}

/* ── Prize card ─────────────────────────────────────────── */
.ch-prize {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 44px 28px;
    border: 1.6px solid var(--ink);
    border-radius: 24px;
    background: var(--paper-2);
}
.ch-prize__kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sanguine);
    margin-bottom: 16px;
}
.ch-prize__name {
    font-family: var(--font-display);
    font-weight: var(--w-display);
    font-size: clamp(32px, 8vw, 56px);
    line-height: 1.02;
    letter-spacing: var(--tr-display);
    margin: 0;
}
.ch-prize__sub {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    color: var(--ink-soft);
    margin: 14px 0 0;
}

/* ── How the winner is chosen ───────────────────────────── */
.ch-how {
    max-width: 640px;
    margin: 0 auto;
    padding: 30px;
    border-left: 3px solid var(--sanguine);
    background: var(--paper-2);
    border-radius: 4px 18px 18px 4px;
}
.ch-how p {
    font-family: var(--font-display);
    font-size: clamp(19px, 4.6vw, 23px);
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
}
.ch-how p .em { font-style: italic; color: var(--sanguine); }

/* ── See the entries ────────────────────────────────────── */
.ch-entries { text-align: center; }

/* ── Key dates ──────────────────────────────────────────── */
.ch-dates {
    max-width: 540px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}
.ch-dates li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--rule);
}
.ch-dates li:first-child { border-top: 1px solid var(--rule); }
.ch-dates dt,
.ch-dates .ch-dates__k {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.ch-dates .ch-dates__v {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--ink);
    text-align: right;
}

/* ── Campaign footer (rules + disclaimer) ───────────────── */
.ch-foot {
    text-align: center;
    padding: 48px 0 8px;
    border-top: 1px solid var(--rule);
}
.ch-foot__links {
    display: flex;
    gap: 22px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.ch-foot__links a {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
    transition: color .15s;
}
.ch-foot__links a:hover { color: var(--sanguine); }
.ch-disclaimer {
    max-width: 520px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-faint);
}

/* ── Rules page (long-form) ─────────────────────────────── */
.ch-rules { padding: 40px 0 24px; }
.ch-rules h1 {
    font-family: var(--font-display);
    font-weight: var(--w-display);
    font-size: clamp(38px, 9vw, 64px);
    line-height: 1;
    letter-spacing: var(--tr-display);
    margin: 0 0 10px;
}
.ch-rules .ch-rules__meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 40px;
}
.ch-rules h2 {
    font-family: var(--font-display);
    font-weight: var(--w-h3);
    font-size: clamp(22px, 5vw, 30px);
    line-height: 1.15;
    margin: 40px 0 12px;
}
.ch-rules h2 .num { color: var(--sanguine); font-style: italic; margin-right: 10px; }
.ch-rules p,
.ch-rules li {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.62;
    color: var(--ink);
}
.ch-rules p { margin: 0 0 14px; }
.ch-rules ul, .ch-rules ol { margin: 0 0 16px; padding-left: 22px; }
.ch-rules li { margin-bottom: 8px; }
.ch-rules a { color: var(--sanguine); border-bottom: 1px solid currentColor; }
.ch-rules strong { font-weight: var(--w-strong); }

/* ── Winner page ────────────────────────────────────────── */
.ch-winner-hero {
    text-align: center;
    padding: 48px 0 32px;
}
.ch-winner-hero .ch-handle {
    font-family: var(--font-display);
    font-weight: var(--w-display);
    font-style: italic;
    font-size: clamp(40px, 11vw, 80px);
    color: var(--sanguine);
    line-height: 1;
    margin: 14px 0 0;
    word-break: break-word;
}
.ch-winner-embed {
    max-width: 540px;
    margin: 8px auto 0;
}
.ch-winner-embed iframe,
.ch-winner-embed .ch-embed-ph {
    width: 100%;
    border: 1px solid var(--rule);
    border-radius: 18px;
    background: var(--paper-2);
}
.ch-embed-ph {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    text-align: center;
    padding: 24px;
}
.ch-winner-thanks {
    max-width: 540px;
    margin: 28px auto 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(19px, 4.6vw, 23px);
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ── Larger screens — a touch more air ──────────────────── */
@media (min-width: 760px) {
    .ch-hero { padding: 80px 0 52px; }
    .ch-unit { min-width: 84px; padding: 16px 12px; }
    .ch-countdown__units { gap: 14px; }
}