/* components/not-found/NotFound.module.scss (pages/404.tsx) */
.mk-not-found {
    position: relative;
    margin: var(--mk-space-top, clamp(7rem, calc(7rem + 4.5 * ((100vw - 48rem) / 80)), 11.5rem)) auto var(--mk-space-bottom, clamp(7rem, calc(7rem + 4.5 * ((100vw - 48rem) / 80)), 11.5rem));
    overflow: hidden;
}
.mk-not-found__container {
    padding-left: var(--container-gutter);
    padding-right: var(--container-gutter);
    margin: 0 auto;
    max-width: var(--page-width);
    box-sizing: content-box;
    position: relative;
    text-align: center;
}
@media (min-width: 720px) {
    .mk-not-found__container { text-align: left; }
}
.mk-not-found__header { margin: 0 auto; display: flex; }
.mk-not-found svg { max-width: none; }
.mk-not-found__stars { position: absolute; top: 0; left: 8%; z-index: 1; }
.mk-not-found__constellation {
    position: absolute;
    top: -3%;
    left: 30%;
    z-index: 2;
    width: 11.5441176%; /* 15.7rem / 136rem */
    height: auto;
    min-width: 7rem;
    transform: rotate(30deg);
}
.mk-not-found__moon {
    position: absolute;
    top: clamp(-5rem, calc(-5rem + 10 * ((100vw - 48rem) / 80)), 5rem);
    right: 12%;
    z-index: 2;
    width: 14.7058824%; /* 20rem / 136rem */
    height: auto;
    min-width: 10rem;
    animation: mk-move-moon 10s ease-in-out infinite;
}
.mk-not-found__content {
    margin: clamp(18rem, calc(18rem + 6 * ((100vw - 48rem) / 80)), 24rem) auto clamp(4rem, calc(4rem + 4 * ((100vw - 48rem) / 80)), 8rem);
    text-align: center;
}
.mk-not-found__heading-wrap { display: inline-block; position: relative; }
.mk-not-found__heading {
    margin: clamp(2rem, calc(2rem + 2 * ((100vw - 48rem) / 80)), 4rem) auto 0;
    padding: 0;
    column-span: all;
    display: inline-block;
    position: relative;
    z-index: 1;
}
/* The heading block with the dot (::after) right after it (inline-flex: no gap from the whitespace after the block) */
.mk-not-found__heading { display: inline-flex; align-items: baseline; }
.mk-not-found__heading::after {
    content: '.';
    color: var(--mk-not-found-accent, var(--color-accent-primary));
    margin-left: 0.5rem;
    font-family: var(--font-family);
    font-size: clamp(8rem, calc(8rem + 4 * ((100vw - 48rem) / 80)), 12rem);
    line-height: 1.2;
    font-weight: 700;
}
.mk-not-found__grass-back { position: absolute; bottom: 12.5%; left: 30%; z-index: 0; color: var(--mk-not-found-grass, var(--color-outlines)); }
.mk-not-found__grass-front { position: absolute; bottom: 8%; left: 0; z-index: 2; color: var(--mk-not-found-grass, var(--color-outlines)); }
/* Type: the blocks' text styles (title error-code, tagline tagline, text body). The space
   under the tagline is 1.5 × the tagline's own size, so it sits on the block. */
.mk-not-found__tagline { margin: 4rem auto 0; padding: 0; text-align: center; }
.mk-not-found__tagline > * { margin-bottom: 1.5em; }
.mk-not-found__actions {
    display: flex;
    justify-content: space-around;
    margin: clamp(2rem, calc(2rem + 2 * ((100vw - 48rem) / 80)), 4rem) auto;
    padding: 0;
    max-width: 50rem;
    list-style: none;
}
/* Button appearance="text". The links are minkLink items with the text style button-dot. */
.mk-not-found__actions .mk-links__link {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: 0 0 0 0.5rem;
    text-decoration: none;
    color: var(--mk-color, var(--color-font));
}
.mk-not-found__actions .mk-links__link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 2.6rem;
    height: 2.6rem;
    background: var(--mk-not-found-accent, var(--color-accent-primary));
    border-radius: 2.6rem;
    transition: width 350ms, box-shadow 550ms;
}
.mk-not-found__actions .mk-links__link:is(:hover, :focus-visible)::after { width: calc(100% + 0.5rem); }
.mk-not-found__actions .mk-links__link:focus { outline: none; }

@keyframes mk-move-moon {
    0% { transform: translateY(0); }
    50% { transform: translateY(30px); }
    100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .mk-not-found__moon { animation: none; }
}

/* components/confirmation/Confirmation.module.scss (pages/thanks.tsx) */
.mk-confirmation {
    position: relative;
    margin: var(--mk-space-top, clamp(20rem, calc(20rem + 9 * ((100vw - 48rem) / 80)), 29rem)) auto var(--mk-space-bottom, clamp(20rem, calc(20rem + 10 * ((100vw - 48rem) / 80)), 30rem));
}
.mk-confirmation__container {
    padding-left: var(--container-gutter);
    padding-right: var(--container-gutter);
    position: relative;
    z-index: 1;
}
.mk-confirmation__block {
    margin: clamp(5rem, calc(5rem + 10 * ((100vw - 48rem) / 80)), 15rem) auto 0;
    text-align: center;
}
.mk-confirmation__heading {
    margin: 0 0 3rem;
    padding: clamp(0rem, calc(0rem + 5 * ((100vw - 48rem) / 80)), 5rem) 0 0;
    column-span: all;
}
/* Type: the blocks' text styles (title display-xl, text intro). */
.mk-confirmation__cta { margin-top: clamp(3rem, calc(3rem + 2 * ((100vw - 48rem) / 80)), 5rem); }
.mk-confirmation__cta .mk-button { align-self: auto; }
.mk-confirmation__cta .mk-button {
    color: var(--mk-confirmation-button-color, var(--color-font));
    border-color: var(--mk-confirmation-button-color, var(--color-font));
    background-color: var(--mk-confirmation-button-bg, var(--color-background-form));
}
.mk-confirmation__cta .mk-button:hover { background-color: var(--color-accent-primary); }
/* The text's width is 24 × its own size, so it sits on the block. */
.mk-confirmation__text > * { max-width: 24em; margin: 0 auto; }
.mk-confirmation__dot-wrap { position: absolute; left: 50%; transform: translate(-50%, 0); top: -10rem; }
.mk-confirmation__dot {
    position: absolute;
    left: 50%;
    z-index: 0;
    top: 0;
    aspect-ratio: 1 / 1;
    height: clamp(35rem, calc(35rem + 33 * ((100vw - 48rem) / 80)), 68rem);
    background: var(--mk-confirmation-dot, var(--color-accent-primary));
    transform: translate(-50%, 0);
    border-radius: 50%;
}
.mk-js .mk-confirmation__block { animation: mk-confirm-text 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.mk-js .mk-confirmation__dot-wrap { animation: mk-confirm-dot 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
@keyframes mk-confirm-text { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: none; } }
@keyframes mk-confirm-dot { from { opacity: 0; transform: translate(-50%, 8rem); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) {
    .mk-js .mk-confirmation__block, .mk-js .mk-confirmation__dot-wrap { animation: none; }
}
