@viewport { width: device-width; }

:root {
    --black: #1D1D1C;
    --orange: #F5A92B;
    --orange-shade-1: #DF9B2A;
    --orange-shade-2: #CC8E29;
    --bg-color: var(--orange);
    --text-color: var(--black);
    /* left margin that is nested within another section so it collapses to 0 */
    --left-margin-collapse: 0;
    /* left margin that aligns with the others at larger sizes but has default at smaller sizes  */
    --left-margin-default: 96px;
    /* left margin that aligns items to the left side of the window with a little padding */
    --left-margin-flex: 24px;
    /* right margin that aligns with the right column of the header */
    --right-margin: 56px;
    --max-width: 1440px;
    --space-small: 20px;
    --space-medium: 40px;
    --space-medium: 40px;
    --space-large: 60px;
    --space-xlarge: 80px;
    --space-xxlarge: 120px;
    --font-family-headings: 'SentientBold', Georgia, serif;
    --font-family-body: 'SentientItalic', Georgia, serif;
    --font-family-body-size: 18px;
}

@media(min-width: 800px) {
    :root {
        --left-margin-collapse: 96px;
        --left-margin-default: var(--left-margin-collapse);
        --left-margin-flex: 56px;
        --right-margin: 120px;
    }
}

@media(min-width: 1440px) {
    :root {
        --left-margin-collapse: 112px;
        --right-margin: 168px;
    }
}

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

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

fieldset {
    border: 0;
    padding: 0;
}

/* Removing the 350ms click delay in iOS */
a,
button,
input,
select,
textarea,
label,
summary {
    touch-action: manipulation;
}

h2 {
    font-family: var(--font-family-headings);
    font-size: var(--font-family-body-size);
}

.u-mb--s {
    margin-bottom: var(--space-small);
}

.u-mb--m {
    margin-bottom: var(--space-medium);
}

.u-mb--l {
    margin-bottom: var(--space-large);
}

.u-mb--xl {
    margin-bottom: var(--space-xlarge);
}

.u-mb--xxl {
    margin-bottom: var(--space-xxlarge);
}

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

ol {
    counter-reset: li;
    padding: 0;
}

ol > li {
    border-top: 1px solid var(--text-color);
    display: grid;
    grid-template-columns: var(--left-margin-default) 1fr;
    list-style: none;
    padding-bottom: 32px;
    padding-top: 16px;
}

ol > li:last-child {
    padding-bottom: 0;
}

ol > li::before {
    content: counter(li) '.';
    counter-increment: li;
    font-family: var(--font-family-headings);
    font-size: var(--font-family-body-size);
}

h1 svg {
    height: auto;
    width: 100%;
}

