@font-face
{
    font-family: "Bricolage Grotesque";
    src: url("./fonts/bricolage.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face
{
    font-family: Inter;
    src: url("./fonts/inter.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face
{
    font-family: "JetBrains Mono";
    src: url("./fonts/jetbrains-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face
{
    font-family: "JetBrains Mono";
    src: url("./fonts/jetbrains-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

:root
{
    color-scheme: dark;
    --stage: #0c0d10;
    --stage-2: #131519;
    --line: #23262d;
    --bone: #f2efe9;
    --mist: #8e939d;
    --spotlight: #e8b44a;
    --spotlight-deep: #c99633;
    --spotlight-mist: #2e2712;
    --good: #7fb069;
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --display: "Bricolage Grotesque", system-ui, sans-serif;
    --sans: Inter, system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    font-family: var(--sans);
    background: var(--stage);
    color: var(--bone);
}

*
{
    box-sizing: border-box;
}

body
{
    margin: 0;
}

button, a
{
    -webkit-tap-highlight-color: transparent;
}

button
{
    font: 600 13px var(--sans);
    color: inherit;
    cursor: pointer;
}

button:disabled
{
    cursor: default;
    opacity: 0.3;
}

button:hover:not(:disabled)
{
    border-color: var(--mist);
    color: var(--spotlight);
}

button:active:not(:disabled)
{
    color: var(--spotlight-deep);
}

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

a
{
    color: var(--spotlight);
    text-underline-offset: 5px;
}

[hidden]
{
    display: none !important;
}

.mono, kbd
{
    font-family: var(--mono);
}

.muted
{
    color: var(--mist);
}

.progress
{
    position: fixed;
    z-index: 4;
    inset: 0 0 auto;
    height: 2px;
    background: var(--line);
}

.progress-fill
{
    display: block;
    height: 100%;
    background: var(--spotlight);
    transition: width 260ms var(--ease-out);
}

.masthead
{
    position: absolute;
    top: 37px;
    left: 72px;
    right: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mist);
}

.masthead-mark
{
    display: flex;
    align-items: center;
    gap: 12px;
}

.masthead-mark::before
{
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--spotlight);
}

.stage
{
    min-height: 100dvh;
    outline: none;
}

.slide
{
    min-height: 100dvh;
    padding: 126px 72px 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-inner
{
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.slide.is-entering .slide-inner
{
    animation: arrive 320ms var(--ease-out) both;
}

.eyebrow
{
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--spotlight);
    font: 400 12px var(--mono);
    letter-spacing: 0.02em;
    margin: 0 0 28px;
}

.eyebrow::before
{
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

h1, h2, h3, p
{
    margin: 0;
}

h1
{
    font: 600 clamp(56px, 9vw, 120px)/0.99 var(--display);
    letter-spacing: -0.055em;
    margin-left: -5px;
}

h1 span, .statement-title span
{
    display: block;
}

.warm
{
    color: var(--spotlight);
}

.title-topic
{
    color: var(--mist);
    font-size: 18px;
    line-height: 1.6;
    margin-top: 32px;
}

.speaker
{
    margin-top: 55px;
    display: flex;
    align-items: center;
    gap: 23px;
}

.speaker-rule
{
    width: 1px;
    height: 35px;
    background: var(--line);
}

.speaker-name
{
    font-size: 17px;
    font-weight: 500;
}

.speaker-venue
{
    color: var(--mist);
    font-size: 13px;
    line-height: 1.8;
}

.speaker small
{
    display: block;
    color: var(--mist);
    font: 11px/1.8 var(--mono);
}

.slide-title
{
    font: 600 clamp(35px, 4vw, 56px)/1.08 var(--display);
    letter-spacing: -0.035em;
    margin-bottom: 36px;
    max-width: 1000px;
}

.agenda
{
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 880px;
}

.agenda li
{
    display: grid;
    grid-template-columns: 58px 1fr;
    padding: 23px 0;
    border-top: 1px solid var(--line);
}

.agenda-number, .bullet-number
{
    color: var(--spotlight);
    font: 13px/1.8 var(--mono);
    padding-top: 5px;
}

.agenda h3
{
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.35;
}

.agenda p, .bullet p
{
    margin-top: 5px;
    color: var(--mist);
    line-height: 1.6;
    font-size: 15px;
}

.aside
{
    color: var(--mist);
    font: 12px/1.8 var(--mono);
    margin-top: 27px;
}

.statement-title
{
    font: 600 clamp(44px, 7vw, 96px)/1.09 var(--display);
    letter-spacing: -0.045em;
}

.statement-title .warm
{
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 14px;
    text-decoration-color: var(--spotlight-deep);
}

.statement .eyebrow
{
    margin-bottom: 43px;
}

.bullet-list
{
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 970px;
}

.bullet
{
    display: grid;
    grid-template-columns: 46px 1fr;
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.bullet h3
{
    font: 600 34px/1.15 var(--display);
    letter-spacing: -0.03em;
}

.is-entering .bullet, .is-entering .agenda li
{
    animation: arrive 320ms var(--ease-out) both;
    animation-delay: calc(var(--row) * 60ms);
}

.code-layout
{
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 36px;
    align-items: center;
}

.code .eyebrow
{
    margin-bottom: 20px;
}

.code .slide-title
{
    margin-bottom: 24px;
}

.code-panel
{
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--stage-2);
    overflow: hidden;
}

.code-header
{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--mist);
    font: 11px var(--mono);
    padding: 17px 20px;
}

.code-lines
{
    padding: 12px 10px;
    overflow-x: auto;
}

.code-line
{
    display: grid;
    grid-template-columns: 28px max-content;
    gap: 11px;
    min-width: max-content;
    font: 400 20px/1.7 var(--mono);
    white-space: pre;
    opacity: 0.4;
    border-bottom: 2px solid transparent;
    transition: opacity 180ms, border-color 160ms var(--ease-out);
}

.code-line.focused
{
    opacity: 1;
    border-bottom-color: var(--spotlight);
}

.line-number
{
    color: var(--mist);
    text-align: right;
    user-select: none;
}

.token-string
{
    color: var(--good);
}

.token-keyword
{
    color: var(--spotlight);
    background: var(--spotlight-mist);
}

.token-comment
{
    color: var(--mist);
}

.token-number
{
    color: #b7bdc8;
}

.token-function
{
    color: var(--spotlight);
}

.code-point
{
    font: 600 clamp(25px, 3vw, 39px)/1.2 var(--display);
    letter-spacing: -0.03em;
}

.code-detail
{
    font-size: 16px;
    color: var(--mist);
    line-height: 1.65;
    margin-top: 20px;
}

.focus-hint
{
    display: inline-flex;
    color: var(--spotlight);
    font: 11px var(--mono);
    border: 1px solid var(--line);
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 24px;
}

.two-col-layout
{
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

.narrative p
{
    font-size: 20px;
    line-height: 1.65;
    color: var(--mist);
    margin-bottom: 16px;
}

.narrative p:first-child
{
    color: var(--bone);
}

.postmortem
{
    border-left: 1px solid var(--line);
    padding-left: 32px;
}

.postmortem h3
{
    color: var(--spotlight);
    font: 12px var(--mono);
    margin-bottom: 22px;
}

.postmortem p
{
    font: 13px/1.6 var(--mono);
    padding: 17px 0;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 18px;
}

.postmortem b
{
    color: var(--spotlight);
    font-weight: 400;
}

.thanks-dot
{
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--good);
    margin-bottom: 25px;
}

.closing-title
{
    font: 600 clamp(68px, 9vw, 120px)/1 var(--display);
    letter-spacing: -0.06em;
}

.closing-speaker
{
    font-size: 24px;
    margin: 32px 0 12px;
}

.closing-link
{
    font-size: 15px;
}

.credit
{
    display: inline-block;
    color: var(--mist);
    font-size: 10px;
    margin-top: 45px;
}

.chrome
{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 72px 28px;
    background: var(--stage);
    z-index: 3;
}

.chrome-top
{
    border-top: 1px solid var(--line);
    padding-top: 21px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.chrome-group
{
    display: flex;
    align-items: center;
    gap: 8px;
}

.ghost
{
    min-height: 40px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--line);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.icon-button
{
    width: 40px;
    padding: 0;
}

svg
{
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.counter
{
    font: 12px var(--mono);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 16px;
    min-width: 80px;
    text-align: center;
}

.counter span
{
    color: var(--mist);
}

kbd
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--spotlight);
    background: var(--spotlight-mist);
    border: 1px solid #493b21;
    min-width: 22px;
    height: 21px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 400;
}

.keyboard-hint
{
    color: var(--mist);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-right: 12px;
}

.chrome-bottom
{
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--mist);
    font-size: 10px;
}

.touch-hint
{
    display: none;
}

.overlay
{
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    color: var(--bone);
    border: 0;
    background: rgb(12 13 16 / 96%);
    padding: 33px 72px;
    animation: appear 160ms var(--ease-out);
}

.overlay::backdrop
{
    background: rgb(12 13 16 / 88%);
}

.overlay-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.overlay-title
{
    font: 600 24px var(--display);
    letter-spacing: -0.02em;
}

.overlay-caption
{
    color: var(--mist);
    font-size: 12px;
    margin-top: 5px;
}

.overview-grid
{
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mini
{
    padding: 0;
    background: var(--stage-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: left;
    min-width: 0;
    overflow: hidden;
    animation: arrive 200ms var(--ease-out) both;
    animation-delay: calc(var(--row) * 30ms);
}

.mini.selected
{
    border-color: var(--spotlight);
    background: var(--spotlight-mist);
    box-shadow: inset 0 0 0 1px var(--spotlight);
}

.mini-preview
{
    height: 132px;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.mini-canvas
{
    position: absolute;
    inset: 0 auto auto 0;
    width: 1100px;
    height: 800px;
    padding: 60px 75px;
    display: flex;
    align-items: center;
    transform-origin: top left;
}

.mini-canvas .slide-inner
{
    width: 100%;
}

.mini-canvas h1
{
    font-size: 108px;
}

.mini-canvas .statement-title
{
    font-size: 77px;
}

.mini-canvas .speaker
{
    margin-top: 35px;
}

.mini-label
{
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px;
    padding: 12px;
    font-size: 11px;
    font-weight: 500;
}

.mini-label .mono
{
    color: var(--spotlight);
    font-size: 10px;
}

.notes-drawer
{
    height: 240px;
    position: fixed;
    top: auto;
    bottom: 0;
    padding: 24px 72px;
    background: var(--stage-2);
    border-top: 1px solid var(--line);
    animation: drawer-in 200ms var(--ease-out);
}

.notes-drawer::backdrop
{
    background: rgb(12 13 16 / 28%);
}

.notes-drawer .overlay-header
{
    margin-bottom: 17px;
}

.notes-content
{
    color: var(--mist);
    max-width: 960px;
    font-size: 15px;
    line-height: 1.65;
}

.notes-title-line
{
    display: flex;
    align-items: center;
    gap: 16px;
}

.sr-only
{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@keyframes arrive
{
    from { opacity: 0; transform: translateY(8px) scale(0.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes appear
{
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes drawer-in
{
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (min-width: 1400px)
{
    .code-line { font-size: 20px; }
}

@media (max-width: 1050px)
{
    .keyboard-hint { display: none; }
    .chrome { padding-left: 40px; padding-right: 40px; }
    .masthead { left: 40px; right: 40px; }
    .slide { padding-left: 40px; padding-right: 40px; }
    .two-col-layout { gap: 30px; }
    .narrative p { font-size: 17px; }
    .code-layout { gap: 23px; }
    .code-line { font-size: clamp(12px, 1.4vw, 18px); }
}

@media (max-width: 639px)
{
    .masthead { top: 27px; left: 24px; right: 24px; font-size: 9px; }
    .masthead-duration { display: none; }
    .slide { min-height: 100dvh; padding: 100px 24px 168px; }
    h1 { font-size: clamp(56px, 13.8vw, 84px); margin-left: -2px; line-height: 1.02; }
    .eyebrow { font-size: 10px; gap: 10px; margin-bottom: 26px; }
    .eyebrow::before { width: 19px; }
    .title-topic { font-size: 15px; max-width: 270px; margin-top: 25px; }
    .speaker { margin-top: 38px; gap: 16px; }
    .speaker-name { font-size: 16px; }
    .speaker-venue { font-size: 11px; }
    .speaker small { font-size: 10px; }
    .slide-title { font-size: 35px; margin-bottom: 27px; }
    .agenda li { grid-template-columns: 35px 1fr; padding: 19px 0; }
    .agenda h3 { font-size: 23px; }
    .agenda p, .bullet p { font-size: 13px; }
    .aside { font-size: 10px; }
    .statement-title { font-size: clamp(44px, 11.6vw, 72px); }
    .statement-title .warm { text-underline-offset: 8px; text-decoration-thickness: 2px; }
    .bullet { grid-template-columns: 31px 1fr; padding: 15px 0; }
    .bullet h3 { font-size: 27px; }
    .bullet-number { font-size: 11px; }
    .code-layout { grid-template-columns: 1fr; gap: 20px; }
    .code-line { font-size: 10.1px; gap: 6px; grid-template-columns: 18px max-content; }
    .code-lines { padding: 11px 7px; }
    .code-header { padding: 12px; font-size: 9px; }
    .code .slide-title { font-size: 31px; margin-bottom: 20px; }
    .code .eyebrow { margin-bottom: 17px; }
    .code-point { font-size: 25px; }
    .code-detail { font-size: 12px; margin-top: 10px; }
    .focus-hint { margin-top: 11px; font-size: 9px; padding: 7px 10px; }
    .code { padding-top: 88px; }
    .two-col-layout { grid-template-columns: 1fr; gap: 19px; }
    .narrative p { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
    .postmortem { padding-left: 15px; }
    .postmortem h3 { font-size: 10px; margin-bottom: 10px; }
    .postmortem p { font-size: 10px; padding: 8px 0; }
    .two-col { padding-top: 90px; }
    .two-col .slide-title { font-size: 32px; margin-bottom: 19px; }
    .two-col .eyebrow { margin-bottom: 17px; }
    .closing-title { font-size: 68px; }
    .closing-speaker { font-size: 21px; }
    .closing-link { font-size: 13px; }
    .credit { font-size: 9px; margin-top: 35px; }
    .chrome { padding: 0 24px 22px; }
    .chrome-top { gap: 6px; flex-wrap: wrap; padding-top: 15px; }
    .chrome-group { gap: 5px; }
    .ghost { padding: 0 9px; gap: 5px; font-size: 11px; }
    .icon-button { padding: 0; width: 35px; }
    .counter { min-width: 67px; padding: 11px; font-size: 11px; }
    .control-text { display: none; }
    .print-button { width: 35px; padding: 0; }
    .chrome-bottom { margin-top: 15px; font-size: 8px; }
    .desktop-hint { display: none; }
    .touch-hint { display: inline; }
    kbd { min-width: 18px; height: 18px; padding: 0 4px; font-size: 9px; }
    .overlay { padding: 24px; }
    .overlay-title { font-size: 22px; }
    .overlay-caption { font-size: 10px; line-height: 1.6; }
    .overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .mini-preview { height: 97px; }
    .mini-label { font-size: 9px; padding: 9px 7px; gap: 5px; min-height: 53px; }
    .mini-label .mono { font-size: 8px; }
    .notes-drawer { padding: 22px 24px; height: 340px; }
    .notes-drawer .overlay-title { font-size: 19px; }
    .notes-drawer .overlay-caption { max-width: 190px; }
    .notes-title-line { gap: 8px; }
    .notes-content { font-size: 14px; }
}

@media (max-height: 740px) and (min-width: 640px)
{
    .slide { padding-top: 90px; padding-bottom: 130px; }
    .title-topic { margin-top: 22px; }
    .speaker { margin-top: 30px; }
    .bullet { padding: 11px 0; }
    .mini-preview { height: 105px; }
}

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

@page
{
    size: A4 landscape;
    margin: 12mm;
}

@media print
{
    html, body
    {
        background: var(--stage);
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .chrome, .masthead, .progress, .overlay { display: none !important; }
    .slide[hidden], .slide
    {
        display: flex !important;
        min-height: 0;
        height: 180mm;
        padding: 12mm;
        break-after: page;
        page-break-after: always;
        overflow: hidden;
    }
    .slide:last-child { break-after: auto; page-break-after: auto; }
    .slide-inner { animation: none !important; }
    h1, .closing-title { font-size: 84px; }
    .statement-title { font-size: 67px; }
    .slide-title { font-size: 38px; margin-bottom: 25px; }
    .bullet { padding: 11px 0; }
    .bullet h3 { font-size: 28px; }
    .code-line { font-size: 13px; opacity: 1; border-color: transparent; }
    .narrative p { font-size: 16px; }
    .speaker { margin-top: 30px; }
}
