:root {
    --color-ink: #0b0b0b;
    --color-paper: #f3f4ee;
    --color-panel: #fffef8;
    --color-muted: #e7e8df;
    --color-copy: #3f403b;
    --color-primary: #ff5a5f;
    --color-primary-dark: #e74449;
    --color-accent: #ffd447;
    --color-success: #16865a;
    --color-danger: #c8323c;
    --color-border: #dcded3;
    --border-ink: 1px solid var(--color-border);
    --shadow-hard-sm: none;
    --shadow-hard: 0 2px 8px rgb(11 11 11 / 4%);
    --shadow-hard-lg: 0 6px 20px rgb(11 11 11 / 5%);
}

html * {
    letter-spacing: 0;
}

::selection {
    color: var(--color-ink);
    background: var(--color-accent);
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.site-body {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    color: var(--color-ink);
    background:
        linear-gradient(90deg, rgb(11 11 11 / 4%) 1px, transparent 1px),
        linear-gradient(180deg, rgb(11 11 11 / 4%) 1px, transparent 1px),
        var(--color-paper);
    background-size: 34px 34px;
}

.container {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 40;
    border-top: 0;
    border-bottom: var(--border-ink);
    color: var(--color-ink);
    background: var(--color-panel);
    box-shadow: none;
}

.site-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem 1.25rem;
    min-height: 4.4rem;
}

.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.site-brand-wrap {
    min-width: 0;
    padding-block: 0.35rem;
}

.site-brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    filter: none;
}

.site-brand-wordmark {
    color: var(--color-ink);
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.site-brand:hover .site-brand-mark {
    transform: none;
}

.site-primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.site-primary-nav a,
.site-tool-menu-trigger,
.site-account-link,
.site-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    border-radius: 6px;
    padding: 0.55rem 0.6rem;
    color: var(--color-ink);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.site-primary-nav a:hover,
.site-tool-menu-trigger:hover,
.site-account-link:hover {
    color: var(--color-ink);
    background: var(--color-accent);
}

.site-primary-nav > a.is-active,
.site-tool-menu.is-active > .site-tool-menu-trigger,
.site-tool-submenu a.is-active {
    border: var(--border-ink);
    color: var(--color-ink);
    background: var(--color-accent);
    box-shadow: none;
}

.site-tool-menu {
    position: relative;
    display: grid;
}

.site-tool-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.6rem;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.site-tool-menu-trigger::-webkit-details-marker {
    display: none;
}

.site-tool-menu-chevron {
    width: 0.46rem;
    height: 0.46rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform 0.16s ease;
}

.site-tool-menu[open] .site-tool-menu-chevron {
    transform: translateY(0.1rem) rotate(225deg);
}

.site-tool-submenu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 50%;
    z-index: 50;
    display: grid;
    width: 16rem;
    padding: 0.45rem;
    border: var(--border-ink);
    border-radius: 6px;
    background: var(--color-panel);
    box-shadow: var(--shadow-hard);
    transform: translateX(-50%);
}

.site-tool-submenu a {
    width: 100%;
    padding: 0.65rem 0.75rem;
    text-align: left;
    white-space: normal;
}

.site-account-menu .site-tool-submenu {
    right: 0;
    left: auto;
    width: min(16rem, calc(100vw - 2rem));
    transform: none;
}

.site-account-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
}

.site-account-button,
.site-account-link {
    min-height: 2.35rem;
    padding: 0.55rem 0.75rem;
    font-weight: 800;
}

.site-account-button {
    border: var(--border-ink);
    color: var(--color-ink);
    background: var(--color-primary);
    box-shadow: var(--shadow-hard-sm);
}

.site-account-button:hover {
    color: var(--color-ink);
    background: var(--color-primary);
    box-shadow: var(--shadow-hard);
    transform: none;
}

.site-main {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
    padding-block: 2rem 4rem;
    color: var(--color-copy);
}

.site-main.container {
    width: min(100% - 2rem, 72rem);
}

