@font-face {
    font-family: "Circular Std";
    src: url("/fonts/CircularStd-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Circular Std";
    src: url("/fonts/CircularStd-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Circular Std";
    src: url("/fonts/CircularStd-Book.ttf") format("truetype");
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Circular Std";
    src: url("/fonts/CircularStd-BookItalic.ttf") format("truetype");
    font-weight: 400 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Circular Std";
    src: url("/fonts/CircularStd-Medium.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Circular Std";
    src: url("/fonts/CircularStd-MediumItalic.ttf") format("truetype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Circular Std";
    src: url("/fonts/CircularStd-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Circular Std";
    src: url("/fonts/CircularStd-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Circular Std";
    src: url("/fonts/CircularStd-Black.ttf") format("truetype");
    font-weight: 800 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Circular Std";
    src: url("/fonts/CircularStd-BlackItalic.ttf") format("truetype");
    font-weight: 800 900;
    font-style: italic;
    font-display: swap;
}

:is(p, h1, h2, h3, h4, h5, h6, blockquote, figure, aside, article, a, button, input, textarea, select, label, figcaption):where(:not(.the-inkwell-theme *)) {
    font-family: inherit;
    font-weight: inherit;
}

:is(p, h1, h2, h3, h4, h5, h6, blockquote, figure, aside, article, .the-text-content) a:where(:not(.the-inkwell-theme *)),
input[type=submit]:where(:not(.the-inkwell-theme *)) {
    font-family: inherit;
    font-weight: inherit;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

body {
    overflow-y: clip;
    background: var(--color-white);
    color: var(--color-font-dark);
    font-family: var(--font-family-body);
    font-size: var(--font-paragraph-size);
    font-weight: var(--font-paragraph-weight);
    line-height: var(--font-paragraph-line-height);
}

body:has(> .site-footer) {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

body:has(> .site-footer) > main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--font-h1-size);
}

h2 {
    font-size: var(--font-h2-size);
}

h3 {
    font-size: var(--font-h3-size);
}

h4 {
    font-size: var(--font-h4-size);
}

h5 {
    font-size: var(--font-h5-size);
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:where(:not(.the-inkwell-theme *)) {
    text-decoration: none !important;
}

:is(.link, .link-poppy) {
    transition: color .2s ease-out;
}

.link-poppy {
    color: var(--color-poppy);
}

a.link:is(:hover, :focus-visible) {
    color: var(--color-poppy);
}

a.link-poppy:is(:hover, :focus-visible) {
    color: color-mix(in oklab, var(--color-poppy), black 12%);
}

a:focus-visible,
.upload-dropzone:has(+ input:focus-visible) {
    outline: 2px solid var(--color-black-bean);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--color-white);
}

.video-toggle {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: grid;
    place-items: center;
    width: var(--video-toggle-size, 44px);
    height: var(--video-toggle-size, 44px);
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgb(128 128 128 / 0.55);
    color: var(--color-white);
    cursor: pointer;
    transition: background-color .2s ease-out;
}

.video-toggle:is(:hover, :focus-visible) {
    background: rgb(128 128 128 / 0.75);
}

.video-toggle[hidden] {
    display: none;
}

.video-toggle::before {
    content: "";
    box-sizing: border-box;
    width: 14px;
    height: 16px;
    border-inline: 5px solid currentColor;
}

.video-toggle--paused::before {
    border: none;
    margin-left: 3px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (max-width: 480px) {
    .video-toggle {
        --video-toggle-size: 36px;
    }
}

img, svg {
    display: block;
    max-width: 100%;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 25px;
    border-radius: 999px;
    border: none;
    font-family: var(--font-family-body);
    font-size: 16px;
    font-weight: 450;
    white-space: nowrap;
    cursor: pointer;
}

:is(.btn-primary, .btn-secondary, .btn-white, .btn-isabelline, .btn-blackbean) {
    background: var(--btn-bg);
    transition: background-color .2s ease-out;
}

:is(.btn-primary, .btn-secondary, .btn-white, .btn-isabelline, .btn-blackbean):not(:disabled):is(:hover, :focus-visible) {
    background: var(--btn-bg-hover);
}

.btn .btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.loading-dots::after {
    content: "...";
    display: inline-block;
    animation: loading-dots 1.6s steps(4, jump-none) infinite;
}

@keyframes loading-dots {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-dots::after {
        animation: none;
    }
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    --btn-bg: var(--color-poppy);
    --btn-bg-hover: color-mix(in oklab, var(--btn-bg), black 12%);
    color: var(--color-font-white);
}

.btn-secondary {
    --btn-bg: var(--color-bleach-white);
    --btn-bg-hover: color-mix(in oklab, var(--btn-bg), black 6%);
    color: var(--color-font-dark);
}

.btn-white {
    --btn-bg: var(--color-white);
    --btn-bg-hover: color-mix(in oklab, var(--btn-bg), black 8%);
    color: var(--color-font-dark);
}

.btn-isabelline {
    --btn-bg: var(--color-isabelline);
    --btn-bg-hover: color-mix(in oklab, var(--btn-bg), black 6%);
    color: var(--color-font-dark);
}

.btn-blackbean {
    --btn-bg: var(--color-black-bean);
    --btn-bg-hover: color-mix(in oklab, var(--btn-bg), white 12%);
    color: var(--color-font-white);
}

.container {
    width: 100%;
    max-width: var(--grid-max-width);
    margin-inline: auto;
    padding-inline: clamp(5vw, calc(35.833vw - 444px), 244px);
}

/* a hairline between adjacent sections that share a background */
.section-divider {
    height: 0;
    margin: 0;
    border: none;
    border-top: 1px solid var(--color-bleach-white);
}
