/* =============================================================
   TORONTO-PALOOZA 2026 - styles
   =============================================================*/

:root {
    --ink: #191720;
    --night: #221E2E;
    --paper: #EDE8DE;
    --card: #FBF8F2;
    --red: #E8112D;
    --signal: #FFC93C;
    --slate: #645C6E;
    --hair: #D4CCC0;
    --day: #E8112D;
    --display: 'Anton', 'Haettenschweiler', 'Impact', 'Arial Narrow Bold', sans-serif;
    --body: 'Barlow', system-ui, -apple-system, sans-serif;
    --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.5;
}

.wrap {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 20px
}

a {
    color: inherit
}

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

/* =============================================================
   1. HERO - the dark departure board at the top
   ============================================================= */
.board {
    background: var(--night);
    color: var(--card);
    padding: 38px 0 30px;
    border-bottom: 6px solid var(--red)
}

.board .wrap {
    position: relative
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--signal);
    margin: 0 0 14px
}

.wordmark {
    font-family: var(--display);
    font-size: clamp(46px, 11.5vw, 116px);
    line-height: .84;
    letter-spacing: -.015em;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.wordmark .split {
    display: block
}

.wordmark .palooza {
    color: var(--red);
    -webkit-text-stroke: 1px var(--red);
    margin-left: .06em
}

.wordmark .split {
    transition: transform .3s ease
}

.board:hover .wordmark .palooza {
    transform: translateX(6px)
}

.boardrow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .13);
    margin-top: 26px
}

.bcell {
    background: var(--night);
    padding: 13px 14px
}

.bcell dt {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #9AA1B2;
    margin: 0 0 5px
}

.bcell dd {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

.bcell dd .sm {
    font-size: 13px;
    font-weight: 500;
    color: #9AA1B2;
    display: block;
    letter-spacing: .02em
}

#countdown {
    color: var(--signal)
}

/* =============================================================
   1b. TICKER - the scrolling band under the hero
   ============================================================= */
.ticker {
    background: var(--ink);
    color: var(--card);
    overflow: hidden;
    padding: 9px 0;
    border-bottom: 4px solid var(--signal)
}

.ticker div {
    display: flex;
    gap: 0;
    width: max-content;
    animation: roll 34s linear infinite;
    will-change: transform
}

.ticker span {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 0 22px;
    white-space: nowrap;
    position: relative
}

.ticker span::after {
    content: "◆";
    position: absolute;
    right: -5px;
    color: var(--signal);
    font-size: 9px;
    top: 2px
}

.ticker:hover div {
    animation-play-state: paused
}

@keyframes roll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* =============================================================
   2. ALERT STRIP - the yellow band (Thursday night, Thanksgiving)
   ============================================================= */
.alerts {
    background: var(--signal);
    color: var(--ink);
    padding: 16px 0
}

.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 15.5px
}

.alert+.alert {
    border-top: 1px solid rgba(21, 22, 27, .22);
    margin-top: 6px;
    padding-top: 12px
}

.alert b {
    font-weight: 700
}

.tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--signal);
    padding: 4px 7px;
    white-space: nowrap;
    flex: none;
    margin-top: 1px
}

/* =============================================================
   3. SHARED - section padding, headings, intro paragraphs
   ============================================================= */
section {
    padding: 52px 0
}

.sechead {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 6px
}

h2 {
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: -.005em;
    font-size: clamp(28px, 5.2vw, 44px);
    line-height: 1;
    margin: 0;
    font-weight: 400
}

.sechead .num {
    font-family: var(--display);
    font-size: clamp(30px, 5.4vw, 46px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--hair);
    letter-spacing: .01em
}

.lede {
    color: var(--slate);
    margin: 0 0 26px;
    max-width: 62ch;
    font-size: 16px
}

/* =============================================================
   4. DAY TABS - Friday / Saturday / Sunday / Monday
   ============================================================= */
.blind {
    display: flex;
    gap: 8px;
    margin-bottom: 26px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 2px 6px
}

.blind::-webkit-scrollbar {
    display: none
}

.blind button {
    flex: 1 1 0;
    min-width: 120px;
    appearance: none;
    cursor: pointer;
    position: relative;
    background: var(--card);
    color: var(--slate);
    text-align: left;
    padding: 13px 15px;
    border: 2px solid var(--ink);
    border-radius: 10px;
    border-left: 9px solid var(--hair);
    box-shadow: 0 3px 0 var(--hair);
    font-family: var(--body);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.25;
    transition: transform .14s, box-shadow .14s, background .14s, color .14s, border-color .14s
}

.blind button .dnum {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--slate)
}

.blind button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--hair)
}

.blind button[aria-selected="true"] {
    background: var(--ink);
    color: var(--card);
    border-left-color: var(--day);
    box-shadow: 0 3px 0 var(--day);
    transform: translateY(-2px)
}

.blind button[aria-selected="true"] .dnum {
    color: var(--day);
    filter: brightness(1.5)
}

/* =============================================================
   5. DAY HEADER - route roundels, the italic note, opt toggle
   ============================================================= */
.daymeta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px
}

