:root {
    color-scheme: light;
    --color-primary: #283b44;
    --color-secondary: #d8ebeb;
    --color-secondary-hover: #e8f6f8;
    --color-gray: #666666;
    --color-card-gray: #f4f4f4;
    --color-card-gray-hover: #e9e9e9;
    --color-light-gray: #dbe0e4;
    --color-primary-light: #4a616c;
    --focus-ring-color: var(--color-primary);

    --fs-h1: 62px;
    --fs-h2: 42px;
    --fs-body: 16px;
    --fs-md: 15px;
    --fs-sm: 14px;
    --fs-xs: 12px;
    --fs-icon: 24px;
    --fs-icon-md: 30px;
    --fs-icon-toggle: 40px;
    --button-height: 44px;
    --button-inset: 4px;
    --button-padding-x: 32px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

body {
    min-height: 100dvh;
    background-color: white;
    line-height: 1.5;
    font-family:
        'Geist',
        -apple-system,
        BlinkMacSystemFont,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
    color: var(--color-primary);
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img,
picture,
svg {
    max-width: 100%;
    display: block;
}

img,
picture {
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 3px;
}

.headline,
.hero__image-wrapper,
.my-work__content-item,
.my-project__content-item,
.my-playbook__content-item,
.about-me__content-item,
.lets-work-together__image-wrapper,
.images-list__image,
.footer__logo-text {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.6s ease var(--reveal-delay, 0s),
        transform 0.6s ease var(--reveal-delay, 0s);
}

.headline.is-visible,
.hero__image-wrapper.is-visible,
.my-work__content-item.is-visible,
.my-project__content-item.is-visible,
.my-playbook__content-item.is-visible,
.about-me__content-item.is-visible,
.lets-work-together__image-wrapper.is-visible,
.images-list__image.is-visible,
.footer__logo-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    color: var(--color-primary);
}

h1 {
    line-height: 1.1;
    font-size: var(--fs-h1);
    margin-bottom: 16px;
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
    text-wrap: balance;
}

p {
    font-weight: 400;
    font-size: var(--fs-body);
    color: var(--color-gray);
}

.icon {
    font-size: var(--fs-icon);
}

.icon--md {
    font-size: var(--fs-icon-md);
}

.text-bold {
    font-weight: 500;
}

section {
    padding-top: 50px;
    padding-bottom: 50px;
}

main.content {
    display: flex;
    flex-direction: column;
}

.section {
    width: 100%;
    margin: 0 auto;
    scroll-margin-top: 100px;
}

.section--about-me,
.section--my-work,
.section--project-header,
.section--images-list {
    max-width: 1050px;
}

.section--my-playbook,
.section--my-project,
.section--lets-work-together,
.section--project-header {
    border-radius: 30px;
    padding: 60px 50px 50px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.section--my-playbook,
.section--my-project {
    background-color: var(--color-secondary);
}

.section--project-header,
.section--lets-work-together {
    background-color: var(--color-card-gray);
}

.section--lets-work-together {
    padding-top: 0;
    padding-bottom: 0;
}

.section--hero {
    padding-top: 100px;
}

.section--project-header {
    margin-top: 100px;
}

.content,
.header__container,
.footer {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.headline {
    margin-bottom: 50px;
    max-width: 68%;
}

.headline .headline__label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: var(--fs-md);
}

.headline .headline__title {
    max-width: 85%;
    margin-bottom: 10px;
}

.headline .headline__list {
    margin-bottom: 24px;
    padding-left: 15px;
    list-style: disc;
    color: var(--color-gray);
}

.headline .headline__list-item {
    padding-left: 4px;
}

.headline .headline__list-item::marker {
    font-size: 0.7em;
}

.my-playbook .headline__description:not(:last-child) {
    margin-bottom: 24px;
}

.my-playbook .headline__title {
    margin-bottom: 24px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: var(--button-height);
    padding: 0 var(--button-padding-x);
    border-radius: 999px;
    font-weight: 500;
    font-size: var(--fs-sm);
    background-color: var(--color-primary);
    color: white;
    line-height: 1;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: black;
}

.card {
    background-color: var(--color-card-gray);
    border-radius: 20px;
    padding: 55px 40px;
}

.card.card--secondary {
    background-color: var(--color-secondary);
}

.card.card--row,
.card.card--minimal,
.card.card--small,
.card.card--row.card--white {
    border-radius: 10px;
}

.card.card--minimal,
.card.card--small,
.card.card--row.card--white {
    padding: 25px 20px;
}

.card.card--row {
    width: 100%;
    padding: 35px 20px;
}

.card.card--flex {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.card.card--project {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px;
    transition:
        background-color 0.3s ease,
        opacity 0.6s ease var(--reveal-delay, 0s),
        transform 0.6s ease var(--reveal-delay, 0s);
}

.card.card--project:hover {
    background-color: var(--color-card-gray-hover);
}

.card.card--dark {
    background-color: var(--color-primary);
    color: white;
}

.card.card--row.card--white {
    background-color: white;
}

.card__image {
    width: 50%;
    height: auto;
    aspect-ratio: 200 / 175;
    object-fit: contain;
    margin: 25% auto 20%;
}

.card__label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.card.card--minimal .card__label {
    margin-bottom: 0px;
}

.card.card--project .card__label {
    margin-bottom: 0px;
}

.card.card--small .card__description,
.card.card--project .card__description {
    font-size: var(--fs-sm);
}

.card.card--row .card__description {
    font-size: var(--fs-sm);
    margin-bottom: 4px;
}

.card.card--row.card--dark .card__description {
    color: var(--color-secondary);
}

.card.card--row .card__description ~ .card__description {
    margin-bottom: 0;
}

.card.card--row.card--dark .card__description ~ .card__description {
    color: white;
}

.header {
    background-color: white;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 2;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.header.is-scrolled {
    border-bottom-color: var(--color-light-gray);
}

.header__container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.header__logo-link {
    justify-self: start;
    width: 152px;
    height: 50px;
}

.bk-logo-svg {
    width: 100%;
    height: 100%;
}

.header__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 100%;
    justify-self: center;
}

.header__nav-item {
    color: var(--color-gray);
    border-bottom: 1px solid transparent;
    padding: 4px 0;
    transition: 0.3s;
}

.header__nav-item:hover {
    color: var(--color-primary);
    border-color: var(--color-secondary);
}

.header__button {
    justify-self: end;
}

.header__menu {
    display: contents;
}

.header__toggle {
    display: none;
    justify-self: end;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.hero,
.lets-work-together {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 50px;
}

.hero {
    align-items: center;
}

.lets-work-together {
    align-items: flex-end;
}

.hero__headline,
.hero__headline .headline__title,
.lets-work-together__headline,
.lets-work-together__headline .headline__title {
    max-width: 100%;
}

@media (min-width: 1025px) {
    .hero > * {
        flex: 1 1 0;
        min-width: 0;
    }
}

.hero__headline,
.project-header__headline {
    margin-bottom: 0;
}

.hero .headline__description {
    max-width: 90%;
    margin-bottom: 24px;
}

.about-me__content {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
}

.about-me__content > * {
    overflow-wrap: break-word;
    flex: 0 0 calc((100% - 2 * 20px) / 3);
    min-width: 0;
}

@media (max-width: 1024px) {
    .about-me__content > * {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .about-me__content > * {
        flex-basis: 100%;
    }
}

.my-playbook__content-item,
.my-project__content-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    background-color: white;
    border-radius: 20px;
    padding: 50px;
}

.my-playbook__content-item:not(:last-child),
.my-project__content-item:not(:last-child) {
    margin-bottom: 20px;
}

.my-project__content-item--dark {
    background-color: var(--color-primary);
}

.my-project__content-item--dark .my-project__content-item-label {
    color: white;
}

.my-project__content-item--dark .my-project__content-item-description {
    color: var(--color-secondary);
}

.my-playbook__content-item-text,
.my-project__content-item-text {
    flex: 0 0 18%;
    min-width: 0;
    overflow-wrap: break-word;
}

.my-playbook__content-item-label,
.my-project__content-item-label {
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.my-playbook__content-item-cards,
.my-project__content-item-cards {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

.my-playbook__content-item-cards.my-playbook__content-item-cards--columns,
.my-project__content-item-cards.my-project__content-item-cards--columns {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}

.my-playbook__content-item-cards--columns .card,
.my-project__content-item-cards--columns .card {
    flex: 0 0 calc((100% - 3 * 10px) / 4);
    min-width: 0;
    overflow-wrap: break-word;
}

.my-work__content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 50px;
}

.my-work__content-item {
    flex: 0 0 calc((100% - 50px) / 2);
    min-width: 0;
    overflow-wrap: break-word;
}

.my-project .headline__description,
.lets-work-together .headline__description {
    margin-bottom: 24px;
}

.lets-work-together__image-wrapper {
    flex: 0 0 47%;
    min-width: 0;
    margin-top: -100px;
}

.lets-work-together__image {
    width: 100%;
}

.lets-work-together__headline {
    flex: 1 1 0;
    min-width: 0;
    margin: 80px 0;
}

.images-list__image {
    width: 100%;
    border-radius: 30px;
}

.images-list__image:not(:last-child) {
    margin-bottom: 50px;
}

.footer {
    --focus-ring-color: var(--color-secondary);
    margin-bottom: 50px;
}

.footer__wrapper {
    background-color: var(--color-primary);
    border-radius: 30px;
    padding: 100px 60px 60px;
}

.footer__headline {
    margin-bottom: 100px;
}

.footer__headline p {
    color: white;
    max-width: 40%;
}

.footer__logo-text {
    margin-bottom: 30px;
    width: 100%;
    max-width: 459px;
    aspect-ratio: 153 / 70;
    background-image: url('../images/bk-logo-large.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

@supports not (aspect-ratio: 1 / 1) {
    .footer__logo-text {
        height: 0;
        padding-top: 45.75%;
    }
}

.footer__nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 100px;
}

.footer__nav-wrapper {
    width: calc((100% / 4) - 60px);
    min-width: 0;
    overflow-wrap: break-word;
}

.footer__nav-item-title {
    display: block;
    font-weight: 500;
    font-size: var(--fs-md);
    color: white;
}

.footer__nav-item {
    display: block;
    width: fit-content;
    font-size: var(--fs-sm);
    color: var(--color-secondary);
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.footer__nav-item:hover {
    color: white;
    border-color: var(--color-secondary);
}

.footer__copyright {
    font-size: var(--fs-xs);
    line-height: 100%;
    color: white;
}

.author-block {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
}

.author-block__image-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../images/bill-avatar.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    flex-shrink: 0;
    border-radius: 50%;
}

.author-block__text-wrapper {
    margin-top: -4px;
}

.author-block__first-row {
    font-weight: 500;
    font-size: var(--fs-xs);
    color: white;
}

.author-block__second-row {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-secondary);
}

@media (max-width: 1100px) {
    .header__container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header__logo-link {
        width: 120px;
        height: 50px;
    }

    .my-playbook__headline,
    .my-project__headline {
        max-width: 72%;
    }
}

@media (max-width: 1024px) {
    :root {
        --fs-xs: 16px;
        --fs-sm: 18px;
        --fs-md: 20px;
        --fs-icon: 30px;
        --fs-body: 22px;
        --button-height: 58px;
    }

    .headline {
        max-width: 75%;
    }

    .my-playbook__headline,
    .my-project__headline {
        max-width: 80%;
    }

    .headline .headline__label {
        margin-bottom: 20px;
    }

    .headline .headline__title {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .content,
    .header__container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .header__container {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .header__toggle {
        display: flex;
    }

    .header__menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: calc(100vh - 100%);
        height: calc(100dvh - 100%);
        overflow-y: auto;
        overscroll-behavior: contain;
        gap: 80px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 80px 16px 32px;
        background-color: white;
        border-top: 1px solid var(--color-secondary);
        box-shadow: 0 16px 24px rgba(40, 59, 68, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s;
    }

    .header.is-resizing .header__menu {
        transition: none;
    }

    .header.is-open .header__menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header__nav {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .header__button {
        justify-self: stretch;
    }

    .header__toggle .icon {
        font-size: var(--fs-icon-toggle);
    }

    .card__label,
    .my-playbook__content-item-label,
    .my-project__content-item-label,
    ul li {
        font-size: var(--fs-body);
    }

    .my-playbook__content-item-cards,
    .my-project__content-item-cards {
        width: 100%;
    }

    .hero {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }

    .hero > *,
    .lets-work-together > * {
        flex: 1 1 100%;
        min-width: 0;
    }

    .hero__headline {
        max-width: 100%;
        margin-bottom: 0;
    }

    .hero .headline__title {
        margin-bottom: 40px;
    }

    .hero .headline__description {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
    }

    .hero__image-wrapper {
        width: 100%;
        max-width: 680px;
    }

    .my-playbook__content-item,
    .my-project__content-item {
        padding: 30px;
        flex-direction: column;
        gap: 30px;
    }

    .my-playbook__content-item-cards--columns .card,
    .my-project__content-item-cards--columns .card {
        flex: 0 0 calc((100% - 10px) / 2);
    }

    .my-work__content {
        gap: 20px;
    }

    .my-work__content-item {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .lets-work-together {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 60px;
        gap: 50px;
    }

    .lets-work-together__headline {
        margin: 0;
        max-width: 100%;
    }

    .lets-work-together__image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    .images-list__image:not(:last-child) {
        margin-bottom: 20px;
    }

    .footer__headline p {
        max-width: 80%;
    }

    .footer__nav {
        flex-wrap: wrap;
        gap: 50px;
    }

    .footer__nav-wrapper {
        width: 100%;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--color-primary-light);
    }

    .footer__nav-item-title {
        margin-bottom: 10px;
    }

    .footer__nav-item {
        margin-bottom: 10px;
    }

    .author-block__image-wrapper {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .content,
    .header__container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .headline {
        max-width: 100%;
    }

    .header__nav {
        font-size: var(--fs-body);
    }

    .section--my-playbook,
    .section--my-project,
    .section--lets-work-together,
    .section--project-header {
        padding: 80px 25px 30px;
    }

    .section--project-header {
        padding-top: 40px;
    }

    .section--lets-work-together {
        padding-bottom: 0;
    }

    .card,
    .card.card--row {
        padding: 30px 25px;
    }

    .card.card--project {
        padding: 25px;
    }

    .my-playbook__content-item,
    .my-project__content-item {
        padding: 25px;
    }

    .footer__logo-text {
        max-width: 300px;
    }

    .footer__headline p {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .my-work__content-item {
        flex: 0 0 100%;
    }

    .card__image {
        width: 35%;
        margin-top: 15%;
        margin-bottom: 10%;
    }

    .my-playbook__content-item-cards--columns .card,
    .my-project__content-item-cards--columns .card {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-h1: 46px;
        --fs-h2: 32px;
        --fs-body: 18px;
        --fs-md: 17px;
        --fs-sm: 16px;
        --fs-xs: 12px;
        --fs-icon: 24px;
        --fs-icon-toggle: 40px;
        --button-height: 48px;
    }

    .section {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .section--hero {
        padding-top: 50px;
    }

    .section--my-playbook,
    .section--my-project,
    .section--lets-work-together,
    .section--project-header {
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .section--my-playbook,
    .section--my-project,
    .section--lets-work-together {
        padding-top: 50px;
    }

    .section--lets-work-together {
        padding-bottom: 0;
    }

    .section--project-header {
        margin-top: 50px;
        padding-top: 35px;
    }

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

    .hero .headline__title {
        margin-bottom: 30px;
    }

    .footer {
        margin-bottom: 20px;
    }

    .footer__wrapper {
        padding: 60px 20px 50px;
    }

    .footer__headline {
        margin-bottom: 50px;
    }

    .footer__nav {
        gap: 30px;
        margin-bottom: 50px;
    }

    .author-block__image-wrapper {
        width: 40px;
        height: 40px;
    }
}
