@font-face {
    font-family: "Degular Display";
    src: url("assets/fonts/degulardisplay-medium.woff") format("woff");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    --tafl: #292a4b;
    --vin: #8985ff;
    --vin-dark: #6853e8;
    --vin-light: #f2f0ff;
    --krit: #fff;
    --grey: #f4f7fb;
    --line: #dbe2ec;
    --muted: #656e7c;
    --mint: #ddfde4;
    --peach: #ffe6de;
    --turq: #b8ebfb;
    --font-display: "Degular Display", "Arial Narrow", Arial, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 18px;
    --wrap: 1120px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    margin: 0;
    color: var(--tafl);
    background: var(--krit);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6
}

main {
    display: flex;
    flex: 1;
    flex-direction: column
}

a {
    color: inherit;
    text-underline-offset: .18em
}

button,
input {
    font: inherit
}

:focus-visible {
    outline: 3px solid var(--vin-dark);
    outline-offset: 3px
}

.skip {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    transform: translateY(-150%);
    padding: .7rem 1rem;
    background: #fff;
    border-radius: 8px
}

.skip:focus {
    transform: none
}

.wrap {
    width: min(calc(100% - 2.5rem), var(--wrap));
    margin-inline: auto
}

.site-header {
    position: relative;
    z-index: 5;
    color: #fff;
    background: var(--tafl)
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem
}

.brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: #fff;
    text-decoration: none;
    font-weight: 750;
    line-height: 1.05
}

.header-logo {
    display: block;
    width: min(250px, 46vw);
    height: auto;
    margin-left: -20px;
}

.brand small {
    display: block;
    margin-top: .24rem;
    font-weight: 400;
    opacity: .7
}

.main-nav {
    display: flex;
    gap: .3rem
}

.main-nav a {
    padding: .45rem .8rem;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: .95rem
}

.main-nav a:hover,
.main-nav a[aria-current=page] {
    background: rgba(137, 133, 255, .22)
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -.02em
}

h1 {
    margin: .5rem 0 1.1rem;
    font-size: clamp(2.24rem, 5.6vw, 3.29rem);
    letter-spacing: 0.07rem;
}

h2 {
    margin: .45rem 0 2rem;
    font-size: clamp(1.54rem, 3.5vw, 1.89rem);
    letter-spacing: 0.01rem;
}

h3 {
    font-size: 1.155rem;
}

.eyebrow {
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase
}

.lead {
    max-width: 64ch;
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    line-height: 1.55
}

.hero {
    display: flex;
    flex: 1;
    align-items: center;
    overflow: hidden;
    padding-top: clamp(20px, 5vh, 72px);
    padding-bottom: clamp(26px, 5vh, 72px);
    background: var(--vin-light)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem)
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem
}

.button {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-height: 48px;
    padding: .7rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none
}

.primary {
    color: #fff;
    background: var(--vin-dark)
}

.primary:hover {
    background: #5741d8
}

.secondary {
    border-color: #c3bfef;
    background: #fff
}

.secondary:hover {
    background: #e6e3ff
}

.sheet-art {
    padding: 1.1rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(41, 42, 75, .16);
    transform: rotate(2deg) scale(.7);
    transform-origin: center
}

.formula {
    padding: .7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: monospace;
    color: var(--muted)
}

.cells {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 1rem
}

.cells i {
    display: grid;
    place-items: center;
    min-height: 64px;
    border: 1px solid #e2e5ea;
    font-style: normal
}

.cells .selected {
    position: relative;
    border: 3px solid var(--vin-dark);
    background: var(--mint);
    font-size: 1.4rem;
    font-weight: 800
}

.section {
    padding: 20px
}

.soft {
    display: flex;
    flex: 1;
    align-items: center;
    padding-block: clamp(20px, 5vh, 72px);
    background: var(--grey)
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem
}

.choice {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding: clamp(1.5rem, 4vw, 2.7rem);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform .18s, box-shadow .18s
}

.choice:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(41, 42, 75, .12)
}

.choice.mint {
    background: var(--mint)
}

.choice.peach {
    background: var(--peach)
}

.choice-icon {
    display: grid;
    place-items: center;
    flex: 0 0 92px;
    height: 92px;
    border-radius: 50%;
    background: #fff;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800
}

.choice h3 {
    margin: 0 0 .3rem
}

.choice p {
    margin: 0 0 .8rem;
    color: #44465f
}

.feature {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 4rem
}

.text-link {
    display: inline-block;
    margin-top: 1.4rem;
    color: var(--vin-dark);
    font-weight: 750
}

.video-button {
    margin-top: 1.4rem
}

.guide-material {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--mint)
}

.guide-material h2 {
    margin: .35rem 0 .4rem;
    font-size: 2rem
}

.guide-material p { margin: 0 }
.guide-material .button { flex: 0 0 auto }
.resource-card--missing { border-style: dashed; background: var(--grey) }
.unavailable { color: var(--muted); font-weight: 600 }
.about-content { max-width: 760px }
.about-content>p { margin-top: 0; margin-bottom: 1.5rem }
.product-numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem }
.product-numbers div { padding: 1.5rem; border-radius: var(--radius); background: var(--vin-light) }
.product-numbers strong { display: block; margin-top: .35rem; font-size: 1.25rem }