.roundel {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    background: var(--day);
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    letter-spacing: .04em;
    box-shadow: 0 2px 0 rgba(25, 23, 32, .18)
}

.roundel.walk {
    background: var(--ink)
}

.daynote {
    color: var(--slate);
    font-style: italic;
    margin: 0 0 26px;
    font-size: 16px;
    max-width: 64ch
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 14px;
    color: var(--slate);
    margin-bottom: 22px;
    user-select: none
}

.toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.track {
    width: 38px;
    height: 21px;
    border-radius: 999px;
    background: var(--hair);
    position: relative;
    transition: background .18s;
    flex: none
}

.track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--card);
    transition: transform .18s
}

.toggle input:checked+.track {
    background: var(--red)
}

.toggle input:checked+.track::after {
    transform: translateX(17px)
}

.toggle input:focus-visible+.track {
    outline: 3px solid var(--red);
    outline-offset: 3px
}

/* =============================================================
   6. THE ROUTE LINE - the vertical timeline and its stops

   .stop      filled red dot  = we're going
   .stop.opt  hollow ring     = optional stop
   .stop.brk  yellow square   = break back at the Airbnb

   The line itself is .route::before. To make it thicker,
   change its `width` and the `left` on .node to match.
   ============================================================= */
.route {
    position: relative;
    margin: 0;
    padding: 0 0 0 34px;
    list-style: none
}

.route::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 9px;
    bottom: 9px;
    width: 4px;
    background: var(--day);
    border-radius: 2px
}

.stop {
    position: relative;
    padding: 0 0 26px;
    animation: arrive .34s ease both;
    animation-delay: calc(var(--i, 0) * 42ms)
}

@keyframes arrive {
    from {
        opacity: 0;
        transform: translateX(-9px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.stop:last-child {
    padding-bottom: 0
}

.node {
    position: absolute;
    left: -34px;
    top: 4px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center
}

.node i {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--day);
    border: 4px solid var(--paper)
}

.stop.opt .node i {
    background: var(--paper);
    border: 4px solid var(--day);
    width: 16px;
    height: 16px
}

.stop.brk .node i {
    background: var(--signal);
    border: 4px solid var(--paper);
    border-radius: 3px;
    width: 17px;
    height: 17px
}

.time {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--slate);
    letter-spacing: .03em;
    display: block;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums
}

.stopname {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 4px;
    letter-spacing: -.005em
}

.stopname a {
    text-decoration: none;
    border-bottom: 2.5px solid color-mix(in srgb, var(--day) 34%, transparent);
    transition: border-color .15s, color .15s
}

.stopname a:hover {
    color: var(--day);
    border-bottom-color: var(--day)
}

.pill {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    border: 2px solid var(--ink);
    color: var(--ink);
    background: var(--signal);
    padding: 3px 7px;
    margin-left: 9px;
    border-radius: 4px;
    vertical-align: 3px;
    white-space: nowrap;
    display: inline-block;
    transform: rotate(-2.5deg);
    box-shadow: 0 2px 0 rgba(25, 23, 32, .2)
}

.pill.warn {
    background: var(--red);
    color: #fff;
    border-color: var(--ink);
    transform: rotate(2deg)
}

.stoptext {
    margin: 0;
    color: var(--slate);
    font-size: 15.5px;
    max-width: 62ch
}

.stoptext b {
    color: var(--ink);
    font-weight: 600
}

.stop.brk .stopname {
    color: #8A6A05
}

.aside {
    margin-top: 26px;
    border-left: 4px solid var(--hair);
    padding: 2px 0 2px 16px;
    color: var(--slate);
    font-size: 15.5px;
    max-width: 64ch
}

/* =============================================================
   7. BOOKING CHECKLIST
   ============================================================= */
.checks {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hair)
}

.checks li {
    border-bottom: 1px solid var(--hair)
}

.checks label {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 4px;
    cursor: pointer
}

.checks input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.box {
    flex: none;
    width: 22px;
    height: 22px;
    border: 2.5px solid var(--ink);
    border-radius: 6px;
    margin-top: 2px;
    display: grid;
    place-items: center;
    transition: background .15s, border-color .15s
}

.box::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2.5px solid var(--card);
    border-bottom: 2.5px solid var(--card);
    transform: rotate(-45deg) scale(.4);
    opacity: 0;
    transition: opacity .15s, transform .15s;
    margin-top: -2px
}

.checks input:checked+.box {
    background: var(--ink);
    animation: pop .28s ease
}

@keyframes pop {
    0% {
        transform: scale(1)
    }

    45% {
        transform: scale(1.22) rotate(-6deg)
    }

    100% {
        transform: scale(1)
    }
}

.checks input:checked+.box::after {
    opacity: 1;
    transform: rotate(-45deg) scale(1)
}

.checks input:focus-visible+.box {
    outline: 3px solid var(--red);
    outline-offset: 3px
}

.ctext {
    font-size: 16.5px;
    line-height: 1.4
}

.ctext .why {
    display: block;
    color: var(--slate);
    font-size: 14.5px;
    margin-top: 2px
}

.checks input:checked~.ctext {
    color: var(--slate);
    text-decoration: line-through;
    text-decoration-color: var(--hair)
}

