@font-face {
    font-family: "Neue Haas Grotesk Display Pro";
    src: local("NeueHaasDisplay-Roman"), url("fonts/NeueHaasDisplayRoman.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Neue Haas Grotesk Display Pro";
    src: local("NeueHaasDisplay-Mediu"), url("fonts/NeueHaasDisplayMediu.ttf") format("truetype");
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
}

@font-face {
    font-family: "Neue Haas Grotesk Display Pro";
    src: local("NeueHaasDisplay-Bold"), url("fonts/NeueHaasDisplayBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
}

:root {
    --heading-font: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Arial, sans-serif;
}

body[data-site-page] :is(h1, h2, h3, h4, h5, h6),
.story-title-artists,
.story-identity > p,
.radio-mix-list strong,
.tour-route strong,
.news-item strong,
.profile-footer > a,
.news-booking > a {
    font-family: var(--heading-font);
}

.link-arrow,
.news-booking a::after,
.profile-footer a::after {
    display: inline-block;
    width: .9em;
    height: .9em;
    background-color: currentColor;
    -webkit-mask: url("images/link-arrow.svg") center / contain no-repeat;
    mask: url("images/link-arrow.svg") center / contain no-repeat;
}

.link-arrow {
    vertical-align: -.03em;
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }

    ::view-transition {
        pointer-events: none;
    }

    ::view-transition-group(root) {
        animation-duration: 240ms;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }

    ::view-transition-group(artist-cover) {
        animation-duration: 520ms;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 1;
    }

    ::view-transition-image-pair(artist-cover) {
        overflow: clip;
        border-radius: 8px;
    }

    ::view-transition-old(artist-cover),
    ::view-transition-new(artist-cover) {
        height: 100%;
        object-fit: cover;
    }
}

html[data-site-arrival="soft"] :is(.profile-island, .profile-identity, .hero-scroll) {
    animation: none;
}

main[tabindex="-1"]:focus,
section[tabindex="-1"]:focus {
    outline: none;
}

[data-chapter-tone="sage"] { --chapter-fill: #d5e3ad; --chapter-pressed: #b9ce80; }
[data-chapter-tone="blue"] { --chapter-fill: #c3d9f8; --chapter-pressed: #9ebfe9; }
[data-chapter-tone="lilac"] { --chapter-fill: #ddd0f6; --chapter-pressed: #c8b3eb; }
[data-chapter-tone="rose"] { --chapter-fill: #f4cad8; --chapter-pressed: #e8aabd; }
[data-chapter-tone="cyan"] { --chapter-fill: #bee4dd; --chapter-pressed: #9bd1c6; }
[data-chapter-tone="gold"] { --chapter-fill: #f3dfad; --chapter-pressed: #e9c981; }

.chapter-title,
.story-index .chapter-link {
    color: inherit;
    background-color: transparent;
    transition: background-color 360ms ease 110ms, color 360ms ease 110ms;
}

.chapter-title {
    padding: 0.03em 0.12em 0.07em;
    margin-inline-start: -0.12em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.story-index .chapter-link {
    padding-inline: 7px;
    margin-inline: -7px;
}

@media (hover: hover) {
    .chapter-title:hover,
    .story-index .chapter-link:hover {
        color: #101016;
        background-color: var(--chapter-fill);
        transition: none;
    }
}

.chapter-title:focus-visible,
.story-index .chapter-link:focus-visible,
.chapter-title:active,
.story-index .chapter-link:active {
    color: #101016;
    background-color: var(--chapter-fill);
    transition: none;
}

.chapter-title:active,
.story-index .chapter-link:active {
    background-color: var(--chapter-pressed);
}

:is(.tour-highlights, .tour-posts)[id] {
    scroll-margin-top: 120px;
}

@media (prefers-reduced-motion: reduce) {
    .chapter-title,
    .story-index .chapter-link {
        transition: none;
    }
}

/* Keep the desktop navigation in the same place as the page content changes. */
@media (min-width: 769px) {
    :root {
        --desktop-nav-width: min(740px, calc(100vw - 220px));
        --desktop-nav-side: 132px;
        --desktop-nav-gap: 8px;
        --desktop-nav-height: 62px;
        --desktop-nav-zoom: 1;
    }

    .mode-island.is-ready,
    .profile-island,
    .news-page-island,
    #dynamic-island.phase-expanded .dynamic-island-bg {
        width: var(--desktop-nav-width);
    }

    .mode-island,
    .profile-island,
    .news-page-island,
    #dynamic-island {
        top: 34px;
    }

    .mode-island-row,
    .profile-island,
    .news-page-island,
    #dynamic-island .dynamic-island-top-row {
        display: grid;
        grid-template-columns: var(--desktop-nav-side) minmax(0, 1fr) var(--desktop-nav-side);
        gap: var(--desktop-nav-gap);
        min-height: var(--desktop-nav-height);
    }

    .profile-island > *,
    .news-page-island > *,
    #dynamic-island .dynamic-island-top-row > * {
        min-height: var(--desktop-nav-height);
    }

    :is(.mode-button, .profile-back, .profile-book, .news-page-back, .news-page-artist) {
        font-size: 13px;
        line-height: 1;
        letter-spacing: .07em;
    }

    #dynamic-island .dynamic-island-menu-item {
        font-size: 13px !important;
        line-height: 1;
        letter-spacing: .07em !important;
    }

    :is(.brand-button, .profile-brand, .news-page-brand),
    #dynamic-island .dynamic-island-top-row > a {
        padding: 0 26px 0 10px;
        border-radius: 12px 12px 19px 19px / 18px 18px 10px 10px;
    }

    :is(.brand-button, .profile-brand, .news-page-brand) img {
        width: min(270px, 100%);
        height: auto;
        max-height: 36px;
    }

    .tour-story-page .news-page-island {
        zoom: var(--desktop-nav-zoom);
    }

    #dynamic-island {
        zoom: var(--desktop-nav-zoom) !important;
    }

    #dynamic-island.phase-expanded .dynamic-island-bg {
        padding: 0;
        border: 0;
        overflow: visible;
        background: transparent;
    }

    html[data-site-arrival="soft"] #dynamic-island,
    html[data-site-arrival="soft"] #dynamic-island :is(.dynamic-island-bg, .dynamic-island-logo, .dynamic-island-menu) {
        transition: none;
    }

    #dynamic-island.vertical-expanded .dynamic-island-bg {
        min-height: var(--desktop-nav-height);
    }

    #dynamic-island .dynamic-island-top-row > * {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 0;
        background: rgba(253, 253, 251, .93);
        box-shadow: 0 0 0 1px rgba(16, 16, 22, .42), 0 8px 26px rgba(16, 16, 22, .08);
        backdrop-filter: blur(12px);
    }

    #dynamic-island .dynamic-island-menu-left {
        border-radius: 19px 10px 22px 8px / 12px 20px 10px 23px;
    }

    #dynamic-island .dynamic-island-menu-right {
        border-radius: 10px 19px 8px 22px / 20px 12px 23px 10px;
    }

    #dynamic-island .dynamic-island-logo {
        width: min(270px, 100%) !important;
        height: auto !important;
        max-height: 36px;
    }

    #dynamic-island.vertical-expanded .dynamic-island-expanded-content {
        margin-top: 8px;
        padding: 0 16px;
        background: var(--ichiki-bg, #ededed);
        border: 1px solid var(--ichiki-border, #565656);
        border-radius: 8px;
    }
}