@font-face {
    font-display: swap;
    font-family: 'SentientBold';
    src: url('/static/fonts/sentient/Sentient-Bold.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'SentientItalic';
    src: url('/static/fonts/sentient/Sentient-Italic.woff2') format('woff2');
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: var(--font-family-body-size);
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.03em;
    line-height: 1.5;
    margin: 0;
    height: 100%;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    text-rendering: optimizeSpeed;
}

html {
    background: var(--bg-color);
    color: var(--text-color);
}

main {
    box-sizing: border-box;
    min-height: 100%;
    padding-bottom: 25px;
    width: 100%;
}

[animate-up] {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: transform 0.8s, opacity 0.8s;
    transition-delay: 0.15s;
}

[animate-up].isVisible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

[animate-down] {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
    transition: transform 0.8s, opacity 0.8s;
    transition-delay: 0.15s;
}

[animate-down].isVisible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* header */
.site-header {
    display: grid;
    grid-template-columns: 1fr var(--right-margin);
}

.site-header__sidebar {
    align-items: center;
    display: flex;
    flex-direction: column;
    line-height: 1;
    padding-top: 24px;
    place-self: start center;
    position: fixed;
    right: 0;
    top: 0;
    width: var(--right-margin);
}

@media (min-width: 800px) {
    .site-header__sidebar {
        padding-top: 56px;
    }
}

@media (min-width: 1200px) {
    .site-header__sidebar {
        padding-top: 72px;
    }
}

.time {
    font-family: var(--font-family-headings);
    height: 6.5em; /* fixed width so time doesn't jump */
}


.logo {
    margin-bottom: 24px;
}

.user {
    display: flex;
    writing-mode: vertical-lr;
}

/* form */
.file-input {
    border: 1px dashed var(--text-color);
    display: grid;
    gap: 20px;
    grid-template: repeat(2, auto) / 1fr;
    min-height: 100px;
    line-height: 1;
    outline: 1px solid transparent;
    outline-offset: 5px;
    padding: 40px 20px;
    position: relative;
    transition: 0.2s;
    /* white-space: nowrap; */
    width: 100%;
}

.file-input:hover {
    outline: 1px solid var(--orange-shade-2);
}

/* magic number to handle default text */
@media (min-width: 640px) {
    .file-input {
        grid-template: auto / 2fr 1fr;
        padding-left: 0;
        padding-right: 40px;
    }
}

.file-input.is-active {
    background-color: var(--orange-shade-1);
    border-color: var(--text-color);
    outline: 1px solid var(--orange-shade-2);
    outline-offset: 5px;
}

.file-input.is-uploaded {
    background-color: var(--text-color);
    border-color: var(--text-color);
    border-style: solid;
    color: var(--bg-color);
}

.file-input.is-uploading {
    background-color: var(--orange-shade-1);
    border-style: dashed;
    color: var(--text-color);
}

.file-input.is-active.is-uploading::before,
.file-input.is-uploading::before {
    animation: clippath 3s infinite linear;
    border: 1px solid var(--text-color);
    bottom: -1px;
    content: '';
    left: -1px;
    position: absolute;
    right: -1px;
    top: -1px;
}

@keyframes clippath {
    0%, 100% {
        clip-path: inset(0 0 95% 0);
    }
    25% {
        clip-path: inset(0 0 0 95%);
    }
    50% {
        clip-path: inset(95% 0 0 0);
    }
    75% {
        clip-path: inset(0 95% 0 0);
    }
}

.file-input__input {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
    position: absolute;
}

.file-input__icon {
    place-self: center;
}

.file-input__text {
    display: flex;
    font-family: var(--font-family-headings);
    gap: 10px;
    margin-top: 3px; /* optical adjustment */
}

.file-input__hint {
    font-family: var(--font-family-body);
}

.file-input__label {
    cursor: pointer;
    font-family: var(--font-family-headings);
    font-size: var(--font-family-body-size);
    grid-column: 1 / -1;
    place-self: center;
    text-decoration: underline;
}

.file-input__progress {
    display: none;
}

.file-input__text-wrap {
    display: grid;
    place-self: center;
    row-gap: 20px;
}

/* magic number to handle default text */
@media (min-width: 640px) {
    .file-input__text-wrap {
        grid-template-columns: var(--left-margin-default) auto;
        place-self: start;
    }

    .file-input__label {
        grid-area: 1 / 2 / -1 / -1;
        place-self: center end;
    }
}

.field-group {
    display: grid;
    gap: var(--space-small);
    grid-template-columns: repeat(2, 1fr) auto;
}

.field-text {
    align-content: start;
    display: grid;
    grid-template: repeat(2, auto) / var(--left-margin-default) 1fr;
    margin-top: 58px; /* magic number to align with submit button */
}

@media (max-width: 1201px) {
    .field-group {
        grid-template: repeat(2, auto) / repeat(2, 1fr);
    }

    .gilga-form__submit {
        grid-area: 2 / 2 / -1 / -1;
        place-self: end;
    }
}

@media (max-width: 801px) {
    .field-group {
        grid-template: repeat(3, auto) / 1fr;
    }

    .field-text {
        margin-top: var(--space-medium);
    }

    .gilga-form__submit {
        grid-area: 3 / 1 / -1 / -1;
        place-self: end;
    }
}

.field-text__label {
    grid-area: 1 / 1 / 2 / 2;
    font-family: var(--font-family-headings);
    min-width: var(--left-margin-default);
}

.field-text__input {
    background-color: transparent;
    border: 0;
    border-radius: 0;
    font-family: var(--font-family-body);
    outline: 0;
    flex-grow: 1;
    grid-area: 1 / 2 / 2 / -1;
    width: 100%; /* overwrite browser styles */
}

.field-text__input::placeholder {
    color: var(--text-color);
    font-family: var(--font-family-body);
    opacity: 50%;
    transition: 0.2s
}

.field-text__input:focus::placeholder {
    opacity: 25%;
}

.field-text__label,
.field-text__input {
    border-bottom: 1px solid var(--text-color);
    font-size: var(--font-family-body-size);
    margin: 0;
    padding-bottom: 10px;
    transition: 0.2s;
}

.field-text.has-focus .field-text__label,
.field-text.has-focus .field-text__input {
    border-color: var(--orange-shade-2) !important; /* overriding Kwes */
}

.gilga-form__submit-btn {
    align-items: center;
    background-color: var(--orange-shade-1);
    border: 0;
    color: var(--orange-shade-2);
    cursor: pointer;
    display: inline-flex;
    font-family: 'Gilga Mono', sans-serif;
    font-size: 12px;
    height: 96px;
    justify-content: center;
    outline: 0;
    padding: 0;
    text-transform: uppercase;
    transition: 0.2s;
    width: 96px;
}

.gilga-form__submit-btn:hover,
.gilga-form__submit-btn:focus {
    background-color: #48391F;
    color: var(--orange);
}

.gilga-form__submit-btn:active {
    background-color: var(--black);
    color: var(--orange);
}

/* kwes */

/* alert error */
.kwes-form.gilga-form .kw-alert {
    background-color: transparent;
    color: var(--text-color);
    font-size: var(--font-family-body-size);
    padding-left: var(--left-margin-collapse);
}

.kwes-form.gilga-form .kw-border-success,
.kwes-form.gilga-form .kw-border-error {
    border: 0;
    border-bottom: 1px solid var(--text-color);
}

/* Inline error */
.kwes-form.gilga-form .kw-field-error-message {
    color: var(--text-color);
    font-family: var(--font-family-body);
    font-size: 16px;
}

.field-text .kw-field-error-message {
    grid-area: 2 / 2 / -1 / -1;
    padding-top: var(--space-small);
}

.file-input .kw-field-error-message {
    grid-column: 1 / 3;
    padding-left: var(--left-margin-default);
}

.file-input.is-uploaded .kw-field-error-message {
    color: var(--orange);
}

/* section */
.section {
    display: grid;
    grid-template-columns: 1fr var(--right-margin);
    /* margin-left: auto; */
    /* max-width: var(--max-width); */
    padding-left: var(--left-margin-flex);
}

.section::after {
    content: "";
}

.section--left {
    grid-template-columns: var(--left-margin-collapse) 1fr var(--right-margin);
}

.section--left::before {
    content: "";
}

/* type */
.u-fz--l {
    font-family: var(--font-family-headings);
    font-size: 32px;
    line-height: 1.1;
}

@media (min-width: 800px) {
    .u-fz--l {
        font-size: 40px;
    }
}

/* signature image */
.signature {
    float: right;
    height: auto;
    max-width: 100%;
}

@media (min-width: 480px) {
    .signature {
        max-width: 262px;
    }
}

@media (min-width: 800px) {
    .signature {
        max-width: 369px;
    }
}

@media (min-width: 1200px) {
    .signature {
        max-width: 320px;
    }
}

.disclaimer {
    font-size: 12px;
    position: relative;
    text-align: center;
    text-indent: 0;
}

.disclaimer::before,
.disclaimer::after {
    content: '*';
    display: inline-block;
    width: 8px;
}

.disclaimer::before {
    margin-right: 4px;
}

.disclaimer::after {
    margin-left: 4px;
}

@media (max-width: 481px) {
    .disclaimer {
        text-align: left;
    }

    .disclaimer::before {
        left: -12px;
        position: absolute;
    }
}

.lite-video {
    background-color: var(--black);
    background-position: center center;
    background-size: cover;
    contain: content;
    cursor: pointer;
    display: block;
    position: relative;
    width: 100%;
}

/* gradient */
.lite-video::after {
    content: '';
    display: block;
    padding-bottom: calc(100% / (4448 / 3096));
}

.lite-video > iframe {
    border: 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* play button */
.lite-video > .lty-playbtn {
    background-color: var(--black);
    /* Vimeo's actual play button svg */
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 12C19 12.3557 18.8111 12.6846 18.5039 12.8638L6.50387 19.8638C6.19458 20.0442 5.81243 20.0455 5.50194 19.8671C5.19145 19.6888 5 19.3581 5 19L5 5C5 4.64193 5.19145 4.3112 5.50194 4.13286C5.81243 3.95452 6.19458 3.9558 6.50387 4.13622L18.5039 11.1362C18.8111 11.3154 19 11.6443 19 12Z' fill='%23FFF'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    height: 48px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    transition: background-color 0.2s ease-in-out;
    width: 68px;
    z-index: 1;
}

.lite-video:hover > .lty-playbtn,
.lite-video .lty-playbtn:focus {
    background-color: var(--orange-shade-1);
}

/* Post-click styles */
.lite-video.is-activated {
    cursor: unset;
}

.lite-video.is-activated::before,
.lite-video.is-activated > .lty-playbtn {
    opacity: 0;
    pointer-events: none;
}