.tally {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--slate);
    margin-top: 14px
}

.clear {
    appearance: none;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-left: 8px;
    background: none;
    border: 0;
    color: var(--red);
    text-decoration: underline;
    padding: 2px 4px
}

.clear:hover {
    color: var(--ink)
}

/* =============================================================
   8. STILL DECIDING - the card grid
   ============================================================= */
.decks {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr))
}

.deck {
    background: var(--card);
    border: 2px solid var(--ink);
    border-top: 7px solid var(--ink);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 3px 0 var(--hair);
    transition: transform .15s, box-shadow .15s
}

.deck:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 var(--hair)
}

.deck.hot {
    border-top-color: var(--red);
    box-shadow: 0 3px 0 rgba(232, 17, 45, .3)
}

.deck.hot:hover {
    box-shadow: 0 6px 0 rgba(232, 17, 45, .3)
}

.deck h3 {
    margin: 0 0 7px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.005em
}

.deck p {
    margin: 0;
    color: var(--slate);
    font-size: 15px
}

/* =============================================================
   9. FOOD - filter chips and the restaurant cards
   ============================================================= */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px
}

.chip {
    appearance: none;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 8px 14px;
    border: 2px solid var(--ink);
    background: var(--card);
    border-radius: 999px;
    color: var(--ink);
    box-shadow: 0 2px 0 var(--hair);
    transition: transform .14s, background .14s, color .14s, box-shadow .14s
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--hair)
}

.chip[aria-pressed="true"] {
    background: var(--ink);
    color: var(--card);
    box-shadow: 0 2px 0 var(--red)
}

.grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr))
}

.food {
    background: var(--card);
    border: 2px solid var(--ink);
    border-radius: 12px;
    padding: 15px 16px;
    box-shadow: 0 3px 0 var(--hair);
    transition: transform .15s, box-shadow .15s
}

.food:hover {
    transform: translateY(-3px) rotate(-.4deg);
    box-shadow: 0 6px 0 var(--hair)
}

.food .cat {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red);
    display: block;
    margin-bottom: 5px
}

.food h4 {
    margin: 0 0 5px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.25
}

.food h4 a {
    text-decoration: none;
    border-bottom: 2px solid rgba(206, 17, 38, .3)
}

.food h4 a:hover {
    color: var(--red);
    border-bottom-color: var(--red)
}

.food p {
    margin: 0;
    font-size: 14.5px;
    color: var(--slate)
}

.inplan {
    display: inline-block;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
    padding: 2px 7px;
    margin-left: 7px;
    vertical-align: 3px;
    border: 2px solid var(--red);
    border-radius: 4px;
    transform: rotate(-3deg);
    display: inline-block;
    opacity: .85
}

/* =============================================================
   10. FLIGHTS TABLE
   ============================================================= */
.tablewrap {
    overflow-x: auto
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 560px;
    font-size: 15.5px
}

th,
td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--hair)
}

th {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--slate);
    font-weight: 400;
    border-bottom: 2px solid var(--ink)
}

td.t {
    font-family: var(--mono);
    font-size: 14px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums
}

tr.noflight td {
    color: var(--red)
}

/* =============================================================
   11. FOOTER - add-your-stuff bar and links
   ============================================================= */
footer {
    background: var(--ink);
    color: var(--card);
    padding: 44px 0 54px;
    margin-top: 20px
}

footer h2 {
    color: var(--card)
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none
}

.links a {
    display: inline-block;
    font-size: 14.5px;
    text-decoration: none;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .24);
    transition: background .15s, border-color .15s
}

.links a:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--card)
}

.fine {
    color: #9AA1B2;
    font-size: 14px;
    margin-top: 26px;
    max-width: 60ch
}

.docbar {
    background: var(--card);
    color: var(--ink);
    border: 2px solid var(--ink);
    padding: 18px 20px;
    margin-top: 8px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap
}

.docbar p {
    margin: 0;
    font-size: 16px;
    flex: 1 1 260px
}

.docbar b {
    font-weight: 700
}

.docbtn {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    white-space: nowrap
}

.docbtn:hover {
    background: var(--ink)
}

/* =============================================================
   12. MOBILE + ACCESSIBILITY
   ============================================================= */
@media (max-width:620px) {
    body {
        font-size: 16px
    }

    .eyebrow {
        letter-spacing: .13em;
        font-size: 10.5px
    }

    .board {
        padding-top: 30px
    }

    section {
        padding: 40px 0
    }

    .route {
        padding-left: 30px
    }

    .node {
        left: -30px
    }

    .stopname {
        font-size: 17.5px
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important
    }

    .stop {
        opacity: 1 !important;
        transform: none !important
    }

    .pill,
    .inplan {
        transform: none !important
    }

    /* No scrolling, so: drop the duplicate run and let the strip be
     swiped instead. One tidy line, not a wrapped block of text. */
    .ticker {
        overflow-x: auto;
        scrollbar-width: none
    }

    .ticker::-webkit-scrollbar {
        display: none
    }

    .ticker div {
        width: max-content
    }

    .ticker [data-dupe] {
        display: none
    }
}