@media (min-width: 769px) and (max-width: 1040px) {
    :root {
        --desktop-nav-width: min(650px, calc(100vw - 190px));
        --desktop-nav-side: 106px;
        --desktop-nav-gap: 7px;
    }
}

@media (min-width: 1600px) and (min-height: 850px) {
    :root {
        --desktop-nav-width: min(920px, 51.4vw);
    }
}

@media (min-width: 1800px) and (min-height: 1000px) {
    :root {
        --desktop-nav-zoom: 1.16;
    }
}

@media (min-width: 3000px) and (min-height: 1600px) {
    :root {
        --desktop-nav-zoom: 1.28;
    }
}

.theme-toggle {
    position: fixed;
    z-index: 3020;
    right: calc(var(--outside, 12px) + 18px);
    bottom: calc(var(--outside, 12px) + 18px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--ichiki-border, #565656);
    border-radius: 999px;
    background: var(--surface, #fdfdfb);
    color: var(--ichiki-text, #101016);
    font-family: var(--small-label-font);
    font-size: 11px;
    cursor: pointer;
}
.theme-toggle svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 768px) {
    .theme-toggle {
        right: calc(var(--outside) + 10px);
        bottom: calc(var(--mobile-nav-inset, 16px) + 78px);
        min-height: 40px;
    }
}

/* Shared theme tokens survive navigation and cover direct page visits. */
@media (prefers-reduced-motion: no-preference) {
    html[data-theme-changing],
    html[data-theme-changing] :is(body, .theme-toggle, .mode-button, .brand-button, .site-menu, .artist-card, .artist-card-copy, .project-details, .profile-island > *, .profile-main, .news-page-island > *, .news-article) {
        transition: background-color 320ms ease-in-out, color 320ms ease-in-out, border-color 320ms ease-in-out;
    }

    html[data-theme-changing] :is(.brand-button, .profile-brand, .news-page-brand, .news-icon-wrap) img {
        transition: filter 320ms ease-in-out;
    }
}

html[data-theme="dark"],
html[data-theme="dark"] body[data-site-page] {
    color-scheme: dark;
    --page-bg: #535c60;
    --ink: #f3f2ee;
    --line: #aab4b8;
    --muted: #d1d6d8;
    --paper: #414a4e;
    --accent: #657881;
    --accent-line: #a6bbc5;
    --story-line: rgba(237, 237, 237, .3);
    --story-muted: #d1d6d8;
    --ichiki-bg: #535c60;
    --ichiki-text: #f3f2ee;
    --ichiki-border: #aab4b8;
    --ichiki-muted: #d1d6d8;
    --surface: #414a4e;
    --small-label-font: var(--heading-font);
    --ichiki-color-white-1: #414a4e;
    --ichiki-color-white-2: #535c60;
    --ichiki-color-black-1: #f3f2ee;
    --ichiki-color-black-2: #f3f2ee;
    --ichiki-color-black-3: #aab4b8;
}
html[data-theme="dark"] body[data-site-page] :is(.profile-island > *, .news-page-island > *, .news-page-back, .tour-highlights, .tour-highlight-item, .media-placeholder, .media-cover, .media-sage, .media-blue) {
    background: var(--paper);
}
html[data-theme="dark"] .profile-island.has-section-title > * {
    background-color: var(--paper) !important;
}
html[data-theme="dark"] :is(.profile-brand, .news-page-brand) img {
    filter: brightness(0) invert(1);
}
html[data-theme="dark"] .tour-map .tour-map-label {
    background: #414a4e;
}