.play-art {
    aspect-ratio: 16/10;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .7rem;
    border-radius: var(--radius);
    background: var(--turq);
    text-decoration: none;
    transition: transform .18s, box-shadow .18s
}

.play-art:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(41, 42, 75, .14)
}

.play-art span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: .35rem;
    border-radius: 50%;
    color: #fff;
    background: var(--tafl);
    font-size: 2rem
}

.play-art small {
    font-weight: 700
}

.page-hero {
    padding: 20px 0;
    background: var(--vin-light)
}

.page-hero h1 {
    font-size: clamp(2.24rem, 5.6vw, 3.29rem);
}

.breadcrumbs {
    display: none;
    gap: .6rem;
    margin-bottom: 2.3rem;
    color: var(--muted);
    font-size: .9rem
}

.breadcrumbs a:hover {
    color: var(--vin-dark)
}

.intro-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem
}

.count-badge {
    white-space: nowrap;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: #fff;
    font-weight: 700
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem
}

.resource-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100px;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    text-decoration: none;
    transition: border .18s, transform .18s, box-shadow .18s
}

.resource-card:hover {
    border-color: var(--vin);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(41, 42, 75, .1)
}

.number {
    color: var(--vin-dark);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1em
}

.resource-card h3 {
    margin: .8rem 0 1.2rem;
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.35;
    letter-spacing: 0;
    overflow-wrap: anywhere
}

.resource-card:has(.resource-description) h3 {
    margin-bottom: .35rem
}

.resource-description {
    margin: 0 0 1.2rem;
    color: var(--muted);
    font-size: .95rem;
    overflow-wrap: anywhere
}

.download {
    margin-top: auto;
    color: var(--vin-dark);
    font-weight: 700;
    font-size: .92rem
}

.video-cta {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--tafl);
    color: #fff
}

.video-cta h2 {
    margin: 0 0 .6rem;
    color: #fff;
    font-size: 2rem
}

.video-cta .button {
    margin-top: 1rem;
    background: var(--vin);
    color: var(--tafl)
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem
}

.tab {
    padding: .55rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--tafl);
    cursor: pointer
}

.tab span {
    margin-left: .3rem;
    color: var(--muted);
    font-size: .85rem
}

.tab:hover,
.tab.active {
    border-color: var(--vin);
    background: var(--vin-light)
}

.search {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 260px;
    padding: .55rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px
}

.search:focus-within {
    outline: 3px solid var(--vin-dark);
    outline-offset: 2px
}

.search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--tafl);
    background: transparent
}

.result-count {
    color: var(--muted);
    font-size: .9rem
}

.video-group {
    margin-top: 3rem
}

.video-group h2 {
    margin-bottom: 1.2rem;
    font-size: 2.4rem
}

.video-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem
}

.video-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-decoration: none
}

.video-card:hover {
    border-color: var(--vin);
    background: var(--vin-light)
}

.video-play {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding-left: 2px;
    border-radius: 50%;
    background: var(--tafl);
    color: #fff;
    font-size: .8rem
}

.video-title {
    font-weight: 650;
    line-height: 1.3
}

.duration {
    color: var(--muted);
    font-size: .87rem
}

.empty {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--grey);
    text-align: center
}

.site-footer {
    padding: 3rem 0;
    color: #fff;
    background: var(--tafl)
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem
}

.site-footer p {
    margin: .3rem 0;
    color: #d7d8e5
}

.site-footer a {
    color: #d0ceff
}

.footer-logo {
    display: block;
    width: min(290px, 70vw);
    height: auto
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media(max-width:800px) {

    .hero-grid,
    .feature {
        grid-template-columns: 1fr
    }

    .sheet-art {
        max-width: 500px
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .video-list {
        grid-template-columns: 1fr
    }

    .toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .search {
        min-width: 0
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 0
    }

    .main-nav {
        width: 100%;
        overflow-x: auto
    }

    .main-nav a {
        white-space: nowrap
    }
}

@media(max-width:560px) {
    .guide-material {
        align-items: flex-start;
        flex-direction: column
    }

    .product-numbers {
        grid-template-columns: 1fr
    }

    body {
        font-size: 16px
    }

    .wrap {
        width: min(calc(100% - 1.5rem), var(--wrap))
    }

    .choice-grid,
    .resource-grid {
        grid-template-columns: 1fr
    }

    .choice {
        align-items: flex-start;
        flex-direction: column
    }

    .choice-icon {
        width: 76px;
        height: 76px;
        flex-basis: 76px
    }

    .intro-row {
        align-items: flex-start;
        flex-direction: column
    }

    .footer-inner {
        flex-direction: column
    }

    .video-card {
        grid-template-columns: auto 1fr
    }

    .duration {
        grid-column: 2
    }
}