.site-main > :first-child {
    animation: gum-page-enter 0.35s ease-out both;
}

.site-main > section:first-child:not(.max-w-md) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: var(--border-ink);
    border-radius: 8px;
    background: var(--color-panel);
    box-shadow: var(--shadow-hard-lg);
}

.site-main > section:first-child.max-w-5xl:not(.video-studio-section) > :first-child {
    padding: 2.5rem 2rem;
}

.site-main > .max-w-6xl:first-child > header:first-child {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: var(--border-ink);
    border-radius: 8px;
    padding: 2rem;
    background: var(--color-panel);
    box-shadow: var(--shadow-hard-lg);
}

.site-main > section:first-child:not(.max-w-md) > *,
.site-main > .max-w-6xl:first-child > header:first-child > * {
    position: relative;
    z-index: 1;
}

.site-main :where(h1, h2, h3, h4, strong) {
    color: var(--color-ink);
}

.site-main h1 {
    font-weight: 700;
    line-height: 1.18;
}

.site-main h2 {
    font-weight: 700;
    line-height: 1.25;
}

.site-main :where(input, textarea, select) {
    border: var(--border-ink);
    border-radius: 6px;
    color: var(--color-ink);
    background: var(--color-panel);
    box-shadow: none;
}

.site-main > :where(section.max-w-md, .max-w-md) :where(input, textarea, select) {
    border: var(--border-ink);
    border-radius: 6px;
    background: var(--color-panel);
    box-shadow: none;
}

.site-main input,
.site-main textarea,
.site-main select {
    border: var(--border-ink);
    border-radius: 6px;
    background: var(--color-panel);
    box-shadow: none;
}

.site-main :where(input, textarea, select):focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(255 212 71 / 25%);
}

.site-main :where(input, textarea, select):disabled {
    color: #696a64;
    background: var(--color-muted);
    opacity: 1;
}

.site-main :where(.rounded-xl, .rounded-2xl, .rounded-3xl, [class*="rounded-["]) {
    border-radius: 8px;
}

.site-main .shadow-sm {
    box-shadow: var(--shadow-hard-sm);
}

.site-main .ring-1 {
    border: var(--border-ink);
    box-shadow: var(--shadow-hard-sm);
}

.site-main :where(article, li, dl).border,
.site-main :where(article, li).rounded-2xl,
.site-main > .max-w-md > .border,
.site-main section > .overflow-hidden.border {
    border: var(--border-ink);
    border-radius: 8px;
    background: var(--color-panel);
    box-shadow: var(--shadow-hard);
}

.site-main :where(article, li).border,
.site-main :where(article, li).rounded-2xl,
.site-main :where(article, li).rounded-3xl,
.site-main :where(.rounded-lg, .rounded-xl)[class*="border"] {
    animation: gum-card-pop 0.34s ease-out both;
}

.site-main :where(article, li):nth-child(2) {
    animation-delay: 45ms;
}

.site-main :where(article, li):nth-child(3) {
    animation-delay: 90ms;
}

.site-main :where(article, li):nth-child(4) {
    animation-delay: 135ms;
}

.site-main :where(article, li, .rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl)[class*="border"]
    :where(article, li, .rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl)[class*="border"] {
    box-shadow: none;
    animation: none;
}

.site-main :where(article, li).border {
    transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.site-main :where(article, li).border:hover {
    box-shadow: var(--shadow-hard-lg);
    transform: none;
}

.site-main :where(a, button):active:not(:disabled),
.site-primary-nav a.is-active,
.site-tool-menu.is-active > .site-tool-menu-trigger {
    box-shadow: none;
    transform: none;
}

.site-main :where(a, button).border,
.site-main :where(a, button).border-2,
.site-main :where(a, button).bg-slate-900,
.site-main :where(a, button).bg-slate-950 {
    border: var(--border-ink);
    border-radius: 6px;
    box-shadow: var(--shadow-hard-sm);
    transition: box-shadow 0.14s ease, transform 0.14s ease;
}

.site-main :where(a, button).border:hover,
.site-main :where(a, button).border-2:hover,
.site-main :where(a, button).bg-slate-900:hover,
.site-main :where(a, button).bg-slate-950:hover {
    box-shadow: var(--shadow-hard);
    transform: none;
}

.site-main a.rounded-full {
    border-radius: 6px;
}

.site-main > section:not(:first-child) {
    border-top: var(--border-ink);
}

.site-main > .max-w-6xl.space-y-8 :where(.rounded-lg, .rounded-xl).border,
.site-main > .max-w-6xl.space-y-12 :where(.rounded-lg, .rounded-xl).border {
    border: var(--border-ink);
    background: var(--color-panel);
    box-shadow: var(--shadow-hard-sm);
}

.site-main > .max-w-6xl.space-y-8 :where(.rounded-lg, .rounded-xl).border:hover {
    box-shadow: var(--shadow-hard);
    transform: none;
}

.site-main > .max-w-md,
.site-main > section.max-w-md,
.site-main > section.max-w-md > div {
    position: relative;
}

.site-main > section.max-w-md > .border,
.site-main > section.max-w-md > div > .border,
.site-main > .max-w-md > .border {
    border: var(--border-ink);
    border-radius: 8px;
    background: var(--color-panel);
    box-shadow: var(--shadow-hard-lg);
}

.site-main > article.max-w-3xl {
    border: var(--border-ink);
    border-radius: 8px;
    background: var(--color-panel);
    box-shadow: var(--shadow-hard-lg);
}

.site-main > section:first-child.max-w-5xl + section article {
    border: var(--border-ink);
    border-radius: 8px;
    box-shadow: var(--shadow-hard);
}

.site-main > section:first-child + section > .container > .space-y-8 {
    border: var(--border-ink);
    border-radius: 8px;
    box-shadow: var(--shadow-hard);
}

.site-footer {
    border-top: var(--border-ink);
    color: #ffffff;
    background: var(--color-ink);
}

.site-footer-inner {
    padding-block: 2.5rem 1.5rem;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr minmax(0, 1fr);
    gap: 2rem;
}

.site-footer-about p,
.site-footer li {
    margin-top: 0.55rem;
}

.site-footer-brand,
.site-footer h3 {
    color: var(--color-accent);
}

.site-footer h3 {
    font-size: 0.875rem;
    font-weight: 800;
}

.site-footer a {
    display: inline-flex;
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-footer-brand {
    font-size: 1.15rem;
    font-weight: 900;
}

.site-footer a:not(.site-footer-brand),
.site-footer p {
    color: #f3f4ee;
}

.site-footer a:not(.site-footer-brand) {
    transition: color 0.14s ease, transform 0.14s ease;
}

.site-footer a:not(.site-footer-brand):hover {
    color: var(--color-primary);
    transform: translateX(2px);
}

.site-footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid rgb(255 255 255 / 18%);
    padding-top: 1rem;
    font-size: 0.8rem;
}

@keyframes gum-page-enter {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gum-card-pop {
    from {
        opacity: 0;
        transform: translateY(9px) rotate(0.35deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

@media (max-width: 1040px) {
    .site-nav {
        grid-template-columns: 1fr auto;
        padding-block: 0.75rem 0.65rem;
    }

    .site-primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        border-top: var(--border-ink);
        padding-top: 0.4rem;
    }

    .site-tool-submenu {
        left: auto;
        right: 0;
        transform: none;
    }

}

@media (max-width: 820px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.25rem;
    }

    .site-footer-grid > div {
        min-width: 0;
    }

    .site-footer-about,
    .site-footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .site-footer-grid a {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 640px) {
    .container,
    .site-main,
    .site-main.container {
        width: min(100% - 2rem, 72rem);
    }

    .site-main {
        padding-block: 1rem 3.5rem;
    }

    .site-nav {
        grid-template-columns: minmax(0, 1fr) auto;
        justify-items: stretch;
        gap: 0.55rem 0.65rem;
        padding-block: 0.55rem 0.7rem;
    }

    .site-brand-wrap {
        align-self: center;
        justify-self: start;
        padding-block: 0;
    }

    .site-brand {
        gap: 0.4rem;
    }

    .site-brand-mark {
        width: 2.15rem;
        height: 2.15rem;
    }

    .site-brand-wordmark {
        font-size: 0.92rem;
    }

    .site-account-nav {
        grid-column: 2;
        grid-row: 1;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .site-account-button,
    .site-account-link {
        min-height: 2rem;
        padding: 0.4rem 0.5rem;
        font-size: 0.72rem;
    }

    .site-primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.25rem;
        border-top: var(--border-ink);
        padding-top: 0.5rem;
        padding-bottom: 0.25rem;
        scrollbar-color: var(--color-ink) transparent;
        scrollbar-width: thin;
    }

    .site-primary-nav > * {
        flex: 0 0 auto;
    }

    .site-primary-nav a,
    .site-primary-nav a:last-child:nth-child(odd) {
        grid-column: auto;
        width: auto;
        min-height: 2rem;
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .site-tool-menu {
        grid-column: auto;
        order: initial;
        width: auto;
    }

    .site-tool-menu-trigger {
        justify-content: center;
        width: auto;
        min-height: 2rem;
        border: 0;
        padding: 0.4rem 0.5rem;
        background: transparent;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .site-primary-nav:has(.site-tool-menu[open]) {
        overflow: visible;
        flex-wrap: wrap;
    }

    .site-tool-menu[open] {
        width: 100%;
    }

    .site-tool-submenu {
        position: relative;
        top: auto;
        right: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin-top: 0.35rem;
        box-shadow: var(--shadow-hard-sm);
    }

    .site-tool-submenu a {
        min-width: 0;
        padding: 0.65rem 0.4rem;
        text-align: center;
    }

    .site-account-nav .site-account-menu[open] {
        width: auto;
    }

    .site-account-nav .site-account-menu .site-tool-submenu {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 0;
        left: auto;
        width: min(16rem, calc(100vw - 2rem));
        margin-top: 0;
        grid-template-columns: 1fr;
        transform: none;
    }

    .site-account-nav .site-account-menu .site-tool-submenu a {
        text-align: left;
    }

    .site-main > section:first-child:not(.max-w-md) {
        box-shadow: var(--shadow-hard);
    }

    .site-main > section:first-child.max-w-5xl:not(.video-studio-section) > :first-child {
        padding: 2rem 1.25rem;
    }

    .site-main > .max-w-6xl:first-child > header:first-child {
        padding: 1.5rem 1.25rem 1.35rem;
        box-shadow: var(--shadow-hard);
    }

    .site-main > .max-w-6xl.space-y-12:first-child > header:first-child {
        padding: 1.5rem 1rem 1.25rem;
    }

    .site-main > .max-w-6xl.space-y-12:first-child > header:first-child h1 {
        font-size: 2rem;
        line-height: 1.18;
    }

    .site-main > .max-w-6xl.space-y-12:first-child > header:first-child p {
        line-height: 1.6;
    }

    .site-main > .max-w-6xl.space-y-12:first-child > header:first-child .mt-5 {
        margin-top: 0.9rem;
    }

    .site-main > .max-w-6xl.space-y-12:first-child > header:first-child .mt-6 {
        margin-top: 0.9rem;
    }

    .site-main > .max-w-6xl.space-y-12:first-child > header:first-child .mt-7 {
        margin-top: 0.9rem;
    }

    .site-main > .max-w-6xl.space-y-12:first-child > header:first-child .gap-3 {
        gap: 0.45rem;
    }

    .site-main > .max-w-6xl.space-y-12:first-child > header:first-child .inline-flex {
        min-height: 2.35rem;
        padding-block: 0.45rem;
    }

    .site-main > .max-w-md > .border {
        padding: 1.35rem;
    }
}

@media (max-width: 420px) {
    .site-nav:has(.site-account-menu) .site-brand-wordmark {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
